/* ========================================
   CABRA & CURADO - CAVA EUROPEA PREMIUM
   Estilo: Minimalista, Oscuro, Elegante, Editorial
   ======================================== */

:root {
    --bg-main: #0B0B0B;
    --bg-card: #141414;
    --gold: #C6A75E;
    --text-main: #F5F5F5;
    --text-muted: #B8B8B8;
    --radius: 12px;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --font-cursive: 'Pinyon Script', cursive;

    --gold-gradient: linear-gradient(135deg, #B58B35 0%, #E3C174 50%, #B58B35 100%);

    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --section-pad: 120px;
}

/* ===== BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 100px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--text-main);
    letter-spacing: 0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    display: block;
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== BOTONES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 2px;
}

.btn-primary {
    background: var(--gold-gradient);
    color: #000;
    border: none;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.btn-primary:hover {
    box-shadow: 0 4px 20px rgba(227, 193, 116, 0.4);
    transform: translateY(-2px);
    color: #111;
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.btn-secondary:hover {
    background: rgba(227, 193, 116, 0.1);
    color: var(--gold);
    box-shadow: 0 4px 15px rgba(198, 167, 94, 0.1);
}

.btn-block {
    width: 100%;
}

/* ===== HEADERS SECCION ===== */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: var(--gold-gradient);
}

.section-title span.cursive-accent {
    font-family: var(--font-cursive);
    text-transform: none;
    font-size: 1.5em;
    color: var(--gold);
    font-style: normal;
    font-weight: normal;
    display: inline-block;
    vertical-align: middle;
}

