/* ==========================================
   1. VARIABLES Y CONFIGURACIÓN GENERAL
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@200&display=swap');
:root {
    --fuente-titulos: 'Syne', sans-serif;
    --fuente-cuerpo: 'Syne', sans-serif;
    --color-texto: #1a221e;
    --color-principal: #5a785a;
    --color-principal-hover: #486148;
    --color-tarjeta: #fffefa;
    --color-borde: #e5e2d9;
    --color-texto-secundario: #6d746e;
}

body {
    margin: 0;
    padding: 0;
    /* Asegúrate de que tu ruta de imagen o color de fondo con textura esté aquí */
    background-image: url('./imagenes/fondebeige.jpg'); 
    background-color: #fbfaf7; 
    color: var(--color-texto);
    font-family: var(--fuente-cuerpo);
    overflow-x: hidden;
    background-color: rgba(255, 255, 255, 0.25);
    background-blend-mode: screen;
}


/* ==========================================
   2. REDISEÑO TOTAL LOGIN: STYLE ULTRA LIGHT EXTENDED
   ========================================== */
.login-full-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    
    /* 🌟 SOLUCIÓN: Capa traslúcida en tono lino ceniza para apagar y desaturar los colores vivos 🌟 */
    background-size: 300px auto;
    background-position: center;
    background-repeat: repeat;
    
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}



.login-split-container {
    width: 100%;
    max-width: 1040px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

/* --- COLUMNA IZQUIERDA --- */
.login-col-izquierda {
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
    padding-bottom: 80px;
}

.login-logo-brand {
    font-family: 'Syne', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-principal);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 6px; /* Logo estirado de marca boutique */
}

/* Título principal: estilo editorial refinado */
.login-titulo-editorial-reveal {
    font-family: 'Syne', sans-serif;

    /* Tamaño más equilibrado y adaptable */
    font-size: clamp(2rem, 3.6vw, 3.1rem);

    font-weight: 400;

    /* Líneas más unidas y compactas */
    line-height: 1.18;

    text-transform: uppercase;

    /* Espaciado elegante, sin exagerar */
    letter-spacing: clamp(3px, 0.6vw, 7px);

    color: #1a221e;

    /* Menos espacio debajo del título */
    margin: 0 0 24px 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    overflow: hidden;
}


