/* ESTILOS PERSONALIZADOS - Modifica estos para adaptar la plantilla */

/* Aplica la fuente Inter a todo el texto de la web. sans-serif es fuente de respaldo si Inter no carga.*/
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg-light);
}


h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
}

/* Colores del tema - PERSONALIZAR AQUÍ */
:root {
    /* Colores principales */
    --color-primary: #2C1810;
    /* Marrón oscuro - botones, títulos */
    --color-secondary: #B8935C;
    /* Dorado - acentos, hover */
    --color-accent: #8B6F47;
    /* Marrón medio - elementos secundarios */

    /* Fondos */
    --color-bg-cream: #F5E6D3;
    /* Beige claro - secciones alternas */
    --color-bg-light: #FDF8F3;
    /* Crema muy claro - fondos suaves */
    --color-white: #FFFFFF;
    /* Blanco puro */

    /* Textos */
    --color-text-dark: #2C1810;
    /* Texto principal */
    --color-text-medium: #5C4A3A;
    /* Texto secundario */
    --color-text-light: #8B7355;
    /* Texto terciario */

    /* Estados */
    --color-hover: #3D2817;
    /* Hover más oscuro */
    --color-success: #6B8E23;
    /* Verde oliva - éxito */
    --color-error: #8B4513;
    /* Marrón rojizo - error */
}


/* Secciones con fondo alterno */
.seccion-alterna {
    background-color: var(--color-bg-cream);
    /* Beige del logo */
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.seccion-blanca {
    background-color: var(--color-bg-light);
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.bg-primary {
    background-color: var(--color-primary);
}

.text-primary {
    color: var(--color-primary);
}

.text-light-on-dark {
    color: #E5E7EB;
    /* Gris muy claro para fondos oscuros */
}

.bg-secondary {
    background-color: var(--color-secondary);
}

/* Animaciones suaves */
.smooth-hover {
    transition: all 0.3s ease;
}

.smooth-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Hero con overlay */
.hero-overlay {
    background: linear-gradient(rgba(44, 24, 16, 0.6), rgba(44, 24, 16, 0.6));
}


/*
        ----------------------------------
        Personalizando Titulos y subtitulos secciones productos:
        ----------------------------------
        */

.navbar-titulo {
    font-family: 'Playfair Display', serif;
}

.titulo-seccion {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-align: center;
}

@media (max-width: 768px) {
    .titulo-seccion {
        font-size: 2rem;
    }
}

.subtitulo-seccion {
    font-size: 1.25rem;
    color: var(--color-text-medium);
    text-align: center;
    max-width: 42rem;
    margin: 0 auto;
}



/*
        ----------------------------------
        Personalizando tarjetas productos:
        ----------------------------------
        */


.tarjeta-producto {
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(139, 69, 19, 0.15);
    transition: all 0.3s ease;
    overflow: hidden;
}

.tarjeta-producto:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(44, 24, 16, 0.25);
}

.precio-producto {
    color: var(--color-primary);
    font-size: 1.875rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

/* Selector de peso */
.selector-opciones {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    background-color: white;
    color: var(--color-text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238B4513' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.selector-opciones:hover {
    border-color: var(--color-primary);
}

.label-selector {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9CA3AF;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

/* Contenedor precio y botón */
.precio-accion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Botón añadir */
.btn-anadir {
    background-color: var(--color-primary);
    color: white;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-anadir:hover {
    background-color: var(--color-text-dark);
    transform: translateY(-2px);
}

.btn-anadir:active {
    transform: translateY(0);
}

/* Badge contador (para mostrar items añadidos) */
.badge-contador {
    position: fixed;
    top: 90px;
    right: 20px;
    background: var(--color-secondary);
    color: var(--color-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    display: none;
}

.badge-contador.visible {
    display: block;
    animation: aparecer 0.3s ease;
}

/* Botones de membresía */
.btn-membresia-plata {
    background-color: #9CA3AF;
    /* Gris plata */
    color: white;
}

.btn-membresia-plata:hover {
    background-color: #6B7280;
    /* Gris más oscuro */
}

.btn-membresia-oro {
    background-color: var(--color-secondary);
    /* Dorado */
    color: var(--color-text-dark);
}

.btn-membresia-oro:hover {
    background-color: var(--color-accent);
    /* Dorado más oscuro */
}

.btn-membresia-black {
    background-color: var(--color-text-dark);
    /* Marrón oscuro */
    color: white;
}

.btn-membresia-black:hover {
    background-color: var(--color-hover);
    /* Aún más oscuro */
}

.text-secondary {
    color: var(--color-text-medium);
}

.text-tertiary {
    color: var(--color-text-light);
}

@keyframes aparecer {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}