/* ==========================================================================
   STYLE.CSS - Sistema de Diseño Premium (Gran Pastelería Multiproductos)
   ========================================================================== */

/* Importación de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Variables de Diseño (Sistema de Tokens) */
:root {
    /* Colores Claros (Extraídos del Logo) */
    --clr-primary: #5c1d18;         /* Vino/Marrón oscuro del logo */
    --clr-primary-hover: #451310;
    --clr-primary-light: #f7ede2;   /* Crema muy suave de fondo secundario */
    --clr-secondary: #e5b63e;       /* Dorado de la corona del logo */
    --clr-accent: #c31e24;          /* Rojo vibrante de "G R A N" */
    --clr-bg-page: #faf4eb;         /* COLOR DE FONDO DE LA WEB (El crema del logo) */
    --clr-bg-card: #ffffff;
    --clr-bg-footer: #210a08;       /* Ultra dark maroon/brown */
    --clr-border: #ebdcd0;
    --clr-text-title: #2d0e0c;      /* Vino ultra oscuro para títulos */
    --clr-text-body: #4e3633;       /* Marrón grisáceo para mejor legibilidad */
    --clr-text-muted: #826e6a;
    --clr-white: #ffffff;
    --clr-shadow-sm: 0 2px 10px rgba(38, 28, 20, 0.04);
    --clr-shadow-md: 0 10px 30px rgba(38, 28, 20, 0.08);
    --clr-shadow-lg: 0 20px 50px rgba(38, 28, 20, 0.12);
    --clr-overlay: rgba(33, 10, 8, 0.6);
    --clr-glass-bg: rgba(250, 244, 235, 0.85);
    --clr-glass-border: rgba(92, 29, 24, 0.1);

    /* Fuentes */
    --font-heading: 'Playfair Display', serif;
    --font-subheading: 'Jost', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    /* Bordes y Transiciones */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 30px;
    --radius-full: 999px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    
    /* Layout */
    --container-max: 1200px;
    --header-height: 90px;
}

/* Modificadores de Tema Oscuro */
body.dark-mode {
    --clr-bg-page: #120908;
    --clr-bg-card: #1c0e0c;
    --clr-border: #2e1816;
    --clr-text-title: #f2e6e4;
    --clr-text-body: #d2c1be;
    --clr-text-muted: #9e8481;
    --clr-primary-light: #2c100c;
    --clr-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.2);
    --clr-shadow-md: 0 10px 30px rgba(0, 0, 0, 0.3);
    --clr-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.4);
    --clr-glass-bg: rgba(28, 14, 12, 0.85);
    --clr-glass-border: rgba(92, 29, 24, 0.2);
}

/* Estilos de Reset de Caja */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg-page);
    color: var(--clr-text-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Utilidades de Diseño */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--clr-text-title);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    box-shadow: 0 4px 15px rgba(92, 29, 24, 0.25);
}

.btn-primary:hover {
    background-color: var(--clr-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(92, 29, 24, 0.35);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--clr-primary);
    color: var(--clr-primary);
}

.btn-secondary:hover {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    transform: translateY(-2px);
}

.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    color: var(--clr-text-title);
    box-shadow: var(--clr-shadow-sm);
}

