/* --- VARIABLES Y ESTILOS GENERALES --- */
:root {
    --dark-grey: #37424A;
    --orange: #E37222;
    --white: #ffffff;
    --light-grey: #f4f4f4;
    --text-color: #333;
    --font-family: 'Lato', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    font-size: 1.8em;
    color: var(--dark-grey);
    margin-bottom: 30px;
}

/* --- BOTONES Y ENLACES --- */
.cta-button {
    display: inline-block;
    background-color: var(--orange);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #c9651e;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background-color: var(--dark-grey);
}
.cta-button.secondary:hover {
    background-color: #2a3338;
}

/* --- HEADER --- */
.header {
    padding: 15px 0;
    background-color: var(--white);
    text-align: center;
    border-bottom: 1px solid #eee;
}
.logo {
    max-width: 300px;
}

/* --- HERO SECTION --- */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://via.placeholder.com/1200x600/cccccc/FFFFFF?text=Imagen+de+Reforma+Moderna');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}
.hero-content h1 {
    font-size: 2.5em;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}
.hero-content .highlight {
    background-color: var(--orange);
    padding: 2px 8px;
    border-radius: 5px;
}
.hero-content p {
    font-size: 1.1em;
    margin-bottom: 25px;
}

/* --- SECCIONES --- */
.prizes, .offers, .form-section, .trust {
    padding: 50px 0;
}

/* Prizes Section */
.prizes { background-color: var(--light-grey); }
.prize-item { display: flex; align-items: flex-start; margin-bottom: 25px; }
.prize-number {
    background-color: var(--orange);
    color: var(--white);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4em;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0; /* Evita que el círculo se deforme */
}
.prize-text h3 { margin: 0 0 5px 0; font-size: 1.3em; color: var(--dark-grey); }
.modal-link { color: var(--orange); text-decoration: none; font-weight: bold; }
.prize-image { display: block; max-width: 200px; margin: 10px auto; border-radius: 8px; }
.prize-image.small { max-width: 150px; }

/* Offers Section */
.offer-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: left;
    margin: 0 auto 20px auto;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.05);
    padding: 20px;
    max-width: 400px;
}
.offer-card h3 { font-size: 1.5em; color: var(--dark-grey); margin-bottom: 15px; }
.offer-card ul { list-style: none; padding-left: 0; margin-bottom: 20px; }
.offer-card li { padding-left: 1.3em; text-indent: -1.3em; margin-bottom: 8px; }
.offer-card li::before { content: '✓'; color: var(--orange); margin-right: 10px; }
.offer-card .price { font-size: 1.3em; font-weight: bold; margin-bottom: 15px; text-align: right;}
.offer-card .price-amount { color: var(--orange); font-size: 1.8em; }
.offer-card .cta-button { display: block; }

/* Form Section */
.form-section { background-color: var(--dark-grey); color: var(--white); }
.form-section .section-title, .form-section p { color: var(--white); text-align: center; }
.form-section p { margin-top: -20px; margin-bottom: 30px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}
.form-group.checkbox { display: flex; align-items: flex-start; }
.form-group.checkbox input { width: auto; margin-right: 10px; margin-top: 5px; }
.form-group.checkbox label { font-size: 0.9em; font-weight: normal; }
.form-group.checkbox a { color: var(--white); text-decoration: underline; }

/* Trust Section */
.trust { text-align: center; }
.office-image { max-width: 100%; border-radius: 8px; margin-bottom: 20px; box-shadow: 0px 4px 15px rgba(0,0,0,0.1); }
.contact-info p { margin-bottom: 20px; font-size: 1.1em; }
.phone-link { color: var(--orange); font-size: 1.8em; font-weight: bold; text-decoration: none; }

/* --- FOOTER --- */
.footer { background-color: var(--dark-grey); color: var(--light-grey); padding: 40px 15px; text-align: center; }
.logo-footer { max-width: 150px; margin-bottom: 20px; }
.footer a { color: var(--white); text-decoration: none; }
.footer-links { margin: 20px 0; }
.footer-links a { margin: 0 10px; font-size: 0.9em; }
.copyright { font-size: 0.8em; color: #aaa; margin-top: 20px; }

/* --- MODAL --- */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}
.close-modal-button {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: #888;
}

/* --- RESPONSIVE DESIGN --- */
@media (min-width: 768px) {
    .section-title { font-size: 2.2em; }
    .hero-content h1 { font-size: 3.5em; }

    .offers .container {
        display: flex;
        justify-content: center;
        gap: 20px;
    }
    .offer-card {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}