/* ===== VARIABLES Y ESTILOS GLOBALES ===== */
:root {
    --azul-primario: #0056b3;
    --azul-secundario: #003d7a;
    --blanco: #ffffff;
    --gris-claro: #f8f9fa;
    --gris-medio: #e9ecef;
    --gris-oscuro: #495057;
    --verde-exito: #28a745;
    --rojo-error: #dc3545;
    --amarillo-destacado: #ffc107;
    --whatsapp: #25D366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--gris-claro);
    color: var(--gris-oscuro);
    line-height: 1.6;
    padding-top: 80px; /* Para compensar el header fijo */
}

/* ===== HEADER ===== */
header {
    background: linear-gradient(135deg, var(--azul-primario), var(--azul-secundario));
    color: var(--blanco);
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s;
}

header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 60px;
    width: auto;
    transition: all 0.3s;
}

header.scrolled .logo img {
    height: 50px;
}

.logo-text h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    transition: all 0.3s;
}

header.scrolled .logo-text h1 {
    font-size: 1.3rem;
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.9;
    transition: all 0.3s;
}

header.scrolled .logo-text p {
    font-size: 0.8rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
    position: relative;
}

nav ul li a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: block;
    padding: 5px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--blanco);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
    background: url('../assets/fondo.jpg') no-repeat center center/cover;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--blanco);
    position: relative;
    margin-top: -80px; /* Compensa el header fijo */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 86, 179, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ===== BOTONES ===== */
.btn {
    display: inline-block;
    background-color: var(--blanco);
    color: var(--azul-primario);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--blanco);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background-color: transparent;
    color: var(--blanco);
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background-color: var(--azul-primario);
    color: var(--blanco);
}

.btn-primary:hover {
    background-color: var(--azul-secundario);
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(0, 0) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

/* ===== SECCIONES ===== */
section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--azul-secundario);
}

.section-title h2 {
    font-size: 2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--azul-primario);
    border-radius: 2px;
}

/* ===== ABOUT SECTION ===== */
.about {
    background-color: var(--blanco);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--azul-secundario);
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    perspective: 1000px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: rotateY(0deg);
    transition: transform 0.5s, box-shadow 0.5s;
}

.about-image:hover img {
    transform: rotateY(10deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ===== FORMULARIO ===== */
.form-container {
    background-color: var(--blanco);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
    transform-style: preserve-3d;
    transition: transform 0.3s, box-shadow 0.3s;
}

.form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--azul-secundario);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gris-medio);
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: var(--gris-claro);
}

.form-control:focus {
    outline: none;
    border-color: var(--azul-primario);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2);
    background-color: var(--blanco);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ===== EQUIPO Y ESPECIES ===== */
.team-members {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.team-member {
    flex: 1;
    min-width: 200px;
}

.species-list {
    margin-top: 20px;
}

.species-item {
    background-color: var(--gris-claro);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.species-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--azul-primario);
}

.species-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.species-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.species-header h4 {
    color: var(--azul-primario);
    font-size: 1.1rem;
}

.remove-species {
    background-color: var(--rojo-error);
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.remove-species:hover {
    background-color: #c82333;
    transform: scale(1.05);
}

.add-btn {
    background-color: var(--azul-primario);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    transition: all 0.3s;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.add-btn:hover {
    background-color: var(--azul-secundario);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.add-btn:active {
    transform: translateY(0);
}

.add-btn i {
    font-size: 1rem;
}

.submit-btn {
    background-color: var(--azul-primario);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background-color: var(--azul-secundario);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn i {
    margin-right: 8px;
}

/* ===== GALERÍA ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.gallery-item {
    background-color: var(--blanco);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-info {
    padding: 20px;
    position: relative;
    z-index: 1;
    background-color: var(--blanco);
}

.gallery-info h4 {
    color: var(--azul-primario);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.gallery-info p {
    color: var(--gris-oscuro);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.gallery-info p strong {
    color: var(--azul-secundario);
}

/* ===== RANKING ===== */
.leaderboard {
    background-color: var(--blanco);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    animation: pulse 2s infinite;
}

.leaderboard h3 {
    color: var(--azul-secundario);
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.leaderboard h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--azul-primario);
    border-radius: 3px;
}

.leaderboard-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.leaderboard-card {
    flex: 1;
    min-width: 250px;
    background: linear-gradient(135deg, var(--azul-primario), var(--azul-secundario));
    color: var(--blanco);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.leaderboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.leaderboard-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.leaderboard-card h4 i {
    font-size: 1.4rem;
}

.leaderboard-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.leaderboard-item:last-child {
    margin-bottom: 0;
}

.leaderboard-team {
    font-weight: 600;
}

.leaderboard-count {
    background-color: var(--blanco);
    color: var(--azul-primario);
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, var(--azul-secundario), var(--azul-primario));
    color: var(--blanco);
    padding: 50px 0 20px;
    text-align: center;
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    margin-bottom: 25px;
}

.footer-logo img {
    height: 60px;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--blanco);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--blanco);
    transition: width 0.3s;
}

.footer-links a:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.social-links a {
    color: var(--blanco);
    font-size: 1.5rem;
    transition: all 0.3s;
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.credits {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.credits p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 15px;
}

/* ===== BOTONES FLOTANTES ===== */
.floating-btns {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--azul-primario);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 1.2rem;
    text-decoration: none;
}

.floating-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.floating-btn:active {
    transform: translateY(0) scale(1);
}

.scroll-top {
    background-color: var(--verde-exito);
}

.scroll-top:hover {
    background-color: #218838;
}

.whatsapp {
    background-color: var(--whatsapp);
}

.whatsapp:hover {
    background-color: #128C7E;
}

/* ===== NOTIFICACIONES ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--verde-exito);
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transform: translateX(200%);
    transition: transform 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background-color: var(--rojo-error);
}

.notification i {
    font-size: 1.2rem;
}

/* ===== LOADER ===== */
.loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loader-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--gris-medio);
    border-top: 5px solid var(--azul-primario);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }
    20% {
        transform: scale(25, 25);
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 86, 179, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 86, 179, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 86, 179, 0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .leaderboard-container {
        flex-direction: column;
    }
    
    .leaderboard-card {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.5rem 0;
        position: relative;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    nav ul {
        margin-top: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 0 10px 5px;
    }
    
    .hero {
        height: auto;
        padding: 100px 0;
        margin-top: 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .floating-btns {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .team-members {
        flex-direction: column;
        gap: 15px;
    }
    
    .team-member {
        min-width: 100%;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .floating-btns {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }
    
    .floating-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    .social-links {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Colores de las redes sociales */
.facebook { background-color: #3b5998; }
.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.x { background-color: #000000; }
.youtube { background-color: #ff0000; }
.tiktok { background-color: #010101; }

.qr-code {
    margin-top: 20px;
    text-align: center;
}

.qr-code img {
    width: 100px;
    height: 100px;
    background: white;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.qr-code p {
    font-size: 14px;
    color: #bdc3c7;
    .social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Colores específicos para cada red social */
.facebook { background-color: #1877f2; }
.instagram { background: linear-gradient(45deg, #405de6, #833ab4, #c13584, #e1306c, #fd1d1d); }
.x { background-color: #000000; }
.youtube { background-color: #ff0000; }
.tiktok { 
    background-color: #010101;
    position: relative;
    overflow: hidden;
}

.tiktok::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #25f4ee, #fe2c55, transparent);
    transition: 0.5s;
}

.tiktok:hover::before {
    left: 100%;

}