.btn-icon:hover {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    border-color: var(--clr-primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   HEADER & NAVBAR (Glassmorphism & Sticky)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 100;
    transition: var(--transition-smooth);
    background: transparent;
}

.header.scrolled {
    height: 75px;
    background: var(--clr-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--clr-shadow-sm);
    border-bottom: 1px solid var(--clr-glass-border);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

/* Logo Image Styling */
.logo-img {
    height: 65px;
    width: auto;
    transition: var(--transition-smooth);
}

.header.scrolled .logo-img {
    height: 55px;
}

/* No mix-blend-mode needed - logo PNG is now transparent */
body.dark-mode .logo-img {
    /* keep visible on dark backgrounds */
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-link {
    font-family: var(--font-subheading);
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);  /* Blanco por defecto (header transparente) */
    position: relative;
    padding: 6px 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Cuando el header hace scroll y tiene fondo glass, los links se vuelven oscuros */
.header.scrolled .nav-link {
    color: var(--clr-text-title);
    text-shadow: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2.5px;
    background-color: var(--clr-secondary); /* Dorado de acento en links */
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: var(--clr-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-toggle {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--clr-accent); /* Color rojo de G R A N para notificaciones */
    color: var(--clr-white);
    font-size: 0.75rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popScale 0.3s ease;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.9); /* Blanco por defecto */
    border-radius: 3px;
    transition: var(--transition-fast);
}

.header.scrolled .hamburger span {
    background-color: var(--clr-text-title); /* Oscuro cuando scrolled */
}

/* Botones de icono (dark/carrito) visibles sobre fondo transparente */
.header:not(.scrolled) .btn-icon {
    background-color: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    color: #ffffff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* ==========================================================================
   HERO BANNER & SLIDER
   ========================================================================== */
.hero {
    height: 95vh;
    min-height: 600px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(33, 10, 8, 0.8) 0%, rgba(33, 10, 8, 0.45) 50%, rgba(33, 10, 8, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--clr-white);
    max-width: 750px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-subtitle {
    font-family: var(--font-subheading);
    font-size: 1.25rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--clr-secondary); /* Dorado en subtítulos */
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.15;
    color: var(--clr-white);
    margin-bottom: 24px;
    font-weight: 700;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero-description {
    font-size: 1.15rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Botones dentro del Hero: visibles sobre fondo oscuro */
.hero .btn-primary {
    background-color: var(--clr-primary);
    color: #fff;
    border: 2px solid var(--clr-primary);
}

.hero .btn-secondary {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #ffffff;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   CATEGORIES SECTION
   ========================================================================== */
.categories-sec {
    padding: 80px 0 40px 0;
    position: relative;
}

.sec-header {
    text-align: center;
    margin-bottom: 50px;
}

.sec-subtitle {
    font-family: var(--font-subheading);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    color: var(--clr-primary);
    font-weight: 700;
    margin-bottom: 8px;
}

.sec-title {
    font-size: 2.6rem;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.sec-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--clr-secondary); /* Dorado para el subrayado elegante */
    border-radius: var(--radius-full);
}

.category-slider {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.category-card {
    background-color: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    padding: 24px 30px;
    border-radius: var(--radius-md);
    text-align: center;
    min-width: 160px;
    cursor: pointer;
    box-shadow: var(--clr-shadow-sm);
    transition: var(--transition-smooth);
}

.category-card i {
    font-size: 2rem;
    color: var(--clr-primary);
    margin-bottom: 16px;
    transition: var(--transition-fast);
}

.category-name {
    font-family: var(--font-subheading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--clr-text-title);
}

.category-card:hover,
.category-card.active {
    background-color: var(--clr-primary);
    border-color: var(--clr-primary);
    transform: translateY(-5px);
    box-shadow: var(--clr-shadow-md);
}

.category-card:hover i,
.category-card.active i {
    color: var(--clr-secondary); /* Icono dorado cuando está activo */
    transform: scale(1.1);
}

.category-card:hover .category-name,
.category-card.active .category-name {
    color: var(--clr-white);
}

/* ==========================================================================
   CATALOG / PRODUCT LIST
   ========================================================================== */
.catalog-sec {
    padding: 40px 0 80px 0;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 20px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border-radius: var(--radius-full);
    border: 1px solid var(--clr-border);
    background-color: var(--clr-bg-card);
    color: var(--clr-text-body);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    box-shadow: var(--clr-shadow-sm);
}

.search-box input:focus {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px var(--clr-primary-light);
    outline: none;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--clr-text-muted);
    font-size: 1.1rem;
}

.filter-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag-btn {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--clr-border);
    background-color: var(--clr-bg-card);
    color: var(--clr-text-body);
}

.tag-btn.active,
.tag-btn:hover {
    background-color: var(--clr-primary-light);
    color: var(--clr-primary);
    border-color: var(--clr-primary);
}

/* Catálogo Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Efecto Skeleton Loading */
.skeleton-card {
    height: 400px;
    background: linear-gradient(90deg, var(--clr-border) 25%, var(--clr-bg-page) 50%, var(--clr-border) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Ficha de Producto */
.product-card {
    background-color: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--clr-shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--clr-shadow-lg);
}

.product-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 100%;
    transition: var(--transition-smooth);
}

.product-card:hover img {
    transform: scale(1.08);
}

.product-badge-list {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.product-badge {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.product-badge.nuevo { background-color: #2ec4b6; }
.product-badge.peruano { background-color: var(--clr-accent); }
.product-badge.saludable { background-color: #2a9d8f; }

.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clr-primary);
    margin-bottom: 8px;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--clr-text-title);
    margin-bottom: 10px;
    font-weight: 600;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.product-price-wrapper {
    display: flex;
    flex-direction: column;
}

.product-price {
    font-family: var(--font-subheading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--clr-text-title);
}

.product-price-label {
    font-size: 0.7rem;
    color: var(--clr-text-muted);
}

.add-cart-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--clr-primary-light);
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.add-cart-btn:hover {
    background-color: var(--clr-primary);
    color: var(--clr-secondary); /* Signo de suma en dorado */
    transform: rotate(90deg);
}

/* Empty Catalog State */
.empty-catalog {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--clr-text-muted);
}

.empty-catalog i {
    font-size: 3.5rem;
    color: var(--clr-border);
    margin-bottom: 20px;
}

/* ==========================================================================
   ABOUT US & HISTORY
   ========================================================================== */
.about-sec {
    padding: 100px 0;
    background-color: var(--clr-primary-light);
    transition: var(--transition-smooth);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-images {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-img-main {
    width: 80%;
    border-radius: var(--radius-md);
    box-shadow: var(--clr-shadow-lg);
    z-index: 2;
}

.about-img-sub {
    position: absolute;
    width: 50%;
    bottom: -30px;
    right: -10px;
    border-radius: var(--radius-md);
    box-shadow: var(--clr-shadow-lg);
    border: 5px solid var(--clr-bg-card);
    z-index: 3;
}

.about-content h3 {
    font-family: var(--font-subheading);
    color: var(--clr-primary);
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 3px;
    margin-bottom: 12px;
    font-weight: 700;
}

.about-title {
    font-size: 2.8rem;
    margin-bottom: 24px;
}

.about-text {
    font-size: 1rem;
    margin-bottom: 30px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-feat {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.about-feat i {
    font-size: 1.4rem;
    color: var(--clr-primary);
    margin-top: 4px;
}

.about-feat h4 {
    font-family: var(--font-subheading);
    font-size: 1.1rem;
    color: var(--clr-text-title);
    margin-bottom: 4px;
}

.about-feat p {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
}

/* ==========================================================================
   LOCATIONS & LOCALES
   ========================================================================== */
.locations-sec {
    padding: 80px 0;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.location-card {
    background-color: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--clr-shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--clr-shadow-md);
}

.location-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-name i {
    color: var(--clr-primary);
}

.location-info-list {
    list-style: none;
    margin-bottom: 24px;
}

.location-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.location-info-item i {
    color: var(--clr-primary);
    margin-top: 4px;
}

.location-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.location-actions a {
    flex-grow: 1;
}

/* ==========================================================================
   SHOPPING CART DRAWER (Panel Lateral)
   ========================================================================== */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 440px;
    height: 100%;
    background-color: var(--clr-bg-card);
    box-shadow: var(--clr-shadow-lg);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--clr-border);
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-title {
    font-family: var(--font-subheading);
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-close-btn {
    font-size: 1.5rem;
    color: var(--clr-text-title);
}

.cart-close-btn:hover {
    color: var(--clr-primary);
    transform: rotate(90deg);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Ficha de Item del Carrito */
.cart-item {
    display: flex;
    gap: 16px;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--clr-border);
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-name {
    font-family: var(--font-subheading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--clr-text-title);
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--clr-primary);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--clr-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--clr-text-title);
}

.qty-btn:hover {
    background-color: var(--clr-primary);
    color: var(--clr-white);
}

.qty-val {
    font-size: 0.9rem;
    font-weight: 600;
    width: 20px;
    text-align: center;
}

.cart-item-remove {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
}

.cart-item-remove:hover {
    color: var(--clr-primary);
}

/* Pie de Carrito */
.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--clr-border);
    background-color: var(--clr-primary-light);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.cart-summary-row.total {
    margin-bottom: 24px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--clr-text-title);
    border-top: 1px dashed var(--clr-border);
    padding-top: 12px;
}

.cart-btn-wa {
    width: 100%;
    background-color: #25d366;
    color: var(--clr-white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
    font-size: 1rem;
}

.cart-btn-wa:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

/* Carrito Vacío */
.cart-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--clr-text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cart-empty-state i {
    font-size: 3rem;
    color: var(--clr-border);
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--clr-overlay);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   PRODUCT DETAIL MODAL
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--clr-overlay);
    backdrop-filter: blur(8px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background-color: var(--clr-bg-card);
    width: 100%;
    max-width: 800px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--clr-shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition-smooth);
    border: 1px solid var(--clr-border);
}

.modal-overlay.open .modal-card {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 5;
    box-shadow: var(--clr-shadow-sm);
    color: var(--clr-text-title);
}

.modal-close-btn:hover {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    transform: rotate(90deg);
}

.modal-img-wrapper {
    height: 100%;
    min-height: 350px;
}

.modal-img-wrapper img {
    width: 100%;
    height: 100%;
}

.modal-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-category {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--clr-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.modal-title {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.modal-price-row {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 24px;
}

.modal-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--clr-text-title);
}

.modal-desc {
    font-size: 0.95rem;
    color: var(--clr-text-body);
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-meta {
    border-top: 1px solid var(--clr-border);
    padding-top: 20px;
    margin-bottom: 30px;
    font-size: 0.85rem;
}

.modal-meta p {
    margin-bottom: 8px;
}

.modal-meta strong {
    color: var(--clr-text-title);
}

.modal-actions {
    display: flex;
    gap: 16px;
}


/* Floating WhatsApp button */

/* Contenedor del botón de WhatsApp y el globo de texto */
.wa-float-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
    pointer-events: none; /* Dejar pasar los clics en el espacio entre la burbuja y el botón */
}

/* El botón flotante real */
.wa-float-btn {
    pointer-events: auto;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25d366;
    color: var(--clr-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition-smooth);
    animation: pulse 2s infinite;
}

.wa-float-btn:hover {
    background-color: #128c7e;
    transform: scale(1.1) rotate(15deg);
}

/* Globo de texto flotante */
.wa-float-bubble {
    pointer-events: auto;
    background-color: var(--clr-bg-page);
    color: var(--clr-text-title);
    padding: 10px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid #25d366;
    position: relative;
    opacity: 0;
    transform: translateX(20px) scale(0.9);
    transition: opacity 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-float-bubble.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Flecha del globo apuntando al botón */
.wa-float-bubble::after {
    content: '';
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background-color: var(--clr-bg-page);
    border-right: 1.5px solid #25d366;
    border-top: 1.5px solid #25d366;
}

/* Botón de cerrar de la burbuja */
.wa-bubble-close {
    background: none;
    border: none;
    color: var(--clr-text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.wa-bubble-close:hover {
    color: var(--clr-accent);
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--clr-bg-footer);
    color: #c9bcaf;
    padding: 80px 0 30px 0;
    font-size: 0.9rem;
    border-top: 3px solid var(--clr-secondary); /* Línea dorada en el tope del footer */
}

.footer h3, .footer h4 {
    color: var(--clr-white);
    font-family: var(--font-heading);
    margin-bottom: 24px;
}

.footer h4 {
    font-family: var(--font-subheading);
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo-wrapper {
    margin-bottom: 20px;
}

/* Footer logo image integration */
.footer-logo-wrapper img {
    height: 80px;
    width: auto;
    /* Logo PNG is now transparent, no blend needed */
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.footer-desc {
    line-height: 1.7;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-white);
    transition: var(--transition-fast);
}

.social-link:hover {
    background-color: var(--clr-secondary);
    color: var(--clr-primary);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    position: relative;
    padding-left: 0;
}

.footer-links a:hover {
    color: var(--clr-secondary);
    padding-left: 6px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-contact i {
    color: var(--clr-secondary);
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.8rem;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

/* ==========================================================================
   ANIMATIONS & RESPONSIVE RULES
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popScale {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.2rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-images {
        margin-bottom: 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header {
        height: 80px;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--clr-bg-card);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: var(--transition-smooth);
        border-top: 1px solid var(--clr-border);
        z-index: 98;
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }

    .hamburger.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .sec-title {
        font-size: 2rem;
    }
    
    .modal-card {
        grid-template-columns: 1fr;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-img-wrapper {
        min-height: 250px;
        height: 250px;
    }
    
    .modal-info {
        padding: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .category-card {
        min-width: 130px;
        padding: 16px 20px;
    }
}

/* ==========================================================================
   ANIMACIONES Y MICRO-INTERACCIONES PREMIUM (GRUPO SOCIAL ST)
   ========================================================================== */

/* Animación de entrada por scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Retardos para entradas escalonadas */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* Ken Burns Effect en el Hero */
@keyframes kenBurns {
    0% { transform: scale(1.0); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1.0); }
}

.hero::before {
    animation: kenBurns 20s ease-in-out infinite;
}

/* Animación de pulso para el botón flotante de WhatsApp */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.wa-float-btn {
    animation: pulseGlow 2.5s infinite;
}

/* Efecto de brillo de vidrio para hover de tarjetas de productos */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 100%);
    transform: skewX(-25deg);
    transition: 0.75s;
    z-index: 3;
    pointer-events: none;
}

.product-card:hover::before {
    left: 125%;
}

/* Micro-animaciones en tarjetas de categorías */
.category-card {
    transition: var(--transition-smooth) !important;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.03);
}

/* Animación al pasar el mouse por las fotos del catálogo */
.product-img-wrapper img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.08) rotate(1deg);
}

/* Animación de los botones de agregar al pedido */
.add-cart-btn {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease !important;
}

.add-cart-btn:hover {
    transform: scale(1.15) rotate(15deg);
}

/* Animaciones para la entrada de elementos del carrito */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item {
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ==========================================================================
   NUEVAS SECCIONES: LIBRO DE RECLAMACIONES, BOLSA DE TRABAJO Y POLÍTICAS
   ========================================================================== */

/* Botón/Insignia del Libro de Reclamaciones */
.reclamaciones-badge-wrapper {
    margin-top: 20px;
}

.reclamaciones-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--clr-bg-card);
    border: 1.5px solid var(--clr-secondary);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    box-shadow: var(--clr-shadow-sm);
    color: var(--clr-text-title);
    transition: var(--transition-smooth);
}

.reclamaciones-badge:hover {
    background-color: var(--clr-secondary);
    color: var(--clr-primary-hover);
    border-color: var(--clr-primary);
    transform: translateY(-3px);
    box-shadow: var(--clr-shadow-md);
}

.reclamaciones-badge i {
    font-size: 1.8rem;
    color: var(--clr-primary);
}

.reclamaciones-badge:hover i {
    color: var(--clr-primary-hover);
}

.reclamaciones-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: left;
}

.reclamaciones-text .rec-title {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.8;
}

.reclamaciones-text .rec-subtitle {
    font-family: var(--font-subheading);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Estilos de Modales de Formulario y Políticas */
.form-modal-card {
    max-width: 650px !important;
    display: flex !important;
    flex-direction: column;
    padding: 40px;
    grid-template-columns: none !important; /* Override detail modal layout */
}

.modal-form-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-header-icon {
    font-size: 2.2rem;
    color: var(--clr-secondary);
    margin-bottom: 12px;
}

.modal-form-header h3 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--clr-text-title);
}

.modal-form-header p {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

/* Campos de Formulario */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--clr-text-title);
}

