/* ==================================================
   VALMA · DISEÑO ADAPTABLE
   Celular, tablet, computadora y pantallas grandes
   ================================================== */

:root {
    --fondo: #f8f4ee;
    --fondo-suave: #f5efe6;
    --fondo-carrito: #ebe1d4;
    --superficie: #fffdf9;
    --texto: #4a3b2a;
    --texto-secundario: #6b5a47;
    --marca: #8b6f47;
    --marca-oscura: #6f5637;
    --borde: #d4c6b5;
    --altura-menu: 78px;
    --ancho-contenido: 1200px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--altura-menu) + 20px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: "Montserrat", sans-serif;
    background: var(--fondo);
    color: var(--texto);
    line-height: 1.5;
    min-width: 0;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
    touch-action: manipulation;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: rgba(139, 111, 71, 0.18);
}

button,
input,
select,
textarea,
fieldset {
    min-width: 0;
}

button,
.boton,
.boton-contacto {
    white-space: normal;
    overflow-wrap: anywhere;
}

p,
h1,
h2,
h3,
h4,
h5,
strong,
small {
    overflow-wrap: break-word;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--marca);
    outline-offset: 4px;
}

[hidden] {
    display: none !important;
}

.contenedor {
    width: 90%;
    max-width: var(--ancho-contenido);
    margin-inline: auto;
}

/* MENÚ */

.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: var(--altura-menu);
    padding: 10px 5%;
    background: rgba(255, 252, 247, 0.97);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    z-index: 5000;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.logo {
    font-family: "Cormorant Garamond", serif;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.2;
    color: var(--texto);
}

.logo span {
    display: block;
    font-family: "Montserrat", sans-serif;
    font-size: 9px;
    letter-spacing: 2px;
    text-align: center;
    margin-top: 0;
    font-weight: 500;
}

.menu nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 20px;
    min-width: 0;
}

.menu nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 5px;
    font-size: 13px;
    font-weight: 500;
    color: #5b4a38;
    border-radius: 5px;
    transition: color 0.2s ease, background 0.2s ease;
}

.icono-carrito {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 21px;
    color: #5b4a38;
}

#contador-carrito {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 20px;
    height: 20px;
    padding-inline: 4px;
    border-radius: 20px;
    background: var(--marca);
    color: white;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* PORTADA */

.hero {
    position: relative;
    width: 100%;
    height: 720px;
    height: clamp(480px, 76svh, 780px);
    margin-top: var(--altura-menu);
    overflow: hidden;
    background: #6d5a45;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease, visibility 1.2s ease;
}

.hero-slide.activo {
    opacity: 1;
    visibility: visible;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.58),
        rgba(0, 0, 0, 0.18)
    );
    z-index: 2;
}

.hero-contenido {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 64px);
    max-width: 760px;
    color: white;
    text-align: center;
}

.hero-subtitulo {
    font-size: 15px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.hero-contenido h1 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(58px, 9vw, 110px);
    line-height: 1;
    letter-spacing: 8px;
    margin-bottom: 25px;
}

.hero-texto {
    font-size: clamp(15px, 1.6vw, 20px);
    line-height: 1.7;
    margin: 0 auto 30px;
    max-width: 520px;
}

.boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    max-width: 100%;
    padding: 14px 28px;
    background: var(--marca);
    color: white;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.5;
    text-align: center;
    border: none;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.boton:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.boton-secundario {
    background: transparent;
    color: var(--marca-oscura);
    border: 1px solid var(--marca);
}

.hero-indicadores {
    position: absolute;
    z-index: 4;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 0;
}

.indicador {
    position: relative;
    display: block;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
}

.indicador::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    transform: translate(-50%, -50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.indicador.activo::before {
    background: white;
    transform: translate(-50%, -50%) scale(1.25);
}

.indicador:focus-visible {
    outline-color: white;
    outline-offset: -4px;
}

/* SECCIONES */

.seccion {
    padding: clamp(60px, 7vw, 100px) 0;
    scroll-margin-top: calc(var(--altura-menu) + 15px);
}

.seccion h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(38px, 4.6vw, 58px);
    line-height: 1.15;
    text-align: center;
    margin-bottom: 35px;
    color: var(--texto);
}

