/* Reset y Variables */
:root {
    --primary-color: #2c5f8d;
    --primary-dark: #1e4466;
    --accent-color: #e67e22;
    --text-dark: #2c3e50;
    --text-light: #555;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #27ae60;
    --error-color: #e74c3c;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.container-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--accent-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.3);
}

.logo-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 400;
    margin: 0.2rem 0 0 0;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 8rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #4a5568 100%);
    z-index: 0;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://redcorredoresdepropiedades.cl/wp-content/uploads/2025/09/Caza-Talentos-HeadHunting-para-Corredores-de-propiedades.png');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    opacity: 0.65;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(20, 30, 48, 0.85) 0%, rgba(30, 40, 60, 0.65) 40%, rgba(40, 50, 70, 0.35) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
    color: white;
}

.hero-left {
    text-align: left;
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInDown 0.8s ease;
}

.badge-icon {
    font-size: 1.2rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 400;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.feature-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    text-align: left;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
}

.feature-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(230, 126, 34, 0.3);
}

.feature-icon svg {
    width: 18px;
    height: 18px;
    color: white;
}

.feature-text h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    color: white;
}

.feature-text p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.4;
}

.hero-cta {
    animation: fadeInUp 0.8s ease 0.8s backwards;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--accent-color);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.4);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-hero:hover::before {
    left: 100%;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(230, 126, 34, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-arrow {
    width: 22px;
    height: 22px;
    transition: transform 0.3s;
}

.btn-hero:hover .btn-arrow {
    transform: translateX(5px);
}

.hero-cta-note {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.hero-cta-note svg {
    width: 13px;
    height: 13px;
}

.hero-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    animation: fadeInUp 0.8s ease 1s backwards;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.stat-item-hero {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    padding: 0;
    white-space: nowrap;
}

.stat-number-hero {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.stat-label-hero {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

.stat-divider {
    display: inline-block;
    margin: 0 1rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, #d35400 100%);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(230, 126, 34, 0.4);
}

.btn-primary .btn-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

/* Survey Section */
.survey-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.survey-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Form Styles */
.survey-form {
    max-width: 900px;
    margin: 0 auto;
}

.form-section {
    background: var(--bg-white);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.section-title {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

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

.question-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.5;
}

.required {
    color: var(--error-color);
    margin-left: 4px;
}

.optional {
    color: var(--text-light);
    font-weight: 400;
    font-size: 0.9rem;
    font-style: italic;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-white);
}

.radio-label:hover {
    border-color: var(--accent-color);
    background: #fff5e6;
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.radio-label input[type="radio"]:checked + span {
    font-weight: 600;
    color: var(--accent-color);
}

.radio-label input[type="radio"]:checked {
    outline: 2px solid var(--accent-color);
}

.radio-label span {
    flex: 1;
    color: var(--text-dark);
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-white);
}

.checkbox-label:hover {
    border-color: var(--accent-color);
    background: #fff5e6;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.checkbox-label input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: var(--accent-color);
}

.checkbox-label span {
    flex: 1;
    color: var(--text-dark);
}

/* Text Inputs */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-white);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Signature Section */
.signature-section {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe0b2 100%);
    border: 2px solid var(--accent-color);
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--accent-color);
    color: white;
    border: 2px solid transparent;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(230, 126, 34, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.btn-submit:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.form-footer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer p {
    margin: 0.5rem 0;
}

.footer-note {
    font-style: italic;
    opacity: 0.8;
    font-size: 0.95rem;
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
    background: var(--success-color);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem 0;
    font-weight: 600;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error Message */
.error-message {
    background: var(--error-color);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        font-size: 1.3rem;
    }

    .tagline {
        font-size: 0.85rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .logo-icon svg {
        width: 22px;
        height: 22px;
    }

    .hero {
        min-height: auto;
        padding: 4rem 0 6rem;
    }

    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

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

    .hero-cta {
        align-items: center;
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 1.15rem;
        margin-bottom: 2rem;
    }

    .hero-badge {
        font-size: 0.85rem;
        padding: 0.5rem 1.2rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 2rem 0;
    }

    .feature-item {
        padding: 1.2rem;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
    }

    .feature-icon svg {
        width: 22px;
        height: 22px;
    }

    .feature-text h3 {
        font-size: 1rem;
    }

    .feature-text p {
        font-size: 0.9rem;
    }

    .hero-cta {
        margin: 2.5rem 0 2rem;
    }

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

    .hero-cta-note {
        font-size: 0.9rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        margin-top: 2rem;
        font-size: 0.8rem;
    }

    .stat-divider {
        margin: 0 0.75rem;
    }

    .stat-number-hero {
        font-size: 0.95rem;
    }

    .stat-label-hero {
        font-size: 0.8rem;
    }

    .hero-wave svg {
        height: 60px;
    }

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

    .survey-section h2 {
        font-size: 1.8rem;
    }

    .form-section {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .btn-primary,
    .btn-submit {
        width: 100%;
        padding: 1rem 2rem;
    }

    .radio-label {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .btn-hero {
        font-size: 1rem;
        padding: 1.1rem 1.8rem;
    }

    .hero-cta-note {
        font-size: 0.85rem;
    }

    .hero-stats {
        font-size: 0.75rem;
    }

    .stat-divider {
        margin: 0 0.5rem;
    }

    .stat-number-hero {
        font-size: 0.9rem;
    }

    .stat-label-hero {
        font-size: 0.75rem;
    }

    .form-section {
        padding: 1rem;
    }

    .question-label {
        font-size: 0.95rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .btn-primary,
    .btn-submit {
        display: none;
    }

    .form-section {
        page-break-inside: avoid;
    }
}