/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    /* Legal Palette */
    --primary-color: #0B1B3D; /* Deep Navy */
    --secondary-color: #D4AF37; /* Premium Gold */
    --secondary-hover: #b8972f;
    --text-main: #1F2937;
    --text-light: #4B5563;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    
    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    
    /* Spacing & Utilities */
    --container-width: 1140px;
    --border-radius: 4px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--primary-color);
    line-height: 1.2;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: var(--font-sans);
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

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

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ==========================================================================
   Top Bar & Header
   ========================================================================== */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 500;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.logo-main {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 2rem;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    border-left: 2px solid var(--secondary-color);
    padding-left: 10px;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 24px;
}

.phone-link {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.phone-link:hover {
    color: var(--secondary-color);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, #0B1B3D 0%, #1a2a4f 100%);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-tag {
    display: inline-block;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--secondary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hero-guarantee {
    font-size: 0.9rem;
    color: #94a3b8;
    font-style: italic;
}

/* ==========================================================================
   Trust Badges
   ========================================================================== */
.trust-badges {
    background-color: var(--bg-light);
    padding: 40px 0;
    border-bottom: 1px solid #e2e8f0;
}

.badges-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.badge {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.badge-title {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.badge p {
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Why Us Section (Pain & Solution + Form)
   ========================================================================== */
.why-us {
    padding: 100px 0;
}

.why-us-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-text h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.why-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.check-list {
    list-style: none;
    margin-top: 30px;
}

.check-list li {
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* ==========================================================================
   Lead Form Card
   ========================================================================== */
.why-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.card-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 30px;
    text-align: center;
}

.card-header h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.card-header p {
    color: #cbd5e1;
}

.card-body {
    padding: 40px 30px;
}

.lead-form input,
.lead-form select {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 20px;
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius);
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-main);
    background-color: #f8fafc;
    transition: var(--transition);
}

.lead-form input:focus,
.lead-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
}

.privacy-note {
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 20px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 40px;
    text-align: center;
    border-top: 5px solid var(--secondary-color);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer p {
    margin-bottom: 20px;
}

.footer .disclaimer {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.6;
}

.footer .copyright {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .why-us-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 16px;
    }
    
    .top-bar-inner {
        flex-direction: column;
        gap: 8px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   Language Switcher & WhatsApp
   ========================================================================== */
body.lang-en .lang-es {
    display: none !important;
}

body.lang-es .lang-en {
    display: none !important;
}

.lang-switch {
    display: inline-block;
    margin-right: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-lang {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0 5px;
    font-family: var(--font-sans);
}

.btn-lang:hover {
    color: var(--secondary-color);
}

.whatsapp-footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin: 20px auto 30px;
    transition: var(--transition);
    width: fit-content;
}

.whatsapp-footer-btn:hover {
    background-color: #128C7E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}
