:root {
    --primary: #3A86FF;
    /* Azul vibrante */
    --primary-dark: #2667CC;
    --primary-light: #6BA3FF;
    --secondary: #8338EC;
    /* Púrpura */
    --secondary-dark: #6629BA;
    --light: #FFFFFF;
    --dark: #2F2F2F;
    --gray: #6C7A7A;
    --light-gray: #F8F9FA;
    --commission: #FF006E;
    /* Rosa/rojo para comisión */
    --success: #06D6A0;
    /* Verde turquesa */
    --error: #EF476F;
    /* Rosa rojizo */
    --border-radius: 12px;
    --box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    min-width: 320px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: auto;
}

.logo i {
    margin-right: 10px;
    color: var(--secondary);
    font-size: 2rem;
}

.logo span {
    color: var(--commission);
    font-weight: 800;
}

.nav-links {
    display: flex;
    list-style: none;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
    white-space: nowrap;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover:after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn {
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(58, 134, 255, 0.2);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-3px);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.05) 0%, rgba(131, 56, 236, 0.05) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--secondary);
}

.hero p {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 40px;
    max-width: 600px;
}

.commission-badge {
    display: inline-block;
    background-color: rgba(255, 0, 110, 0.1);
    color: var(--commission);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    margin-top: 20px;
    border: 2px dashed var(--commission);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

/* How it works */
.how-it-works {
    padding: 100px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-top: 50px;
}

.step {
    flex: 1;
    text-align: center;
    padding: 40px 30px;
    background-color: var(--light);
    border-radius: var(--border-radius);
    position: relative;
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-15px);
    box-shadow: var(--box-shadow);
}

.step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    border: 5px solid white;
}

.step-icon {
    width: 100px;
    height: 100px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: var(--primary);
    font-size: 2.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.step h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.step p {
    color: var(--gray);
}

.commission-highlight {
    color: var(--commission);
    font-weight: 700;
}

/* Commission Model */
.commission-model {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.commission-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.commission-text {
    flex: 1;
}

.commission-visual {
    flex: 1;
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.commission-visual h3 {
    color: var(--commission);
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.commission-percentage {
    font-size: 5rem;
    font-weight: 800;
    color: var(--commission);
    line-height: 1;
    margin-bottom: 20px;
}

.commission-note {
    color: var(--gray);
    font-size: 1.1rem;
}

/* Benefits */
.benefits {
    padding: 100px 0;
    background-color: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.benefit-card {
    background-color: var(--light);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary);
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.benefit-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

/* CTA Registration */
.cta-registration {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-registration h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-registration p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 50px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    background-color: white;
    color: var(--primary);
}

.cta-buttons .btn:hover {
    background-color: var(--light-gray);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 30px;
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 15px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    padding: 30px;
    position: relative;
    animation: modalFadeIn 0.3s;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--gray);
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 10;
}

.close-modal:hover {
    color: var(--dark);
    background-color: var(--light-gray);
}

.modal h2 {
    color: var(--primary);
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
    padding-right: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.user-type-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.user-type-btn {
    flex: 1;
    padding: 18px 10px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.user-type-btn:hover {
    border-color: var(--primary-light);
}

.user-type-btn.active {
    border-color: var(--primary);
    background-color: rgba(58, 134, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.user-type-btn i {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.user-type-btn p {
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

/* Checkbox personalizado */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin: 25px 0;
    padding: 15px;
    background-color: rgba(255, 0, 110, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--commission);
}

.checkbox-container input[type="checkbox"] {
    margin-top: 3px;
    margin-right: 12px;
    min-width: 18px;
    min-height: 18px;
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.9rem;
    color: var(--dark);
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.error-message {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Mensajes de éxito/error */
.message {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 20px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    z-index: 1002;
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.success-message {
    background-color: var(--success);
    color: white;
}

.error-message-global {
    background-color: var(--error);
    color: white;
}

/* Responsive */
@media (max-width: 992px) {
    .logo {
        font-size: 1.5rem;
    }

    .hero-content,
    .commission-content {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .mobile-menu {
        display: block;
    }

    .steps-container {
        flex-direction: column;
    }

    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn,
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .modal-content {
        max-height: 85vh;
        padding: 25px 20px;
        margin: 20px;
    }

    .modal h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    nav {
        gap: 15px;
    }

    .nav-links {
        display: none;
    }

    .nav-buttons {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.3rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .user-type-selector {
        flex-direction: column;
    }

    .modal-content {
        padding: 20px 15px;
        max-height: 80vh;
    }

    .form-control {
        padding: 12px;
    }

    .message {
        left: 20px;
        right: 20px;
        max-width: calc(100% - 40px);
    }
}

@media (max-height: 700px) {
    .modal-content {
        max-height: 85vh;
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

@media (max-height: 600px) {
    .modal-content {
        max-height: 90vh;
    }

    .form-group {
        margin-bottom: 15px;
    }

    textarea.form-control {
        min-height: 80px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.4rem;
    }

    .logo i {
        font-size: 1.6rem;
        margin-right: 6px;
    }
}

@media (max-width: 1200px) {
    .logo {
        font-size: 1.6rem;
    }

    .logo i {
        font-size: 1.7rem;
    }

    .nav-links li {
        margin-left: 20px;
    }

    .nav-links a {
        font-size: 0.95rem;
    }

    .btn {
        padding: 9px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 1100px) {
    .nav-links {
        display: none;
    }

    .nav-buttons {
        display: none;
    }

    .mobile-menu {
        display: block;
    }
}