:root {
    --primary: #8bc34a;
    --accent: #8bc34a;
    --bg-dark: #111111;
    --bg-card: #1a1a1a;
    --text-light: #f5f5f5;
    --text-gray: #b0b0b0;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* --- HEADER --- */
header {
    background: rgba(0, 0, 0, 0.95);
    padding: 15px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--accent);
    text-transform: uppercase;
}

nav ul {
    display: flex;
    gap: 20px;
}

nav a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--text-light);
    cursor: pointer;
}

/* --- HERO SECTION (VIDEO BACKGROUND) --- */
.hero {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    margin-top: 60px;
    position: relative;
    /* Necesario para el video absoluto */
    overflow: hidden;
    /* Corta el video si se sale */
    background-color: var(--bg-dark);
}

/* Estilos del video de fondo */
.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Capa oscura para que el texto se lea */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

/* Asegura que el contenido esté sobre el video */
.hero>*:not(.video-bg):not(.overlay) {
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero span {
    color: var(--accent);
}

.hero p {
    font-size: 1.5rem;
    max-width: 1000px;
    margin-bottom: 30px;
    font-weight: 300;
}

/* --- BOTON FLOTANTE --- */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    border: none;
    outline: none;
    background-color: var(--primary);
    color: black;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, background-color 0.3s;
}

#scrollTopBtn:hover {
    background-color: #689f38;
    transform: scale(1.1);
}

.btn {
    padding: 12px 30px;
    background: var(--primary);
    color: rgb(0, 0, 0);
    font-weight: bold;
    border-radius: 5px;
    display: inline-block;
    margin: 5px;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    text-align: center;
}

.btn:hover {
    background: #689f38;
    transform: scale(1.05);
}

/* Modificación botón negro */
.btn-black-text {
    color: #000 !important;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: black;
}

/* --- METRICAS --- */
.stats-section {
    background: #222;
    padding: 60px 20px;
    border-bottom: 1px solid #333;
}

.stats-title {
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.stats-title span {
    color: var(--primary);
    font-size: 0.9rem;
    display: block;
    margin-top: 5px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: #151515;
    padding: 25px;
    border-radius: 8px;
    border-top: 3px solid var(--accent);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent);
    z-index: 2;
}

.stat-card i {
    font-size: 2rem;
    margin-bottom: 15px;
}

.stat-card.fb i {
    color: #1877F2;
}

.stat-card.ig i {
    color: #E1306C;
}

.stat-card.tk i {
    color: #fff;
    text-shadow: 2px 2px 0px #000;
}

.stat-card.yt i {
    color: #FF0000;
}

.stat-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: white;
}

/* Updated Stats Styles */
.stat-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-number {
    color: var(--primary);
    font-weight: bold;
    font-size: 2.5rem;
    /* Increased size significantly */
    line-height: 1.2;
}

.stat-label {
    color: var(--text-gray);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.demo-card {
    grid-column: 1 / -1;
    background: var(--bg-card);
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #333;
}

/* --- SECCIONES --- */
.section {
    padding: 80px 20px;
    max-width: 1080px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    border-left: 5px solid var(--primary);
    padding-left: 15px;
    display: inline-block;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.value-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #333;
}

.value-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.value-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* --- ANIMACIONES --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- EQUIPO --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Estilo para miembros con modal */
.team-member.interactive img {
    cursor: pointer;
}

.team-member.interactive img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--primary);
}

.team-member h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.team-member p {
    font-size: 0.9rem;
    color: var(--text-gray);
    padding: 0 10px;
}

/* --- VIDEOS --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.video-card {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    cursor: pointer;
    /* Mejora UX */
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(139, 195, 74, 0.2);
}

.video-thumbnail {
    width: 100%;
    height: 200px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 15px;
}

.video-info h4 {
    font-size: 1rem;
    line-height: 1.4;
}

.playlist-links {
    text-align: center;
    margin-top: 30px;
}

/* --- LISTAS --- */
.info-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.info-list li::before {
    content: "➤";
    color: var(--primary);
    position: absolute;
    left: 0;
}

/* --- FOOTER --- */
footer {
    background: #050505;
    padding: 50px 20px;
    text-align: center;
    border-top: 2px solid var(--primary);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
}

.social-icons a {
    font-size: 2.5rem;
    color: white;
    transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
    color: var(--primary);
    transform: translateY(-5px);
}

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #000;
    border: 2px solid var(--accent);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: white;
    box-shadow: 0 0 20px rgba(139, 195, 74, 0.3);
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

/* Contenedor de imagen en Modal */
.modal-img-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: center;
}

.modal-img-container img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    z-index: 10;
}

.close-modal:hover {
    background: var(--primary);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        border-bottom: 2px solid var(--primary);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
    }

    nav.active {
        transform: translateY(0);
    }

    nav ul {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }
}