.letra-revelada {
    display: block;
    opacity: 0;
    transform: translateY(110%);
    animation: revelarHaciaArriba 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.letra-revelada:nth-child(1) { animation-delay: 0.15s; }
.letra-revelada:nth-child(2) { animation-delay: 0.4s; }

/* Descripción Corta de Abajo */
/* --- CONTENEDOR DE LA DESCRIPCIÓN (Posición Elevada Corregida) --- */
.login-desc-izq-extended {
    font-family: 'Syne', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 90%;
    opacity: 0;
    animation: fadeEntrada 1.2s ease forwards 1.2s;
    
    /* SOLUCIÓN: Reducimos el margen drásticamente para pegarlo al título */
    margin-top: 15px !important; 
    
    /* Limpiamos rellenos que creaban espacio vacío extra hacia abajo */
    padding: 0px; 
    border-radius: 0px;
    background: transparent;
    backdrop-filter: none;
}


/* Bloques de abajo: estilizados, extendidos y con un ancho controlado para que no se corten */
.frase-bloque-extended {
    font-size: 0.68rem !important;
    letter-spacing: 4px !important;
    line-height: 1.8;
    
    /* SOLUCIÓN: Cambiamos a un color oscuro sólido para que contraste con el beige claro */
    color: #1a221e !important; 
    font-weight: 500;
    text-transform: uppercase;
    display: block;
    
    /* Añade una sombra de texto ultra-suave para separar la letra del dibujo del fondo */
    text-shadow: 0px 1px 2px rgba(255, 255, 255, 0.8); 
}



.login-ilustracion-hojas {
    position: absolute;
    bottom: -20px;
    left: -10px;
    width: 220px;
    height: auto;
    pointer-events: none;
    opacity: 0;
    animation: brotarHojasLogin 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

/* --- COLUMNA DERECHA (Tarjeta Oscura en Formato Extended) --- */
.login-col-derecha {
    display: flex;
    justify-content: flex-end;
}

/* ==========================================
   ESTADO BASE: OSCURO SUAVE Y TRANSPARENTE
   ========================================== */
.login-card-oscura {
    /* Fondo sutil, un poco más oscuro en estado normal */
    background: rgba(100, 105, 98, 0.20);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    padding: 45px 35px;
    border-radius: 28px;

    width: 100%;
    max-width: 420px;
    box-sizing: border-box;

    /* Borde delicado para definir la tarjeta */
    border: 1px solid rgba(110, 125, 105, 0.16);

    box-shadow: 0 12px 35px rgba(40, 50, 40, 0.06);

    text-align: center;

    /* Animación de entrada que ya tenías */
    opacity: 0;
    animation: enfocarTarjetaLogin
        1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;

    /* Transición suave al pasar el cursor */
    transition:
        background 0.6s ease,
        box-shadow 0.6s ease,
        border-color 0.6s ease;
}
/* ==========================================
   🌟 INTERACCIÓN: SE ACLARA COMPLETAMENTE AL PASAR EL CURSOR 🌟
   ========================================== */
.login-card-oscura:hover {
    background: rgba(245, 244, 237, 0.45);

    border-color: rgba(110, 125, 105, 0.28);

    box-shadow: 0 16px 40px rgba(40, 50, 40, 0.09);
}

/* Mantiene el estado aclarado e iluminado mientras el usuario escribe */
.login-card-oscura:focus-within,
.login-card-oscura:has(input:focus) {
    transform: translateY(-5px) !important;
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #4a494a22 !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}
/* ==========================================
   DISTINCIÓN ENTRE LOGIN Y REGISTRO
   ========================================== */

/* Tarjeta de inicio de sesión */
.login-card-login {
    border: 1px solid rgba(90, 120, 90, 0.12);
}

/* Tarjeta de creación de cuenta */
.login-card-registro {
    border: 1px solid rgba(90, 120, 90, 0.28);
    /*border-top: 3px solid #5a785a;*/
}

/* Pequeña etiqueta superior */
.auth-etiqueta {
    display: inline-block;
    margin-bottom: 15px;
    padding: 7px 14px;
    border-radius: 30px;

    font-family: 'Syne', sans-serif;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;

    color: #5a785a;
    background: rgba(90, 120, 90, 0.08);
    border: 1px solid rgba(90, 120, 90, 0.18);
}

/* Etiqueta específica del registro */
.auth-etiqueta.registro {
    color: #486148;
    background: rgba(90, 120, 90, 0.14);
    border-color: rgba(90, 120, 90, 0.28);
}


/* Botón específico para crear cuenta */
.btn-crear-cuenta {
    width: 100%;
    padding: 15px;

    background-color: #5a785a;
    color: white;

    font-family: 'Syne', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;

    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(90, 120, 90, 0.20);

    transition: all 0.3s ease;
}

.btn-crear-cuenta:hover {
    background-color: #486148;
    box-shadow: 0 7px 20px rgba(90, 120, 90, 0.32);
    transform: translateY(-2px);
    letter-spacing: 5px;
}


/* Inputs de la tarjeta con letras extendidas */
/* ==========================================
   NUEVO DISEÑO DE CAMPOS FLOTANTES ULTRA-MINIMALISTAS
   ========================================== */
.campo-flotante-oscuro {
    position: relative;
    margin-bottom: 30px; 
    width: 100%;
    text-align: left;
}

.campo-flotante-oscuro input {
    width: 100%;
    padding: 20px 12px 10px 12px; 
    border: none !important; /* Eliminamos cualquier recuadro por defecto */
    border-bottom: 1.5px solid rgba(90, 120, 90, 0.3) !important; /* Línea base sutil en tono oliva */
    background: transparent !important; /* Forzamos fondo transparente */
    font-family: 'Syne', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #1a221e; /* Letra oscura */
    text-transform: uppercase;
    letter-spacing: 2px;
    box-sizing: border-box;
    outline: none !important; /* Quita el recuadro azul al hacer clic */
    transition: border-color 0.4s ease;
}



.campo-flotante-oscuro label {
    position: absolute;
    top: 18px;
    left: 12px; 
    font-family: 'Syne', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(90, 120, 90, 0.6); /* Tono oliva suave */
    text-transform: uppercase;
    letter-spacing: 3px;
    pointer-events: none; 
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
}
.campo-flotante-oscuro .btn-ojo-flotante {
    position: absolute;
    right: 12px;
    top: 18px; /* Centrado perfecto con tu texto */
    background: none !important;
    border: none !important;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Efecto sutil al seleccionar un campo */
.campo-flotante-oscuro:focus-within input {
    border-bottom-color: #668f68 !important;
}

.campo-flotante-oscuro .svg-ojo {
    width: 18px; /* Un tamaño un poquito más refinado */
    height: 18px;
    color: #1a221e !important; /* Negro oscuro idéntico a tu fuente */
}

/* Espacio para que los caracteres de la contraseña no choquen con el ojo */
.campo-flotante-oscuro input[type="password"],
.campo-flotante-oscuro input[type="text"] {
    padding-right: 42px !important; 
}

/* Desactiva el ojo gris que mete Microsoft Edge por defecto */
input::-ms-reveal {
    display: none;
}


/* Línea brillante decorativa que se expande desde el centro */
.linea-borde-animada {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #00cc66; 
    transform: scaleX(0); 
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}


/* ==========================================
   LA MAGIA DEL MOVIMIENTO (CUANDO HACES CLIC O ESCRIBES)
   ========================================== */

/* 1. Cuando haces clic (focus) o el cuadro NO está vacío, la etiqueta vuela hacia arriba */
.campo-flotante-oscuro input:focus ~ label,
.campo-flotante-oscuro input:not(:placeholder-shown) ~ label {
    top: -10px;
    font-size: 0.58rem; 
    color: #00cc66; /* Cambia al verde brillante */
}


/* 2. Cuando haces clic, la línea base se ilumina por completo de lado a lado */
.campo-flotante-oscuro input:focus ~ .linea-borde-animada {
    transform: scaleX(1);
}

/* Cambio sutil en la línea base general al hacer clic */
.campo-flotante-oscuro input:focus {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Botón "Ingresar a la tienda" */
.btn-entrar-verde-extended {
    background-color: #6a9e6a;
    color: #ffffff;
    width: 100%;
    box-sizing: border-box;
    padding: 15px;

    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: 'Syne', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;

    border-radius: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 15px;

    box-shadow: 0 4px 12px rgba(0, 204, 102, 0.2);
    transition: background-color 0.3s ease,
                box-shadow 0.3s ease;
}

.btn-entrar-verde-extended:hover {
    background-color: #74af74;
    box-shadow: 0 6px 20px rgba(0, 204, 102, 0.4);
}
.btn-registrar-link-extended {
    background: none;
    color: #ffffff;
    font-family: 'Syne', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: underline;
    opacity: 0.6;
    margin-top: 20px;
    display: inline-block;
    
    /* SOLUCIÓN: Obliga al navegador a mostrar el cursor de clic */
    cursor: pointer !important; 
    transition: opacity 0.2s;
}

.btn-registrar-link-extended {
    background: none;
    color: #1a221e; /* 🌟 Letra oscura */
    font-family: 'Syne', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: underline;
    opacity: 0.6;
    margin-top: 20px;
    display: inline-block;
    cursor: pointer !important; 
    transition: opacity 0.2s;
}


.login-footer-card-extended {
    font-family: 'Syne', sans-serif;
    color: #1a221e; /* 🌟 Letra oscura */
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.6;
    margin: 30px 0 0 0;
    opacity: 0.5;
}

/* ==========================================
   7. KEYFRAMES EXCLUSIVOS
   ========================================== */
@keyframes revelarHaciaArriba {
    0% { opacity: 0; transform: translateY(110%); }
    40% { opacity: 1; }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeEntrada { to { opacity: 1; } }
@keyframes brotarHojasLogin {
    0% { opacity: 0; transform: translateY(20px) scale(0.95); }
    100% { opacity: 0.85; transform: translateY(0) scale(1); }
}
@keyframes enfocarTarjetaLogin {
    0% { 
        opacity: 0; 
        transform: scale(0.97) translateY(15px); 
    }
    100% { 
        opacity: 1; /* Termina visible */
        transform: scale(1) translateY(0); 
    }
}


/* Adaptación Celular */
@media (max-width: 768px) {
    .login-split-container { grid-template-columns: 1fr; gap: 30px; }
    .login-col-izquierda { padding-bottom: 20px; text-align: center; align-items: center; }
    .login-titulo-editorial-reveal {
    align-items: center;
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    line-height: 1.35;
    letter-spacing: clamp(3px, 1.2vw, 6px);
    margin-bottom: 25px;
}

    .login-desc-izq-extended { max-width: 100%; align-items: center; }
    .login-desc-izq-extended span { letter-spacing: 3px; }
    .login-ilustracion-hojas { display: none; }
    .login-col-derecha { justify-content: center; }
}


/* ==========================================
   3. CABECERA (HEADER) Y NAVEGACIÓN
   ========================================== */
header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    padding: 15px 40px;
    box-sizing: border-box;
}

.header-derecha {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    margin-left: auto;
}

.user-tag {
    font-size: 0.85rem;
    color: var(--color-texto-secundario);
    background-color: #eef2ef;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* ==========================================
   4. SECCIÓN PRINCIPAL Y CUADRÍCULA DE JABONES
   ========================================== */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.catalogo-header-top {
    text-align: center;
    margin-bottom: 36px;
}
.catalogo-separador {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 22px;
    color: var(--color-principal);
}

.catalogo-separador::before,
.catalogo-separador::after {
    content: "";
    width: 55px;
    height: 1px;
    background-color: var(--color-principal);
    opacity: 0.6;
}

.catalogo-separador span {
    font-size: 18px;
}

/* Cuadrícula del catálogo */
.cuadrula-productos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}
.tarjeta-instagram {
    background-color: #f8f6ef;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #d8d8ca;
    box-shadow: 0 5px 18px rgba(40, 50, 40, 0.06);

    display: flex;
    flex-direction: column;
    height: 100%;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease;
}

.tarjeta-instagram:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(40, 50, 40, 0.13);
}

.insta-header {
    padding: 10px 18px;
    background-color: #f8f6ef;
    border-bottom: 1px solid #e9e6dc;
}

.categoria-insta {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-principal);
}

.insta-img-container {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background-color: #eeeae0;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.insta-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.tarjeta-instagram:hover .insta-img-container img {
    transform: scale(1.04);
}

.insta-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.insta-body h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    font-family: var(--fuente-titulos);
    line-height: 1.4;
}

.insta-body p {
    margin: 0 0 16px;
    font-size: 0.92rem;
    color: var(--color-texto-secundario);
    line-height: 1.6;
    flex-grow: 0;
}
/* Tarjeta destacada */
@media (min-width: 901px) {
    .tarjeta-instagram:nth-child(3n + 2) {
        background-color: #263f32;
        border-color: #263f32;
        color: #f8f6ef;
    }

    .tarjeta-instagram:nth-child(3n + 2) .insta-header {
        background-color: #263f32;
        border-bottom-color: #405747;
    }

    .tarjeta-instagram:nth-child(3n + 2) .categoria-insta {
        color: #d5dfce;
    }

    .tarjeta-instagram:nth-child(3n + 2) .insta-body p {
        color: #e0e5dc;
    }
}
.precio-producto {
    border-top: 1px solid #d8d8ca;
    padding-top: 10px;
    margin-top: 0;
    margin-bottom: 12px;

    font-family: var(--fuente-titulos);
    font-size: 1.35rem;
    letter-spacing: 0.5px;
    color: var(--color-texto);
}

.insta-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 0;
}
/* Selector de cantidad */
.selector-cantidad-insta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-texto-secundario);
    flex-shrink: 0;
}