.form-group label .required {
    color: var(--clr-accent);
}

/* Input Wrapper con Iconos */
.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--clr-text-muted);
    font-size: 1rem;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    padding: 12px 16px 12px 45px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--clr-border);
    background-color: var(--clr-bg-page);
    color: var(--clr-text-body);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.input-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23826e6a' viewBox='0 0 16 16'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>");
    background-repeat: no-repeat;
    background-position: calc(100% - 16px) center;
}

.input-wrapper textarea {
    padding-left: 45px;
    resize: vertical;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px var(--clr-primary-light);
    outline: none;
}

/* Subida de Archivos Estilizada */
.file-upload-container {
    position: relative;
    border: 2px dashed var(--clr-border);
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: center;
    background-color: var(--clr-bg-page);
    transition: var(--transition-smooth);
    cursor: pointer;
    overflow: hidden;
}

.file-upload-container:hover,
.file-upload-container.dragover {
    border-color: var(--clr-primary);
    background-color: var(--clr-primary-light);
}

.file-upload-container input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.file-upload-prompt {
    pointer-events: none;
}

.file-upload-prompt i {
    font-size: 2.2rem;
    color: var(--clr-text-muted);
    margin-bottom: 10px;
    transition: var(--transition-fast);
}

.file-upload-container:hover .file-upload-prompt i {
    color: var(--clr-primary);
    transform: translateY(-3px);
}