.etiqueta-seccion {
    text-align: center;
    font-size: 11px;
    line-height: 1.6;
    letter-spacing: 3px;
    color: var(--marca);
    font-weight: 600;
    margin-bottom: 10px;
}

/* NOSOTROS */

.nosotros {
    background: var(--fondo-suave);
    text-align: center;
}

.nosotros .contenedor {
    max-width: 850px;
}

.nosotros p:not(.etiqueta-seccion) {
    font-size: 16px;
    line-height: 2;
    color: var(--texto-secundario);
}

.nosotros p:not(.etiqueta-seccion) + p {
    margin-top: 18px;
}

/* CATÁLOGO */

.categorias {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.categoria-btn {
    min-height: 44px;
    max-width: 100%;
    padding: 11px 20px;
    border: 1px solid #c9b9a3;
    background: transparent;
    color: var(--texto-secundario);
    border-radius: 30px;
    font-size: 12px;
    line-height: 1.5;
    transition: background 0.2s ease, color 0.2s ease;
}

.categoria-btn.activo {
    background: var(--marca);
    color: white;
    border-color: var(--marca);
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2.4vw, 30px);
}

.tarjeta-producto {
    min-width: 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tarjeta-producto > img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.producto-info {
    padding: clamp(18px, 2vw, 25px);
}

.producto-info h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 27px;
    line-height: 1.2;
    margin-bottom: 8px;
    color: var(--texto);
}

.producto-info p {
    font-size: 13px;
    line-height: 1.7;
    color: #766652;
    margin-bottom: 8px;
}

.precio {
    display: block;
    margin: 18px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--marca-oscura);
}

.btn-agregar {
    width: 100%;
    min-height: 46px;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: var(--marca);
    color: white;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease;
}

/* CARRITO */

.carrito {
    background: var(--fondo-carrito);
}

.carrito-contenido {
    max-width: 850px;
    margin: auto;
}

.carrito-vacio {
    text-align: center;
    color: #766652;
    padding: 30px 10px;
}

.item-carrito {
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.info-item-carrito {
    min-width: 0;
}

.info-item-carrito h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 25px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.info-item-carrito p {
    font-size: 13px;
    color: var(--texto-secundario);
    margin-bottom: 5px;
}

.precio-item-carrito {
    font-weight: 700;
    color: var(--marca-oscura) !important;
    margin-top: 10px;
}

.producto-stock {
    color: #5c775b !important;
    font-weight: 600;
}

.producto-demora {
    color: #936c38 !important;
    font-weight: 600;
}

.eliminar-producto {
    align-self: center;
    flex-shrink: 0;
    min-height: 44px;
    border: none;
    background: var(--marca);
    color: white;
    padding: 10px 16px;
    border-radius: 5px;
    font-size: 13px;
}

.carrito-resumen {
    max-width: 850px;
    margin: 30px auto 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
    font-size: 18px;
}

#carrito-total {
    font-weight: 700;
    color: var(--marca-oscura);
    text-align: right;
}

.carrito-aclaracion {
    max-width: 850px;
    margin: 12px auto 0;
    font-size: 13px;
    line-height: 1.7;
    color: #766652;
}

/* ENTREGA */

.continuar-compra,
.entrega-compra {
    max-width: 850px;
    margin: 25px auto 0;
}

.continuar-compra {
    text-align: right;
}

.entrega-compra {
    background: var(--superficie);
    border: 1px solid var(--borde);
    border-radius: 14px;
    padding: clamp(20px, 3vw, 35px);
    box-shadow: 0 12px 35px rgba(74, 59, 42, 0.08);
    scroll-margin-top: calc(var(--altura-menu) + 20px);
}

.entrega-compra h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(28px, 3vw, 36px);
    line-height: 1.2;
    margin-bottom: 15px;
}

.etiqueta-paso {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--marca);
    margin-bottom: 10px;
}

.aviso-demo {
    padding: 14px;
    background: var(--fondo-suave);
    border-left: 3px solid var(--marca);
    border-radius: 5px;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.opciones-entrega,
.campos-entrega {
    border: 0;
    padding: 0;
    margin: 0 0 24px;
    min-width: 0;
}

.opciones-entrega legend,
.campos-entrega legend {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 14px;
}

.opcion-entrega {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    margin-bottom: 12px;
    border: 1px solid var(--borde);
    border-radius: 9px;
    cursor: pointer;
}

.opcion-entrega:has(input:checked) {
    background: var(--fondo-suave);
    border-color: var(--marca);
}

.opcion-entrega input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex: 0 0 18px;
    accent-color: var(--marca);
}