.selector-cantidad-insta input {
    width: 48px;
    padding: 8px 4px;
    border: 1px solid var(--color-borde);
    border-radius: 10px;
    background: transparent;
    text-align: center;
    font-family: var(--fuente-cuerpo);
}

/* Botón Añadir */
.btn-estetico-comprar {
    flex: 1;
    min-height: 40px;
    padding: 9px 12px;

    background: var(--color-principal);
    color: #fff;
    border: 1px solid var(--color-principal);
    border-radius: 30px;

    font-family: var(--fuente-cuerpo);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;

    transition: background-color 0.3s ease,
                color 0.3s ease,
                transform 0.3s ease;
}

.btn-estetico-comprar:hover {
    background: var(--color-principal-hover);
    border-color: var(--color-principal-hover);
    transform: translateY(-2px);
}
/* Colores de la tarjeta verde */
@media (min-width: 901px) {
    .tarjeta-instagram:nth-child(3n + 2) .precio-producto {
        color: #f8f6ef;
        border-top-color: #647568;
    }

    .tarjeta-instagram:nth-child(3n + 2) .selector-cantidad-insta {
        color: #e0e5dc;
    }

    .tarjeta-instagram:nth-child(3n + 2) .selector-cantidad-insta input {
        color: #f8f6ef;
        border-color: #647568;
    }

    .tarjeta-instagram:nth-child(3n + 2) .btn-estetico-comprar {
        background: #f8f6ef;
        color: #263f32;
        border-color: #f8f6ef;
    }

    .tarjeta-instagram:nth-child(3n + 2) .btn-estetico-comprar:hover {
        background: #dce4d7;
        border-color: #dce4d7;
    }
}

