/* Team Page Styles - Created with Gultar Design System */
/* Updated for team page - 2025-06-08 by CristianM-blip */

@import url('https://fonts.googleapis.com/css2?family=Rowdies:wght@300;400;700&display=swap');

/* Variables CSS específicas para página de equipo */
:root {
    --team-primary: #2ca16d;
    --team-secondary: #4a90e2;
    --team-accent: #f39c12;
    --team-success: #27ae60;
    --team-warning: #f1c40f;
    --team-danger: #e74c3c;
    --team-bronze: #cd7f32;
    --team-silver: #c0c0c0;
    --team-gold: #ffd700;
    --team-dark: #1a1a1a;
    --team-card-bg: #ffffff;
    --team-text-primary: #333333;
    --team-text-secondary: #666666;
    --team-text-light: #ffffff;
    --team-border: #e0e0e0;
    --team-shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --team-shadow-medium: 0 5px 20px rgba(0,0,0,0.15);
    --team-shadow-heavy: 0 10px 30px rgba(0,0,0,0.2);
    --team-gradient: linear-gradient(135deg, #2ca16d 0%, #4a90e2 100%);
    --team-gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    --team-border-radius: 12px;
    --team-transition: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset específico con Rowdies como fuente principal */
* {
    box-sizing: border-box;
    font-family: "Rowdies", cursive, sans-serif;
}

body {
    margin: 0;
    font-family: "Rowdies", cursive, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    color: var(--team-text-primary);
    line-height: 1.6;
}

/* Asegurar que todos los elementos usen Rowdies */
h1, h2, h3, h4, h5, h6,
p, span, div, a, button, input, textarea, select,
.hero-title, .hero-subtitle,
.member-name, .member-role, .member-description,
.section-header h2, .section-header p,
.department-title, .department-description,
.contact-info, .social-links,
.btn-primary, .btn-secondary,
.cta-content h2, .cta-content p {
    font-family: "Rowdies", cursive, sans-serif !important;
}

/* Team Hero Section */
.team-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 50%, #1a1a1a 100%);
    color: var(--team-text-light);
    width: 100%;
    margin: 0;
    padding: 140px 0 80px 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(44, 161, 109, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(74, 144, 226, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(243, 156, 18, 0.3) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 3rem 2rem;
    margin: 0 auto;
    margin-top: 60px;
}

.hero-title {
    font-family: "Rowdies", cursive, sans-serif !important;
    font-size: 4rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    background: linear-gradient(45deg, var(--team-primary), var(--team-secondary), var(--team-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-family: "Rowdies", cursive, sans-serif !important;
    font-size: 1.4rem;
    margin: 0 0 1rem 0;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.6;
}

/* Contenedor principal */
.team-container {
    max-width: 1200px;
    margin: -60px auto 0;
    padding: 0 2rem 4rem;
    position: relative;
    z-index: 3;
}

/* Sección de liderazgo */
.leadership-section {
    background: var(--team-card-bg);
    border-radius: var(--team-border-radius);
    box-shadow: var(--team-shadow-medium);
    margin-bottom: 3rem;
    padding: 3rem;
    border: 1px solid var(--team-border);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: "Rowdies", cursive, sans-serif !important;
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    color: var(--team-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-weight: 700;
}

.section-header h2 i {
    color: var(--team-accent);
    font-size: 2rem;
}

.section-header p {
    font-family: "Rowdies", cursive, sans-serif !important;
    font-size: 1.1rem;
    margin: 0;
    color: var(--team-text-secondary);
}

/* Cards de miembros del equipo */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-member-card {
    background: var(--team-card-bg);
    border-radius: var(--team-border-radius);
    padding: 2.5rem;
    text-align: center;
    transition: var(--team-transition);
    border: 1px solid var(--team-border);
    position: relative;
    overflow: hidden;
    box-shadow: var(--team-shadow-light);
}

.team-member-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--team-shadow-heavy);
}

.team-member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--team-gradient);
}

/* Avatar del miembro */
.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    background: var(--team-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--team-transition);
    position: relative;
    overflow: hidden;
}

.team-member-card:hover .member-avatar {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(44, 161, 109, 0.4);
}

.member-avatar i {
    font-size: 3rem;
    color: white;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Información del miembro */
.member-info {
    margin-bottom: 1.5rem;
}

.member-name {
    font-family: "Rowdies", cursive, sans-serif !important;
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    color: var(--team-primary);
    font-weight: 700;
}

.member-role {
    font-family: "Rowdies", cursive, sans-serif !important;
    font-size: 1rem;
    color: var(--team-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 1rem 0;
}

.member-description {
    font-family: "Rowdies", cursive, sans-serif !important;
    color: var(--team-text-secondary);
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

/* Especialidades */
.member-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.specialty-tag {
    background: linear-gradient(135deg, var(--team-primary), var(--team-secondary));
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: "Rowdies", cursive, sans-serif !important;
}

/* Información de contacto */
.member-contact {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--team-transition);
    text-decoration: none;
    font-size: 1.1rem;
}

.contact-btn.discord {
    background: #5865f2;
    color: white;
}

.contact-btn.email {
    background: var(--team-secondary);
    color: white;
}

.contact-btn.github {
    background: #333;
    color: white;
}

.contact-btn:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: var(--team-shadow-medium);
}

/* Departamentos */
.departments-section {
    background: var(--team-card-bg);
    border-radius: var(--team-border-radius);
    box-shadow: var(--team-shadow-medium);
    margin-bottom: 3rem;
    padding: 3rem;
    border: 1px solid var(--team-border);
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.department-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: var(--team-border-radius);
    border-left: 4px solid var(--team-primary);
    transition: var(--team-transition);
}

.department-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--team-shadow-light);
    background: white;
}