.opcion-entrega > span {
    min-width: 0;
}

.opcion-entrega strong,
.opcion-entrega small {
    display: block;
}

.opcion-entrega strong {
    font-size: 14px;
}

.opcion-entrega small {
    margin-top: 6px;
    color: #766652;
    font-size: 12px;
    line-height: 1.6;
}

.campos-entrega,
.campos-comprador {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.campos-entrega > div,
.campos-comprador > div {
    min-width: 0;
}

.campos-entrega label,
.campos-comprador label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.campos-entrega input,
.campos-entrega select,
.campos-comprador input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px;
    font: inherit;
    font-size: 16px;
    color: var(--texto);
    background: white;
    border: 1px solid #c9b9a3;
    border-radius: 6px;
}

.resumen-entrega {
    margin-top: 28px;
    padding-top: 15px;
    border-top: 1px solid var(--borde);
}

.resumen-entrega > div,
.pedido-totales > div {
    display: flex;
    justify-content: space-between;
    gap: 12px 20px;
    padding: 12px 0;
    font-size: 14px;
}

.resumen-entrega > div > *,
.pedido-totales > div > * {
    min-width: 0;
}

.resumen-entrega strong,
.pedido-totales strong {
    text-align: right;
    overflow-wrap: anywhere;
}

.resumen-entrega .entrega-total,
.pedido-totales .pedido-total-final {
    border-top: 1px solid var(--borde);
    margin-top: 8px;
    padding-top: 20px;
    font-size: 18px;
}

#entrega-aclaracion {
    margin-top: 15px;
    font-size: 12px;
    line-height: 1.7;
    color: #766652;
    white-space: pre-line;
}

/* DATOS DEL COMPRADOR */

.datos-comprador,
.resumen-pedido {
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid var(--borde);
    scroll-margin-top: calc(var(--altura-menu) + 20px);
}

.texto-ayuda {
    font-size: 13px;
    line-height: 1.7;
    color: #766652;
    margin: 12px 0 20px;
    white-space: pre-line;
}

.campos-comprador {
    margin: 20px 0;
}

.ayuda-campo {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.6;
    color: #766652;
}

.mensaje-revision {
    font-size: 13px;
    line-height: 1.7;
    color: #765728;
    margin-top: 12px;
}

.mensaje-revision:empty {
    display: none;
}

/* RESUMEN DEL PEDIDO */

.estado-borrador {
    display: inline-block;
    max-width: 100%;
    padding: 8px 12px;
    border-radius: 20px;
    background: #efe5d7;
    color: var(--marca-oscura);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}

.pedido-datos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 25px;
}

.pedido-datos {
    background: var(--fondo-suave);
    padding: 20px;
    border-radius: 9px;
    min-width: 0;
}

.pedido-datos h4,
.pedido-subtitulo {
    font-size: 14px;
    margin-bottom: 12px;
}

.pedido-datos p {
    font-size: 13px;
    line-height: 1.8;
    color: var(--texto-secundario);
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.pedido-producto {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid #eadfd2;
}

.pedido-producto > div {
    min-width: 0;
}

.pedido-producto h5 {
    font-family: "Cormorant Garamond", serif;
    font-size: 25px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.pedido-producto p {
    font-size: 12px;
    line-height: 1.8;
    color: var(--texto-secundario);
}

.pedido-producto-precio {
    flex-shrink: 0;
    max-width: 45%;
    text-align: right;
    font-size: 14px;
    color: var(--marca-oscura);
    overflow-wrap: anywhere;
}

.pedido-totales {
    margin-top: 20px;
}

.pedido-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

#titulo-resumen {
    scroll-margin-top: calc(var(--altura-menu) + 20px);
}

/* CONTACTO */

.contacto {
    background: var(--fondo);
}

.contacto-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;
    max-width: 1000px;
    margin: auto;
    align-items: stretch;
}