/* ==========================================
   5. CARRITO LATERAL DESPLEGABLE
   ========================================== */
.carrito-icono {
    font-size: 1.4rem;
    cursor: pointer;
    position: relative;
    background: #f4f1ea;
    padding: 10px 14px;
    border-radius: 50%;
    user-select: none;
    transition: background 0.2s;
}

.carrito-icono:hover {
    background: #e6e2d8;
}

#contador-carrito {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--color-principal);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 10px;
}

.carrito-lateral {
    position: fixed;
    top: 0;
    right: -360px; /* Escondido a la derecha por defecto */
    width: 340px;
    height: 100vh;
    background-color: var(--color-tarjeta);
    box-shadow: -5px 0 25px rgba(0,0,0,0.06);
    z-index: 2000;
    transition: right 0.3s ease-in-out;
    padding: 25px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.carrito-lateral.activo {
    right: 0; /* Desliza hacia adentro */
}

.carrito-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-borde);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.carrito-header h2 {
    font-family: var(--fuente-titulos);
    margin: 0;
    font-size: 1.6rem;
}

#carrito-items {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Carrito vacío: icono centrado en el panel */
.carrito-vacio {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: var(--color-texto-secundario);
}

.carrito-vacio-icono {
    font-size: 3.5rem;
    margin-bottom: 15px;
    opacity: 0.65;
}

