/* ==================== VARIABLES Y RESET ==================== */
:root {
    --primary-color: #A63251;
    --secondary-color: #633A8C;
    --accent-color: #AC8A56;
    --text-color: #2C2C2C;
    --light-bg: #F5F1E8;
    --white: #FFFFFF;
    --gray: #999999;
    --error: #E74C3C;
    --success: #27AE60;
    
    --font-serif: 'Cormorant', serif;
    --font-sans: 'Montserrat', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-color);
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    font-size: 14px;
}

.nav-link:hover {
    color: var(--primary-color);
}

.btn-nav {
    color: var(--white);
    background: var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
}

.btn-nav:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* ==================== HERO SECTION MEJORADA ==================== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 100px;
    padding: 60px 0 100px 0;
    min-height: calc(100vh - 100px);
    background: linear-gradient(135deg, rgba(166,50,81,0.05) 0%, transparent 100%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 10;
    animation: slideInLeft 0.8s ease-out;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 64px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.15;
    letter-spacing: -1px;
}

.highlight-word {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight-word::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    opacity: 0.3;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-description {
    font-size: 18px;
    color: var(--gray);
    line-height: 1.8;
    max-width: 550px;
    margin: 10px 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 45px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    max-width: fit-content;
    box-shadow: 0 10px 30px rgba(166,50,81,0.2);
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(166,50,81,0.3);
}

.cta-button.primary:active {
    transform: translateY(-1px);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.cta-button.large {
    padding: 18px 50px;
    font-size: 18px;
}

.arrow {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta-button:hover .arrow {
    transform: translateX(8px);
}

.limited-spots {
    font-size: 15px;
    color: var(--error);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    animation: slideInRight 0.8s ease-out;
    height: 100%;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(166,50,81,0.1) 0%, transparent 100%);
    z-index: 2;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== SECTION TITLES ==================== */
.section-title {
    font-family: var(--font-serif);
    font-size: 44px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-color);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 18px;
    margin-bottom: 40px;
}

/* ==================== PROBLEM SECTION ==================== */
.problem-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.problem-card,
.solution-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.problem-icon,
.solution-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.problem-card h3,
.solution-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.arrow-divider {
    font-size: 32px;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== QUE ES SECTION ==================== */
.que-es-section {
    padding: 80px 0;
}

.que-es-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.que-es-text p {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--gray);
    line-height: 1.8;
}

.que-es-text strong {
    color: var(--primary-color);
}

.benefits-list {
    list-style: none;
    margin: 30px 0;
}

.benefits-list li {
    padding: 12px 0;
    font-size: 16px;
    color: var(--text-color);
    border-bottom: 1px solid #E0E0E0;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.que-es-stats {
    display: grid;
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* ==================== EVENT DETAILS ==================== */
.event-details {
    padding: 80px 0;
    background: var(--light-bg);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.detail-item {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.detail-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.detail-item.highlight {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(166,50,81,0.05), rgba(99,58,140,0.05));
}

.detail-icon {
    font-size: 44px;
    margin-bottom: 20px;
}

.detail-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.detail-item p {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 5px;
}

.detail-item small {
    color: var(--gray);
    font-size: 13px;
}

.investment-price {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

/* ==================== BENEFICIOS SECTION ==================== */
.beneficios-section {
    padding: 80px 0;
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.beneficio-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.beneficio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.beneficio-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.beneficio-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.beneficio-card p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.7;
}

/* ==================== TESTIMONIOS ==================== */
.testimonios-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonio-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    border-top: 4px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.testimonio-text {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 25px;
    font-style: italic;
    line-height: 1.8;
}

.testimonio-text::before {
    content: '"';
    font-size: 48px;
    color: var(--primary-color);
    line-height: 0.5;
}

.testimonio-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 15px;
    border-top: 1px solid #E0E0E0;
}

.testimonio-author strong {
    color: var(--primary-color);
}

.testimonio-author span {
    font-size: 13px;
    color: var(--gray);
}

/* ==================== VALIDACIÓN VISUAL ==================== */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.form-group label::after {
    content: ' *';
    color: var(--error);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E0E0E0;
    border-radius: 5px;
    font-family: var(--font-sans);
    font-size: 14px;
    transition: var(--transition);
    color: var(--text-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(166,50,81,0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--error) !important;
    background-color: #FFF5F5;
}

.error-icon,
.success-icon {
    position: absolute;
    right: 15px;
    top: 38px;
    font-size: 20px;
    display: flex;
    align-items: center;
}

.error-icon {
    color: var(--error);
    animation: shake 0.3s;
}

.success-icon {
    color: var(--success);
    animation: slideIn 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.error-message {
    display: none;
    color: var(--error);
    font-size: 12px;
    margin-top: 5px;
    font-weight: 600;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.form-group input[type="checkbox"] + label {
    display: inline;
    margin: 0;
}

.form-group input[type="checkbox"] + label::after {
    content: '';
}

/* ==================== FORMULARIO ==================== */
.formulario-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(166,50,81,0.05) 0%, rgba(99,58,140,0.05));
}

.registration-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-fieldset {
    border: none;
    padding: 0 0 30px 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #F0F0F0;
}

.form-fieldset:last-of-type {
    border-bottom: none;
}

.form-fieldset legend {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding: 0;
}

/* ==================== FORM SUBMIT ==================== */
.form-submit-section {
    text-align: center;
    margin-top: 40px;
}

.form-submit-section .cta-button {
    width: 100%;
    justify-content: center;
}

.form-submit-section .cta-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-disclaimer {
    color: var(--gray);
    font-size: 12px;
    margin-top: 15px;
}

/* ==================== SUCCESS MESSAGE ==================== */
.success-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.success-content {
    background: var(--white);
    padding: 50px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    box-shadow: var(--shadow);
}

.success-content h3 {
    color: var(--success);
    font-size: 28px;
    margin-bottom: 15px;
}

.success-content p {
    color: var(--gray);
    margin-bottom: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #F3F3F3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== CTA FINAL SECTION ==================== */
.cta-final-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
}

.cta-final-section h2 {
    font-family: var(--font-serif);
    font-size: 44px;
    margin-bottom: 20px;
}

.cta-final-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* ==================== FOOTER ==================== */
.footer {
    background: #1F1F1F;
    color: #E0E0E0;
    padding: 60px 0 20px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-section p {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

.footer-bottom a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--white);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .hero {
        gap: 60px;
        padding: 40px 0 80px 0;
    }
    
    .hero-title {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 80px;
        padding: 30px 0;
        min-height: auto;
    }
    
    .hero-content {
        gap: 20px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-image {
        min-height: 400px;
    }
    
    .problem-grid {
        grid-template-columns: 1fr;
    }
    
    .arrow-divider {
        transform: rotate(90deg);
    }
    
    .que-es-content {
        grid-template-columns: 1fr;
    }
    
    .nav {
        gap: 15px;
        font-size: 13px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .registration-form {
        padding: 30px 20px;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .details-grid,
    .testimonios-grid,
    .beneficios-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 20px 0;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .nav-link {
        display: none;
    }
    
    .btn-nav {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .cta-final-section h2 {
        font-size: 28px;
    }
}