.contacto-info,
.contacto-formulario {
    min-width: 0;
    background: var(--superficie);
    padding: clamp(24px, 3vw, 38px);
    border: 1px solid #e4d8c9;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(74, 59, 42, 0.09);
}

.contacto-info h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(29px, 3vw, 35px);
    line-height: 1.2;
    margin-bottom: 28px;
}

.contacto-dato {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid #eadfd2;
}

.contacto-dato:first-of-type {
    border-top: none;
    padding-top: 0;
}

.contacto-dato h4 {
    font-size: 13px;
    color: var(--texto);
    margin-bottom: 6px;
}

.contacto-dato p {
    font-size: 14px;
    color: var(--texto-secundario);
    line-height: 1.7;
}

.contacto-dato > i {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0e7dc;
    color: var(--marca);
}

.enlace-mapa {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 4px;
    color: #7b5f3d;
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.contacto-formulario form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    justify-content: center;
}

.contacto-formulario input,
.contacto-formulario textarea {
    width: 100%;
    min-height: 48px;
    padding: 14px 15px;
    border: 1px solid var(--borde);
    border-radius: 6px;
    background: white;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
}

.contacto-formulario textarea {
    min-height: 150px;
    resize: vertical;
}

.contacto-acciones {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.boton-contacto {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 18px;
    background: var(--marca);
    color: white;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
    border-radius: 8px;
    border: 1px solid var(--marca);
    transition: background 0.2s ease, color 0.2s ease;
}

.boton-contacto i {
    flex-shrink: 0;
    font-size: 17px;
}

.boton-instagram {
    background: transparent;
    color: var(--marca-oscura);
}

/* VENTANAS DE PRODUCTO */

.modal-producto {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.modal-producto-contenido {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 60px 35px 30px;
    background: var(--fondo-suave);
    border-radius: 14px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35);
    animation: aparecerModal 0.3s ease;
}

@keyframes aparecerModal {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cerrar-modal {
    position: absolute;
    top: 10px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--marca);
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.modal-producto-contenido h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 32px;
    line-height: 1.2;
    color: var(--texto);
    text-align: center;
    margin-bottom: 8px;
}

.modal-producto-contenido > p {
    text-align: center;
    color: var(--texto-secundario);
    font-size: 15px;
    margin-bottom: 25px;
}

.modal-opcion {
    margin-bottom: 20px;
}

.modal-opcion label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--texto);
    margin-bottom: 8px;
}

.modal-opcion select {
    width: 100%;
    min-height: 48px;
    padding: 12px;
    border: 1px solid #c9b9a3;
    border-radius: 8px;
    background: var(--superficie);
    color: var(--texto);
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
}

.estado-producto {
    text-align: center;
    margin: 20px 0;
    padding: 12px;
    border-radius: 8px;
    background: var(--fondo-carrito);
    color: #5c4b38;
    font-size: 14px;
}

.precio-modal {
    text-align: center;
    font-family: "Cormorant Garamond", serif;
    font-size: 27px;
    font-weight: bold;
    color: var(--marca-oscura);
    margin: 20px 0;
}

.btn-confirmar-producto {
    width: 100%;
    min-height: 48px;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    background: var(--marca);
    color: white;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s ease;
}

/* PIE DE PÁGINA */

footer {
    background: #403528;
    color: white;
    padding: 40px 5% 90px;
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
}

.footer-contenido {
    max-width: var(--ancho-contenido);
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.footer-contenido h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 30px;
    letter-spacing: 3px;
}

.footer-contenido p {
    font-size: 11px;
    letter-spacing: 2px;
    opacity: 0.8;
}

.footer-redes {
    display: flex;
    gap: 10px;
    font-size: 22px;
}

.footer-redes a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.copyright {
    text-align: center;
    font-size: 12px;
    opacity: 0.8;
    margin-top: 30px;
}

/* WHATSAPP FLOTANTE */

