/* ============================================
   EDUCACIÓN MÉDICA IPS - Estilos Principales
   ============================================ */

/* Variables CSS */
:root {
    /* Colores institucionales IPS - Verde predominante */
    --primary-color: #007a33;
    --primary-dark: #005c26;
    --primary-light: #00943f;
    --secondary-color: #1a4b8c;
    --secondary-dark: #0d2d5a;
    --accent-color: #c8102e;
    --ips-red: #c8102e;
    --ips-blue: #1a4b8c;
    --ips-green: #007a33;

    /* Colores neutros */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --dark-gray: #343a40;
    --black: #1a2332;

    /* Colores de fondo */
    --bg-light: #f4f7f9;
    --bg-section: #eef3f7;

    /* Tipografía */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;

    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;

    /* Otros */
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Reset y Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    color: var(--black);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   HEADER & NAVEGACIÓN
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header.scrolled {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Header Logo */
.header-logo {
    display: flex;
    align-items: center;
}

.header-logo-img {
    height: 85px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.header-logo:hover .header-logo-img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--dark-gray);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: var(--bg-light);
}

.nav-link i {
    font-size: 0.9rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-gray);
    border-radius: 3px;
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    background-size: 200px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--spacing-xl) 0;
    color: var(--white);
}

/* Hero Logos en círculos blancos con destellos */
.hero-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.hero-logo-circle {
    position: relative;
    width: 160px;
    height: 160px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(255, 255, 255, 0.3),
        inset 0 0 30px rgba(0, 122, 51, 0.1);
    transition: var(--transition);
    animation: float 4s ease-in-out infinite;
}

.hero-logo-circle.main {
    width: 200px;
    height: 200px;
    padding: 25px;
    animation: float 4s ease-in-out infinite, mainPulse 3s ease-in-out infinite;
}

/* Animación de flotación */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Pulso para el logo principal */
@keyframes mainPulse {
    0%, 100% {
        box-shadow:
            0 10px 40px rgba(0, 0, 0, 0.3),
            0 0 60px rgba(255, 255, 255, 0.3),
            0 0 80px rgba(0, 122, 51, 0.4);
    }
    50% {
        box-shadow:
            0 15px 50px rgba(0, 0, 0, 0.4),
            0 0 80px rgba(255, 255, 255, 0.5),
            0 0 120px rgba(0, 122, 51, 0.6);
    }
}

/* Destellos animados */
.hero-logo-circle::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg,
        transparent 20%,
        rgba(255, 255, 255, 0.8) 25%,
        transparent 30%,
        transparent 70%,
        rgba(255, 255, 255, 0.8) 75%,
        transparent 80%
    );
    animation: sparkleRotate 3s linear infinite;
    z-index: -1;
}

.hero-logo-circle::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    ) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: sparkleRotate 4s linear infinite reverse;
}

@keyframes sparkleRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Partículas de luz */
.hero-logo-circle .sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
    animation: twinkle 2s ease-in-out infinite;
}

.hero-logo-circle .sparkle:nth-child(2) { top: 5%; left: 50%; animation-delay: 0.3s; }
.hero-logo-circle .sparkle:nth-child(3) { top: 20%; right: 5%; animation-delay: 0.6s; }
.hero-logo-circle .sparkle:nth-child(4) { bottom: 20%; right: 5%; animation-delay: 0.9s; }
.hero-logo-circle .sparkle:nth-child(5) { bottom: 5%; left: 50%; animation-delay: 1.2s; }
.hero-logo-circle .sparkle:nth-child(6) { bottom: 20%; left: 5%; animation-delay: 1.5s; }
.hero-logo-circle .sparkle:nth-child(7) { top: 20%; left: 5%; animation-delay: 1.8s; }

@keyframes twinkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Efecto de brillo giratorio */
.hero-logo-circle .glow-ring {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.8);
    border-right-color: rgba(255, 255, 255, 0.4);
    animation: glowSpin 2s linear infinite;
}

@keyframes glowSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hero-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.hero-logo-circle:hover {
    transform: translateY(-20px) scale(1.1);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 100px rgba(255, 255, 255, 0.6),
        0 0 150px rgba(0, 122, 51, 0.5);
}

/* Delay en la animación de flotación para cada círculo */
.hero-logo-circle:nth-child(1) {
    animation-delay: 0s;
}

.hero-logo-circle:nth-child(2) {
    animation-delay: 0.5s;
}

