/* =======================================
   VARIABLES
======================================= */
:root {
    /* Fonts */
    --fuenteHeading: 'Playfair Display', serif;
    --fuenteTexto: 'Plus Jakarta Sans', sans-serif;

    /* Primary - Océano (RGB) */
    --primary-50: 247, 247, 247;
    --primary-100: 193, 197, 202;
    --primary-200: 162, 239, 255;
    --primary-400: 65, 85, 119;
    --primary-500: 34, 54, 74;
    --primary-600: 7, 24, 43;
    --primary-700: 24, 48, 55;
    --primary-800: 0, 4, 8;
    --primary-900: 0, 1, 2;

    /* Secondary - Tierra (RGB) */
    --secundary-50: 255, 221, 200;
    --secondary-100: 242, 232, 228;
    --secondary-200: 207, 187, 177;
    --secondary-400: 199, 166, 150;
    --secondary-500: 187, 142, 120;
    --secondary-600: 181, 121, 93;
    --secondary-700: 173, 106, 74;
    --secondary-800: 162, 87, 52;
    --secondary-900: 122, 63, 35;

    /* Others colors */
    --cafe-oscuro: #4b3621;
    --cafe-suave: #fdf6f0;
    --texto-color: #3e3e3e;
    --borde-color: #ede0d4;
    --acento: #a67c52;

    /* Basics */
    --black: 0, 0, 0;
    --white: 255, 255, 255;

    /* Transparencias */
    --opacidad-barra: 0.15;

    /* Header height */
    --header-height: 9rem;
}


/* =======================================
   RESET & BASE
======================================= */
html {
    box-sizing: border-box;
    font-size: 62.5%;
}
*, *:before, *:after {
    box-sizing: inherit;
}

main {
    margin-top: var(--header-height);
}

body {
    font-family: var(--fuenteTexto);
    margin: 0;
}

img { max-width: 100%; 
    display: 
    block; 
}
a { text-decoration: none; 
    color: inherit;
    font-size: 1.5rem; 
}
h1,h2,h3,h4,h5,h6 { font-family: var(--fuenteHeading); }

h1 { font-size: 4.1rem; line-height: 1.18; }
h2 { font-size: 3.2rem; }
h3 { font-size: 2.8rem; }
h4 { font-size: 1.8rem; }
h5 { font-size: 1.6rem; }
h6 { font-size: 1.4rem; }
p { font-size: 1.6rem; line-height: 1.6; margin-bottom: 1.6rem; }   

.container {
    width: 90%;
    max-width: 120rem;
    margin: 0 auto;
}

/* UTILIDADES */
.no-margin { margin: 0 !important; }
.no-padding { padding: 0 !important; }
.center-text { text-align: center !important; }

table {
    width: 100%;
    border-collapse: collapse;
}

/* =========================================================================================================================
   BOTONES
================================================================================= */


/* BOTÓN - 1 */
.boton1-btn {
    width: 100%;
    padding: 1.4rem 0;
    border-radius: 40px;
    border: 1px solid rgb(var(--primary-400));
    background-color:rgb(var(--secondary-100));
    cursor: pointer;
    font-size: 1.6rem;
    color: rgb(var(--primary-600));
    transition: 0.25s ease;
    margin-top: auto;
    font-weight: bold;
    text-align: center;
    
}

.boton1-btn:hover {
    background: rgb(var(--primary-500));
    color: white;
}

/* BOTÓN - 2 */

.boton2-btn {
    font-family: var(--fuenteTexto);
    padding: 10px 15px;
    cursor: pointer;
    background: rgb(var(--primary-500));
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.6rem;
    white-space: nowrap;
}

/* BOTÓN - 3 */

.boton3-btn {
    font-family: var(--fuenteTexto);
    padding: 10px 15px;
    cursor: pointer;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    white-space: nowrap;
}


/* BOTÓN - 4 */
.boton4-btn {
    width: 100%;
    padding: 1.4rem 0;
    border-radius: 40px;
    border: 1px solid rgb(var(--primary-500));
    background-color:rgb(var(--primary-500));
    cursor: pointer;
    font-size: 1.6rem;
    color: white;
    transition: 0.25s ease;
    margin-top: auto;
    font-weight: bold;
    text-align: center;
    
}


.boton4-btn:hover {
    background: rgb(var(--secondary-900));
    color: white;
}


/* BOTÓN - Modificar */

.modificar-btn {
    font-family: var(--fuenteTexto);
    font-weight: bold;
    cursor: pointer;
    background: transparent;
    border: none;
    white-space: nowrap;
}

/* BOTÓN - Eliminar */

.eliminar-btn {
    font-family: var(--fuenteTexto);
    font-weight: bold;
    cursor: pointer;
    background: transparent;
    white-space: nowrap;
    color: red;
    border: none;
}



/* ==========================================================================================
   ESTILOS POLÍTICA DE COOKIES 
============================================================================================= */

.cookies-container-main {
    max-width: 900px;
    margin: 15rem auto 3rem;
    padding: 0 4rem;
    font-family: var(--fuenteTexto);
}

/* --- TABLA ESTILO IMAGEN --- */
.cookies-table-wrapper {
    overflow-x: auto;
    margin: 3rem 0;
}

.cookies-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #d1d1d1;
}

/* Cabecera Café Oscuro */
.cookies-table thead th {
    background-color: #4b3621;
    color: #ffffff;
    padding: 1.5rem;
    font-size: 1.5rem;
    text-align: left;
    font-weight: bold;
    border: 1px solid #d1d1d1;
}

/* Celdas de la tabla */
.cookies-table td {
    padding: 1.5rem;
    border: 1px solid #d1d1d1;
    vertical-align: top;
    font-size: 1.5rem;
    line-height: 1.4;
}

/* Primera columna en negrita */
.cookies-table td:first-child {
    font-weight: bold;
    background-color: #fdfdfd; 
}

/* --- BOTONES DE NAVEGADORES --- */
.links-navegadores {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.links-navegadores li a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 2rem;
    border: 1px solid #4b3621;
    border-radius: 50px;
    text-decoration: none;
    color: #4b3621;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.links-navegadores li a:hover {
    background-color: #4b3621;
    color: #ffffff;
}

.links-navegadores i {
    font-size: 1.6rem;
}

.empresa-box {
    background-color: #fcf7f2;
    padding: 3rem;
    border-left: 6px solid #4b3621;
    margin: 3rem 0;
    transition: all 0.3s ease;
    cursor: default;
}

.empresa-box p {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: #000;
}

.empresa-box ul {
    list-style: none;
    padding: 0;
}

.empresa-box li {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.6;
}

.empresa-box:hover {
    transform: translateY(-5px);
    background-color: #f8eee4;
    box-shadow: 0 8px 20px rgba(75, 54, 33, 0.1);
    border-color: var(--acento);
}

/* =================================================
   ESTILOS PAGINA DE POLITICA Y PRIVACIDAD 
==================================================== */

.privacy-container-main {
    max-width: 850px;
    margin: 10rem auto 5rem;
    padding: 4rem;
    font-family: var(--fuenteTexto), sans-serif;
    color: var(--texto-color);
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 8px;
}