.whatsapp-flotante {
    position: fixed;
    right: 25px;
    bottom: 25px;
    right: calc(25px + env(safe-area-inset-right, 0px));
    bottom: calc(25px + env(safe-area-inset-bottom, 0px));
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 4000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

/* EFECTOS PARA DISPOSITIVOS CON MOUSE */

@media (hover: hover) and (pointer: fine) {
    .menu nav a:hover {
        color: var(--marca);
        background: var(--fondo-suave);
    }

    .boton:not(:disabled):hover {
        background: var(--marca-oscura);
        transform: translateY(-2px);
    }

    .boton-secundario:not(:disabled):hover {
        background: #f0e7dc;
        color: var(--texto);
    }

    .categoria-btn:hover {
        background: var(--marca);
        color: white;
        border-color: var(--marca);
    }

    .tarjeta-producto:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    }

    .btn-agregar:hover,
    .btn-confirmar-producto:hover,
    .cerrar-modal:hover,
    .eliminar-producto:hover {
        background: var(--marca-oscura);
    }

    .boton-contacto:hover {
        background: var(--marca-oscura);
        border-color: var(--marca-oscura);
        color: white;
    }

    .footer-redes a:hover {
        color: #d7c2a5;
    }

    .whatsapp-flotante:hover {
        transform: scale(1.08);
    }
}

/* TABLETS Y VENTANAS MEDIANAS */

@media (max-width: 1000px) {
    .menu {
        gap: 12px;
        padding-inline: 4%;
    }

    .menu nav {
        gap: 4px 10px;
    }

    .productos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contacto-grid {
        grid-template-columns: 1fr;
        max-width: 750px;
        gap: 25px;
    }
}

/* CELULARES Y TABLETS PEQUEÑAS */

@media (max-width: 720px) {
    :root {
        --altura-menu: 120px;
    }

    .menu {
        position: relative;
        min-height: 0;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px 12px;
        padding: 10px 5% 8px;
    }

    .logo {
        justify-self: start;
        font-size: 28px;
    }

    .logo span {
        font-size: 8px;
    }

    .icono-carrito {
        grid-column: 2;
        grid-row: 1;
    }

    .menu nav {
        grid-column: 1 / -1;
        grid-row: 2;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
        width: 100%;
    }

    .menu nav a {
        min-height: 44px;
        padding: 8px 2px;
        font-size: 12px;
        text-align: center;
    }

    .hero {
        margin-top: 0;
        height: 560px;
        height: clamp(440px, 72svh, 620px);
    }

    .hero-contenido {
        width: calc(100% - 40px);
    }

    .hero-contenido h1 {
        font-size: clamp(58px, 13vw, 88px);
        letter-spacing: 5px;
    }

    .hero-subtitulo {
        font-size: 12px;
        letter-spacing: 3px;
    }

    .hero-texto {
        font-size: 16px;
        line-height: 1.7;
    }

    .hero-overlay {
        background: rgba(0, 0, 0, 0.42);
    }

    .campos-entrega,
    .campos-comprador,
    .pedido-datos-grid {
        grid-template-columns: 1fr;
    }

    .continuar-compra .boton,
    #formulario-entrega > .boton,
    #formulario-comprador > .boton {
        width: 100%;
    }

    .pedido-acciones {
        display: grid;
        grid-template-columns: 1fr;
    }

    .pedido-acciones .boton {
        width: 100%;
    }

    .footer-contenido {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .modal-producto {
        padding: 12px;
    }

    .modal-producto-contenido {
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        padding: 62px 22px 24px;
    }

    .whatsapp-flotante {
        width: 52px;
        height: 52px;
        font-size: 26px;
        right: 14px;
        bottom: 14px;
        right: calc(14px + env(safe-area-inset-right, 0px));
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    }

    body:has(input:focus, select:focus, textarea:focus) .whatsapp-flotante {
        visibility: hidden;
        pointer-events: none;
    }
}

/* CELULARES */