.hero-logo-circle:nth-child(3) {
    animation-delay: 1s;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-text {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Animaciones Hero */
.animate-fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in-delay {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.animate-fade-in-delay-3 {
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

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

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(46, 204, 113, 0.4);
}

.btn-secondary {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-white {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.btn-white:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* ============================================
   SECCIONES
   ============================================ */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   SERVICIOS
   ============================================ */
.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto var(--spacing-sm);
    font-size: 2rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.service-link:hover {
    gap: 0.75rem;
    color: var(--secondary-color);
}

/* ============================================
   ESTADÍSTICAS
   ============================================ */
.stats {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: var(--spacing-lg) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    text-align: center;
}

.stat-item {
    padding: var(--spacing-sm);
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

/* ============================================
   EVENTOS
   ============================================ */
.events {
    background: var(--white);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

.event-card {
    display: flex;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.event-date {
    background: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 100px;
}

.event-day {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}

.event-year {
    font-size: 0.85rem;
    opacity: 0.8;
}

.event-content {
    padding: var(--spacing-sm);
    flex: 1;
}

.event-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.event-content p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.event-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* ============================================
   LIDERAZGO
   ============================================ */
.leadership {
    background: var(--bg-light);
}

.leadership-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.leadership-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.leadership-logo {
    width: 250px;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
}

.leadership-logo:hover {
    transform: scale(1.05);
}

.leadership-label {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.leadership-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.leadership-text p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: calc(var(--spacing-xl) + 60px) 0 var(--spacing-lg);
    text-align: center;
}

.page-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   HISTORIA PAGE
   ============================================ */
.historia-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

.historia-intro h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.historia-intro .lead {
    font-size: 1.2rem;
    color: var(--gray);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-md) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 var(--spacing-md) var(--spacing-md);
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: calc(var(--spacing-md) + 30px);
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: calc(var(--spacing-md) + 30px);
}

.timeline-marker {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -10px;
}

.timeline-content {
    background: var(--white);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.timeline-date {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Misión y Visión */
.mission-vision {
    background: var(--bg-light);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.mv-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
}

.mv-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto var(--spacing-sm);
    font-size: 2rem;
    color: var(--white);
}

.mv-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.mv-card p {
    color: var(--gray);
}

.values-list {
    text-align: left;
}

.values-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--dark-gray);
}

.values-list li i {
    color: var(--secondary-color);
}

/* Logros */
.achievements {
    background: var(--white);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.achievement-card {
    background: var(--bg-light);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto var(--spacing-xs);
    font-size: 1.5rem;
    color: var(--white);
}

.achievement-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.achievement-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ============================================
   EQUIPO PAGE
   ============================================ */
.team-leadership {
    background: var(--bg-light);
}

.leader-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

.leader-image .image-placeholder.large {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: var(--white);
    margin: 0 auto;
}

.leader-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.leader-title {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.leader-info p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.leader-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
}

.contact-link i {
    color: var(--primary-color);
}

/* Team Grid */
.team-members {
    background: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.team-card {
    position: relative;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.team-image {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-light);
}

.team-image .image-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: var(--white);
}

.team-info {
    padding: var(--spacing-sm);
    text-align: center;
}

.team-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    padding: 0.75rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.team-card:hover .team-overlay {
    transform: translateY(0);
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.team-social a {
    color: var(--white);
    font-size: 1.1rem;
}

/* Join Team */
.join-team {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    text-align: center;
}

.join-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.join-content p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* ============================================
   SERVICIOS PAGE
   ============================================ */
.services-intro {
    background: var(--bg-light);
    text-align: center;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.intro-content p {
    font-size: 1.1rem;
    color: var(--gray);
}

.services-detailed {
    background: var(--white);
}

.service-detail {
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--bg-light);
}

.service-detail:last-child {
    border-bottom: none;
}

.service-detail-content {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: var(--spacing-md);
    align-items: start;
}

.service-detail-content.reverse {
    direction: rtl;
}

.service-detail-content.reverse > * {
    direction: ltr;
}

.service-detail-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: var(--white);
}

.service-detail-text h3 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.service-lead {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.service-highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-light);
    padding: 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
}

.service-highlight i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

/* Jornadas Timeline */
.jornadas-timeline {
    margin: 1.5rem 0;
}

.jornada-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 0.75rem;
    background: var(--bg-light);
}

.jornada-item.completed {
    border-left: 4px solid var(--secondary-color);
}

.jornada-item.upcoming {
    border-left: 4px solid var(--primary-color);
}

.jornada-item.future {
    border-left: 4px solid var(--gray);
}

.jornada-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    min-width: 140px;
}

.jornada-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.status {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
}

.status.completed {
    background: rgba(46, 204, 113, 0.2);
    color: var(--secondary-dark);
}

.status.upcoming {
    background: rgba(30, 95, 138, 0.2);
    color: var(--primary-color);
}

.status.future {
    background: rgba(108, 117, 125, 0.2);
    color: var(--gray);
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.resource-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.resource-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.resource-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.resource-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.resource-item p {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ============================================
   CONTACTO PAGE
   ============================================ */
.contact-section {
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-lg);
}

.contact-info h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-intro {
    color: var(--gray);
    margin-bottom: 2rem;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--white);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-text p {
    margin: 0;
}

.contact-text a {
    color: var(--primary-color);
    word-break: break-all;
}

.contact-detail {
    font-size: 0.9rem;
    color: var(--gray);
}

.contact-social h4 {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.contact-form-wrapper h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--bg-light);
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input {
    width: auto;
    margin-top: 0.25rem;
}

.form-success {
    text-align: center;
    padding: var(--spacing-md);
}

.form-success i {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.form-success h3 {
    margin-bottom: 0.5rem;
}

/* Map */
.map-section {
    background: var(--white);
    padding-bottom: var(--spacing-xl);
}

.map-wrapper {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* FAQ */
.faq-quick {
    background: var(--bg-light);
}

.faq-grid {
    display: grid;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question h4 {
    margin: 0;
    font-size: 1rem;
}

.faq-question i {
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.25rem 1.25rem;
    max-height: 200px;
}

.faq-answer p {
    color: var(--gray);
}

/* ============================================
   RECURSOS PAGE
   ============================================ */
.recursos-intro {
    background: var(--bg-light);
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.recursos-intro h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.recursos-intro p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.recursos-section {
    padding: var(--spacing-xl) 0;
}

.recursos-section.bg-light {
    background: var(--bg-light);
}

.recursos-section .section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.recursos-section .section-title i {
    color: var(--primary-color);
}

.recursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.recurso-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow);
    display: flex;
    gap: 1.5rem;
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.recurso-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.recurso-card.featured {
    border-left-color: var(--secondary-color);
    background: linear-gradient(135deg, var(--white) 0%, rgba(0, 122, 51, 0.05) 100%);
}

.recurso-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.recurso-card.featured .recurso-icon {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
}

.recurso-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.recurso-content p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.recurso-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Tabs de Jornadas */
.jornadas-tabs {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background: var(--bg-light);
    border-bottom: 2px solid var(--light-gray);
}

.tab-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tab-btn:hover {
    color: var(--primary-color);
    background: rgba(0, 122, 51, 0.05);
}

.tab-btn.active {
    color: var(--primary-color);
    background: var(--white);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.tabs-content {
    padding: var(--spacing-md);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.jornada-info {
    padding: 1rem;
}

.jornada-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.jornada-fecha {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    font-size: 0.95rem;
}

.jornada-fecha i {
    color: var(--primary-color);
}

.jornada-status {
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.jornada-status.realizada {
    background: rgba(0, 122, 51, 0.15);
    color: var(--secondary-color);
}

.jornada-status.proxima {
    background: rgba(26, 75, 140, 0.15);
    color: var(--secondary-color);
}

.jornada-status.programada {
    background: rgba(108, 117, 125, 0.15);
    color: var(--gray);
}

.jornada-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.jornada-info p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.jornada-recursos {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.recurso-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    color: var(--dark-gray);
    font-weight: 500;
    transition: var(--transition);
}

.recurso-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

.recurso-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.recurso-link i {
    font-size: 1.1rem;
}

/* Enlaces Grid */
.enlaces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.enlace-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    color: var(--dark-gray);
    transition: var(--transition);
}

.enlace-card:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(5px);
}

.enlace-card i:first-child {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.enlace-card:hover i:first-child {
    color: var(--white);
}

.enlace-card span {
    flex: 1;
    font-weight: 500;
}

.enlace-card i:last-child {
    opacity: 0;
    transition: var(--transition);
}

.enlace-card:hover i:last-child {
    opacity: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--black);
    color: var(--white);
}

.footer-top {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: var(--spacing-md);
}

/* Footer Logos */
.footer-logos {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: var(--transition);
}

.footer-logo-img.logo-main {
    height: 60px;
    filter: none;
    background: var(--white);
    border-radius: 50%;
    padding: 5px;
}

.footer-logo-img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social .social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 1rem;
}

.footer-social .social-link:hover {
    background: var(--secondary-color);
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--secondary-color);
    margin-top: 0.2rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    font-size: 1.2rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .leadership-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .leader-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-marker {
        left: 10px !important;
        right: auto !important;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 20px 20px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    /* Hero logos responsive */
    .hero-logos {
        gap: 1.5rem;
    }

    .hero-logo-circle {
        width: 100px;
        height: 100px;
        padding: 12px;
    }

    .hero-logo-circle.main {
        width: 130px;
        height: 130px;
        padding: 15px;
    }

    .hero-logo-circle .glow-ring {
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
    }

    .hero-logo-circle .sparkle {
        width: 4px;
        height: 4px;
    }

    /* Header logo responsive */
    .header-logo-img {
        height: 55px;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logos {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links a:hover {
        padding-left: 0;
    }

    .footer-contact li {
        justify-content: center;
    }

    .service-detail-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .service-detail-content.reverse {
        direction: ltr;
    }

    .service-detail-icon {
        margin: 0 auto;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
        flex-direction: column;
    }

    .event-date {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .page-title {
        font-size: 2rem;
    }
}
