/* Ciclo 01: una ruta clara desde la portada hasta el producto. */
.menu-web nav a:first-child {
  color: #b8f3d8;
  font-weight: 800;
}

.home-2026 .home-lab-hero .hero-layout {
  align-items: center;
}

.home-2026 .home-lab-hero h1 {
  max-width: 790px;
  font-size: clamp(3.35rem, 6.2vw, 6.9rem);
}

.home-2026 .home-lab-hero .hero-bajada {
  max-width: 610px;
  color: #e2eee8;
  line-height: 1.58;
}

.hero-secondary-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(219, 251, 237, .55);
  color: #e7fff3;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}

.hero-secondary-link:hover {
  color: #a0edca;
}

.home-2026 .home-lab-hero .hero-signals {
  max-width: 630px;
}

.home-2026 .home-lab-hero .hero-signals span {
  color: #dae9df;
}

.home-2026 .home-lab-hero .hero-signals b {
  color: #fff;
}

.home-2026 .home-signal-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.home-2026 .home-signal-strip article {
  min-width: 0;
}

.home-discover {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(270px, .7fr);
  align-items: center;
  gap: clamp(28px, 6vw, 90px);
  margin-bottom: 80px;
  padding: clamp(30px, 5vw, 64px);
  border: 1px solid rgba(150, 228, 193, .18);
  border-radius: 28px;
  background: linear-gradient(135deg, #0a2b20, #071611);
  color: #eafff5;
}

.home-discover h2 {
  max-width: 760px;
  margin-bottom: 18px;
  color: #f4fff9;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.05;
}

.home-discover p:not(.sobrelinea) {
  max-width: 610px;
  margin-bottom: 0;
  color: #c2d9cd;
}

.home-discover-links {
  display: grid;
  gap: 8px;
}

.home-discover-links a {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(193, 241, 216, .2);
  border-radius: 12px;
  color: #eafff5;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
}

.home-discover-links a:hover,
.home-discover-links a:focus-visible {
  background: rgba(146, 229, 197, .12);
}

.brand-hero {
  padding-bottom: 70px;
}

.brand-hero h1 {
  max-width: 1000px;
  color: #f4fff9;
  font-size: clamp(2.9rem, 6vw, 6rem);
  line-height: 1.02;
}

.brand-hero > p:not(.sobrelinea) {
  max-width: 710px;
  color: #c7d8cf;
  font-size: clamp(1rem, 1.5vw, 1.17rem);
  line-height: 1.65;
}

.brand-hero .boton {
  margin-top: 16px;
}

.brand-principles {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.brand-principles article {
  min-height: 260px;
}

.brand-product .enlace-editorial {
  margin-top: 15px;
  color: #a4ebc9;
}

/* Ciclo 02: una ficha legible y condiciones explícitas antes de consultar la compra. */
.ficha-producto { align-items: start; }
.galeria-producto { min-width: 0; }
.marco-producto.grande { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: 20px; background: #dfe9e2; }
.marco-producto.grande img { width: 100%; height: 100%; object-fit: cover; }
.marco-producto.grande span { font-size: clamp(4rem, 12vw, 8rem); color: #246449; }
.galeria-miniaturas { display: flex; gap: 10px; overflow-x: auto; margin-top: 12px; }
.galeria-miniaturas img { width: 82px; height: 82px; flex: none; border-radius: 8px; object-fit: cover; }
.galeria-leyenda { margin: 10px 0 0; color: #576a60; font-size: .82rem; line-height: 1.5; }
.galeria-miniaturas a { display: grid; grid-template-columns: 82px minmax(120px, 1fr); gap: 10px; align-items: center; flex: 0 0 min(260px, 78vw); padding: 7px; border: 1px solid #d8e8df; border-radius: 11px; color: inherit; font-size: .77rem; line-height: 1.4; text-decoration: none; }
.galeria-miniaturas a:hover, .galeria-miniaturas a:focus-visible { border-color: #2b7456; }
.galeria-miniaturas a img { margin: 0; }
.oppen1s-imagen img { object-fit: contain !important; background: #e9ebe7; }
html[data-theme="dark"] .galeria-leyenda { color: #b9d5c5; }
html[data-theme="dark"] .galeria-miniaturas a { border-color: var(--theme-line); }
.product-photo-placeholder { display: flex; width: 100%; min-height: 240px; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; background: linear-gradient(145deg, #d9e9df, #edf5ef); color: #245b43; text-align: center; }
.product-photo-placeholder img,
.marco-producto .product-photo-placeholder img,
.imagen-producto .product-photo-placeholder img,
.home-commerce-media .product-photo-placeholder img { width: 76px; height: 76px; object-fit: contain; }
.product-photo-placeholder span,
.marco-producto .product-photo-placeholder span,
.imagen-producto .product-photo-placeholder span { max-width: 200px; color: inherit; font-family: inherit; font-size: .83rem; font-weight: 700; line-height: 1.45; }
.home-commerce-media .product-photo-placeholder { min-height: 430px; background: linear-gradient(145deg, #143529, #0c1e17); color: #d7f4e3; }
.ficha-contenido .precio.grande { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.ficha-contenido .stock { padding: 12px 16px; border-left: 3px solid #a47e42; }
.ficha-contenido .stock.disponible { border-color: #2dbd83; }
.ficha-contenido .form-agregar { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 10px; align-items: end; max-width: 440px; }
.ficha-contenido .form-agregar label { grid-column: 1 / -1; font-size: .9rem; font-weight: 700; }
.ficha-contenido .form-agregar input { width: 100%; min-height: 48px; padding: 10px; border: 1px solid #96ab9e; border-radius: 8px; font: inherit; }
.ficha-contenido .form-agregar .boton { min-width: 0; }
.ficha-contenido .ayuda-compra { max-width: 470px; }
.ficha-contenido .bajada { font-size: 1.05rem; line-height: 1.6; }
.ficha-contenido .microconfianza,
.ficha-contenido .ayuda-compra { font-size: .9rem; line-height: 1.55; }
.ficha-contenido .product-decision-panel { gap: 12px; }
.ficha-contenido .product-decision-panel article { padding: 18px; }
.ficha-contenido .product-decision-panel span,
.ficha-contenido .product-compatibility > span { font-size: .72rem; line-height: 1.4; }
.ficha-contenido .product-decision-panel b { font-size: .94rem; line-height: 1.4; }
.ficha-contenido .product-decision-panel p,
.ficha-contenido .product-compatibility details p { font-size: .88rem; line-height: 1.6; }
.ficha-contenido .product-compatibility { padding: 22px; }
.ficha-contenido .product-compatibility > p { font-size: .94rem; line-height: 1.65; }
.ficha-contenido .product-compatibility summary { font-size: .92rem; line-height: 1.5; }
.product-help-link { display: inline-block; margin-top: 16px; color: #096845; font-size: .9rem; font-weight: 700; }
.product-description { margin: 28px 0; }
.product-description h2 { font-size: 1.35rem; }
.product-description p { font-size: .98rem; line-height: 1.7; }
.product-conditions { display: grid; gap: 10px; margin: 28px 0; }
.product-conditions article { padding: 18px; border: 1px solid #dcebe3; border-radius: 14px; background: #f8fbf9; }
.product-conditions h2 { margin: 0 0 8px; font-size: 1.03rem; }
.product-conditions p { margin: 0; font-size: .92rem; line-height: 1.65; }
html[data-theme="dark"] .product-conditions article { border-color: var(--theme-line); background: #0f1c17; }
html[data-theme="dark"] .product-help-link { color: #a4ebc9; }

.carrito-pagina { max-width: 1280px; min-height: 62vh; margin: auto; padding: 140px clamp(20px, 5vw, 70px) 120px; }
.carrito-encabezado { max-width: 750px; margin-bottom: 40px; }
.carrito-encabezado h1 { margin: 12px 0 18px; font-size: clamp(2.8rem, 6vw, 5.5rem); line-height: 1.04; }
.carrito-encabezado > p:last-child { max-width: 600px; font-size: 1rem; line-height: 1.6; }
.carrito-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .65fr); align-items: start; gap: 38px; }
.carrito-items { border-top: 1px solid rgba(120, 160, 135, .3); }
.carrito-item { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: start; gap: 20px; padding: 24px 0; border-bottom: 1px solid rgba(120, 160, 135, .3); }
.carrito-imagen { display: grid; place-items: center; width: 110px; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: #dfe9e2; color: #246449; font-size: 3rem; }
.carrito-imagen img { width: 100%; height: 100%; object-fit: cover; }
.carrito-info h2 { margin: 4px 0; font-size: 1.35rem; }
.carrito-info p:not(.sobrelinea) { margin: 8px 0 18px; font-size: .9rem; }
.cantidad-carrito { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.cantidad-carrito label { flex-basis: 100%; font-size: .82rem; font-weight: 700; }
.cantidad-carrito input { width: 72px; min-height: 44px; padding: 8px; border: 1px solid #96ab9e; border-radius: 8px; font: inherit; }
.cantidad-carrito button { min-height: 44px; padding: 8px 12px; border: 1px solid #2b7456; border-radius: 8px; background: #2b7456; color: #fff; font-size: .78rem; font-weight: 700; cursor: pointer; }
.cantidad-carrito .quitar { border-color: #9fb8aa; background: transparent; color: inherit; }
.subtotal { white-space: nowrap; font-size: 1rem; }
.resumen-carrito { position: sticky; top: 100px; padding: 28px; border: 1px solid rgba(150, 220, 180, .18); border-radius: 18px; background: #0a2018; color: #f2fff7; }
.resumen-carrito h2 { margin: 0 0 16px; color: #f2fff7; font-size: 1.6rem; }
.resumen-carrito > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.resumen-carrito .total strong { font-size: 1.3rem; }
.reserva-clara { color: #c5ded0; font-size: .84rem; line-height: 1.6; }
.compra-principal { width: 100%; margin: 12px 0; }
.seguir-comprando { display: block; margin: 12px 0; color: #c5f1d8; text-align: center; font-size: .86rem; }
.senales-confianza { margin: 20px 0 0; padding: 16px 0 0 20px; border-top: 1px solid rgba(255, 255, 255, .16); color: #c5ded0; font-size: .8rem; line-height: 1.55; }
.carrito-vacio { max-width: 650px; padding: 28px 0 70px; }
.carrito-vacio .icono-vacio { margin: 0; color: #80b899; font-size: 3rem; }
.carrito-vacio h2 { font-size: 2rem; }
.carrito-vacio p:not(.icono-vacio) { max-width: 480px; font-size: 1rem; line-height: 1.6; }
.carrito-vacio .boton { margin-top: 16px; }

.compra-consulta { text-align: left; }
.compra-consulta > p:not(.sobrelinea) { max-width: 640px; font-size: 1rem; line-height: 1.7; }
.compra-consulta-resumen { margin: 30px 0; padding: 22px; border: 1px solid #dcebe3; border-radius: 16px; background: #f8fbf9; }
.compra-consulta-resumen h2 { margin-top: 0; font-size: 1.25rem; }
.compra-consulta-resumen ul { padding: 0; list-style: none; }
.compra-consulta-resumen li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #dcebe3; font-size: .93rem; }
.compra-consulta-resumen p { margin-bottom: 4px; font-weight: 700; }
.compra-consulta-resumen small { display: block; font-size: .82rem; line-height: 1.5; }
.compra-consulta .boton { margin: 10px 0; }
.compra-volver { display: block; margin-top: 12px; font-size: .9rem; }
.consulta-form { max-width: 780px; margin: 36px 0 20px; padding: clamp(20px, 4vw, 36px); border: 1px solid #dcebe3; border-radius: 18px; background: #f8fbf9; }
.consulta-form h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.consulta-form > p { max-width: 620px; font-size: .9rem; line-height: 1.6; }
.consulta-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 24px 0; }
.consulta-campo { min-width: 0; }
.consulta-campo-ancho { grid-column: 1 / -1; }
.consulta-campo label { display: block; margin-bottom: 7px; font-size: .86rem; font-weight: 700; }
.consulta-campo input, .consulta-campo textarea { display: block; width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #9bb8a7; border-radius: 9px; background: #fff; color: #14281e; font: inherit; }
.consulta-campo textarea { resize: vertical; }
.consulta-privacidad { margin: 14px 0 24px; font-size: .85rem; line-height: 1.5; }
.consulta-privacidad label { display: flex; gap: 10px; align-items: flex-start; }
.consulta-privacidad input { width: 20px; min-width: 20px; height: 20px; min-height: 20px; margin: 1px 0 0; }
.consulta-privacidad a { color: #096845; text-decoration: underline; }
.consulta-form .errorlist { margin: 6px 0 0; padding-left: 20px; color: #a02c26; font-size: .82rem; }
.consulta-form .boton { margin: 0; }
.consulta-form .consulta-form-nota { margin-bottom: 0; font-size: .8rem; }
.consulta-recibida { text-align: left; }
.consulta-recibida > p { max-width: 660px; line-height: 1.7; }
.consulta-folio { overflow-wrap: anywhere; padding: 16px 20px; border: 1px solid #dcebe3; border-radius: 10px; background: #f8fbf9; }
html[data-theme="dark"] .consulta-form, html[data-theme="dark"] .consulta-folio { border-color: var(--theme-line); background: #0f1c17; }
html[data-theme="dark"] .consulta-privacidad a { color: #a4ebc9; }
html[data-theme="dark"] .compra-consulta-resumen { border-color: var(--theme-line); background: #0f1c17; }
html[data-theme="dark"] .compra-consulta-resumen li { border-color: var(--theme-line); }

@media (max-width: 1080px) {
  .brand-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .carrito-layout { grid-template-columns: 1fr; }
  .resumen-carrito { position: static; }
  .carrito-item { grid-template-columns: 90px minmax(0, 1fr); }
  .carrito-imagen { width: 90px; }
  .subtotal { grid-column: 2; }
  .ficha-contenido .product-decision-panel { grid-template-columns: 1fr; }
  .mobile-nav a { min-height: 56px; }
  .asistente-oppenlabs {
    right: 16px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
  }
  .chatbot-avatar {
    width: 56px;
    height: 56px;
    overflow: hidden;
    border: 1px solid rgba(147, 232, 193, .5);
    border-radius: 50%;
    background: #113529;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .32);
    filter: none;
  }
  .chatbot-avatar img {
    inset: 2px;
    width: 50px;
    height: 50px;
  }
  .chatbot-avatar > i {
    top: 4px;
    left: 4px;
    width: 10px;
    height: 10px;
    border-width: 2px;
  }
  .chatbot-halo,
  .chatbot-sueno { display: none; }
  .asistente-oppenlabs.is-sleeping .chatbot-avatar { animation: none; filter: none; }
  .chatbot-panel {
    position: fixed;
    right: 12px;
    bottom: calc(158px + env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
    max-height: min(70dvh, 570px);
  }
  .home-2026 .home-signal-strip { grid-template-columns: 1fr; }
  .home-2026 .home-signal-strip article { border-right: 0; border-bottom: 1px solid #e8efeb; }
  .home-2026 .home-signal-strip article:last-child { border-bottom: 0; }
  .home-discover { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .consulta-form-grid { grid-template-columns: 1fr; }
  .consulta-recibida { padding-bottom: 150px; }
  .ficha-producto { padding-bottom: 140px; }
  .compra-consulta { padding-bottom: 140px; }
  .carrito-pagina { padding: 112px 20px 140px; }
  .carrito-item { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
  .carrito-imagen { width: 72px; }
  .carrito-info h2 { font-size: 1.15rem; }
  .resumen-carrito { padding: 22px; }
  .ficha-contenido .form-agregar { grid-template-columns: 1fr; }
  .ficha-producto { gap: 24px; }
  .ficha-contenido .product-compatibility { padding: 18px; }
  .compra-consulta-resumen { padding: 18px; }
  .compra-consulta-resumen li { flex-direction: column; gap: 2px; }
  .home-2026 .home-lab-hero { height: auto; min-height: 0; }
  .home-2026 .home-lab-hero .hero-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
    width: calc(100% - 30px);
    padding: 108px 0 54px;
  }
  .home-2026 .home-lab-hero .hero-contenido { padding-bottom: 0; }
  .home-2026 .home-lab-hero h1 { font-size: clamp(2.8rem, 11vw, 3.55rem); }
  .home-2026 .home-lab-hero .hero-bajada { font-size: 1rem; }
  .home-2026 .home-lab-hero .hero-visual {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: min(340px, 100%);
    margin: 0 auto;
  }
  .home-2026 .home-lab-hero .impresora-marco { height: 160px; }
  .home-2026 .home-lab-hero .hero-signals { gap: 8px; margin-top: 24px; }
  .home-2026 .home-lab-hero .hero-signals span { padding: 8px 12px; }
  .hero-secondary-link { justify-content: center; }
  .home-2026 .home-lab-hero .scroll-indicador { display: none; }
  .home-discover { margin-bottom: 50px; padding: 26px 20px; }
  .brand-principles { grid-template-columns: 1fr; }
  .brand-principles article { min-height: 0; }
  .brand-principles h2 { margin-top: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-discover-links a,
  .hero-secondary-link { transition: none; }
}
