/* ============================================================
   VARIABLES GLOBALES (Design System)
   ============================================================ */
:root {
    --color-primary: #7aa329; /* Verde clásico The Seed */
    --color-secondary: #9cce3f; /* Verde brillante del logo */
    --color-tertiary: #cde69c; /* Verde suave */
    --color-background: #fafff3; /* Fondo claro general */
    --color-surface: #ffffff;
    --color-text-main: #1f2937;
    --color-text-muted: #4b5563;
    
    --color-danger: #ef4444;
    --color-danger-hover: #dc2626;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.12);
    
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Montserrat', sans-serif;
    background-color: var(--color-background);
    background-image: 
        radial-gradient(at 0% 0%, hsla(81, 48%, 91%, 1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, hsla(81, 43%, 85%, 1) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--color-text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ============================================================
   ENCABEZADO Y NAVEGACIÓN (GREEN GLASSMORPHISM)
   ============================================================ */
header {
    background-color: rgba(156, 206, 63, 0.85); /* Verde brillante semitransparente */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: 100px;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 90px;
    width: auto;
    transition: transform var(--transition-base);
    display: block;
}

.logo img:hover {
    transform: scale(1.05) rotate(-2deg);
}

header nav ul {
    display: flex;
    align-items: center;
}

header nav ul li {
    margin-left: 10px;
}

header nav ul li a {
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    color: #1f2937; /* Texto oscuro para contrastar con el fondo verde */
    padding: 10px 18px;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: #ffffff;
    transition: width var(--transition-base);
    border-radius: 3px 3px 0 0;
}

header nav ul li a:hover::after,
header nav ul li a.active::after {
    width: 60%;
}

header nav ul li a.active {
    color: var(--color-primary); /* Texto verde clásico */
    background-color: #ffffff; /* Fondo blanco en el botón activo */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

header nav ul li a:hover:not(.active) {
    color: #111827;
    background-color: rgba(255, 255, 255, 0.2);
}

/* ============================================================
   BANNER PRINCIPAL
   ============================================================ */
.hero-banner {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
}

.hero-banner img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 500px;
}

/* Efecto superpuesto sutil en el banner */
.hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(244, 253, 248, 1) 0%, rgba(255,255,255,0) 25%);
}

/* ============================================================
   CONTENIDO PRINCIPAL
   ============================================================ */
main .content {
    padding: 60px 0;
    text-align: center;
}

.info {
    margin: 60px auto;
    max-width: 900px;
    padding: 0 20px;
}

section h1 {
    font-size: 5rem;
    color: var(--color-primary);
    text-align: center;
    letter-spacing: -1px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

section h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--color-secondary);
    margin: 15px auto 0;
    border-radius: 4px;
}

section h2 {
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

section p {
    font-size: 18px;
    color: var(--color-text-muted);
    text-align: left;
    line-height: 1.8;
}

.imagenes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px auto;
    max-width: 1100px;
    padding: 0 20px;
}

.arte img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.arte img:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.equipo {
    text-align: center;
    margin: 40px auto;
}

.equipo img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-base);
}

.equipo img:hover {
    transform: scale(1.02);
}

/* ============================================================
   SECCIÓN ACERCA DE (VISUAL MODERNO)
   ============================================================ */
.hero {
    text-align: center;
    padding: 6rem 2rem 4rem;
    color: white;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.05);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23ffffff" fill-opacity="0.05" fill-rule="evenodd"%3E%3Ccircle cx="3" cy="3" r="3"/%3E%3Ccircle cx="13" cy="13" r="3"/%3E%3C/g%3E%3C/svg%3E');
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease;
    color: white;
}

.hero-title::after {
    background: white;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: white;
    opacity: 1;
    animation: fadeInUp 1.2s ease;
}

.about-section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin: -4rem auto 4rem;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 1100px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.4);
    position: relative;
    animation: fadeInUp 1s ease-in-out;
}

.about-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.about-text {
    flex: 1 1 500px;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text .highlight {
    color: var(--color-secondary);
    font-weight: 700;
}

.about-image {
    flex: 1 1 400px;
    text-align: center;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base);
}

.about-image img:hover {
    transform: translateY(-10px) rotate(2deg);
}

/* ============================================================
   LOGIN Y REGISTRO (PREMIUM CARDS)
   ============================================================ */
.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 170px);
    padding: 60px 20px;
    background-image: 
        radial-gradient(at 100% 100%, hsla(81, 48%, 91%, 1) 0px, transparent 50%);
}

.login-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-lg);
    padding: 50px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: fadeInUp 0.5s ease backwards;
}

.login-card h1 {
    color: var(--color-primary);
    font-size: 28px;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.login-card h1::after {
    display: none;
}

.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    color: var(--color-text-main);
    font-weight: 600;
    margin-bottom: 8px;
}