.carrito-vacio p {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--color-principal);
}

.carrito-vacio span {
    font-size: 0.85rem;
}
.item-detalles h4 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
}

.item-detalles p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-texto-secundario);
}

.carrito-total {
    border-top: 1px solid var(--color-borde);
    padding-top: 20px;
    margin-top: 15px;
}

.carrito-total p {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0 0 15px 0;
}

/* ==========================================
   6. BOTONES REUTILIZABLES
   ========================================== */
button {
    font-family: var(--fuente-cuerpo);
    cursor: pointer;
    border: none;
    transition: background-color 0.2s, color 0.2s;
}

#btn-comprar {
    background-color: var(--color-principal);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
}

#btn-comprar:hover { background-color: var(--color-principal-hover); }

/* Botón Cerrar Sesión */
.btn-logout-nav {
    background-color: transparent;
    color: #526747;
    border: 1px solid #aab5a0;
    border-radius: 30px;
    padding: 10px 18px;
    font-family: var(--fuente-cuerpo);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout-nav:hover {
    background-color: #526747;
    color: #ffffff;
    border-color: #526747;
    transform: translateY(-2px);
}
.btn-cerrar {
    background: none;
    font-size: 1.3rem;
    color: #a0aec0;
    padding: 4px;
}

.btn-cerrar:hover {
    color: var(--color-texto);
}

.btn-eliminar {
    background: none;
    font-size: 1.1rem;
    padding: 6px;
}

.btn-eliminar:hover {
    transform: scale(1.1);
}
.login-col-izquierda {
    align-items: center;
    text-align: center;
}

/* Centrar el título principal */
.login-titulo-editorial-reveal {
    width: 100%;
    align-items: center;
    text-align: center;
    font-size: clamp(2.2rem, 3.6vw, 3.6rem);
    line-height: 1.15;
}

/* Centrar la descripción debajo del título */
.login-desc-izq-extended {
    max-width: 100%;
    align-items: center;
    text-align: center;
}

/* Mantener el centrado en celulares */
@media (max-width: 768px) {
    .login-col-izquierda {
        align-items: center;
        text-align: center;
    }

    .login-titulo-editorial-reveal {
        align-items: center;
        text-align: center;
    }

    .login-desc-izq-extended {
        align-items: center;
        text-align: center;
    }
}

/* Centrar la montañita debajo del texto */
.login-ilustracion-hojas {
    left: 50%;
    margin-left: -110px;
}


/* ==========================================
   TIPOGRAFÍA PRINCIPAL - ESENCIA VITAL
   Letras más juntas y con más presencia
   ========================================== */

/* Texto general de la página */
body {
    font-family: 'Syne', sans-serif;
    letter-spacing: 0;
    font-weight: 400;
}

/* Nombre de la marca en la cabecera */
.logo {
    font-family: 'Syne', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-principal);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 6px;
     width: 100%;
    text-align: center;
    margin: 0 auto 20px;
}


