/* ==========================================================================
   ILRITORNO — hotfix-v2.css
   Fixes urgentes feedback David v2
   - Checkout desktop montado
   - Mi cuenta logged in/out roto
   - Mobile single product foto rota
   - Mobile header logo
   - Mobile checkout menu
   ========================================================================== */

/* ============================================================
   CHECKOUT DESKTOP — fix urgente (estaba montado todo)
   ============================================================ */
form.checkout.woocommerce-checkout {
  display: block !important;
  width: 100% !important;
  position: relative !important;
}

.ir-checkout-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto !important;
  gap: 2rem !important;
  width: 100% !important;
  position: relative !important;
  align-items: start !important;
}

@media (min-width: 1024px) {
  .ir-checkout-grid {
    grid-template-columns: minmax(0, 1fr) 420px !important;
    gap: 3rem !important;
  }
}

/* Forzar columnas: que cada lado quede en su grid-column específica */
.ir-checkout-grid > .ir-checkout-left {
  grid-column: 1 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  position: relative !important;
}

.ir-checkout-grid > .ir-checkout-right {
  grid-column: 1 !important;
  grid-row: 2 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  position: relative !important;
}

@media (min-width: 1024px) {
  .ir-checkout-grid > .ir-checkout-left {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }
  .ir-checkout-grid > .ir-checkout-right {
    grid-column: 2 !important;
    grid-row: 1 !important;
    position: sticky !important;
    top: 120px !important;
  }
}

/* Reset cualquier float/position que rompa */
.woocommerce-checkout #customer_details,
.woocommerce-checkout #customer_details > .col-1,
.woocommerce-checkout #customer_details > .col-2,
.woocommerce-checkout #order_review,
.woocommerce-checkout #order_review_heading {
  float: none !important;
  position: static !important;
  width: 100% !important;
  max-width: 100% !important;
  clear: both !important;
}

/* col2-set: stack en mobile, grid en desktop */
.woocommerce-checkout .col2-set {
  display: block !important;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .woocommerce-checkout .col2-set {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
  }
}

/* En desktop, el col2-set queda EN UNA COLUMNA porque el grid principal ya divide */
@media (min-width: 1024px) {
  .woocommerce-checkout .col2-set {
    display: block !important;
  }
}

/* Tabla del pedido NO tiene float */
.woocommerce-checkout-review-order,
.woocommerce-checkout-review-order-table {
  width: 100% !important;
  float: none !important;
  position: static !important;
}

/* ============================================================
   CHECKOUT MOBILE — header/menú no se rompe
   ============================================================ */
@media (max-width: 768px) {
  body.woocommerce-checkout .site-header {
    position: relative !important;
    z-index: 100;
  }

  body.woocommerce-checkout .site-header__inner {
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
  }

  /* Si el checkout tiene sticky right column, no debe pisar header */
  .ir-checkout-right {
    position: relative !important;
    top: auto !important;
  }

  /* Botón place order ancho completo móvil */
  #place_order {
    width: 100% !important;
  }
}

/* ============================================================
   MI CUENTA — fix sin login Y con login
   ============================================================ */

/* SIN LOGIN: 2 columnas (login | register) en desktop, stack en mobile */
body.woocommerce-account:not(.logged-in) .woocommerce {
  display: block !important;
}

body.woocommerce-account:not(.logged-in) .u-columns,
body.woocommerce-account:not(.logged-in) .col2-set,
body.woocommerce-account:not(.logged-in) #customer_login {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 2rem !important;
  width: 100% !important;
}

@media (min-width: 768px) {
  body.woocommerce-account:not(.logged-in) .u-columns,
  body.woocommerce-account:not(.logged-in) .col2-set,
  body.woocommerce-account:not(.logged-in) #customer_login {
    grid-template-columns: 1fr 1fr !important;
  }
}

