/* ==========================================================================
   CSS Variables & Typography
   ========================================================================== */
   :root {
    --color-primary: #0A192F; /* Deep Navy Blue */
    --color-secondary: #112240; /* Lighter Navy */
    --color-accent: #D4AF37; /* Gold */
    --color-accent-hover: #F3CA40; /* Lighter Gold */
    --color-light: #F8F9FA;
    --color-white: #FFFFFF;
    --color-dark: #020C1B;
    --color-text: #333333;
    --color-text-light: #8892B0;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #444;
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.bg-light { background-color: var(--color-light); }
.bg-dark { background-color: var(--color-primary); }
.bg-gold { background-color: var(--color-accent); }

.text-center { text-align: center; }
.text-white { color: var(--color-white); }
.text-dark { color: var(--color-dark); }
.text-subtitle { color: var(--color-text-light); font-size: 1.2rem; }
.mt-5 { margin-top: 3rem; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-dark);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(212, 175, 55, 0.5);
}

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

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

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-dark {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-dark:hover {
    background-color: var(--color-secondary);
    box-shadow: 0 10px 20px -10px rgba(10, 25, 47, 0.5);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #1DA851;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(37, 211, 102, 0.5);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background-color: transparent;
}

.header.scrolled {
    background-color: var(--color-primary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-white);
}

.nav-menu ul {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--color-white);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('assets/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.9) 0%, rgba(2, 12, 27, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: left;
    color: var(--color-white);
    padding-top: 5rem;
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.hero p {
    color: var(--color-text-light);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-trust {
    font-size: 0.9rem;
    color: var(--color-accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    display: inline-block;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ==========================================================================
   Solucion & Brands Section
   ========================================================================== */
.flex-row {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.content-text {
    flex: 1;
}

.solution-box {
    background-color: var(--color-white);
    padding: 2rem;
    border-left: 4px solid var(--color-accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-top: 2rem;
}

.solution-box h3 {
    margin-bottom: 0.5rem;
}

.solution-box p {
    margin-bottom: 0;
}

.brands-showcase {
    flex: 1;
    background: var(--color-primary);
    padding: 3rem;
    border-radius: 8px;
    color: var(--color-white);
}

.brands-title {
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-style: italic;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.2rem;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.brand-item {
    background: rgba(255,255,255,0.05);
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    font-weight: 500;
    letter-spacing: 1px;
    transition: var(--transition);
}

.brand-item:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

/* ==========================================================================
   Categorías Cards
   ========================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.card {
    background-color: var(--color-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    text-align: left;
    transition: var(--transition);
}

.card-img {
    height: 350px;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

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

.card-body {
    padding: 2rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(to top, var(--color-secondary) 0%, rgba(17, 34, 64, 0.95) 100%);
}

.card h3 {
    color: var(--color-white);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.card p {
    color: var(--color-text-light);
    margin-bottom: 0;
    font-size: 1rem;
}

/* ==========================================================================
   Lead Magnet (Form)
   ========================================================================== */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="rgba(0,0,0,0.05)" fill-rule="evenodd"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

.form-container {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { font-size: 1.2rem; margin-bottom: 2rem; }

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--color-white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.input-group input {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.input-group input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(10, 25, 47, 0.1);
}

.microcopy {
    font-size: 0.85rem !important;
    color: #666 !important;
    margin-bottom: 0 !important;
    margin-top: 1rem;
}

.success-message {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.success-message h3 { color: #25D366; }
.hidden { display: none; }

/* ==========================================================================
   Ubicación
   ========================================================================== */
.align-items-center {
    align-items: center;
}

.map-wrapper {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.fake-map img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.location-info {
    flex: 1;
}

.store-details {
    margin: 2rem 0;
}

.store-details li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.store-details i {
    color: var(--color-accent);
    font-size: 1.3rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--color-dark);
    color: var(--color-text-light);
    padding-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.95rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: var(--color-white);
}

.footer-social a:hover {
    background: var(--color-accent);
    color: var(--color-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    background-color: #01060e;
}

/* ==========================================================================
   Animations & Media Queries
   ========================================================================== */

/* Fade In Animations */
.fade-in-up, .fade-in-left, .fade-in-right {
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in-up { transform: translateY(40px); }
.fade-in-left { transform: translateX(-40px); }
.fade-in-right { transform: translateX(40px); }

.fade-in-up.appear, .fade-in-left.appear, .fade-in-right.appear {
    opacity: 1;
    transform: translate(0);
}

/* Responsive */
@media (max-width: 992px) {
    .flex-row {
        flex-direction: column;
        gap: 2rem;
    }
    
    .brands-showcase {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        display: none; /* In a real app, add a hamburger menu */
    }
    
    #btn-catalogo-nav {
        display: none;
    }

    .hero-content {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    h1 {
        font-size: 2.2rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
}
