:root {
    --primary-black: #000000;
    --secondary-dark-gray: #333333;
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-light: #f8f8f8;
    --background-white: #ffffff;
    --border-light-gray: #f0f0f0;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-strong: rgba(0, 0, 0, 0.2);
    --shadow-hero: rgba(0, 0, 0, 0.3);
    --shadow-header: rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
    --copy-button-bg: #444444; 
    --copy-button-hover-bg: #666666; 
    --gradient-text-light-subtle: linear-gradient(90deg, #eee 0%, #ccc 100%);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-dark-gray) 100%);
    min-height: 100vh;
}

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

.hero {
    text-align: center;
    padding: 5rem 0;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.hero-main-logo {
    width: 100px;
    height: auto;
    vertical-align: middle;
}

.hero h1 {
    font-size: 3.5rem;
    margin: 0;
    text-shadow: 2px 2px 4px var(--shadow-hero);
    display: inline-block;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    align-items: center; 
}

.stat-iv-logo-container {
    display: flex;
    flex-direction: column; 
    align-items: center;  
    margin-bottom: 0.5rem;
}

.stat-iv-logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.stat-iv-logo:hover {
    transform: scale(1.1);
}

.stat-item .stat-number {
    font-size: 2.2rem;
    font-weight: bold;
    display: block;
    color: var(--text-light);
}

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

main {
    background: var(--background-white);
    margin: 2rem auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-light);
}

.section {
    padding: 3rem 2rem;
}

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

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

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

.member-card {
    background: var(--background-white);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--border-light-gray);
    display: flex;
    flex-direction: column;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-black), var(--secondary-dark-gray));
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px var(--shadow-medium);
}

.member-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--background-white);
    box-shadow: 0 5px 15px var(--shadow-strong);
    display: flex;
    justify-content: center;
    align-items: center;
}

.member-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--secondary-dark-gray);
}

.member-role {
    color: #666;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.member-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1; 
}

.legends {
    background: var(--primary-black);
    color: var(--text-light);
}

.legends .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.member-card.legend-card {
    background: #1a1a1a;
    border: 2px solid #333;
    color: var(--text-light);
}

.legend-card::before {
    background: linear-gradient(90deg, var(--text-light), #ccc);
}

.legend-card .member-name { color: var(--text-light); }
.legend-card .member-role { color: #ccc; }
.legend-card .member-description { color: rgba(255, 255, 255, 0.8); }

.legend-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--background-white);
    color: var(--primary-black);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
}

.legend-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--background-white);
    box-shadow: 0 5px 15px var(--shadow-strong);
    display: flex;
    justify-content: center;
    align-items: center;
}

.legend-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

footer {
    background: var(--primary-black);
    color: var(--text-light);
    text-align: center;
    padding: 3rem 0;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto 2rem;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    padding: 0 20px;
    text-align: center;
}

.footer-section h3 { margin-bottom: 1rem; color: var(--text-light); font-size: 1.2rem; }
.footer-section p { font-size: 0.9rem; opacity: 0.8; margin-bottom: 0.5rem; }
.footer-section a { color: var(--text-light); text-decoration: none; }
.footer-section a:hover { text-decoration: underline; }
.slogan { font-style: italic; opacity: 0.9; margin-bottom: 0.7rem; }

.support-section {
    background: var(--background-light);
    color: var(--text-dark);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 10px;
    margin: 2rem auto;
    box-shadow: 0 5px 20px var(--shadow-light);
}

.support-section .section-title { color: var(--primary-black); margin-bottom: 1rem; }
.support-section .section-subtitle { color: #555; margin-bottom: 2.5rem; }
.support-content { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.support-content p { font-size: 1.1rem; margin-bottom: 1.5rem; max-width: 800px; text-align: center; }
.paypal-button-container { margin-top: 30px; }
.paypal-button-container form { display: block; }
.paypal-button-container img { vertical-align: middle; }

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-title-container { flex-direction: column; gap: 1rem; }
    .hero-main-logo { width: 80px; }
    .stats { flex-direction: column; gap: 1rem; }
    .members-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 40px; text-align: center; }
    .footer-section { min-width: unset; width: 100%; padding: 0; }
    .section h2 { font-size: 2rem; }
}

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

.member-card { animation: fadeInUp 0.6s ease forwards; }
.member-card:nth-child(2) { animation-delay: 0.1s; }
.member-card:nth-child(3) { animation-delay: 0.2s; }
.member-card:nth-child(4) { animation-delay: 0.3s; }


/* --- ESTILOS PARA EL SISTEMA DE VIDEO (CORREGIDO Y MEJORADO) --- */

.video-section {
    margin-top: 1.5rem;
}

.video-container {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #2c3e50, #1a2533);
}

.video-container:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.video-placeholder-text {
    color: white;
    transition: transform 0.3s ease;
}

.video-container:hover .video-placeholder-text {
    transform: scale(0.95);
}

.video-placeholder-text h3 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: white; /* Color de texto simple y compatible */
    /* Sombra de texto más definida para que resalte sobre el fondo oscuro */
    text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.6);
}

.video-placeholder-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.video-container:hover .video-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 11;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.play-button:hover {
    background: white;
    transform: scale(1.1);
}

.play-button::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 20px solid #007bff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}

.video-placeholder {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e9ecef;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    padding-top: 60px;
}

.modal-content {
    position: relative;
    margin: 5% auto;
    width: 80%;
    max-width: 800px;
}

.modal-video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    border-radius: 10px;
    display: block;
}

.close {
    color: white;
    position: absolute;
    top: -30px;
    right: -5px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #007bff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .close {
        top: -35px;
        right: 10px;
        font-size: 35px;
    }
}