.department-icon {
    width: 60px;
    height: 60px;
    background: var(--team-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.department-icon i {
    font-size: 1.5rem;
    color: white;
}

.department-title {
    font-family: "Rowdies", cursive, sans-serif !important;
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
    color: var(--team-primary);
    font-weight: 700;
}

.department-description {
    font-family: "Rowdies", cursive, sans-serif !important;
    margin: 0;
    color: var(--team-text-secondary);
    line-height: 1.6;
}

/* Valores del equipo */
.team-values-section {
    background: var(--team-gradient);
    border-radius: var(--team-border-radius);
    box-shadow: var(--team-shadow-medium);
    margin-bottom: 3rem;
    padding: 3rem;
    color: var(--team-text-light);
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--team-border-radius);
    transition: var(--team-transition);
}

.value-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}

.value-icon i {
    font-size: 1.5rem;
    color: white;
}

.value-title {
    font-family: "Rowdies", cursive, sans-serif !important;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.value-description {
    font-family: "Rowdies", cursive, sans-serif !important;
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
}

/* Call to action para unirse */
.join-team-cta {
    background: var(--team-card-bg);
    border-radius: var(--team-border-radius);
    box-shadow: var(--team-shadow-medium);
    padding: 3rem;
    text-align: center;
    border: 1px solid var(--team-border);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.cta-icon {
    width: 80px;
    height: 80px;
    background: var(--team-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.cta-icon i {
    font-size: 2rem;
    color: white;
}

.cta-content h2 {
    font-family: "Rowdies", cursive, sans-serif !important;
    font-size: 2.2rem;
    margin: 0 0 1rem 0;
    color: var(--team-primary);
    font-weight: 700;
}

.cta-content p {
    font-family: "Rowdies", cursive, sans-serif !important;
    margin: 0 0 2rem 0;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--team-text-secondary);
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Botones */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--team-border-radius);
    text-decoration: none;
    font-family: "Rowdies", cursive, sans-serif !important;
    font-weight: 700;
    transition: var(--team-transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--team-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--team-shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--team-primary);
    border: 2px solid var(--team-primary);
}

.btn-secondary:hover {
    background: var(--team-primary);
    color: white;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .team-container {
        margin: -50px auto 0;
    }
    
    .team-grid,
    .departments-grid,
    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .team-hero {
        padding: 120px 0 60px 0;
        min-height: 65vh;
    }
    
    .hero-content {
        margin-top: 40px;
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
        margin: 0 0 1.5rem 0;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin: 0 0 0.8rem 0;
    }
    
    .team-container {
        padding: 0 1rem 3rem;
        margin: -50px auto 0;
    }
    
    .leadership-section,
    .departments-section,
    .team-values-section,
    .join-team-cta {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .section-header h2 i {
        font-size: 1.5rem;
    }
    
    .team-grid,
    .departments-grid,
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-member-card {
        padding: 2rem;
    }
    
    .member-avatar {
        width: 100px;
        height: 100px;
    }
    
    .member-avatar i {
        font-size: 2.5rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .team-hero {
        padding: 100px 0 40px 0;
        min-height: 55vh;
    }
    
    .hero-content {
        margin-top: 30px;
        padding: 1.5rem 1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin: 0 0 1.2rem 0;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin: 0 0 0.5rem 0;
    }
    
    .team-container {
        padding: 0 0.5rem 2rem;
        margin: -40px auto 0;
    }
    
    .leadership-section,
    .departments-section,
    .team-values-section,
    .join-team-cta {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .team-member-card {
        padding: 1.5rem;
    }
    
    .member-avatar {
        width: 80px;
        height: 80px;
    }
    
    .member-avatar i {
        font-size: 2rem;
    }
    
    .member-specialties {
        flex-direction: column;
        align-items: center;
    }
    
    .specialty-tag {
        text-align: center;
        width: fit-content;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .cta-icon {
        animation: none;
    }
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
    :root {
        --team-card-bg: #2d3748;
        --team-text-primary: #e2e8f0;
        --team-text-secondary: #a0aec0;
        --team-border: #4a5568;
    }
    
    body {
        background: #2d3748;
    }
    
    .team-member-card,
    .department-card,
    .leadership-section,
    .departments-section,
    .join-team-cta {
        background: #4a5568;
        border-color: #718096;
    }
    
    .team-member-card:hover,
    .department-card:hover {
        background: #2d3748;
    }
    
    .department-card {
        background: #4a5568;
    }
    
    .join-team-cta {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    }
}

/* Animaciones adicionales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Focus styles para accesibilidad */
.contact-btn:focus,
.btn-primary:focus,
.btn-secondary:focus {
    outline: 2px solid var(--team-primary);
    outline-offset: 2px;
}

/* Mejoras de contraste */
.specialty-tag {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.member-name {
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Media query para pantallas muy grandes */
@media (min-width: 1440px) {
    .team-container {
        max-width: 1400px;
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .departments-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Estilos para impresión */
@media print {
    .cta-actions,
    .member-contact {
        display: none !important;
    }
    
    .team-hero {
        background: none !important;
        color: black !important;
    }
    
    .hero-background {
        display: none;
    }
    
    * {
        box-shadow: none !important;
    }
}

/* Scroll animations */
.scroll-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animation.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover effects mejorados para miembros destacados */
.team-member-card.featured {
    border: 2px solid var(--team-accent);
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.team-member-card.featured::before {
    background: linear-gradient(90deg, var(--team-accent), var(--team-gold));
    height: 6px;
}

.team-member-card.featured .member-avatar {
    border: 3px solid var(--team-accent);
}

/* Tooltip para información adicional */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--team-dark);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}