body.woocommerce-account:not(.logged-in) .col-1,
body.woocommerce-account:not(.logged-in) .col-2,
body.woocommerce-account:not(.logged-in) .u-column1,
body.woocommerce-account:not(.logged-in) .u-column2 {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 1.5rem !important;
  background: #fff;
  border: 1px solid var(--ir-line, #D3C8B1);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(46, 47, 36, 0.04);
}

body.woocommerce-account:not(.logged-in) .col-1 h2,
body.woocommerce-account:not(.logged-in) .col-2 h2,
body.woocommerce-account:not(.logged-in) .u-column1 h2,
body.woocommerce-account:not(.logged-in) .u-column2 h2 {
  font-family: var(--ir-font-display, serif) !important;
  font-size: 1.5rem !important;
  margin-bottom: 1.25rem !important;
  padding-bottom: 0.5rem !important;
  border-bottom: 1px solid var(--ir-line, #D3C8B1);
}

/* CON LOGIN: sidebar + content */
body.woocommerce-account.logged-in .woocommerce {
  display: block !important;
  width: 100% !important;
}

@media (min-width: 1024px) {
  body.woocommerce-account.logged-in .woocommerce {
    display: grid !important;
    grid-template-columns: 280px 1fr !important;
    gap: 3rem !important;
    align-items: start !important;
    max-width: 1200px;
    margin: 0 auto;
  }
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation,
body.woocommerce-account.logged-in .woocommerce-MyAccount-content {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation {
  background: #fff;
  border: 1px solid var(--ir-line, #D3C8B1);
  border-radius: 6px;
  padding: 0.5rem !important;
  margin-bottom: 1.5rem !important;
  box-shadow: 0 2px 8px rgba(46, 47, 36, 0.04);
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li {
  margin: 0 !important;
  list-style: none !important;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li a {
  display: block !important;
  padding: 0.85rem 1.25rem !important;
  font-family: var(--ir-font-ui, sans-serif) !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.6px !important;
  text-transform: uppercase !important;
  color: var(--ir-coffee, #3A3128) !important;
  text-decoration: none !important;
  border-radius: 4px !important;
  transition: background 200ms ease, color 200ms ease;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li.is-active a,
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li a:hover {
  background: var(--ir-ink, #2A2620) !important;
  color: #F0EADB !important;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-content {
  background: #fff;
  border: 1px solid var(--ir-line, #D3C8B1);
  border-radius: 6px;
  padding: 2rem !important;
  box-shadow: 0 2px 8px rgba(46, 47, 36, 0.04);
}

@media (max-width: 600px) {
  body.woocommerce-account.logged-in .woocommerce-MyAccount-content {
    padding: 1.25rem !important;
  }
}

/* ============================================================
   SINGLE PRODUCT MOBILE — foto contained, responsive
   ============================================================ */
@media (max-width: 768px) {
  .single-product div.product {
    display: block !important;
  }

  .single-product div.product .woocommerce-product-gallery {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 0 1.5rem !important;
  }

  .single-product div.product .woocommerce-product-gallery__wrapper {
    width: 100% !important;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fff;
    border-radius: 4px;
  }

  .single-product div.product .woocommerce-product-gallery__image,
  .single-product div.product .woocommerce-product-gallery__image a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }

  .single-product div.product .woocommerce-product-gallery__image img,
  .single-product div.product .wp-post-image {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    background: #FAFAF7;
    display: block;
  }

  .single-product div.product .summary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
  }

  /* Botones add to cart full width en mobile */
  .single-product .single_add_to_cart_button {
    width: 100% !important;
  }

  /* Title responsive */
  .single-product .product_title {
    font-size: 1.6rem !important;
    line-height: 1.2 !important;
  }
}

/* ============================================================
   MOBILE HEADER LOGO — más grande
   ============================================================ */
@media (max-width: 768px) {
  .site-brand img,
  .site-header .site-brand img {
    max-width: 180px !important;
    height: 95px !important;
    width: auto !important;
  }

  body.is-scrolled .site-brand img,
  body.scrolled .site-brand img {
    height: 75px !important;
  }
}

@media (max-width: 480px) {
  .site-brand img,
  .site-header .site-brand img {
    max-width: 150px !important;
    height: 80px !important;
  }
}

/* ============================================================
   POP-UP — clarificar input correo
   ============================================================ */
.ir-popup__form input[type="email"] {
  background: #FAFAF7 !important;
  border: 2px solid var(--ir-sage, #C1C6A9) !important;
  padding: 0.95rem 1rem !important;
  font-size: 1rem !important;
}

.ir-popup__form input[type="email"]:focus {
  border-color: var(--ir-ink, #2A2620) !important;
  box-shadow: 0 0 0 3px rgba(193, 198, 169, 0.3) !important;
  background: #fff !important;
}

.ir-popup__form input[type="email"]::placeholder {
  color: var(--ir-earth, #686150);
  opacity: 0.7;
}

.ir-popup__hint {
  display: block;
  font-size: 0.85rem;
  color: var(--ir-coffee, #3A3128);
  margin-bottom: 0.75rem;
  font-weight: 500;
  text-align: center;
}

.ir-popup__hint::before {
  content: '↓ ';
  color: var(--ir-ink, #2A2620);
  font-weight: 700;
}

/* ============================================================
   ENVIOS Y PAGOS DESKTOP MENU - en checkout no tap el header
   ============================================================ */
body.woocommerce-checkout .site-header,
body.woocommerce-cart .site-header {
  position: sticky !important;
  top: 0;
  z-index: 1000;
  background: var(--ir-cream, #F0EADB);
}

/* ============================================================
   NOSOTROS — secciones nuevas (pullquote, manos, testimonios)
   ============================================================ */
.ir-pullquote-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #2A2D24 0%, #1F2018 50%, #2E2F24 100%);
  color: #F0EADB;
  position: relative;
  overflow: hidden;
}

.ir-pullquote-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(193, 198, 169, 0.08), transparent 60%);
  pointer-events: none;
}

.ir-pullquote {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .ir-pullquote {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
}

.ir-pullquote__media {
  aspect-ratio: 1 / 1.15;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  border: 1px solid rgba(240, 234, 219, 0.1);
}

.ir-pullquote__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ir-pullquote__icon {
  width: 56px;
  height: 56px;
  color: #C1C6A9;
  opacity: 0.6;
  margin-bottom: 1rem;
}

.ir-pullquote__text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.4;
  font-weight: 400;
  font-style: italic;
  margin: 0 0 1.5rem;
  color: #F0EADB;
  border: 0;
  padding: 0;
}

.ir-pullquote__text em {
  color: #D3C8B1;
  font-style: italic;
  display: inline;
}

.ir-pullquote__cite {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-family: var(--ir-font-ui, sans-serif);
}

.ir-pullquote__cite strong {
  font-size: 1rem;
  letter-spacing: 1px;
  color: #F0EADB;
  text-transform: uppercase;
}

.ir-pullquote__cite span {
  font-size: 0.85rem;
  color: rgba(240, 234, 219, 0.65);
  letter-spacing: 0.5px;
}

/* MANOS AL TRABAJO grid */
.ir-manos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}

.ir-manos__cell {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  margin: 0;
  cursor: zoom-in;
}

.ir-manos__cell--tall { grid-row: span 2; }
.ir-manos__cell--wide { grid-column: span 2; }

.ir-manos__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(.2,.8,.2,1);
}

.ir-manos__cell:hover img {
  transform: scale(1.06);
}

.ir-manos__cell figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(to top, rgba(46,47,36,.85), transparent);
  color: #F0EADB;
  font-family: var(--ir-font-ui, sans-serif);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 350ms ease, opacity 350ms ease;
}

.ir-manos__cell:hover figcaption {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 768px) {
  .ir-manos__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }
  .ir-manos__cell--wide { grid-column: span 2; }
  .ir-manos__cell--tall { grid-row: span 2; }
}

@media (max-width: 480px) {
  .ir-manos__grid { grid-auto-rows: 130px; }
  .ir-manos__cell figcaption { opacity: 1; transform: translateY(0); font-size: 0.75rem; }
}

/* TESTIMONIOS grid */
.ir-testimonios__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.ir-testimonio {
  background: #fff;
  border: 1px solid rgba(104, 97, 80, 0.10);
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 2px 12px rgba(46, 47, 36, 0.06);
  transition: transform 250ms ease, box-shadow 250ms ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.ir-testimonio:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(46, 47, 36, 0.10);
}

.ir-testimonio::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 18px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  color: var(--ir-sage, #C1C6A9);
  opacity: 0.5;
  line-height: 1;
  pointer-events: none;
}

.ir-testimonio__stars {
  color: #C9A45B;
  letter-spacing: 2px;
  font-size: 0.95rem;
}

.ir-testimonio__text {
  font-family: var(--ir-font-body, serif);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ir-ink, #2A2620);
  margin: 0;
  font-style: italic;
}

.ir-testimonio__author {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ir-line, #D3C8B1);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ir-testimonio__author strong {
  font-family: var(--ir-font-ui, sans-serif);
  font-size: 0.9rem;
  color: var(--ir-coffee, #3A3128);
}

.ir-testimonio__author span {
  font-size: 0.75rem;
  color: var(--ir-earth, #686150);
  letter-spacing: 0.5px;
}

/* ============================================================
   Sobre Nosotros — ocultar sección "Empieza tu ritual" si queda en cache
   + Si por alguna razón se renderiza, asegurar contraste legible
   ============================================================ */
body.page-template-page-sobre-nosotros .section--dark,
body.page-sobre-nosotros .section--dark {
  display: none !important;
}

/* Si en cualquier otra página queda una section--dark con fondo claro
   → forzar fondo oscuro y texto crema legibles */
.section--dark {
  background: linear-gradient(135deg, #2A2D24 0%, #1F2018 100%) !important;
  color: #F0EADB !important;
  padding: 4rem 1.5rem !important;
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark p {
  color: #F0EADB !important;
}

.section--dark .eyebrow {
  color: #C1C6A9 !important;
  letter-spacing: 2px;
}

.section--dark .btn,
.section--dark .btn-sage,
.section--dark .btn-primary,
.section--dark .btn-outline {
  background: #F0EADB !important;
  color: #2A2620 !important;
  border-color: #F0EADB !important;
}

.section--dark .btn:hover {
  background: #C1C6A9 !important;
  color: #2A2620 !important;
}

/* ============================================================
   v1.9 — Logo más grande y centrado (mobile y desktop)
   ============================================================ */
.site-header__inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem;
}

.site-brand {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center;
}

/* Desktop: logo más grande */
@media (min-width: 1025px) {
  .site-brand img {
    height: 120px !important;
    width: auto !important;
    max-width: 280px !important;
  }
  body.is-scrolled .site-brand img,
  body.scrolled .site-brand img {
    height: 90px !important;
  }
}

/* Mobile/Tablet: logo CENTRADO arriba en su propia fila */
@media (max-width: 1024px) {
  .site-header__inner {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding-block: 0.5rem !important;
    position: relative;
  }
  .site-brand {
    order: -1 !important;
    flex: 0 0 100% !important;
    justify-content: center !important;
    margin-bottom: 0.25rem;
  }
  .site-brand img {
    height: 110px !important;
    width: auto !important;
    max-width: 240px !important;
    display: block;
    margin: 0 auto;
  }
  /* Burger absoluto en esquina */
  .menu-toggle {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
  }
  .site-actions {
    flex: 1 1 auto;
    justify-content: center !important;
  }
}

@media (max-width: 600px) {
  .site-brand img {
    height: 95px !important;
    max-width: 200px !important;
  }
}

/* Hero subtitle nuevo */
.hero__title-sub {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.7em;
  color: var(--ir-earth, #686150);
  margin-top: 0.3em;
  letter-spacing: 0.5px;
}

/* ============================================================
   v1.9.1 — LOGO CENTRADO + TAGLINE visible (feedback Maria)
   El logo debe estar GRANDE y CENTRADO en mobile/tablet
   ============================================================ */

/* Site brand wrapper */
.site-brand {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-decoration: none !important;
  gap: 4px;
}

/* Tagline pequeño bajo el logo */
.site-tagline {
  display: block;
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: 0.72rem;
  font-style: italic;
  color: var(--ir-earth, #686150);
  letter-spacing: 1px;
  text-align: center;
  white-space: nowrap;
  opacity: 0.9;
}

/* DESKTOP: logo grande centrado (con tagline debajo) */
@media (min-width: 1025px) {
  .site-tagline {
    font-size: 0.78rem;
    margin-top: 2px;
  }
  .site-brand img {
    height: 110px !important;
    width: auto !important;
    max-width: 280px !important;
  }
}

/* TABLET y MOBILE: logo centrado en su propia fila, GRANDE */
@media (max-width: 1024px) {
  .site-header {
    position: relative !important;
  }
  .site-header__inner {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    grid-template-rows: auto !important;
    grid-template-areas: "burger brand actions" !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding-block: 0.6rem !important;
  }

  /* Burger en grid-area burger (esquina izquierda) */
  .menu-toggle {
    grid-area: burger !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    width: 44px;
    height: 44px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Logo en el centro */
  .site-brand {
    grid-area: brand !important;
    flex: 0 0 auto !important;
    justify-self: center !important;
    margin: 0 !important;
    order: 0 !important;
  }

  .site-brand img {
    height: 100px !important;
    width: auto !important;
    max-width: 220px !important;
    display: block !important;
  }

  .site-tagline {
    font-size: 0.65rem !important;
    margin-top: 2px !important;
    letter-spacing: 0.5px !important;
  }

  /* Actions a la derecha */
  .site-actions {
    grid-area: actions !important;
    flex: 0 0 auto !important;
    justify-self: end !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
  }

  /* Site-nav (desktop nav) oculto */
  .site-nav {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .site-header__inner {
    gap: 0.25rem !important;
  }
  .site-brand img {
    height: 85px !important;
    max-width: 180px !important;
  }
  .site-tagline {
    font-size: 0.6rem !important;
    letter-spacing: 0.3px !important;
  }
  .site-actions {
    gap: 0.3rem !important;
  }
  .site-actions a, .site-actions svg {
    width: 22px !important;
    height: 22px !important;
  }
}

@media (max-width: 380px) {
  .site-tagline {
    font-size: 0.55rem !important;
  }
  .site-brand img {
    height: 75px !important;
  }
}

/* ============================================================
   v1.9.2 — REVERSO: tagline OUT del header (cliente la quiere solo en H1)
   + Logo CELU SOLO al centro arriba con burger/actions debajo
   ============================================================ */

/* Ocultar tagline si quedó cacheado */
.site-tagline { display: none !important; }

/* === Reset reglas de tablet (las dejamos sin grid forzado) === */
@media (min-width: 601px) and (max-width: 1024px) {
  .site-header__inner {
    display: flex !important;
    grid-template-columns: none !important;
    grid-template-areas: none !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    padding-block: 0.75rem !important;
  }
  .site-brand {
    grid-area: auto !important;
    justify-self: auto !important;
    flex: 0 0 auto !important;
    order: 0 !important;
  }
  .site-brand img {
    height: 80px !important;
    max-width: 200px !important;
  }
  .menu-toggle {
    grid-area: auto !important;
    order: 99 !important;
  }
  .site-actions {
    grid-area: auto !important;
    justify-self: auto !important;
    order: 50 !important;
  }
}

/* === MOBILE/CELU (≤600px): logo CENTRADO arriba en su PROPIA fila === */
@media (max-width: 600px) {
  .site-header {
    position: relative !important;
  }

  .site-header__inner {
    display: grid !important;
    grid-template-columns: auto auto !important;
    grid-template-rows: auto auto !important;
    grid-template-areas:
      "brand brand"
      "burger actions" !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding-block: 0.6rem !important;
  }

  /* LOGO arriba CENTRADO ocupando todo el ancho */
  .site-brand {
    grid-area: brand !important;
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    align-self: center !important;
    order: -1 !important;
    margin: 0 auto 0.4rem !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .site-brand img {
    height: 105px !important;
    width: auto !important;
    max-width: 220px !important;
    margin: 0 auto !important;
    display: block !important;
  }

  /* Fila inferior: burger izquierda, actions derecha */
  .menu-toggle {
    grid-area: burger !important;
    justify-self: start !important;
    align-self: center !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    order: 0 !important;
    display: inline-flex !important;
  }

  .site-actions {
    grid-area: actions !important;
    justify-self: end !important;
    align-self: center !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    order: 0 !important;
  }

  .site-nav { display: none !important; }

  .site-actions a {
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .site-actions svg {
    width: 22px !important;
    height: 22px !important;
  }
}

@media (max-width: 400px) {
  .site-brand img {
    height: 90px !important;
    max-width: 190px !important;
  }
}

/* === H1 del hero — 'Regresa a lo esencial, retorna a lo natural' completo === */
.hero__title {
  font-size: clamp(2.2rem, 7vw, 3.6rem) !important;
  line-height: 1.05 !important;
}

.hero__title em.hero__em {
  font-style: italic;
  color: var(--ir-earth, #686150);
  font-family: 'Cormorant Garamond', serif;
}

/* Quitar el subtitle viejo si quedó */
.hero__title-sub { display: none !important; }

/* ============================================================
   v1.9.3 — INVERTIR mobile: actions ARRIBA, logo ABAJO MÁS GRANDE
   (feedback Maria 06/05/2026)
   ============================================================ */
@media (max-width: 600px) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto !important;
    grid-template-rows: auto auto !important;
    grid-template-areas:
      "burger spacer actions"
      "brand brand brand" !important;
    gap: 0.5rem !important;
    padding-block: 0.5rem !important;
  }

  /* Fila 1: burger izq, actions der */
  .menu-toggle {
    grid-area: burger !important;
    justify-self: start !important;
    align-self: center !important;
    order: 0 !important;
  }
  .site-actions {
    grid-area: actions !important;
    justify-self: end !important;
    align-self: center !important;
    order: 0 !important;
  }

  /* Fila 2: logo CENTRADO y MÁS GRANDE */
  .site-brand {
    grid-area: brand !important;
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    align-self: center !important;
    margin: 0.5rem auto 0.25rem !important;
    order: 1 !important;
  }

  .site-brand img {
    height: 130px !important;
    max-width: 280px !important;
    width: auto !important;
    margin: 0 auto !important;
    display: block !important;
  }
}

@media (max-width: 400px) {
  .site-brand img {
    height: 115px !important;
    max-width: 240px !important;
  }
}

/* ============================================================
   v1.9.4 — Mobile: actions CENTRO, menu DERECHA, logo MÁS GRANDE
   ============================================================ */
@media (max-width: 600px) {
  .site-header__inner {
    grid-template-columns: 1fr auto !important;
    grid-template-rows: auto auto !important;
    grid-template-areas:
      "actions burger"
      "brand brand" !important;
    gap: 0.5rem !important;
    padding-block: 0.5rem !important;
  }

  /* Iconos al CENTRO de su columna (que es 1fr) */
  .site-actions {
    grid-area: actions !important;
    justify-self: center !important;
    align-self: center !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    margin: 0 !important;
  }

  .site-actions a {
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .site-actions svg {
    width: 22px !important;
    height: 22px !important;
  }

  /* Burger queda a la DERECHA */
  .menu-toggle {
    grid-area: burger !important;
    justify-self: end !important;
    align-self: center !important;
    margin: 0 !important;
    width: 44px !important;
    height: 44px !important;
  }

  /* Logo MÁS GRANDE */
  .site-brand {
    grid-area: brand !important;
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    margin: 0.75rem auto 0.4rem !important;
  }

  .site-brand img {
    height: 170px !important;
    max-width: 320px !important;
    width: auto !important;
    margin: 0 auto !important;
    display: block !important;
  }
}

@media (max-width: 400px) {
  .site-brand img {
    height: 145px !important;
    max-width: 280px !important;
  }
}

@media (max-width: 340px) {
  .site-brand img {
    height: 125px !important;
    max-width: 240px !important;
  }
}

/* ============================================================
   v1.9.5 — Logo aún MÁS grande + quitar línea del header en celu
   ============================================================ */
@media (max-width: 600px) {
  /* Quitar la línea separadora del header */
  .site-header,
  .site-header__inner {
    border: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
  }
  .site-header::after,
  .site-header__inner::after {
    display: none !important;
  }

  /* Logo MUCHO más grande */
  .site-brand img {
    height: 220px !important;
    max-width: 380px !important;
    width: auto !important;
  }
}

@media (max-width: 400px) {
  .site-brand img {
    height: 185px !important;
    max-width: 320px !important;
  }
}

@media (max-width: 340px) {
  .site-brand img {
    height: 160px !important;
    max-width: 280px !important;
  }
}

/* ============================================================
   v1.9.6 — Logo MÁS grande aún + coma pegada a "esencial"
   ============================================================ */
.hero__title em.hero__em {
  display: inline !important;
  white-space: normal !important;
}

@media (max-width: 600px) {
  .site-brand img {
    height: 280px !important;
    max-width: 460px !important;
    width: auto !important;
  }
  .site-header__inner {
    padding-block: 0.4rem !important;
  }
}

@media (max-width: 400px) {
  .site-brand img {
    height: 230px !important;
    max-width: 380px !important;
  }
}

@media (max-width: 340px) {
  .site-brand img {
    height: 200px !important;
    max-width: 320px !important;
  }
}

/* ============================================================
   v1.9.7 — LOGO MUCHO MÁS GRANDE (500x500) feedback Maria
   ============================================================ */
@media (max-width: 600px) {
  .site-brand,
  body .site-brand,
  body .site-header .site-brand {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0.4rem 0 0.6rem !important;
  }
  .site-brand img,
  body .site-brand img,
  body .site-header .site-brand img {
    height: 480px !important;
    width: auto !important;
    max-width: 500px !important;
    min-height: 480px !important;
    margin: 0 auto !important;
    display: block !important;
    object-fit: contain !important;
  }
}

@media (max-width: 480px) {
  .site-brand img,
  body .site-brand img {
    height: 420px !important;
    max-width: 460px !important;
    min-height: 420px !important;
  }
}

@media (max-width: 380px) {
  .site-brand img,
  body .site-brand img {
    height: 360px !important;
    max-width: 380px !important;
    min-height: 360px !important;
  }
}

@media (max-width: 340px) {
  .site-brand img,
  body .site-brand img {
    height: 300px !important;
    max-width: 320px !important;
    min-height: 300px !important;
  }
}

/* ============================================================
   v1.9.8 — REVERTIR tamaño insano del logo. Tamaño sano: 240px
   ============================================================ */
@media (max-width: 600px) {
  .site-brand,
  body .site-brand,
  body .site-header .site-brand {
    width: auto !important;
    max-width: 100% !important;
    margin: 0.4rem auto 0.6rem !important;
    overflow: visible !important;
  }
  .site-brand img,
  body .site-brand img,
  body .site-header .site-brand img {
    height: 240px !important;
    width: auto !important;
    max-width: 240px !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    display: block !important;
    object-fit: contain !important;
  }
}

@media (max-width: 480px) {
  .site-brand img,
  body .site-brand img {
    height: 210px !important;
    max-width: 210px !important;
  }
}

@media (max-width: 380px) {
  .site-brand img,
  body .site-brand img {
    height: 180px !important;
    max-width: 180px !important;
  }
}

@media (max-width: 340px) {
  .site-brand img,
  body .site-brand img {
    height: 160px !important;
    max-width: 160px !important;
  }
}

/* ============================================================
   v1.9.9 — Logo 170px (que NO se monte en el hero)
   ============================================================ */
@media (max-width: 600px) {
  .site-brand img,
  body .site-brand img,
  body .site-header .site-brand img {
    height: 170px !important;
    max-width: 170px !important;
    min-height: 0 !important;
  }
}

@media (max-width: 480px) {
  .site-brand img,
  body .site-brand img {
    height: 150px !important;
    max-width: 150px !important;
  }
}

@media (max-width: 380px) {
  .site-brand img,
  body .site-brand img {
    height: 130px !important;
    max-width: 130px !important;
  }
}

@media (max-width: 340px) {
  .site-brand img,
  body .site-brand img {
    height: 115px !important;
    max-width: 115px !important;
  }
}

/* ============================================================
   v1.9.10 — Logo 150 + más cerca de botones (sin margin-top)
   ============================================================ */
@media (max-width: 600px) {
  .site-brand,
  body .site-brand,
  body .site-header .site-brand {
    margin: 0 auto 0.4rem !important;
    padding: 0 !important;
  }
  .site-brand img,
  body .site-brand img,
  body .site-header .site-brand img {
    height: 150px !important;
    max-width: 150px !important;
  }
  .site-header__inner {
    padding-block: 0.25rem 0.4rem !important;
    gap: 0.2rem !important;
  }
}

@media (max-width: 480px) {
  .site-brand img,
  body .site-brand img {
    height: 135px !important;
    max-width: 135px !important;
  }
}

@media (max-width: 380px) {
  .site-brand img,
  body .site-brand img {
    height: 120px !important;
    max-width: 120px !important;
  }
}