.upload-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--clr-text-title);
    margin-bottom: 4px;
}

.upload-subtitle {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
}

/* Vista previa del archivo */
.file-upload-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--clr-bg-card);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--clr-border);
    position: relative;
    z-index: 20;
    text-align: left;
    animation: fadeIn 0.3s ease;
}

.file-upload-preview .file-icon {
    font-size: 2rem;
    color: var(--clr-accent);
}

.file-upload-preview .file-icon.fa-file-word {
    color: #2b579a;
}

.file-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.file-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-text-title);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
}

.remove-file-btn {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    padding: 5px;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.remove-file-btn:hover {
    color: var(--clr-accent);
    transform: scale(1.1);
}

/* Botón enviar formulario */
.btn-submit-form {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit-form .spinner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Estado de éxito */
.form-success-state {
    text-align: center;
    padding: 30px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(37, 211, 102, 0.1);
    color: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: popScale 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.form-success-state h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--clr-text-title);
}

.form-success-state p {
    font-size: 0.95rem;
    color: var(--clr-text-body);
    margin-bottom: 24px;
    max-width: 450px;
    line-height: 1.6;
}

/* Modal de Políticas Estilizado */
.policies-modal-card {
    max-width: 900px !important;
    grid-template-columns: 280px 1fr !important;
    height: 80vh;
    max-height: 650px;
}

@media (max-width: 768px) {
    .policies-modal-card {
        grid-template-columns: none !important;
        display: flex !important;
        flex-direction: column;
        height: 90vh;
        max-height: none;
    }
}

.policies-sidebar {
    background-color: var(--clr-primary-light);
    border-right: 1px solid var(--clr-border);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (max-width: 768px) {
    .policies-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--clr-border);
        padding: 20px;
        gap: 15px;
    }
}