.section-title span {
    color: var(--gold);
    font-style: italic;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-top: 2rem;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    background: rgba(11, 11, 11, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 0.1em;
    color: var(--text-main);
    text-transform: uppercase;
}

.logo span {
    color: var(--gold);
    font-style: italic;
    text-transform: lowercase;
}

.nav {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.nav-link:hover {
    color: var(--gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.account-btn {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.account-btn:hover {
    color: var(--gold);
}

.cart-btn {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.cart-btn:hover {
    color: var(--gold);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--gold);
    color: #000;
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    background: var(--bg-main) !important;
    display: flex !important;
    align-items: center !important;
    position: relative;
    padding-top: 140px !important;
    padding-bottom: 60px !important;
    box-sizing: border-box;
}

.hero-wrapper {
    max-width: 1350px !important;
    margin: 0 auto !important;
    width: 100% !important;
    padding: 0 2.5rem !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 3rem !important;
    box-sizing: border-box;
}

.hero-bottom-edge {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 40px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 40" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,40 L1200,40 L1200,0 C1000,20 800,5 600,25 C400,45 200,10 0,30 Z" fill="%230B0B0B"/></svg>') bottom/100% 100% no-repeat;
    z-index: 10;
}

.hero-content {
    flex: 1 1 50% !important;
    max-width: 580px !important;
    padding: 0 !important;
    margin-left: 0 !important;
}

.hero-image-side {
    flex: 1 1 45% !important;
    max-width: 500px !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
}

.hero-img-card {
    width: 100% !important;
    max-width: 480px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid rgba(198, 167, 94, 0.4) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 35px rgba(198, 167, 94, 0.2) !important;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.hero-img-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold) !important;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.95), 0 0 50px rgba(227, 193, 116, 0.35) !important;
}

.hero-img-card img {
    width: 100% !important;
    height: 340px !important;
    display: block !important;
    object-fit: cover !important;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.hero-title .hero-subtitle-inner {
    display: block;
    font-size: 0.35em;
    color: var(--text-muted);
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    margin-top: 10px;
}

.hero-lead {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero-cursive {
    font-family: var(--font-cursive);
    font-size: 2.5em;
    color: var(--gold);
    display: block;
    margin-top: -10px;
    margin-left: 20px;
}

.hero-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.hero-divider .line {
    height: 1px;
    width: 50px;
    background: var(--gold);
}

.hero-divider .text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    margin-bottom: 4rem;
}

.hero-features {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--gold);
}

.feature-item i {
    font-size: 1.2rem;
}

.feature-item span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-main);
}

.feature-divider {
    width: 1px;
    height: 15px;
    background: rgba(255, 255, 255, 0.2);
}

/* ===== SECCIONES GENERALES ===== */
.productores,
.suscripciones,
.catalogo,
.manifesto,
.contacto {
    padding: var(--section-pad) 0;
    background-color: var(--bg-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.suscripciones,
.contacto {
    background-color: #0d0d0d;
}

/* ===== CATÁLOGO ===== */
.filtros {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 5rem;
    flex-wrap: wrap;
}

.filtro-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    cursor: pointer;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.filtro-btn:hover,
.filtro-btn.active {
    color: var(--gold);
    border-color: var(--gold);
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem 2rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    transition: var(--transition);
    overflow: hidden;
    padding-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.product-image {
    aspect-ratio: 1;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    text-align: center;
    padding: 0 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 0.5rem;
    display: block;
}

.product-name {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.product-producer {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1rem;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.product-price {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.add-to-cart-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    padding: 0.8rem 2rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
}

.add-to-cart-btn:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

/* ===== SUSCRIPCIONES ===== */
.packs-horizontal {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.packs-horizontal .pack-card {
    background: url('https://images.unsplash.com/photo-1624462966581-bc5d76fba893?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    padding: 3rem 4rem;
    text-align: left;
    border: 1px solid rgba(198, 167, 94, 0.2);
    border-radius: 2px;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    gap: 3rem;
}

.packs-horizontal .pack-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.8) 50%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.packs-horizontal .pack-card>* {
    position: relative;
    z-index: 2;
}

.packs-horizontal .pack-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.packs-horizontal .pack-featured {
    border-color: var(--gold);
}

.pack-content-left {
    min-width: 280px;
}

.pack-badge {
    display: inline-block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #000;
    background: var(--gold-gradient);
    padding: 0.4rem 1.2rem;
    border-radius: 2px;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.pack-name {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    color: var(--text-main);
    letter-spacing: 0.05em;
}

.pack-price {
    font-size: 1.8rem;
    margin-bottom: 0;
    font-family: var(--font-body);
    font-weight: 300;
}

.pack-price span.price {
    color: var(--gold);
}

.pack-price span.period {
    font-size: 1rem;
    color: var(--text-muted);
}

.pack-includes {
    list-style: none;
    flex: 1;
    margin: 0;
    padding-left: 2.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.pack-includes li {
    padding: 0.6rem 0;
    color: var(--text-main);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.pack-includes li::before {
    content: '•';
    color: var(--gold);
    margin-right: 12px;
    font-size: 1.2rem;
}

.pack-action .btn {
    padding: 1rem 2rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

.pack-includes li:last-child {
    border: none;
}

/* ===== MANIFIESTO Y PRODUCTORES ===== */
.productores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.productor-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    transition: var(--transition);
}

.productor-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
}

.productor-logo {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.productor-name {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.productor-location {
    font-size: 0.8rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.productor-specialty {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1rem;
    font-style: italic;
}

.manifesto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.manifesto-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.manifesto-lead {
    font-size: 1.3rem;
    color: var(--text-main);
    font-style: italic;
    font-family: var(--font-heading);
    margin-top: 1rem;
}

.section-tag {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 1rem;
}

.manifesto-main-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.manifesto-quote {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold);
    line-height: 1.3;
    padding-left: 2rem;
    border-left: 1px solid var(--gold);
    font-style: italic;
    margin-top: 3rem;
}

.value-card {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.value-card:hover {
    border-color: var(--gold);
    transform: translateX(10px);
}

.value-icon {
    font-size: 2.5rem;
}

.value-content h4 {
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.value-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===== CONTACTO ===== */
.contacto-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
}

.contacto-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--gold);
}

.info-icon {
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-text span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    display: block;
    margin-bottom: 0.3rem;
}

.info-text a,
.info-text p {
    color: var(--text-main);
    font-size: 1rem;
    transition: var(--transition);
}

.info-text a:hover {
    color: var(--gold);
}

.contacto-form-container {
    background: var(--bg-card);
    padding: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
}

.form-group-new {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.form-group-new label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group-new input,
.form-group-new textarea {
    background: var(--bg-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    color: var(--text-main);
    border-radius: 4px;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group-new input:focus,
.form-group-new textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.btn-submit-premium {
    background: var(--gold);
    color: #000;
    border: none;
    padding: 1.2rem;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
}

.btn-submit-premium:hover {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

/* ===== FOOTER ===== */
.footer {
    padding: 6rem 0 2rem;
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1.2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    display: block;
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-icon:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-3px);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-newsletter h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.footer-newsletter p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
}

.newsletter-form input {
    background: transparent;
    border: none;
    color: var(--text-main);
    flex: 1;
    outline: none;
    font-family: var(--font-body);
}

.btn-newsletter {
    background: none;
    border: none;
    color: var(--gold);
    cursor: pointer;
}

.footer-middle {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.payment-methods span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.payment-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.card-icons {
    display: flex;
    gap: 0.5rem;
    font-size: 1.2rem;
    filter: grayscale(1);
    opacity: 0.5;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== MODALS & OVERLAYS ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 90vw;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.cart-modal {
    width: 450px;
    height: 100vh;
    margin-left: auto;
    border-radius: 0;
    border-left: 1px solid var(--gold);
    display: flex;
    flex-direction: column;
}

.auth-modal {
    width: 450px;
    border-radius: var(--radius);
    overflow: hidden;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-main);
}

.modal-header h3 {
    font-size: 1.3rem;
    color: var(--gold);
    margin: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.modal-close,
.close-cart {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover,
.close-cart:hover {
    color: var(--gold);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 1rem 0;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    text-align: center;
}

.auth-tab.active {
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-form.active {
    display: flex;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    opacity: 0.8;
}

.form-group input {
    background: var(--bg-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    color: var(--text-main);
    border-radius: 4px;
    font-family: var(--font-body);
}

.form-group input:focus {
    border-color: var(--gold);
    outline: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-divider span {
    padding: 0 1rem;
}

.admin-access-btn {
    text-align: center;
    justify-content: center;
}

.cart-items {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    display: block;
    color: var(--text-main);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.cart-item-price {
    color: var(--gold);
    font-size: 0.9rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-item-controls span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cart-item-controls button:not(.remove-btn) {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
}

.cart-item-controls button:not(.remove-btn):hover {
    border-color: var(--gold);
    color: var(--gold);
}

.cart-item-controls .remove-btn {
    margin-left: 1rem;
    background: rgba(201, 123, 93, 0.15); /* #C97B5D slightly transparent */
    color: #C97B5D;
    border: 1px solid rgba(201, 123, 93, 0.3);
    width: auto;
    height: auto;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-item-controls .remove-btn:hover {
    background: #C97B5D;
    color: white;
}

.cart-summary {
    background: var(--bg-main);
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cart-row.cart-total {
    font-size: 1.2rem;
    color: var(--gold);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Account / Profile modal specifics */
.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-avatar {
    width: 60px;
    height: 60px;
    background: var(--gold);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.profile-info h2 {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.profile-section {
    margin-top: 2rem;
}

.order-history-item {
    background: var(--bg-main);
    padding: 1.2rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.order-history-item:hover {
    border-color: rgba(198, 167, 94, 0.3);
}

.order-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.order-total {
    font-weight: 600;
    color: var(--gold);
    font-size: 1.1rem;
}

.order-status {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* Animaciones reveal */
[data-reveal] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    /* Nota: el timeout de seguridad en app.js agrega clase .active después de 3s */
}

[data-reveal="up"] {
    transform: translateY(40px);
}

[data-reveal="left"] {
    transform: translateX(-40px);
}

[data-reveal="right"] {
    transform: translateX(40px);
}

[data-reveal].active {
    opacity: 1;
    transform: translate(0);
    transition-delay: var(--delay, 0s);
}

@media (max-width: 992px) {
    .hero-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-cta,
    .hero-features {
        justify-content: center;
    }

    .hero-image-side {
        max-width: 100%;
    }

    .hero-title {
        font-size: 3rem;
    }

    .nav {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        gap: 1.2rem;
        padding: 0.4rem 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .nav::-webkit-scrollbar {
        display: none;
    }

    .packs-grid,
    .manifesto-grid,
    .contacto-content-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .packs-horizontal .pack-card {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 2rem;
        gap: 2rem;
    }

    .packs-horizontal .pack-content-left {
        min-width: auto;
    }

    .pack-includes {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1.5rem;
    }

    .pack-includes li {
        justify-content: center;
    }

    .pack-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-features {
        flex-direction: column;
        align-items: flex-start;
        border-top: none;
        padding-top: 1rem;
        gap: 1rem;
    }

    .feature-divider {
        display: none;
    }
}

/* ========================================
   ARMADOR DE TABLA INTERACTIVO
   ======================================== */
.armador-section {
    padding: 100px 0;
    background-color: var(--bg-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.armador-section .section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3.5rem;
}

.builder-badge {
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
    text-align: center;
}

.builder-shipping-notice {
    background: rgba(198, 167, 94, 0.08);
    border: 1px solid rgba(198, 167, 94, 0.25);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.82rem;
    color: var(--text-main);
    text-align: center;
    margin: 14px 0;
}

.builder-shipping-notice strong {
    color: var(--gold);
}

.builder-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

/* Grilla de Selección de Productos (2 columnas exactas) */
.builder-catalog {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.builder-item-btn {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 16px;
    text-align: left;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    user-select: none;
}

.builder-item-btn:hover {
    border-color: rgba(198, 167, 94, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.builder-item-btn.selected {
    background: rgba(198, 167, 94, 0.08);
    border-color: var(--gold);
}

.builder-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.builder-item-name {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.3;
}

.builder-item-check {
    position: absolute;
    top: 14px;
    right: 14px;
    color: var(--gold);
    font-size: 1.15rem;
}

.builder-item-category {
    font-size: 0.72rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.builder-item-price {
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Tarjeta Resumen Flotante */
.builder-summary-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 28px;
    position: sticky;
    top: 100px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.builder-summary-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.builder-items-list {
    list-style: none;
    margin-bottom: 20px;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
}

.builder-items-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.92rem;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.builder-empty-msg {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.88rem;
    padding: 12px 0;
}

.builder-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 600;
    font-family: var(--font-heading);
    margin: 20px 0 16px 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.builder-total-price {
    color: var(--gold);
    font-weight: 700;
}

.builder-helper-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 14px;
    margin-bottom: 0;
    text-align: center;
}

.btn-block {
    width: 100%;
}

@media (max-width: 992px) {
    .builder-layout {
        grid-template-columns: 1fr;
    }
    .builder-summary-card {
        position: static;
    }
}

/* ===== FEEDBACK DE HOVER CONSISTENTE ===== */
button:not(:disabled), a.hoverable {
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease,
                background-color 0.15s ease, color 0.15s ease;
}
button:not(:disabled):hover, a.hoverable:hover {
    transform: translateY(-1px);
    filter: brightness(1.2);
}
button:disabled { opacity: 0.5; cursor: not-allowed; }

.nav-link:hover,
.footer-col ul li a:hover,
.social-icon:hover { color: var(--gold) !important; }

.social-icon:hover {
    border-color: var(--gold) !important;
    background: rgba(198, 167, 94, 0.08) !important;
}

.btn-secondary:hover,
.pack-action .btn-secondary:hover {
    background: rgba(198, 167, 94, 0.12) !important;
}

/* ===== ANIMACIONES Y NOTIFICACIÓN TOAST ===== */
@keyframes bounceBadge {
    0% { transform: scale(1); }
    35% { transform: scale(1.5); }
    60% { transform: scale(0.85); }
    100% { transform: scale(1); }
}
.cart-count.bounce { animation: bounceBadge 0.4s ease; }

@keyframes popIn {
    0% { transform: scale(0.6); opacity: 0; }
    70% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}
.check-pop { animation: popIn 0.3s ease; }

@keyframes toastIn {
    from { opacity: 0; transform: translate(-50%, 12px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
.toast {
    position: fixed;
    bottom: 96px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3200;
    background: var(--bg-card);
    border: 1px solid var(--gold);
    color: var(--text-main);
    padding: 14px 22px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.5);
    animation: toastIn 0.25s ease;
}

.product-card { transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 16px 32px rgba(0,0,0,0.45);
}

/* ===== BOTÓN FLOTANTE WHATSAPP ===== */
.whatsapp-float-btn {
    position: fixed;
    bottom: 28px;
    right: 24px;
    z-index: 3000;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: pulseWhatsapp 2.5s infinite;
}

@keyframes pulseWhatsapp {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== BOTÓN CAMBIO DE TEMA (MODO CLARO / OSCURO) ===== */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--gold);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    background: rgba(198, 167, 94, 0.25);
    transform: scale(1.1);
    border-color: var(--gold);
}

/* ===== DEFINICIÓN DE MODO CLARO (LIGHT MODE) ===== */
body.light-mode {
    --bg-main: #FAF8F5;
    --bg-card: #FFFFFF;
    --text-main: #1C1917;
    --text-muted: #6B655F;
    --gold: #A17424;
    --gold-gradient: linear-gradient(135deg, #A17424 0%, #C9A050 50%, #A17424 100%);
    --border: rgba(0, 0, 0, 0.08);
    background-color: #FAF8F5 !important;
    color: #1C1917 !important;
}

body.light-mode .header.scrolled {
    background: rgba(250, 248, 245, 0.94) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .nav-link,
body.light-mode .account-btn,
body.light-mode .cart-btn {
    color: #2D2926 !important;
}

body.light-mode .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    color: #A17424 !important;
}

body.light-mode .hero {
    background: #FAF8F5 !important;
}

body.light-mode .hero-title,
body.light-mode .hero-lead,
body.light-mode .feature-item span,
body.light-mode .product-name,
body.light-mode .pack-name,
body.light-mode .pack-includes li,
body.light-mode .section-title,
body.light-mode .manifesto-lead,
body.light-mode h1, body.light-mode h2, body.light-mode h3, body.light-mode h4 {
    color: #1C1917 !important;
}

body.light-mode .product-card,
body.light-mode .stat-card,
body.light-mode .data-table,
body.light-mode .modal-form,
body.light-mode .modal-content,
body.light-mode .contacto-sidebar .info-card,
body.light-mode .contacto-form-container,
body.light-mode .builder-summary-card,
body.light-mode .value-card {
    background: #FFFFFF !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    color: #1C1917 !important;
}

body.light-mode .builder-item-btn {
    background: #F4F0E8 !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: #1C1917 !important;
}

body.light-mode .builder-item-btn:hover,
body.light-mode .builder-item-btn.selected {
    background: #FFFFFF !important;
    border-color: #A17424 !important;
}

body.light-mode .suscripciones,
body.light-mode .contacto,
body.light-mode .footer {
    background-color: #F1EDE5 !important;
}

body.light-mode .packs-horizontal .pack-card::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0.6) 100%) !important;
}

body.light-mode .footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .footer-desc,
body.light-mode .footer-col ul li a,
body.light-mode .footer-newsletter p,
body.light-mode .footer-bottom p {
    color: #555 !important;
}

body.light-mode .form-control,
body.light-mode input,
body.light-mode select,
body.light-mode textarea {
    background: #F5F2EC !important;
    color: #1C1917 !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
}