/* Encabezados */
.privacy-container-main h2 {
    font-size: 2.8rem;
    color: var(--cafe-oscuro);
    margin-bottom: 2rem;
    text-align: center;
}

.privacy-container-main h3 {
    font-size: 2.2rem;
    color: var(--cafe-oscuro);
    margin: 4rem 0 1.5rem;
    display: flex;
    align-items: center;
}

.privacy-container-main h3::before {
    content: "";
    width: 4px;
    height: 25px;
    background-color: var(--acento);
    margin-right: 1.2rem;
    border-radius: 2px;
}

/* Tarjetas de Contenido (Puntos 1, 2 y 4) */
.privacy-card-box {
    background-color: var(--cafe-suave);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid var(--borde-color);
    margin: 2rem 0;
}

.privacy-card-box .box-title {
    display: block;
    font-size: 1.8rem;
    color: #000;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.privacy-card-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.privacy-card-box li {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    color: #333;
}

.privacy-card-box strong {
    color: #000;
}
.privacy-card-box {
    transition: all 0.3s ease;
    cursor: default;
}

.privacy-card-box:hover {
    transform: translateY(-5px);
    background-color: #f8eee4;
    box-shadow: 0 8px 20px rgba(75, 54, 33, 0.1);
    border-color: var(--acento);
}

/* =====================================================================================================
   ESTILO DE TERMINOS Y CONDICIONES DE VENTA
======================================================================================================== */


.terms-container-main {
    max-width: 850px;
    margin: 10rem auto 5rem;
    padding: 4rem;
    font-family: var(--fuenteTexto), sans-serif;
    color: var(--texto-color);
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 8px;
}

/* Encabezados */
.terms-container-main h2 {
    font-size: 2.8rem;
    color: var(--cafe-oscuro);
    margin-bottom: 2rem;
    text-align: center;
}

.terms-container-main h3 {
    font-size: 2.2rem;
    color: var(--cafe-oscuro);
    margin: 4rem 0 1.5rem;
    display: flex;
    align-items: center;
}

.terms-container-main h3::before {
    content: "";
    width: 4px;
    height: 25px;
    background-color: var(--acento);
    margin-right: 1.2rem;
    border-radius: 2px;
}

/* Tarjetas de Contenido (Puntos 1, 2 y 4) */
.terms-card-box {
    background-color: var(--cafe-suave);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid var(--borde-color);
    margin: 2rem 0;
}

.terms-card-box .box-title {
    display: block;
    font-size: 1.8rem;
    color: #000;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.terms-card-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-card-box li {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    color: #333;
}

.terms-card-box strong {
    color: #000;
}
.terms-card-box {
    transition: all 0.3s ease;
    cursor: default;
}

.terms-card-box:hover {
    transform: translateY(-5px);
    background-color: #f8eee4;
    box-shadow: 0 8px 20px rgba(75, 54, 33, 0.1);
    border-color: var(--acento);
}

/* =========================================================================================================================
   ESTILOS DE FORMULARIO Y CAMPOS
============================================================================================================================ */

/*SELECTOR 1*/
.selector1 {
    font-family: var(--fuenteTexto);
    width: 100%;
    padding: 1rem;
    border: 1px solid;
    border-color: rgb(var(--primary-100));
    border-radius: 4px;
    box-sizing: border-box; 
    background-color: white;
}

.input1 {
    font-family: var(--fuenteTexto);
    flex-grow: 2; 
    width: 100%; 
    padding: 1rem;
    min-width: 100px; 
    border:1px solid;
    border-color: rgb(var(--primary-100)); 
    border-radius:4px;
}


@media (max-width: 768px) {
    .input1 {
        flex-grow: 1;
        min-width: auto;
    }
    
    
}


@media (max-width: 480px) {
    .selector1, .input1 {
        width: 100% !important;
        display: block;
        font-size: 16px;
        align-items: center;
    }

    .input1 {
        flex-grow: 0;
        width: 100% !important;
        display: block;
        font-size: 16px;
        align-items: center;
    }
}


.textarea1 {
    font-family: var(--fuenteTexto);
    width: 100%; 
    padding: 1rem; 
    border:1px solid; 
    border-color: rgb(var(--primary-100)); 
    border-radius:4px; 
    box-sizing: border-box; 
    resize: vertical; 
    min-height: 120px;
}

.checkbox1 {
    width: 20px; 
    height: 20px; 
    margin-right: 8px;
}


.filters-group {
    display: flex; 
    justify-content: space-between;
    gap: 0.5rem; 
    width: 100%;
} 