@media (max-width: 560px) {
    .contenedor {
        width: calc(100% - 32px);
    }

    .productos-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tarjeta-producto > img {
        aspect-ratio: 4 / 3;
    }

    .producto-info {
        padding: 22px;
    }

    .producto-info h3 {
        font-size: 29px;
    }

    .producto-info p {
        font-size: 14px;
    }

    .categorias {
        gap: 8px;
        margin-bottom: 30px;
    }

    .categoria-btn {
        padding: 10px 14px;
        font-size: 12px;
    }

    .nosotros p:not(.etiqueta-seccion) {
        font-size: 15px;
        line-height: 1.9;
    }

    .item-carrito {
        flex-direction: column;
        padding: 18px;
        gap: 15px;
    }

    .eliminar-producto {
        align-self: flex-start;
    }

    .carrito-resumen {
        font-size: 16px;
    }

    .entrega-compra {
        padding: 22px 16px;
    }

    .opcion-entrega {
        padding: 15px 12px;
        gap: 10px;
    }

    .resumen-entrega > div,
    .pedido-totales > div {
        flex-wrap: wrap;
        gap: 8px 16px;
    }

    .resumen-entrega strong,
    .pedido-totales strong {
        margin-left: auto;
    }

    .pedido-producto {
        flex-direction: column;
        gap: 12px;
    }

    .pedido-producto-precio {
        max-width: 100%;
        text-align: left;
    }

    .pedido-datos {
        padding: 16px;
    }

    .contacto-info,
    .contacto-formulario {
        padding: 25px 20px;
    }

    .contacto-dato {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 10px;
    }

    .contacto-dato > i {
        width: 32px;
        height: 32px;
    }

    .contacto-dato p {
        font-size: 13px;
    }

    .boton-contacto {
        padding-inline: 12px;
    }
}

/* PANTALLAS MUY ANGOSTAS */

@media (max-width: 360px) {
    .contenedor {
        width: calc(100% - 24px);
    }

    .menu {
        padding-inline: 12px;
    }

    .menu nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-contenido {
        width: calc(100% - 28px);
    }

    .hero-contenido h1 {
        font-size: 52px;
        letter-spacing: 3px;
    }

    .hero-subtitulo {
        letter-spacing: 2px;
    }

    .hero-texto {
        font-size: 15px;
    }

    .entrega-compra {
        padding-inline: 12px;
    }

    .boton {
        padding-inline: 16px;
    }

    .contacto-info,
    .contacto-formulario {
        padding-inline: 16px;
    }

    .modal-producto-contenido {
        padding-inline: 16px;
    }
}

/* PANTALLAS BAJAS O DISPOSITIVOS EN HORIZONTAL */

@media (max-height: 520px) and (orientation: landscape) {
    .menu {
        position: relative;
        min-height: 0;
    }

    .hero {
        margin-top: 0;
        height: 430px;
    }

    .modal-producto {
        padding: 8px;
    }

    .modal-producto-contenido {
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        padding-top: 60px;
        padding-bottom: 20px;
    }
}

/* PANTALLAS GRANDES */

@media (min-width: 1600px) {
    :root {
        --ancho-contenido: 1440px;
        --altura-menu: 92px;
    }

    .menu {
        padding-inline: 6%;
    }

    .logo {
        font-size: 36px;
    }

    .logo span {
        font-size: 11px;
    }

    .menu nav {
        gap: 30px;
    }

    .menu nav a {
        font-size: 17px;
        min-height: 48px;
    }

    .hero {
        height: 800px;
        height: clamp(620px, 76svh, 900px);
    }

    .hero-contenido {
        max-width: 950px;
    }

    .hero-contenido h1 {
        font-size: 135px;
    }

    .hero-subtitulo {
        font-size: 18px;
    }

    .hero-texto {
        max-width: 700px;
        font-size: 23px;
    }

    .productos-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 30px;
    }

    .seccion h2 {
        font-size: 64px;
    }

    .nosotros .contenedor {
        max-width: 1000px;
    }

    .nosotros p:not(.etiqueta-seccion) {
        font-size: 19px;
    }

    .categoria-btn {
        font-size: 15px;
        min-height: 48px;
    }

    .producto-info h3 {
        font-size: 31px;
    }

    .producto-info p {
        font-size: 15px;
    }

    .btn-agregar,
    .boton {
        font-size: 16px;
        min-height: 50px;
    }

    .carrito-contenido,
    .carrito-resumen,
    .carrito-aclaracion,
    .continuar-compra,
    .entrega-compra {
        max-width: 1050px;
    }

    .contacto-grid {
        max-width: 1200px;
    }

    .contacto-dato p {
        font-size: 16px;
    }

    .modal-producto-contenido {
        max-width: 600px;
    }
}