.policies-brand {
    text-align: center;
}

@media (max-width: 768px) {
    .policies-brand {
        display: flex;
        align-items: center;
        gap: 15px;
        text-align: left;
    }
}

.policies-logo {
    height: 60px;
    width: auto;
    margin: 0 auto 12px auto;
}

@media (max-width: 768px) {
    .policies-logo {
        height: 45px;
        margin: 0;
    }
}

.policies-brand h4 {
    font-family: var(--font-subheading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.policies-tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 768px) {
    .policies-tabs-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        gap: 8px;
    }
}

.policy-tab-btn {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--clr-text-body);
    background: transparent;
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

@media (max-width: 768px) {
    .policy-tab-btn {
        white-space: nowrap;
        width: auto;
        padding: 8px 14px;
    }
}

.policy-tab-btn i {
    font-size: 1rem;
    color: var(--clr-primary);
    transition: var(--transition-fast);
}

.policy-tab-btn:hover {
    background-color: rgba(92, 29, 24, 0.05);
    color: var(--clr-primary);
}

.policy-tab-btn.active {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    border-color: var(--clr-primary);
}

.policy-tab-btn.active i {
    color: var(--clr-secondary);
}

/* Área de Contenido de Políticas */
.policies-content-area {
    padding: 40px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
}

@media (max-width: 768px) {
    .policies-content-area {
        padding: 25px;
        flex-grow: 1;
        overflow-y: auto;
    }
}

.policy-tab-content {
    display: none;
    flex-direction: column;
    height: 100%;
}

.policy-tab-content.active {
    display: flex;
    animation: fadeIn 0.4s ease forwards;
}

.policy-tab-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--clr-secondary);
    padding-bottom: 10px;
    color: var(--clr-text-title);
}

.policy-scroll-text {
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 15px;
    font-size: 0.9rem;
    line-height: 1.7;
}

.policy-scroll-text h4 {
    font-family: var(--font-subheading);
    font-size: 1rem;
    margin: 20px 0 8px 0;
    color: var(--clr-primary);
    font-weight: 700;
}

body.dark-mode .policy-scroll-text h4 {
    color: var(--clr-secondary);
}

.policy-scroll-text p {
    margin-bottom: 15px;
}

.policy-scroll-text ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.policy-scroll-text li {
    margin-bottom: 8px;
}

/* Utilidad de animación fade-in */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

