/* Variables CSS */
:root {
    --primary-color: #7F5AF0;
    --secondary-color: #2CB67D;
    --accent-color: #FF6B6B;
    --dark-bg: #0A0A0A;
    --dark-card: #1A1A1A;
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8B8;
    --text-muted: #808080;
    --gradient-primary: linear-gradient(135deg, #7F5AF0, #2CB67D);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    --shadow-light: 0 4px 20px rgba(127, 90, 240, 0.2);
    --shadow-dark: 0 8px 40px rgba(0, 0, 0, 0.3);
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.patrocinio-page {
    font-family: 'Poppins', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
.patrocinio-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo-img {
    height: 40px;
    width: auto;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: translateX(-5px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(127, 90, 240, 0.1) 0%, 
        rgba(44, 182, 125, 0.1) 50%, 
        rgba(255, 107, 107, 0.1) 100%);
    z-index: 1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.3);
    z-index: 3;
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 20px;
    opacity: 0.4;
    z-index: 2;
}

.shape-1 {
    width: 200px;
    height: 80px;
    background: linear-gradient(45deg, #7F5AF0, #2CB67D);
    top: 10%;
    left: 5%;
    transform: rotate(-15deg);
}

.shape-2 {
    width: 150px;
    height: 60px;
    background: linear-gradient(45deg, #FF6B6B, #7F5AF0);
    top: 30%;
    right: 10%;
    transform: rotate(25deg);
}

.shape-3 {
    width: 180px;
    height: 70px;
    background: linear-gradient(45deg, #2CB67D, #FF6B6B);
    bottom: 25%;
    left: 15%;
    transform: rotate(-30deg);
}

.shape-4 {
    width: 120px;
    height: 50px;
    background: linear-gradient(45deg, #7F5AF0, #FF6B6B);
    bottom: 15%;
    right: 20%;
    transform: rotate(45deg);
}

.hero-content {
    position: relative;
    z-index: 100;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.hero-text {
    margin-bottom: 0;
    position: relative;
    z-index: 100;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    z-index: 100;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.highlight {
    position: relative;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--primary-color);
    font-weight: 800;
    text-shadow: none;
    filter: drop-shadow(0 2px 10px rgba(127, 90, 240, 0.5));
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    position: relative;
    z-index: 100;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* Nuevo botón minimalista */
.patrocinio-page .hero .hero-cta-button {
    display: inline-flex !important;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 100;
    overflow: hidden;
    visibility: visible !important;
    opacity: 1 !important;
}

.patrocinio-page .hero .hero-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.patrocinio-page .hero .hero-cta-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.patrocinio-page .hero .hero-cta-button:hover::before {
    left: 100%;
}

.patrocinio-page .hero .hero-cta-button i {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.patrocinio-page .hero .hero-cta-button:hover i {
    transform: translateX(3px);
}

/* DEBUG TEMPORAL: Forzar visibilidad del botón */
.hero-cta-button {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    color: white !important;
    padding: 1rem 2rem !important;
    border-radius: 50px !important;
    z-index: 1000 !important;
    position: relative !important;
    margin-top: 2rem !important;
}

/* Vision Section */
.vision-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, 
        rgba(26, 26, 26, 0.5) 0%, 
        rgba(10, 10, 10, 1) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.vision-content {
    max-width: 900px;
    margin: 0 auto;
}

.vision-text {
    text-align: center;
    margin-bottom: 4rem;
}

.vision-text p {
    font-size: 1.3rem;
    color: var(--text-primary);
    line-height: 1.8;
}

.participation-ways h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.ways-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.way-item:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 350px;
    margin: 0 auto;
}

.way-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.way-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-light);
    border-color: var(--primary-color);
}

.way-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 1.5rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.way-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(127, 90, 240, 0.05) 0%, 
        rgba(44, 182, 125, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.way-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    z-index: 1;
}

.way-icon i {
    position: relative;
    z-index: 3;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.way-item:hover .way-icon {
    transform: translateY(-8px);
    border-color: rgba(127, 90, 240, 0.2);
    box-shadow: 0 15px 40px rgba(127, 90, 240, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.way-item:hover .way-icon::before {
    opacity: 1;
}

.way-item:hover .way-icon::after {
    width: 80px;
    height: 80px;
}

.way-item:hover .way-icon i {
    color: var(--primary-color);
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(127, 90, 240, 0.3));
}

/* Efectos específicos para cada ícono */
.way-item:nth-child(1) .way-icon:hover {
    border-color: rgba(44, 182, 125, 0.4);
    box-shadow: 0 10px 30px rgba(44, 182, 125, 0.2);
}

.way-item:nth-child(1) .way-icon:hover i {
    color: var(--secondary-color);
}

.way-item:nth-child(2) .way-icon:hover {
    border-color: rgba(46, 204, 113, 0.4);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.2);
}

.way-item:nth-child(2) .way-icon:hover i {
    color: #2ecc71;
}

.way-item:nth-child(3) .way-icon:hover {
    border-color: rgba(155, 89, 182, 0.4);
    box-shadow: 0 10px 30px rgba(155, 89, 182, 0.2);
}

.way-item:nth-child(3) .way-icon:hover i {
    color: #9b59b6;
}

/* Animación de resplandor suave */
@keyframes softGlow {
    0%, 100% { 
        box-shadow: 0 10px 30px rgba(127, 90, 240, 0.1);
    }
    50% { 
        box-shadow: 0 15px 35px rgba(127, 90, 240, 0.2);
    }
}

.way-item:hover .way-icon {
    animation: softGlow 2s ease-in-out infinite;
}

.way-item h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.way-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Events Section */
.events-section {
    padding: 6rem 0;
    background: var(--dark-bg);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.event-card {
    background: var(--dark-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
    border-color: var(--primary-color);
}

.event-image {
    position: relative;
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.event-overlay {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
}

.event-content {
    padding: 2rem;
}

.event-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.event-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.event-date,
.event-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.btn-event-info {
    width: 100%;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-event-info:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.02);
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-card) 100%);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-intro h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-intro p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.contact-form {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(127, 90, 240, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select option {
    background: var(--dark-card);
    color: var(--text-primary);
}

.btn-submit {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(127, 90, 240, 0.4);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        min-height: 85vh;
    }
    
    .hero-content {
        min-height: 60vh;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .ways-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .way-item:nth-child(3) {
        grid-column: 1;
        max-width: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .shape-1,
    .shape-2,
    .shape-3,
    .shape-4 {
        width: 100px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 100px;
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .event-content {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* Animation keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--rotation)); }
    50% { transform: translateY(-20px) rotate(var(--rotation)); }
}

.shape-1 { animation: float 6s ease-in-out infinite; --rotation: -15deg; }
.shape-2 { animation: float 8s ease-in-out infinite; --rotation: 25deg; }
.shape-3 { animation: float 7s ease-in-out infinite; --rotation: -30deg; }
.shape-4 { animation: float 9s ease-in-out infinite; --rotation: 45deg; }

/* Loading states */
.btn-submit.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

.btn-submit.loading i {
    animation: spin 1s linear infinite;
}

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

/* Success/Error states */
.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: var(--secondary-color);
    background: rgba(44, 182, 125, 0.1);
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--accent-color);
    background: rgba(255, 107, 107, 0.1);
}

/* Modal styles para event info */
.event-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.event-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--dark-card);
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.event-modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent-color);
}
