:root {
    --primary-blue: #0A1931;
    --dark-blue: #040d1a;
    --gold: #d4af37;
    --gold-light: #f2ce7f;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --text-dark: #333333;
    --text-light: #cccccc;
    --whatsapp-green: #25D366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--dark-blue);
    position: relative;
    z-index: 10;
}

.logo-container .logo {
    height: 130px;
    object-fit: contain;
}

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

.nav-links a {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    padding-bottom: 0.5rem;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--gold);
}

.nav-links a.active {
    border-bottom: 2px solid var(--gold);
}

/* Hero Section */
.hero {
    position: relative;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 4rem 5% 10rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    min-height: 80vh;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('hero-bg.png'); /* The beautiful image generated */
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    mix-blend-mode: screen;
    opacity: 0.25;
    z-index: 1;
}

/* Gradient overlay to blend left to right */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--primary-blue) 40%, transparent 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
    margin-left: 10%;
}

.badge {
    display: inline-block;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    border-radius: 20px;
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    background-color: rgba(10, 25, 49, 0.5);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero .highlight {
    color: var(--gold-light);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    color: #e0e0e0;
}

.hero .highlight-bold {
    color: var(--gold-light);
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--gold);
    color: #000;
    border: 2px solid var(--gold);
}

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

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

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

/* Custom Shape Divider */
.custom-shape-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 5;
}

.custom-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(150% + 1.3px);
    height: 120px;
}

.custom-shape-divider-bottom .shape-fill {
    fill: var(--light-bg);
}

.gold-line {
    position: absolute;
    bottom: 115px; /* Adjust according to curve */
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    z-index: 6;
    /* Actually we can use SVG stroke or simply border if dealing with a straight line, but for wave we leave it off, image shows a gold arc */
}

/* How it Works Section */
.how-it-works {
    padding: 5rem 5%;
    background-color: var(--light-bg);
    position: relative;
    z-index: 10;
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.step-card {
    background: var(--white);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    flex: 1;
    min-width: 280px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.step-badge {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

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

.whatsapp-text-color {
    color: var(--whatsapp-green);
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.step-card p {
    font-size: 0.9rem;
    color: #666;
}

/* Provincias Section */
.provincias-section {
    background-color: var(--primary-blue);
    padding: 5rem 5%;
}

.provincias-section h2 {
    color: var(--white);
}

.provincias-section .subtitle {
    color: var(--text-light);
}

.provincias-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.btn-provincia {
    background-color: var(--white);
    color: var(--primary-blue);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-provincia i {
    font-size: 1.5rem;
}

.btn-provincia:hover {
    background-color: var(--gold-light);
    transform: translateY(-3px);
}

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

.btn-view-all:hover {
    background-color: var(--gold);
    color: #000;
}

/* Footer Section */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 4rem 5% 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.footer-col h4 {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.socials {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333;
    color: var(--white);
    transition: all 0.3s;
}

.social-icon.facebook:hover {
    background-color: #1877F2;
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: #888;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #888;
    text-decoration: underline;
}

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

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-green);
    color: var(--white);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.2);
    z-index: 100;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 900px) {
    .provincias-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile view */
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }
    
    .hero::before {
        background: linear-gradient(to bottom, rgba(10, 25, 49, 0.8) 0%, transparent 100%);
    }

    .hero-bg {
        background-size: cover;
        background-position: center center;
        opacity: 0.4;
    }

    .hero-content {
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
    }
    
    .steps-container {
        flex-direction: column;
    }
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.8); 
    backdrop-filter: blur(5px);
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; 
    padding: 0;
    border: 1px solid var(--gold);
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.modal-header {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 2rem;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    text-align: center;
    position: relative;
}

.modal-header h2 {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.close-modal {
    color: var(--white);
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--gold);
}

.modal-body {
    padding: 2rem;
    color: #333;
    line-height: 1.6;
}

.modal-body h3 {
    color: var(--primary-blue);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
    padding-bottom: 0.3rem;
}

.modal-body h4 {
    color: #555;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.modal-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-body li {
    margin-bottom: 0.4rem;
}

.small-text {
    font-size: 0.85rem;
    color: #666;
}

.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.alert-box {
    background-color: rgba(212, 175, 55, 0.1);
    border-left: 4px solid var(--gold);
    padding: 1.5rem;
    margin: 2rem 0;
}

.alert-box h3 {
    margin-top: 0;
    border: none;
}

.check-list {
    list-style: none;
    margin-left: 0 !important;
}

.check-list li {
    position: relative;
    padding-left: 1.8rem;
}

.check-list i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--gold);
}

.highlight-box {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 1rem;
    border-radius: 5px;
    margin-top: 2rem;
    text-align: center;
}

.modal-footer {
    padding: 2rem;
    text-align: center;
    background-color: #f8f9fa;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border-top: 1px solid #ddd;
}

.modal-footer p {
    margin-bottom: 1.5rem;
    color: #555;
    font-style: italic;
}

.btn-large {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    width: 100%;
    justify-content: center;
}

.agreement-section {
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.custom-checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}
.hidden-form {
    display: none;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.hidden-form input {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    width: 100%;
}
.hidden-form input:focus {
    outline: none;
    border-color: var(--gold);
}
.disabled-btn {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .grid-2-cols {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