.input-group input, 
.input-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius-sm);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: var(--color-text-main);
    background-color: #f9fafb;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
    outline: none;
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--color-secondary);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(156, 206, 63, 0.2);
}

.btn-login, .btn-google {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: 'Poppins', sans-serif;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-top: 10px;
}

.btn-login {
    background-color: var(--color-primary);
    box-shadow: 0 4px 14px rgba(122, 163, 41, 0.3);
}

.btn-login:hover {
    background-color: #5d801d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(122, 163, 41, 0.4);
}

.btn-google {
    background-color: #f3f4f6;
    color: var(--color-text-main);
    border: 1px solid #e5e7eb;
    margin-top: 15px;
    box-shadow: var(--shadow-sm);
}

.btn-google:hover {
    background-color: #e5e7eb;
    transform: translateY(-2px);
}

.toggle-link {
    display: inline-block;
    margin-top: 25px;
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition-base);
}

.toggle-link:hover {
    color: var(--color-primary);
}

/* ============================================================
   ESTILOS ESPECÍFICOS PARA ACCESO ADMIN
   ============================================================ */
#admin-form .input-group input:focus {
    border-color: #db4437;
    box-shadow: 0 0 0 4px rgba(219, 68, 55, 0.2);
}

#admin-form .toggle-link:hover {
    color: #db4437;
}

/* ============================================================
   TIENDA Y APOYANOS
   ============================================================ */
.donation-container {
    max-width: 600px;
    margin: 80px auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    border-top: 6px solid var(--color-secondary);
    animation: fadeInUp 0.6s ease;
}

.donation-container h2 {
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 28px;
}

.donation-container p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--color-text-muted);
}

.amount-selector {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border: 2px solid var(--color-tertiary);
    border-radius: var(--border-radius-sm);
    margin-bottom: 30px;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    color: var(--color-primary);
    background: #fff;
    transition: all var(--transition-base);
}

.amount-selector:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(122, 163, 41, 0.2);
}

/* ============================================================
   PERFIL Y AVATAR
   ============================================================ */
.perfil-container { display: flex; justify-content: center; padding: 60px 20px; }
.perfil-card { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.5); width: 100%; max-width: 600px; padding: 40px; border-radius: var(--border-radius-lg); box-shadow: 0 10px 40px rgba(0,0,0,0.05); }
.perfil-header { text-align: center; margin-bottom: 40px; }
.avatar-wrapper { position: relative; width: 150px; height: 150px; margin: 0 auto 20px; border-radius: 50%; padding: 5px; background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.perfil-avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid white; background-color: white;}
.btn-change-avatar { position: absolute; bottom: 5px; right: 5px; background: white; border: none; font-size: 20px; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.1); transition: transform var(--transition-base); }
.btn-change-avatar:hover { transform: scale(1.1); }
.perfil-header h2 { color: var(--color-primary); margin-bottom: 5px; font-size: 2rem; }
.correo-text { color: var(--color-text-muted); font-size: 1.1rem; }
.form-password .input-group { margin-bottom: 15px; text-align: left; }
.btn-logout-big { display: inline-block; background-color: #ef4444; color: white; border: none; padding: 12px 30px; border-radius: var(--border-radius-sm); font-family: 'Poppins', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; transition: all var(--transition-base); text-decoration: none; width: 100%; box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3); }
.btn-logout-big:hover { background-color: var(--color-danger-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4); }

/* ============================================================
   PIE DE PÁGINA
   ============================================================ */
footer {
    background-color: var(--color-primary);
    color: rgba(255,255,255,0.8);
    text-align: center;
    padding: 24px 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    margin-top: auto;
}

/* ============================================================
   ANIMACIONES
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* ============================================================
   EFECTO REVEAL AL HACER SCROLL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        justify-content: center;
    }
    
    header {
        height: auto;
        padding: 15px 0;
    }
    
    header nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    header nav ul li {
        margin-left: 0;
    }
    
    section h1 { font-size: 40px; }
    .hero-title { font-size: 2.5rem; }
    
    .about-section {
        padding: 2rem;
        width: 95%;
        margin-top: -2rem;
    }

    /* Ajustes generales de las tarjetas para pantallas pequeñas */
    .login-card, 
    .donation-container, 
    .perfil-card,
    .crud-container,
    .mfa-container {
        padding: 25px 20px !important;
        margin-top: 30px !important;
        margin-bottom: 30px !important;
        width: 90% !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    /* Formularios y botones */
    .input-group input, 
    .input-group select,
    .btn-login, 
    .btn-google,
    .btn-logout-big,
    .btn-submit {
        padding: 12px 10px !important;
        font-size: 14px !important;
    }

    /* Reducir espacio superior e inferior en general */
    .game-wrapper, .perfil-container, body > main {
        padding: 20px 10px !important;
    }
    
    .avatar-wrapper {
        width: 120px !important;
        height: 120px !important;
    }
    
    .perfil-header h2 {
        font-size: 1.5rem !important;
    }
}
