/* ===== RESET Y VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-white: #fff;
    --color-primary: #bf3565;
    --color-secondary: #e6b524;
    --color-accent: #9ca17f;
    --color-dark: #2c3e50;
    --color-light-gray: #f8f9fa;
    --color-gray: #6c757d;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--color-dark);
    scroll-behavior: smooth;
}

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

/* ===== TYPOGRAPHY ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: var(--color-white);
    padding: 80px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Logo styles */
.hero-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: var(--transition);
}

.hero-logo:hover {
    transform: scale(1.05);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="white" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-cta {
    margin-top: 2rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.image-placeholder span {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

/* ===== BUTTONS ===== */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--color-secondary), #f1c232);
    color: var(--color-dark);
    box-shadow: var(--shadow);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #f1c232, var(--color-secondary));
}

.cta-button.full-width {
    width: 100%;
    justify-content: center;
    padding: 18px;
}

/* ===== BENEFITS SECTION ===== */
.benefits-section {
    padding: 80px 0;
    background: var(--color-light-gray);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--color-primary);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.benefit-icon i {
    font-size: 2rem;
    color: var(--color-white);
}

.benefit-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.benefit-card p {
    color: var(--color-gray);
    line-height: 1.6;
}

/* ===== PARTICIPATION SECTION ===== */
.participation-section {
    padding: 80px 0;
    background: var(--color-white);
}

.participation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.option-card {
    background: var(--color-light-gray);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
}

.option-card.featured {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--color-white);
    transform: scale(1.05);
}

.option-card.featured::before {
    content: '¡RECOMENDADO!';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-secondary);
    color: var(--color-dark);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

.option-card:hover:not(.featured) {
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

.option-icon {
    width: 100px;
    height: 100px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.option-card.featured .option-icon {
    background: var(--color-white);
}

.option-icon i {
    font-size: 2.5rem;
    color: var(--color-white);
}

.option-card.featured .option-icon i {
    color: var(--color-primary);
}

.option-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.option-card.featured h3 {
    color: var(--color-white);
}

.option-card p {
    margin-bottom: 1.5rem;
    color: var(--color-gray);
    line-height: 1.6;
}

.option-card.featured p {
    color: rgba(255, 255, 255, 0.9);
}

.option-highlight {
    background: var(--color-secondary);
    color: var(--color-dark);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
}

/* ===== CAROUSEL SECTION ===== */
.carousel-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-light-gray) 100%);
    overflow: hidden;
}

.carousel-section .container {
    max-width: none; /* Removemos el límite de ancho */
    padding: 0; /* Sin padding lateral */
}

.carousel-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px; /* Solo padding para el texto */
}

.carousel-container {
    position: relative;
    width: 100vw; /* Ancho completo de la ventana */
    height: 300px;
    overflow: hidden;
    margin-left: calc(-50vw + 50%); /* Centrar el carrusel que ocupa todo el ancho */
    mask: linear-gradient(to right, transparent, black 50px, black calc(100% - 50px), transparent);
    -webkit-mask: linear-gradient(to right, transparent, black 50px, black calc(100% - 50px), transparent);
}

.carousel-track {
    display: flex;
    width: calc(250px * 8); /* 8 items total (6 originales + 2 duplicadas) */
    animation: scroll-horizontal 20s linear infinite;
    will-change: transform;
}

@keyframes scroll-horizontal {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 6)); /* Mover 6 items hacia la izquierda */
    }
}

.carousel-item {
    flex: 0 0 250px;
    height: 300px;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-right: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.carousel-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.carousel-item:hover img {
    transform: scale(1.1);
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--color-white);
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.carousel-item:hover .item-overlay {
    transform: translateY(0);
    opacity: 1;
}

.item-overlay h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.item-overlay p {
    font-size: 0.95rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Pausar animación al hover del contenedor */
.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

/* ===== FORM SECTION ===== */
.form-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-light-gray) 0%, var(--color-white) 100%);
}

