:root {
    /* Brand Colors */
    --primary-color: #1A2B4C; /* Navy Blue */
    --accent-color: #D4AF37; /* Industrial Amber */
    --accent-hover: #b8962c;
    --primary-light: #2c4270;
    
    /* Backgrounds */
    --bg-white: #FFFFFF;
    --bg-light-gray: #F8F9FA;
    --bg-dark: #121E36;
    
    /* Text Colors */
    --text-main: #333333;
    --text-muted: #6c757d;
    --text-light: #F8F9FA;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --section-padding: 4rem 1.5rem;
    --container-width: 1200px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base for rem */
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

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

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
}

.text-center { text-align: center; }
.text-accent { color: var(--accent-color); }
.bg-light { background-color: var(--bg-light-gray); }

/* Buttons - Mobile First, Large and Tappable */
.btn {
    display: inline-block;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    min-height: 54px; /* Apple recommendation for mobile touch targets */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%; /* Default full width on mobile */
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

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

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

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

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

/* Contact Buttons (Direct Links) */
.btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    gap: 1rem;
    font-size: 1.125rem;
    color: var(--bg-white);
    border: none;
    cursor: pointer;
    width: 100%;
}

.btn-contact:hover {
    transform: translateY(-3px);
    opacity: 0.95;
    color: var(--bg-white);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* --- Components --- */

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 40px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    background: none;
    border: none;
}

.nav-menu {
    display: none; /* Hidden on mobile by default */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    flex-direction: column;
    padding: 1rem 0;
}

.nav-menu.active {
    display: flex;
}

.nav-menu a {
    padding: 1rem 1.5rem;
    font-weight: 500;
    border-bottom: 1px solid var(--bg-light-gray);
}

.nav-menu a:last-child {
    border-bottom: none;
}

.nav-cta {
    display: none; /* Hide button in header on mobile to save space */
}

/* Hero Section */
.hero {
    padding: 8rem 1.5rem 4rem; /* Top padding accounts for fixed header */
    background-color: var(--primary-color);
    background-image: url('images/hero_texture_bg.png');
    background-size: cover;
    background-position: center;
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.15), transparent 50%),
                rgba(26, 43, 76, 0.85); /* Overlay oscuro para asegurar legibilidad */
    pointer-events: none;
}

.hero h1 {
    color: var(--bg-white);
}

.hero .subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Problem/Solution Section */
.problem-solution {
    padding: var(--section-padding);
    background-color: var(--bg-light-gray);
}

.problem-intro {
    font-size: 1.25rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.benefit-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    border-top: 4px solid var(--accent-color);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

/* Methodology Section */
.methodology {
    padding: var(--section-padding);
}

.method-item {
    margin-bottom: 3rem;
}

.method-item:last-child {
    margin-bottom: 0;
}

.method-item h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
}

.method-item h3::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

/* Authority (Substack) Section */
.authority {
    padding: var(--section-padding);
    background-color: var(--primary-color);
    color: var(--bg-white);
    text-align: center;
}

.authority h2 {
    color: var(--bg-white);
}

.authority .btn {
    margin-top: 1.5rem;
}

/* Contact/Capture Section */
.contact {
    padding: var(--section-padding);
    background-color: var(--bg-light-gray);
}

.contact-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-promise {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--bg-light-gray);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(26, 43, 76, 0.1);
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 3rem 1.5rem;
    text-align: center;
}

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

.footer-social {
    margin-bottom: 1.5rem;
}

.footer-social a {
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: var(--transition);
}

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

.footer-legal {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Floating WhatsApp */
.floating-wa {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 100;
    transition: var(--transition);
}

.floating-wa:hover {
    transform: scale(1.1);
    color: white;
}

/* Thank You Page Specifics */
.thank-you-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-light-gray);
}

.thank-you-card {
    background-color: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 600px;
    width: 100%;
}

.thank-you-card i {
    font-size: 4rem;
    color: #25D366; /* Success green */
    margin-bottom: 1.5rem;
}

/* Desktop Media Queries */
@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    
    .btn {
        width: auto;
    }

    .header {
        padding: 1rem 5%;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .nav-menu {
        display: flex;
        position: static;
        flex-direction: row;
        width: auto;
        background: none;
        box-shadow: none;
        padding: 0;
    }
    
    .nav-menu a {
        border: none;
        padding: 0.5rem 1rem;
        color: var(--text-main);
    }
    
    .nav-menu a:hover {
        color: var(--primary-color);
    }
    
    .nav-cta {
        display: block;
        padding: 0.75rem 1.5rem;
        min-height: 0;
    }

    .hero {
        padding: 10rem 5% 6rem;
    }
    
    .hero-content {
        max-width: 800px;
        margin: 0 auto;
        text-align: center;
    }

    .problem-solution, .methodology, .authority, .contact {
        padding: 5rem 5%;
    }

    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .methodology-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .method-item {
        margin-bottom: 0;
    }

    .contact-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }
    
    .contact-card {
        padding: 3rem;
    }
}