@media (min-width: 2400px) {
    :root {
        --ancho-contenido: 1760px;
    }

    .hero-contenido h1 {
        font-size: 160px;
    }

    .hero-texto {
        font-size: 26px;
    }

    .productos-grid {
        gap: 36px;
    }

    .producto-info {
        padding: 30px;
    }

    .producto-info h3 {
        font-size: 35px;
    }

    .producto-info p {
        font-size: 17px;
    }

    .carrito-contenido,
    .carrito-resumen,
    .carrito-aclaracion,
    .continuar-compra,
    .entrega-compra {
        max-width: 1200px;
    }
}

/* MOVIMIENTO REDUCIDO */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
/* ==================================================
   PORTADA VALMA: IMÁGENES COMPLETAS, SIN RECORTES
   Pegar al final de style.css
   ================================================== */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: 0;
    max-height: none;
    background: var(--fondo-suave);
}

/* Las cinco imágenes comparten el mismo espacio. */
.hero-slide {
    position: relative;
    inset: auto;
    grid-area: 1 / 1;
    width: 100%;
    height: auto;
    align-self: start;
}

.hero-slide img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
}

/* Sombra para facilitar la lectura sobre la imagen. */
.hero-overlay {
    position: relative;
    inset: auto;
    grid-area: 1 / 1;
    align-self: stretch;
    justify-self: stretch;
    pointer-events: none;
}

/* Texto sobre la imagen en computadora. */
.hero-contenido {
    position: relative;
    grid-area: 1 / 1;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    align-self: center;
    justify-self: center;
    margin: 0;
}

/* Indicadores dentro del borde inferior de la foto. */
.hero-indicadores {
    position: relative;
    grid-area: 1 / 1;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    transform: none;
    align-self: end;
    justify-self: center;
    margin: 0 0 8px;
}

/* Celulares: foto completa arriba y presentación debajo. */
@media (max-width: 720px) {
    .hero {
        height: auto;
        min-height: 0;
        margin-top: 0;
    }

    .hero-overlay {
        display: none;
    }

    .hero-contenido {
        grid-area: 2 / 1;
        width: 100%;
        max-width: none;
        padding: 28px 20px 32px;
        color: var(--texto);
        background: var(--fondo-suave);
    }

    .hero-subtitulo {
        margin-bottom: 10px;
        color: var(--marca-oscura);
    }

    .hero-contenido h1 {
        font-size: clamp(44px, 12vw, 72px);
        letter-spacing: 4px;
        margin-bottom: 14px;
    }

    .hero-texto {
        max-width: 480px;
        margin: 0 auto 20px;
        font-size: 15px;
        line-height: 1.6;
        color: var(--texto-secundario);
    }

    .hero-indicadores {
        margin-bottom: 4px;
        padding-inline: 4px;
        border-radius: 30px;
        background: rgba(0, 0, 0, 0.35);
    }
}
/* MUESTRARIO DE PANA */

.pana-muestrario {
    min-width: 0;
    border: none;
    padding: 0;
    margin: 0 0 22px;
}

.pana-muestrario legend {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.pana-cuadricula {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
    gap: 10px;
}

.pana-muestra {
    min-width: 0;
    padding: 6px;
    border: 2px solid var(--borde);
    border-radius: 8px;
    background: var(--superficie);
    color: var(--texto);
    cursor: pointer;
}

.pana-muestra svg {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
}

.pana-muestra span {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.pana-muestra[aria-pressed="true"] {
    border-color: var(--marca-oscura);
    box-shadow: 0 0 0 2px var(--marca-oscura);
}

.pana-muestra[aria-pressed="true"] span::before {
    content: "✓ ";
}

.pana-seleccion {
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
}

.pana-aviso {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--texto-secundario);
}
/* VISTA PREVIA DEL SILLÓN EN PANA */

.pana-vista-previa {
    margin: 0 0 24px;
    padding: 16px;
    border: 1px solid var(--borde);
    border-radius: 12px;
    background: var(--superficie);
}

.pana-vista-previa h3 {
    margin-bottom: 12px;
    font-family: "Cormorant Garamond", serif;
    font-size: 25px;
    text-align: center;
    color: var(--texto);
}

.pana-vista-previa svg {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 324 / 210;
    overflow: hidden;
    border-radius: 8px;
}

.pana-vista-previa figcaption {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--texto-secundario);
}

.pana-vista-previa .pana-vista-color {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--texto);
}

.pana-vista-error {
    margin-bottom: 8px;
}