fieldset {
    border: 1px solid rgb(var(--secondary-200));
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

legend {
    font-family: var(--fuenteHeading);
    font-size: 1.8rem;
    color: rgb(var(--primary-600));
    padding: 0 1rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    fieldset {
        padding: 1.5rem;
    }
    legend {
        font-size: 1.6rem;
    }
}

label {
    display: block;
    font-size: 1.5rem;
    color: rgb(var(--primary-500));
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

form {
    display: block;
    unicode-bidi: isolate;
}











/* =========================================================================================================================
   HEADER
================================================================================= */

.header {
    height: var(--header-height);
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: white;
}


/* LOGO */
.img-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.img-logo img {
    width: 28rem;
    height: auto;
    max-width: none;
    flex-shrink: 0;
}

/* NAV + ICONS (BARRAS FLOTANTES) */
.nav-bar,
.icons-bar {
    height: 35px;
    display: flex;
    align-items: center;
    background:rgb(var(--secondary-100));
    backdrop-filter: blur(6px);
    padding: 0 24px;
    border-radius: 40px;
}

.nav-bar a:hover{
    font-weight: bold;
    color: rgb(var(--secondary-900));
}

/* NAV */
.nav-bar ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-bar li {
    font-size: 1.3rem;
}

/* ICONOS */
.icons-bar {
    gap: 2rem;
}

.icon-header {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.icon-header img {
    width: 1.8rem;
}

.cart-wrapper {
    position: relative;
    align-items: center;
}


.cart-badge-number {
    background-color: rgb(var(--secondary-800));
    color: white;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -8px;
    right: -10px;
}

/*header dropdown*/

.user-menu-wrapper {
    position: relative;
}

.user-toggle {
    cursor: pointer;
}

.user-toggle i {
    font-size: 1.8rem;
    color: rgb(var(--primary-900));
}

.user-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    background:white;
    border-radius: 12px;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    padding: 1rem 0;
    z-index: 1000;
}

.user-dropdown a {
    padding: 10px 18px;
    font-size: 1.5rem;
}

.user-dropdown a:hover {
    font-weight: bold;
    color: rgb(var(--secondary-900));
}

.user-dropdown a:hover {
    background: rgba(var(--secondary-500), var(--opacidad-barra));
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid #E5E5E5;
    margin: 8px 0;
}

.user-dropdown .admin-link {
    font-weight: bold;
}

/* Mostrar menú */
.user-dropdown.active {
    display: flex;
    font-weight: 1.3rem;
}

/* BOTÓN MENÚ MOBILE */

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: #1A1A1A;
    display: block;
}

/* RESPONSIVE HEADER  */

/* ---------- MOBILE ---------- */
@media (max-width: 767px) {

    .header {
        padding: 1.2rem 2rem;
    }

    .img-logo img {
        width: 18rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-bar {
        position: fixed;
        top: 9rem;
        left: 0;
        width: 100%;
        display: none;
        justify-content: center;
        border-radius: 0;
        padding: 2.5rem 0;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        z-index: 999;
        background: rgba(rgb(245, 245, 225));
     }

    .nav-bar ul {
        flex-direction:row;
        gap: 5rem;
        text-align: center;
        justify-content: center;
        width: 100%;  
    }

    .nav-bar.active {
        display: flex;
        background: rgba(rgb(245, 245, 225));
    }

    .nav-bar.active a:hover {
        font-weight: bold;
    }

    .icons-bar {
        padding: 0 16px;
        gap: 1.2rem;
    }
}


/* ---------- TABLET ---------- */
@media (min-width: 768px) and (max-width: 1023px) {

    .header {
        padding: 1.5rem 4rem;
    }

    .img-logo img {
        width: 22rem;
    }

    .nav-bar ul {
        gap: 1.5rem;
        
    }
}

/* ---------- DESKTOP ---------- */
@media (min-width: 1024px) {

    .menu-toggle {
        display: none;
    }
}

















/* =======================================
   BANNER + HERO
======================================= */
/* Hero general */
.hero-container {
    height: 60rem;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    padding: 4rem 8rem;
}

/* Variantes de fondo */
.hero-container.bg-default {
    background-image: url('../img/hero-home.png');
}
.hero-container.bg-productos {
    background-image: url('../img/hero-productos.jpg');
}
.hero-container.bg-producto {
    background-image: url('../img/hero-producto.jpg');
}
.hero-container.bg-login {
    background-image: url('../img/hero-sesion.jpg'); 
}
.hero-container.bg-registro {
    background-image: url('../img/hero-registro.jpg');
}
.hero-container.bg-nosotros {
    background-image: url('../img/hero-nosotros.jpg');
}
.hero-container.bg-contacto {
    background-image: url('../img/hero-contacto.png');
}


/* Layout interno */
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 1400px;
}

/* Columna izquierda */
.hero-left h1 {
    max-width: 100%;
    color: black;
}
.hero-left h4 {
    max-width: 50%;
    margin-top: 1rem;
    color: black;
}

/* Columna derecha la dejamos vacia para dar estructura) */

/* RESPONSIVE HERO */

/* --------- TABLET (768–1023px) -------- */
@media (max-width: 1023px) {

    .hero-container {
        padding: 4rem;
        height: 70vh;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-left h1 {
        font-size: 3.4rem;
        max-width: 50%;
    }

    .hero-left h4 {
        font-size: 1.7rem;
        max-width: 50%;
    }

    .hero-right {
        display: none;
    }
}

/* --------- MOBILE (0–767px) -------- */
@media (max-width: 767px) {

    .hero-container {
        padding: 3rem 2rem;
        height: auto;
        padding-top: 8rem;
        padding-bottom: 8rem;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-left h1 {
        font-size: 2.8rem;
        max-width: 50%;
    }

    .hero-left h4 {
        font-size: 1.6rem;
        max-width: 60%;
    }

    .hero-btn {
        font-size: 1.5rem;
        padding: 1rem 2rem;
    }

    .hero-right {
        display: none;
    }
}


















/* =============================================================================================================================
   FOOTER 
================================================================================================================================ */
.footer {
    background: rgb(var(--primary-600));
    color: white;
    padding: 6rem 0 3rem;
    font-size: 1.4rem;
}

.footer-container {
    width: 90%;
    max-width: 130rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 5rem;
    flex-wrap: wrap;
}
/* Columna 1 */
.footer-logo {
    width: 26rem;
    margin-bottom: 2rem;
}

.footer-desc {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}
/* Columnas de enlaces */
.footer-col h4 {
    font-family: var(--fuenteHeading);
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: .8rem;
}

.footer-col ul a:hover {
    color: white;
}

/* Columna derecha (iconos + botón) */
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
}

.footer-social {
    display: flex;
    gap: 2rem;
}

.footer-social a {
    background: rgba(255,255,255,0.1);
    padding: .9rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    transition: .3s;
}

.footer-social a:hover {
    background: rgba(255,255,255,0.25);
}

.footer-social img {
    width: 2rem;
}

/* Botón */
.footer-btn {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 3rem;
    color: white;
    transition: .3s;
    font-size: 1.4rem;
}

.footer-btn:hover {
    background: white;
    color: black;
    font-weight: bold;
}

/* LÍNEA INFERIOR */
.footer-bottom {
    width: 90%;
    max-width: 130rem;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);

    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-bottom p {
    color: rgba(255,255,255,0.7);
}


.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: .3s;
}

.footer-links a:hover {
    color: white;
}

/* RESPONSIVE FOOTER */

@media (max-width: 767px) {

    .footer-container {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-right {
        align-items: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {

    .footer-main {
        padding: 4rem 0 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr; /* Una sola columna en móvil */
        gap: 4rem;
    }

    .footer-brand-info,
    .footer-links-container,
    .footer-social-action {
        grid-column: 1 / 2;
        width: 100%;
        border-top: none !important;
        padding-top: 0 !important;
    }
    
    .footer-links-container {
        flex-direction: column; /* Apilamos las columnas de enlaces */
        gap: 2.5rem;
    }

    .footer-links-col h3 {
        margin-bottom: 0.8rem;
    }

    .footer-social-action {
        flex-direction: column; /* Apilamos iconos y botón */
        align-items: flex-start;
        gap: 2rem;
    }

    /* Línea inferior (Copyright y Privacidad) */
    .footer-legal-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        font-size: 1.4rem;
    }
    
    .privacy-links a {
        margin-left: 0;
        margin-right: 1rem;
    }

    .copyright-text {
        order: 2; /* Coloca el copyright abajo de los links legales */
    }
    .privacy-links {
        order: 1;
    }
}

























/* ========================================================================================================================
   CARRUSEL BASE con animacion en index.php
=========================================================================================================================== */
.tag-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 3rem 0;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    width: max-content; 
    animation: scroll 35s linear infinite;
    transition: none;
}

/* Definición de la animación de desplazamiento */
@keyframes scroll {
    0% { transform: translateX(0); }
    /* Mueve el 50% de la longitud total, que es la longitud original del contenido */
    100% { transform: translateX(-50%); }
}

/*    TARJETAS del carrusel */
.tag-card {
    width: 32rem;
    height: 48rem;
    border-radius: 18px;
    position: relative;
    padding: 1.2rem;
    color: rgb(var(--white));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-image: var(--bg);/* usamos la variable definida en el HTML */
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

/* Mini etiqueta arriba izquierda */
.tag-card .tag-more {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1.1rem;
    padding: .3rem .8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

/* Título h3 abajo izquierda */
.tag-card h3 {
    margin: 0;
    color: white;
}

/* RESPONSIVE CARRUSEL */

@media (max-width: 767px) {
    .carousel-track {
        gap: 1.4rem;
    }

    .tag-card {
        width: 24rem;
        height: 32rem;
    }

    .tag-card h3 {
        font-size: 1.6rem;
    }

    .tag-card .tag-more {
        font-size: 1rem;
    }
}

/* Cabecera del carrusel */
.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.4rem;
    padding-right: 1rem;
    padding-left: 3rem;
}




















/*  ============================================================================================================================
   Tarjeta tipo producto y grid de productos (usado en index.php para productos destacados y en products.php)
================================================================================================================================ */
/* GRID DE PRODUCTOS */
.product-grid {
    width: 90%;
    max-width: 1300px;
    margin: 4rem auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

/* TARJETA */
.product-card {
    display: flex;
    flex-direction: column;
    height: 50rem;
    background: white;
    padding: 2.5rem;
    border-radius: 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
    transition: .2s ease;
    height: 100%;
    
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-content {
    flex: 1;
}

.product-action {
    margin-top: auto;
}

/* FAVORITO */
.fav-btn {
    position: absolute;
    top: 1.8rem;
    right: 1.8rem;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
}
.fav-btn img {
    width: 100%;
}

/* IMAGEN */
.product-image {
    text-align: center;
    margin-bottom: 1.6rem;
}
.product-image img {
    width: 70%;
    object-fit: contain;
}

/* RATING */
.product-rating {
    font-size: 1.8rem;
    color: #b67456;
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

/* NOMBRE */
.product-name {
    font-family: var(--fuenteHeading);
    font-size: 2rem;
    margin: 0 0 .6rem;
    color: rgb(var(--primary-900));
}

/* PESO */
.product-weight {
    color: #777;
    font-size: 1.4rem;
    margin: 0 0 1.6rem;
}

/* PRECIO */
.product-price {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: rgb(var(--primary-900));
    margin-top: auto;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}








/* ======================================================================================================================
   ESTILOS ESPECÍFICOS DE CONTACTO en contacto.php
===================================================================================================================== */

/* --- Estructura Flex (Formulario + Información) --- */

.contacto-flex {
    display: flex;
    gap: 4rem;
    align-items:flex-start;
    max-width: 120rem;
    margin: 0 auto;
    align-items: flex-start;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.formulario {
    flex: 2;
    padding: 2.5rem;
    background-color: rgb(var(--primary-50));
    border-radius: 12px;
    box-shadow: 0 8px 15px rgba(var(--black), 0.08);
}

.info-adicional {
    flex: 1;
    padding: 3rem;
    background-color: rgb(var(--secondary-100));
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(var(--black), 0.05);
}

.info-adicional h3 {
    font-family: var(--fuenteHeading);
    font-size: 2.4rem;
    margin-bottom: 2rem;
    color: rgb(var(--primary-600));
    border-bottom: 2px solid rgb(var(--secondary-500));
    padding-bottom: 1rem;
}

.info-adicional p {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    color: rgb(var(--primary-700));
}

.info-adicional a {
    color: rgb(var(--secondary-700));
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.info-adicional a:hover {
    color: rgb(var(--secondary-900));
}


.cta-faq a {
    display: block;
    margin-top: 3rem;
    padding: 1.5rem;
    background-color: rgb(var(--primary-500));
    color: white;
    text-align: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.6rem;
    transition: background-color 0.3s ease;
}

.cta-faq a:hover {
    background-color: rgb(var(--primary-700));
}

/* Estilo para el campo de número de pedido condicional */
#campo-pedido {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: rgba(var(--secondary-200), 0.5);
    border-radius: 8px;
}

/* Aviso legal y checkbox */
.aviso-legal {
    margin-top: 2rem;
    font-size: 1.4rem;
    color: rgb(var(--primary-500));
    display: flex;
    align-items: center;
}

.aviso-legal input[type="checkbox"] {
    width: auto;
    margin-right: 1rem;
}

.aviso-legal a {
    color: rgb(var(--secondary-700));
    text-decoration: underline;
}



/* --- Estilos de Mensajes de Estado (Alertas PHP) --- */

.alerta {
    padding: 1.8rem;
    border-radius: 8px;
    margin: 0 auto 3rem auto;
    font-weight: 600;
    font-size: 1.6rem;
    text-align: center;
    max-width: 80rem;
    box-shadow: 0 2px 4px rgba(var(--black), 0.05);
}

.exito {
    background-color: rgba(7, 24, 43, 0.05); /* Tono primary claro */
    color: rgb(var(--primary-600));
    border: 1px solid rgb(var(--primary-500));
}

.error {
    background-color: rgba(162, 87, 52, 0.1); /* Tono secondary claro */
    color: rgb(var(--secondary-900));
    border: 1px solid rgb(var(--secondary-800));
}

.error ul {
    list-style: disc;
    padding: 0 2rem;
    margin-top: 1rem;
    text-align: left;
}


/* ---- Media Queries (Responsividad) --- */

@media (max-width: 900px) {
    .contacto-flex {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
        margin: 5rem;
    }
}

@media (max-width: 768px) {
    .contacto-flex {
        gap: 4rem;
        margin: 2.5rem;
    }

    .formulario {
        flex: auto;
        width: 100%;
        padding: 0;
    }

    fieldset {
        padding: 0 1rem;
        border: none;
    }

    .info-adicional {
        flex: auto;
        width: 100%;
        padding: 3rem;
    }
    
    .contacto-flex h1 {
        font-size: 3.2rem;
    }
    legend {
        padding: 0 1rem;
    }
}













/* ==================================================================================================================================
        CLASES ESPECIFICAS DE LA PAGINA nosotros.php
   =============================================================================================================================== */
.hero-ritual-right {
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
}

.hero-ritual-right .ritual-titulo-centrado {
    text-align: center;
    color: #333333;
    margin-bottom: 3rem;
}

.ritual-puntos-hero {
    display: flex; 
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 5rem;
    width: 100%; 
}

.ritual-item-hero {
    background: rgb(var(--secondary-100));
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #7D4F23; 
    text-align: center; 
}

@media (max-width: 768px) {
    .ritual-puntos-hero {
    flex-direction: column;
    align-items: center;
    width: auto;
    padding: 5rem;
    }

    .ritual-item-hero {
    background:rgb(var(--secondary-100));
    border: none;
    text-align: center;
    }
}








/* ===============================================================================================================================
   Estilos para la pagina de CARRITO cart.php
   ============================================================================================================================= */

/* Carrito Layout */
.container h1 {
    margin-top: 20rem;
    margin-bottom: 4rem;
}


.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2 partes lista, 1 parte resumen */
    gap: 40px;
    align-items: start;
    margin: 4rem auto;
}

/* Fila de producto */
.cart-item-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    gap: 20px;
}
.cart-img img {
    width: 200px !important; 
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}
.cart-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: flex-start;
    padding-top: 0;
}
.cart-product-name {
    font-size: 2.2rem !important;
    font-weight: 700;
    margin-bottom: 5px !important; 
    line-height: 1.1;
}

.variant-tag {
    display: block;
    font-size: 1.5rem !important;
    color: #333;
    margin-bottom: 8px !important;
    font-weight: 400;
    line-height: 1.4;
}
.cart-sku {
    font-size: 1.2rem !important;
    color: #999;
    margin-bottom: 5px !important;
    display: block;
    text-transform: uppercase;
}

.carrito-vacio {
    display: grid;
    padding: 4rem; 
    margin: 4rem auto;
    background: rgb(var(--secondary-100)); 
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    justify-content: center;
}
.carrito-vacio-content {
    display: grid;
    justify-content: center;
    width: auto; 
}


/* Acciones y Precio */
.qty-selector input {
    width: 60px;
    padding: 5px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.btn-delete {
    background:none; 
    border:none; 
    cursor:pointer;
}
.cart-total-line {
    font-weight: 800;
    font-size: 1.8rem !important;
    color: #1A1A1A;
    min-width: 100px;
    text-align: right;
}

/* Caja Resumen (Derecha) */
.cart-summary-box {
    background: rgb(var(--secondary-100));
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #eee;
}
.cart-summary-box h3 {
    margin-bottom: 20px;
    margin-top: unset;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}
.summary-row.total {
    font-weight: bold;
    font-size: 2rem;
    margin-top: 15px;
}
.iva-text {
    font-size: 1.5rem;
    color: #999;
    text-align: right;
    margin-top: -10px;
    margin-bottom: 20px;
}


/* Responsivo */
@media(max-width: 768px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-item-row { flex-wrap: wrap; }
    .mobile-hide { display: none; }
}















/* ===============================================================================================================================
   Estilos para la pagina de PRODUCTO producto.php
   ============================================================================================================================= */



/* Layout principal de dos columnas */
.product-detail-layout {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 8rem;
    align-items: center;
    padding-top: var(--header-height);
}

/* Columna izquierda - imagen de producto */
/* va vacio por si lo tenemos que usar mas adeante 
.detail-left {
}*/

/* Columna Derecha: La Tarjeta */
.detail-right-card {
    background-color: rgb(var(--secondary-100)); 
    padding: 3.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Header de la tarjeta */
.card-header { margin-bottom: 1rem; }
.reviews-placeholder {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: start;
}


.card-title {
    font-family:var(--fuenteHeading);
    margin: 0.5rem 0;
    color: #1A1A1A;
}

.card-origin {
    font: var(--fuenteTexto);
}

/* Precio */
.card-price {
    font-family: var(--fuenteTexto);
    font-size: 2.5rem;
    font-weight: 800;
    margin: 1.5rem 0;
}

.detail-image-container img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0px 20px 30px rgba(0,0,0,0.15)); 
}
.big-product-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: #1A1A1A;
    margin-top: 1rem;
   }

.star-icon { color: #C7A17A; font-size: 1.2rem; } 
.star-icon-half { color: #C7A17A; font-size: 1.2rem; }
.reviews-link {
    color: #1A1A1A;
    text-decoration: underline;
    margin-left: 5px;
}

.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.option-radio {
    display: none;
}

.option-label {
    font-family: var(--fuenteTexto);
    padding: 10px 15px;
    cursor: pointer;
    background:rgb(var(--secondary-100));
    border: 0.4px solid #838383;
    border-radius: 1.2rem;
    white-space: nowrap;
}
.option-label:hover {
    color: rgb(var(--secondary-800));
}
/* Estilo cuando el radio asociado está checkeado */
.option-radio:checked + .option-label {
    background-color:rgb(var(--secondary-500)); 
    color: #FFF; 
    border:none;
}
/* Info de Stock */
.stock-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem; 
    margin: 1.2rem 0;
    font-weight: 600;
}
.stock-dot {
    width: 1rem;
    height: 1rem;
    background-color: #00cf56; 
    border-radius: 50%;
}

/* --- Fila de Acciones (Cantidad + Botón) --- */
.card-actions-row {
    display: flex;
    gap: 15px;
}

/* Widget de Cantidad (- 1 +) */
.quantity-selector-widget {
    display: flex;
    align-items: center;
    border: 1.5px solid #636363;
    border-radius: 30px;
    background: transparent;
    flex-shrink: 0;
    max-width: 200px;
    justify-content: space-around;
}
.qty-btn {
    background: none;
    border: none;
    font-size: 2.5rem;
    padding: 5px 12px;
    cursor: pointer;
}
.quantity-selector-widget input {
    width: 35px;
    height: 40px;
    text-align: center;
    border-radius: 4px;
    border: none;
    background: white;
    font-weight: 700;
    font-size: 1.4rem;
    
}
.quantity-selector-widget input::-webkit-outer-spin-button,
.quantity-selector-widget input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}



/* Responsividad */
@media (max-width: 900px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .detail-image-container img {
        max-width: 60%;
    }
    .big-product-title {
        font-size: 2.5rem;
    }
    .card-actions-row {
        max-width: 420px;
        gap: 15px;
    }
    .quantity-selector-widget {
        justify-content: center;
    }
    .btn-add-to-cart-dark {
        padding: 15px;
    }
}


/* ===================================================================================================
   MODAL (POP-UP) despues de hacer click en añadir al carrito
=================================================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fondo oscuro semitransparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 60rem;
    max-height: 80vh;
    padding: 3rem;
    border-radius: 0.8rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative;
    overflow-y: auto; /* Scroll si el texto es largo */
    font-family: var(--fuenteTexto);
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #555;
    line-height: 1;
}

.modal-title {
    font-family: var(--fuenteHeading);
    font-size: 2.4rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.modal-body {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #444;
}











/* ===============================================================================================================
   CHECKOUT
===================================================================================================================== */
.checkout-form-section {
    margin-bottom: 3rem;
}
.checkout-heading {
    font-family: var(--fuenteHeading);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.checkout-login-link {
    font-size: 1.4rem;
    color: #00BFA5;
    text-decoration: none;
    font-family: var(--fuenteTexto);
}

/* Grid de campos */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #555;
}
.form-group input, 
.form-group select {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1.5rem;
    font-family: var(--fuenteTexto);
}

/* Radio buttons de pago como tarjetas */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.payment-option {
    border: 1px solid #ddd;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    transition: 0.2s;
}
.payment-option:hover {
    border-color: #333;
}
.payment-option input[type="radio"] {
    width: 2rem;
    height: 2rem;
    accent-color: #111;
}
.payment-label {
    font-size: 1.6rem;
    font-weight: 600;
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.payment-icons i {
    font-size: 2rem;
    margin-left: 10px;
    color: #555;
}

/* ===============================================================================================================================
   ENLACES LEGALES (CHECKOUT FOOTER)
=================================================================================================================================== */
.checkout-legal-links {
    margin-top: 4rem;
    padding-bottom: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgb(var(--secondary-200));
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: flex-start; 
}

.legal-link {
    color: rgb(var(--secondary-700)); 
    text-decoration: underline;
    font-size: 1.3rem;
    cursor: pointer;
    font-family: var(--fuenteTexto);
    background: none;
    border: none;
    padding: 0;
}

.legal-link:hover {
    color: rgb(var(--secondary-900));
    font-weight: bold;
}

/* =============================================================================================================
   MODAL (POP-UP) Ver cesta o seguir comprando
=============================================================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fondo oscuro semitransparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative;
    overflow-y: auto;
    font-family: var(--fuenteTexto);
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #555;
    line-height: 1;
}

.modal-title {
    font-family: var(--fuenteHeading);
    font-size: 2.4rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.modal-body {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #444;
}








/* ==========================================================================================================================================
   PÁGINA SUCCESS (CONFIRMACIÓN/RESUMEN) archivo success.php
===================================================================================================================================== */

/* Títulos principales */
.success-header {
    display: flex;
    flex-direction: column;
}
.success-title {
    font-family: var(--fuenteHeading);
    margin: auto;
}
.success-subtitle {
    font-family: var(--fuenteTexto);
    font-size: 2rem;
    font-weight: 500;
}

/* Layout General: Grid de 2 columnas (Izquierda grande, Derecha pequeña) */
.success-layout {
    display: grid;
    grid-template-columns: 1.6fr 0.8fr; /* La izquierda ocupa más */
    gap: 3rem;
    align-items: start;
    margin-bottom: 4rem;
}

/* Estilos comunes para las tarjetas beige */
.success-card {
    background-color: rgb(var(--secondary-100));
    border-radius: 12px;
    padding: 4rem;
}

/* --- TARJETA IZQUIERDA (Detalles) --- */

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas internas */
    gap: 4rem;
}

.detail-group {
    margin-bottom: 3rem;
}

.detail-group h3 {
    font-family: var(--fuenteTexto);
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.detail-group p {
    font-family: var(--fuenteTexto);
    font-size: 1.5rem;
    line-height: 1.6;
    margin: 0;
}

/* --- TARJETA DERECHA (Resumen Totales) --- */
.summary-title {
    font-family: var(--fuenteTexto);
    font-weight: bold;
    margin-bottom: 5rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.divider {
    border: 0;
    border-top: 1px solid rgb(var(--secondary-700));
    margin: 2rem 0;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-weight: bold;
    font-size: 2rem;
}

.iva-note {
    font-size: 1.2rem;
    color: #646464;
    font-weight: 400;
    display: block;
}

/* Responsivo para móviles */
@media (max-width: 900px) {
    .success-layout {
        grid-template-columns: 1fr;
    }
    .details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .success-card {
        padding: 2rem;
    }
}








/* =======================================
    ESTILOS ESPECÍFICOS PAGINA LOGIN
======================================= */

/* --- Columna Derecha: Centrado y Estilos Generales --- */

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* --- La Caja del Formulario (El Panel Transparente) --- */
.login-box {
    background-color: rgb(var(--secondary-100)); 
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(var(--black), 0.15); 
    padding: 2rem;
    max-width: 36rem;
    width: 100%;
    color: rgb(var(--primary-900)); 
}

/* Título "Acceso" */
.login-title {
    text-align: center;
}

/* --- Inputs y Grupos --- */

.input-group {
    margin-bottom: 1rem;
    position: relative;
}

.input1:focus {
    border-color: rgb(var(--primary-500));
    outline: none;
    box-shadow: 0 0 5px rgba(var(--primary-500), 0.3);
}

/* --- Campo de Contraseña y Toggle --- */
.password-field {
    position: relative;
}

.toggle-password {
    /* Posicionamiento */
    position: absolute;
    right: 0rem; 
    top: 72%; 
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}


.toggle-password [data-lucide] {
    position: absolute;
    right: 1.5rem;
    top: 50%; 
    transform: translateY(-50%);
    display: flex;
    align-items: center; 
    justify-content: center;
}


/* --- Enlaces y Botones --- */

.forgot-link {
    text-align: right;
    margin-bottom: 3rem;
}
.forgot-link a {
    font-size: 1.4rem;
    color: rgb(var(--secondary-900));
    transition: color 0.3s;
}
.forgot-link a:hover {
    color: rgb(var(--secondary-900));
    font-weight: bold;
}

.arrow-icon {
    margin-left: 1rem;
    font-size: 2rem;
    line-height: 1;
}

/* Enlace de Registro */
.register-prompt {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 1.4rem;
    color: rgb(var(--primary-700));
}

.register-prompt a {
    color: rgb(var(--secondary-900));
    font-weight: 600;
    transition: color 0.3s;
}
.register-prompt a:hover {
    color: rgb(var(--secondary-900));
    font-weight: bold;
}

/* --- Mensajes de Alerta --- */
.alert.error {
    background-color: rgba(var(--secondary-100), 0.8); 
    color: rgb(var(--secondary-800));
    border: 1px solid rgb(var(--secondary-400));
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.alert.error i[data-lucide] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    min-width: 20px;
    color: rgb(var(--secondary-900));
}







/* =========================================
   NUEVO HERO SIMPLE: SOLUCIÓN AL CONFLICTO DEL HEADER
   ========================================= */

.header-hero-simple {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative; 
    overflow: hidden;
}

/* Aplicar la imagen de fondo solo a la clase específica */
.header-hero-simple.bg-nosotros {
    height: 65rem;     
}

/* Capa Blanca Semitransparente (::before) */
.header-hero-simple.bg-nosotros::before {
    content: ''; 
    position: absolute; 
    top: 0; right: 0; bottom: 0; left: 0; 
    z-index: 2;
    background-color: rgba(255, 255, 255, 1); 
    opacity: 0.4; 
}

/* Estilos para el texto centrado */
.header-hero-simple .hero-texto-centrado {
    position: relative; 
    z-index: 3;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: 10px;
    max-width: 80rem;
    display: flex; 
    flex-direction: column;
    justify-content: center;
    align-items: center; 
    height: 100%; 
    text-align: center;
}

.header-hero-simple p {
    font-size: 2rem;
    color: #111111;
    max-width: 60rem;
}



/* ============================================================================================================================
   FONDO SOSTENIBILIDAD (Nuevo)
============================================================================================================================== */

/* 1. Imagen de fondo */
.header-hero-simple.bg-sostenibilidad {
    background-image: url('../img/hero-sostenibilidad.png'); 
    height: 65rem; /* Misma altura que nosotros.php */
}

/* 2. Capa semitransparente (Overlay) para que se lea el texto */
.header-hero-simple.bg-sostenibilidad::before {
    content: ''; 
    position: absolute; 
    top: 0; right: 0; bottom: 0; left: 0; 
    z-index: 2;
    background-color: rgba(255, 255, 255, 1); 
    opacity: 0.3; 
}

/* ============================================================================================================================
   FONDO ELABORACIÓN
============================================================================================================================== */

.header-hero-simple.bg-elaboracion {
    background-image: url('../img/tarjeta2.jpg'); 
    height: 65rem;
}

/* Capa oscura/clara para leer el texto  */
.header-hero-simple.bg-elaboracion::before {
    content: ''; 
    position: absolute; 
    top: 0; right: 0; bottom: 0; left: 0; 
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.3); 
}

/* ==============================================================================================================================
   FONDO INFORMACIÓN / AYUDA
======================================= =========================================================================================*/

.header-hero-simple.bg-info {
    background-image: url('../img/hero-info.png'); 
    height: 60rem;
}

/* ============================================================================================================================
   ESTILOS DE LA LLAMADA A LA ACCIÓN
   =============================================================================================================================== */

.llamada-a-la-accion {
    /* 1. Posicionamiento y Centrado */
    display: flex;
    flex-direction: column; 
    align-items: center;
    text-align: center;
    margin: 5rem auto;
    
    /* 2. Estilo de Caja */
    background-color: #FFFFFF;
    padding: 4rem 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    
    /* 3. Limitar Ancho */
    max-width: 80rem;
}

.llamada-a-la-accion p {
    font-size: 2.2rem;
    font-weight: 500;
    color: #333333;
    margin-bottom: 2rem;
}

/* 4. Estilo del Botón */
.llamada-a-la-accion .boton-primario {
    background-color: #7D4F23;
    color: #FFFFFF;
    text-transform: uppercase;
    padding: 1.5rem 3rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.llamada-a-la-accion .boton-primario:hover {
    background-color: #A36B3B;
}







/* ===============================================================================================================================
   PERFIL DE USUARIO
================================================================================================================================ */
.profile-container {
    margin-top: 4rem;
    margin-bottom: 6rem;
    width: 100%;
}

.profile-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.profile-layout-admin {
    display: flex;
    align-items: flex-start;
    gap: 25px; /* Espacio fijo entre sidebar y contenido */
    width: 100%;
}

.profile-menu {
    display: grid;
    margin-top: 2rem;
    gap: 1rem;

}

/* Sidebar (Menú lateral) */
.profile-sidebar {
    background: rgb(var(--secondary-100));
    padding: 2rem;
    border-radius: 12px;
    position: sticky;
    top: 2rem;
    width: 25rem;
}

.profile-menu-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.2rem;
    font-family: var(--fuenteTexto);
    font-size: 1.6rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
}

.profile-menu-btn:hover {
    background: rgb(var(--secondary-600));
    color: white;
}

.profile-menu-btn.active {
    background: rgb(var(--secondary-600));
    color: white;
    font-weight: 600;
}

.btn-logout {
    color: #c62828;
    margin-top: 2rem;
    border-top: 1px solid #ddd;
    padding-top: 2rem;
}
.btn-logout:hover {
    background: #ffebee;
    color: #c62828;
}

/* Contenido Principal */
.profile-content {
    flex: 1;
    min-width: 0;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.profile-content-section {
    width: 100%;
    display: none;
}

.profile-content-section.active {
    display: block;
}

.section-title {
    font-family: var(--fuenteHeading);
    font-size: 2.8rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #811313;
}

/* Tarjetas de Direcciones */
.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.address-card {
    border: 1px solid #eee;
    padding: 2rem;
    border-radius: 8px;
    position: relative;
    transition: 0.2s;
    background: white;
}
.address-card.default {
    border: 2px solid #1A1A1A;
    background: #FAF7F2;
}

.badge-default {
    background: #1A1A1A;
    color: white;
    font-size: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.address-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 1rem;
}

/* Tabla de Pedidos */
.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.5rem;
}
.orders-table th {
    text-align: left;
    padding: 1.5rem;
    background: rgb(var(--secondary-100));
    font-weight: 600;
}
.orders-table td {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}
.order-status {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
}
.status-pagado { background: #e8f5e9; color: #2e7d32; }
.status-pendiente { background: #fff3e0; color: #ef6c00; }
.status-cancelado { background: #ffebee; color: #c62828; }

/* Responsive */
@media (max-width: 768px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
    .profile-sidebar {
        position: static;
        display: grid;
        overflow-x: auto;
        padding: 1rem;
        gap: 1rem;
        width: 100%;
    }
    .profile-menu-btn {
        width: auto;
        white-space: nowrap;
    }
    .profile-layout-admin {
        display: flex;
        flex-direction: column;
    }
}





/* --- TARJETA DE PRODUCTO: DISEÑO FULL IMAGEN --- */

/* 1. Ajuste de la Tarjeta Base */
.product-card {
    height: auto; 
    min-height: 52rem;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

/* 2. Contenedor de la Imagen */
.product-image {
    margin-top: -2.5rem;
    margin-left: -2.5rem;
    margin-right: -2.5rem;
    margin-bottom: 2rem;
    display: block;
    width: calc(100% + 5rem);
}

/* 3. La Imagen */
.product-image img {
    width: 100%;
    height: 330px;      
    display: block;
    transition: transform 0.5s ease;
}

/* Efecto Zoom al pasar el ratón por la tarjeta */
.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* 4. Corazon de lista de deseos */
.fav-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.fav-btn img {
    width: 20px;
    height: auto;
}

.fav-btn:hover {
    background: white;
    transform: scale(1.1);
}

/* ================================================================================================================================
   PAGINACIÓN (NUEVOS ESTILOS)
=================================================================================================================================== */

/* 1. Contenedor principal que usa Flexbox para distribuir IZQUIERDA vs DERECHA */
.pagination-flex {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    width: 90%; 
    max-width: 1300px;
    padding: 0; 
}

/* 2. Contenedor de la derecha */
.pagination-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 3. Estilo base de los botones */
.pagination .page-btn {
    display: inline-flex;
    align-items: center; 
    gap: 5px; 
    padding: 10px 18px;
    border: 1px solid #ccc; 
    border-radius: 40px;
    margin: 0;
    color: rgb(var(--primary-700));
    font-size: 1.6rem;
    transition: background-color 0.2s, color 0.2s;
    font-weight: 500;
}

/* 4. Estilo de la página activa */
.pagination .page-btn.active {
    background-color: rgb(var(--primary-900));
    color: white;
    border-color: rgb(var(--primary-900));
    font-weight: 700;
}

/* 5. Estilo de hover para todos los botones, excepto el activo */
.pagination .page-btn:hover:not(.active) {
    background-color: rgba(var(--primary-900), 0.1);
    border-color: rgba(var(--primary-900), 0.3);
}

/* 6. Estilo específico para los botones de navegación */
.pagination .page-btn.page-nav {
    border-color: rgb(var(--primary-400));
    font-weight: 600;
}
/* --- ESTILOS DEL MODAL --- */
.cart-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%; 
    max-width: 600px; 
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.close-modal {
    position: absolute;    
    right: 20px; 
    top: 15px;
    background: none;
    border: none; 
    font-size: 2rem; 
    cursor: pointer;
}



.product-preview {
    display: flex; 
    align-items: center; 
    gap: 25px; 
    margin-bottom: 30px;
    padding: 20px; 
    border: 1px solid #eee; 
    border-radius: 15px;
}

.product-preview img { 
    width: 150px;
    height: auto; 
    border-radius: 12px;
    object-fit: contain; 
    background-color: #f9f9f9; 
    padding: 5px; 
    flex-shrink: 0; 
}


.product-info {
    display: flex;
    flex-direction: column;
    flex: 1; 
    min-width: 0; 
}

.product-info h4 { 
    margin: 0; 
    font-size: 2rem; 
    font-weight: 800;
    line-height: 1.1;
    overflow: hidden;
}

.product-info p { 
    margin: 8px 0; 
    color: #666; 
    font-size: 1.5rem; 
    line-height: 1.4;
    word-wrap: break-word;
}

.modal-price {
    font-size: 2.2rem !important; 
    font-weight: 800 !important;
    color: #1A1A1A !important;
    margin-top: 15px;
    letter-spacing: -1px;
}

.modal-actions { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    margin-top: 10px; 
}
.btn-primary, .btn-secondary { 
    display: block; 
    text-align: center; 
    padding: 1.2rem; 
    border-radius: 35px; 
    text-decoration: none; 
    font-weight: 700;
    font-size: 1.5rem; 
    transition: all 0.2s ease;
}

.btn-primary { 
    background: #1A1A1A; 
    color: white; 
    border: 1px solid #1A1A1A;
}

.btn-secondary { 
    background: white; 
    color: #1A1A1A;
    border: 1px solid #DDD;
}
.btn-secondary:hover {
    border-color: #1A1A1A;
    background-color: #f9f9f9;
}

.modal {
    display:none; 
    position:fixed; 
    z-index:1000; 
    left:0; top:0; 
    width:100%; 
    height:100%; 
    background:rgba(0,0,0,0.5);
}

.modal-content {
    background:#fff; 
    margin:5% auto; 
    padding:20px; 
    width:400px; 
    border-radius:8px; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.alert {
    padding: 15px;
    margin: 10px 0 20px 0;
    border-radius: 5px;
    font-size: 1.5rem;
    font-weight: 500;
    border: 1px solid transparent;
}

/* Color para éxito (Verde) */
.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Color para error (Rojo) */
.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}






/*============================================================================================================
   ADMIN PANEL RESPONSIVE

=============================================================================================================*/


/* Contenedor de filtros flexible */

.filter-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
    align-items: center
}


@media (max-width: 768px) {
    .filter-bar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .filter-bar {
        padding: 1.5rem;
        margin: 1rem auto;
    }
}


@media (max-width: 768px) {
    .orders-table thead {
        display: none;
    }

    .orders-table, 
    .orders-table tbody, 
    .orders-table tr, 
    .orders-table td {
        display: block;
        width: 100%;
    }

    
    .orders-table tr {
        margin-bottom: 15px;
        border: 1px solid rgb(var(--secondary-400));
        border-radius: 8px;
        padding: 10px;
        background: rgb(var(--secondary-100));
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .orders-table td {
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid #eee;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Uso de etiquetas con el data-label */
    .orders-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        text-align: left;
        font-weight: bold;
        color: var(--primary-500);
    }

    .orders-table td:last-child {
        display: inline-block; 
        border-bottom: 0;
        justify-content: center;
        background: #f9f9f9;
    }
}

.orders-table img {
    display: block;
    margin: 0 auto;
    border: 1px solid #ddd;
}

td img {
    max-width: 15rem; 
    object-fit: cover; 
    border-radius: 4px;
}

/* Ajuste de la imagen en movil */
@media (max-width: 768px) {
    .orders-table td[data-label="Imagen"] {
        justify-content: center;
        display: flex;
    }
}

.sin-imagen {
    width: 15rem;
    height: 15rem;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 1.5rem;
    color: #7d7d7d;
    margin: 0 auto;
}

/* ================================================================================================================================
   MODAL DE BÚSQUEDA (SEARCH POP-UP) 
================================================================================================================================= */
.search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding-top: 5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.search-modal-content {
    background: white;
    width: 60rem;
    max-width: 90%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Cabecera del input */
.search-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

#searchInput {
    flex: 1;
    border: none;
    font-size: 1.8rem;
    padding: 1rem;
    font-family: var(--fuenteTexto);
    outline: none;
}

.close-search {
    background: none;
    border: none;
    font-size: 3rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

/* Lista de Sugerencias */
.search-suggestions {
    max-height: 60vh;
    overflow-y: auto;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-bottom: 1px solid #f9f9f9;
    transition: background 0.2s;
}

.search-item:hover {
    background: #f0f0f0;
}

.search-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 1.5rem;
    border-radius: 4px;
}

.search-item span {
    font-size: 1.6rem;
    color: #333;
    font-weight: 500;
}

.search-no-results {
    padding: 2rem;
    text-align: center;
    color: #777;
    font-size: 1.4rem;
}

/* --- MÓVIL: OCUPAR TODO EL ANCHO --- */
@media (max-width: 768px) {
    .search-modal-overlay {
        padding-top: 0;
        background: white;
    }
    
    .search-modal-content {
        width: 100%;
        max-width: 100%;
        height: 100%;
        border-radius: 0;
        box-shadow: none;
        display: flex;
        flex-direction: column;
    }

    .search-suggestions {
        flex: 1;
    }
}







/* ===========================================================================================================================

Contenedor que flota en la esquina de la pantalla 

================================================================================================================================*/


#ai-chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px; 
    z-index: 9999;
    font-family: var(--fuenteTexto)
    
}

/* Caja del chat */
.chat-content {
    display: none;
    width: 380px; 
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    background: white;
    border: 1px solid #ddd;
}

/* Encabezado de la caja */
.chat-header {
    background: #6F4E37;
    color: white;
    padding: 15px;
    font-weight: bold;
    font-size: 18px;
}

/* Ventana de conversación */
.chat-window {
    height: 350px;
    background: #f9f9f9;
    padding: 20px;
    overflow-y: auto;
    font-size: 16px;
    line-height: 1.6;
}

/* Área inferior de escritura */
.chat-input-area {
    display: flex;
    background: white;
    border-top: 1px solid #eee;
}

.chat-input-area input {
    flex: 1;
    border: none;
    padding: 15px;
    outline: none;
    font-size: 16px;
}

.chat-input-area button {
    background: #6F4E37;
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.chat-input-area button:hover {
    background: #5a3e2b;
}

/* Botón flotante para abrir el chat */
.button-container {
    display: flex;
    justify-content: flex-end;
    width: auto;               
}

.chat-toggle-button {
    width: 60px;
    height: 60px;
    background-color: #6F4E37;
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    padding: 2px; 
}

.chat-toggle-button img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.chat-toggle-button:hover {
    transform: scale(1.1);
}

#ai-chat-container {
    width: auto; 
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

@media screen and (max-width: 480px) {
    #ai-chat-container {
        width: auto;
        right: 5%;
    }
    .chat-content {
    width: 85vw;
    max-width: 350px;
    }

    .chat-toggle-button {
        width: 35px;
        height: 35px;
    }

    .chat-window {
        height: 250px;
        font-size: 14px;
    }

    .chat-header {
        font-size: 15px;
        padding: 10px;
    }
}


@media screen and (min-width: 481px) and (max-width: 768px) {
    #ai-chat-container {
        width: auto;  
    }

    .chat-toggle-button {
        width: 55px;
        height: 55px;
    }
}

@media screen and (min-width: 769px) {
    .chat-content {
        width: 380px;
    }
    #ai-chat-container {
        width: auto; 
    }
}