.form-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.form-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.form-subtitle {
    color: var(--color-gray);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.registration-form {
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(191, 53, 101, 0.1);
}

.trust-message {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.trust-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.trust-icon i {
    font-size: 2rem;
    color: var(--color-white);
}

.trust-message h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.trust-message p {
    color: var(--color-gray);
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 2rem 0;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-brand .hero-logo {
    max-width: 120px;
    height: auto;
    filter: brightness(1.1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.footer-brand-text h3 {
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.footer-brand-text p {
    opacity: 0.8;
    margin: 0;
}

.footer-contact p {
    opacity: 0.7;
}

/* ===== MARQUESINA INFERIOR ===== */
.marquee-container {
    background: var(--color-dark);
    border-top: 2px solid var(--color-secondary);
    height: 25px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marquee-content {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    color: var(--color-white);
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.marquee-content span {
    padding: 0; /* Sin padding ya que está centrado */
}

.marquee-content a {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    position: relative;
}

.marquee-content a:hover {
    color: #f1c232;
    text-shadow: 0 0 3px rgba(230, 181, 36, 0.5);
    opacity: 1;
}

.marquee-content a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-secondary);
    transition: width 0.3s ease;
}

.marquee-content a:hover::after {
    width: 100%;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: modalAppear 0.3s ease;
}

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

.modal-header i {
    font-size: 3rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.modal-header h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.modal-body p {
    color: var(--color-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-section .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-logo {
        max-width: 150px;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .participation-options {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .option-card.featured {
        transform: none;
    }
    
    .form-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-brand {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-brand .hero-logo {
        max-width: 100px;
    }
    
    .registration-form {
        padding: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .carousel-section .container {
        padding: 0; /* Mantener sin padding para ancho completo */
    }
    
    .carousel-subtitle {
        padding: 0 15px; /* Padding solo para el texto */
    }
    
    .carousel-container {
        height: 250px;
        mask: linear-gradient(to right, transparent, black 30px, black calc(100% - 30px), transparent);
        -webkit-mask: linear-gradient(to right, transparent, black 30px, black calc(100% - 30px), transparent);
    }
    
    .carousel-track {
        width: calc(200px * 8);
        animation: scroll-horizontal-tablet 18s linear infinite;
    }
    
    @keyframes scroll-horizontal-tablet {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-200px * 6));
        }
    }
    
    .carousel-item {
        flex: 0 0 200px;
        height: 250px;
        margin-right: 15px;
    }
    
    .item-overlay {
        padding: 1.5rem 1rem 1rem;
    }
    
    .item-overlay h4 {
        font-size: 1.1rem;
    }
    
    .item-overlay p {
        font-size: 0.85rem;
    }
    
    .marquee-container {
        height: 22px;
    }
    
    .marquee-content {
        font-size: 7px;
        letter-spacing: 0.3px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-logo {
        max-width: 120px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .benefit-card,
    .option-card {
        padding: 2rem;
    }
    
    .registration-form {
        padding: 1.5rem;
    }
    
    .image-placeholder {
        width: 250px;
        height: 250px;
    }
    
    .image-placeholder i {
        font-size: 3rem;
    }
    
    .footer-brand .hero-logo {
        max-width: 80px;
    }
    
    .footer-brand-text h3 {
        font-size: 1.2rem;
    }
    
    .carousel-subtitle {
        padding: 0 10px; /* Padding más pequeño en móvil */
    }
    
    .carousel-container {
        height: 200px;
        mask: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
        -webkit-mask: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
    }
    
    .carousel-track {
        width: calc(160px * 8);
        animation: scroll-horizontal-mobile 16s linear infinite;
    }
    
    @keyframes scroll-horizontal-mobile {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-160px * 6));
        }
    }
    
    .carousel-item {
        flex: 0 0 160px;
        height: 200px;
        margin-right: 10px;
    }
    
    .item-overlay {
        padding: 1rem 0.8rem 0.8rem;
    }
    
    .item-overlay h4 {
        font-size: 1rem;
    }
    
    .item-overlay p {
        font-size: 0.8rem;
    }
    
    .marquee-container {
        height: 20px;
    }
    
    .marquee-content {
        font-size: 6px;
        letter-spacing: 0.2px;
    }
}