.titulo-catalogo {
    font-family: 'Syne', sans-serif;
    font-size: clamp(0.75rem, 1.5vw, 1.2rem);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
    color: #1a221e;
    text-align: center;
    white-space: nowrap;
    margin: 0 0 10px 0;
}

.subtitulo-catalogo {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--color-texto-secundario);
    text-align: center;
    margin: 0;
    font-style: normal;
}

/* Nombres de los productos */
.insta-body h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    letter-spacing: 0;
}

/* Botones, campos y controles */
button,
input,
textarea,
select {
    font-family: 'Syne', sans-serif;
    letter-spacing: 0;
}

/* Ajustes de compatibilidad con las clases reales del HTML */
.titulo-catalogo-animado {
    font-family: var(--fuente-titulos);
    font-size: clamp(2.2rem, 5vw, 5rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: clamp(2px, 0.6vw, 4px);
    line-height: 1.2;
    color: #1a221e;
    margin: 0 0 10px;
}
.titulo-catalogo.titulo-catalogo-animado {
    font-size: clamp(0.9rem, 2vw, 2.5rem);
    font-weight: 300;
    letter-spacing: 2px;
    white-space: normal;
}
.subtitulo-catalogo-animado {
    font-family: var(--fuente-cuerpo);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--color-texto-secundario);
    margin: 0;
}

.btn-estetico-comprar {
    background: #faf9f6;
    color: var(--color-texto);
    border: 1px solid #ccd1cd;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
}
.btn-estetico-comprar:hover {
    background: var(--color-principal);
    color: #fff;
    border-color: var(--color-principal);
}

.auth-botones-split {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.carrito-icono {
    appearance: none;
    border: 0;
    color: inherit;
}

@media (max-width: 768px) {
    .login-full-screen {
        position: absolute;
        min-height: 100vh;
        height: auto;
        align-items: flex-start;
        overflow-y: auto;
    }
    .login-card-oscura { padding: 35px 25px; }
    header { padding: 14px 4%; gap: 12px; flex-wrap: wrap; }
    .header-derecha { gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
    .user-tag { max-width: 150px; overflow-wrap: anywhere; }
    .carrito-lateral { width: min(340px, 100vw); right: min(-360px, -100vw); }
    .carrito-lateral.activo { right: 0; }
    .cuadrula-productos { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; }
}
/* ==========================================
   QUITAR EL CELESTE DEL CORREO AUTOCOMPLETADO
   EN INGRESAR Y CREAR CUENTA
   ========================================== */

/* Quitar el fondo celeste del correo autocompletado en Chrome */
/* Correo sin fondo blanco ni celeste */
#auth-email,
#reg-email {
    background: transparent !important;
    background-color: transparent !important;
}

/* Campo de correo de INGRESAR: mismo estilo que CREAR CUENTA */
#auth-email {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid #00cc66 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    width: 100%;
    box-sizing: border-box;
    color: #222222;
    outline: none;
}

/* ==========================================
   AUTOCOMPLETADO SIN FONDO CELESTE
   INGRESAR Y CREAR CUENTA
   ========================================== */


#auth-email:-webkit-autofill,
#auth-email:-webkit-autofill:hover,
#auth-email:-webkit-autofill:focus,
#auth-email:-webkit-autofill:active,
#reg-email:-webkit-autofill,
#reg-email:-webkit-autofill:hover,
#reg-email:-webkit-autofill:focus,
#reg-email:-webkit-autofill:active {
    -webkit-text-fill-color: #222222 !important;
    caret-color: #222222 !important;

    /* Mantener el fondo transparente */
    background-color: transparent !important;
    background-image: none !important;
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    box-shadow: 0 0 0 1000px transparent inset !important;

    /* Evitar que Chrome pinte su fondo celeste */
    transition: background-color 99999s ease-out 0s !important;
}
/* Tablets */
@media (max-width: 900px) {
    .cuadrula-productos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Celulares */
@media (max-width: 600px) {
    .cuadrula-productos {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .insta-body {
        padding: 18px;
    }
}