/* ============================================
   CONVOCATORIAS CRUZ ROJA - DISEÑO MODERNO 2025
   Paleta: Verde Natura Contemporáneo
   Archivo CSS optimizado y sin conflictos
   ============================================ */

/* Importar fuentes modernas de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ============================================
   VARIABLES DE DISEÑO MODERNAS
   ============================================ */
:root {
    /* === PALETA VERDE NATURA === */
    --primary-color: #059669;           /* Verde esmeralda principal */
    --primary-dark: #047857;            /* Verde bosque */
    --primary-light: #10B981;           /* Verde menta */
    --primary-50: #ECFDF5;              /* Verde muy claro */
    --primary-100: #D1FAE5;             /* Verde claro */
    --primary-200: #A7F3D0;             /* Verde suave */
    --primary-300: #6EE7B7;             /* Verde medio claro */
    --primary-900: #064E3B;             /* Verde muy oscuro */
    
    /* === GRADIENTES MODERNOS === */
    --gradient-primary: linear-gradient(135deg, #059669 0%, #10B981 100%);
    --gradient-hero: linear-gradient(135deg, #047857 0%, #059669 50%, #10B981 100%);
    --gradient-card: linear-gradient(145deg, #FFFFFF 0%, #F8FAFC 100%);
    --gradient-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    
    /* === COLORES NEUTROS MODERNOS === */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* === COLORES SISTEMA === */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
    
    /* === TIPOGRAFÍA === */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Plus Jakarta Sans', sans-serif;
    
    /* === ESPACIADO Y MEDIDAS === */
    --spacing-xs: 0.25rem;    /* 4px */
    --spacing-sm: 0.5rem;     /* 8px */
    --spacing-md: 1rem;       /* 16px */
    --spacing-lg: 1.5rem;     /* 24px */
    --spacing-xl: 2rem;       /* 32px */
    --spacing-2xl: 3rem;      /* 48px */
    --spacing-3xl: 4rem;      /* 64px */
    
    /* === BORDES Y SOMBRAS === */
    --radius-sm: 0.375rem;    /* 6px */
    --radius-md: 0.5rem;      /* 8px */
    --radius-lg: 0.75rem;     /* 12px */
    --radius-xl: 1rem;        /* 16px */
    --radius-2xl: 1.5rem;     /* 24px */
    --radius-full: 9999px;
    
    /* === SOMBRAS MODERNAS === */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-green: 0 10px 20px -5px rgba(5, 150, 105, 0.2);
    --shadow-glow: 0 0 30px rgba(5, 150, 105, 0.3);
    
    /* === TRANSICIONES === */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* === OTROS === */
    --whatsapp-color: #25D366;
    --backdrop-blur: blur(20px);
}

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

*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray-700);
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    min-height: 100vh;
}

/* ============================================
   UTILIDADES GLOBALES
   ============================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (min-width: 640px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--spacing-xl);
    }
}

/* ============================================
   HEADER Y LOGO
   ============================================ */
.logo-header {
    background: var(--white);
    backdrop-filter: var(--backdrop-blur);
    padding: var(--spacing-lg) 0;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
}

.logo-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.logo-header img {
    height: 90px;
    width: auto;
    transition: var(--transition-normal);
    filter: drop-shadow(var(--shadow-sm));
}

.logo-header img:hover {
    transform: scale(1.05);
    filter: drop-shadow(var(--shadow-md));
}

/* ============================================
   HERO SECTION ESPECTACULAR
   ============================================ */
.hero-section {
    background: var(--gradient-hero);
    color: var(--white);
    padding: var(--spacing-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
    opacity: 0.1;
}

/* Elementos decorativos animados */
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    top: 10%;
    right: 25%;
    animation-delay: 1s;
}

.shape-5 {
    width: 40px;
    height: 40px;
    bottom: 20%;
    right: 30%;
    animation-delay: 3s;
}

.geometric-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px, 40px 40px;
    opacity: 0.3;
}

/* Contenido del hero */
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title {
    font-family: var(--font-secondary);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 400;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* Hero compacto para páginas internas */
.hero-section.compact {
    padding: 2rem 0 3rem;
    min-height: auto;
}

.hero-section.compact .hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.hero-section.compact .hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
}

.hero-section.compact .hero-buttons {
    margin-bottom: 0;
}

/* ============================================
   SECCIÓN DE INTRODUCCIÓN Y FEATURE CARDS
   ============================================ */
.intro-section {
    background: var(--white);
    padding: var(--spacing-3xl) 0;
    margin-bottom: var(--spacing-xl);
    position: relative;
    overflow: hidden;
}

.intro-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.03) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.intro-title {
    color: var(--primary-color);
    font-family: var(--font-secondary);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.01em;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.intro-text {
    color: var(--gray-600);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* Grid de feature cards - MANTENER EXACTAMENTE COMO ESTÁ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    justify-content: center;
}

@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Feature Cards - EXACTAMENTE como están en el index */
.feature-card {
    background: linear-gradient(145deg, var(--white) 0%, var(--gray-100) 100%);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition-normal);
    border: 1px solid rgba(5, 150, 105, 0.1);
    position: relative;
    overflow: hidden;
    min-width: 350px;
    animation: fadeInUp 0.6s ease-out calc(0.5s + var(--delay, 0s)) both;
}

.feature-card:nth-child(1) { --delay: 0s; }
.feature-card:nth-child(2) { --delay: 0.1s; }
.feature-card:nth-child(3) { --delay: 0.2s; }

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-hero);
    border-radius: 24px 24px 0 0;
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(5, 150, 105, 0.2);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

/* Iconos de feature cards - MANTENER EXACTO */
.feature-card .feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: var(--gradient-hero);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    box-shadow: var(--shadow-glow);
    transition: var(--transition-bounce);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 50px rgba(5, 150, 105, 0.4);
}

/* Títulos y descripciones de feature cards */
.feature-title {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.feature-description {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive para feature cards */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
        min-width: auto;
    }

    .feature-card .feature-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

/* ============================================
   BOTONES MODERNOS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

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

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}

/* Botones grandes para convocatorias */
.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    flex: 1;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

.btn-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.btn-large:hover::before {
    left: 100%;
}

.btn-large:hover {
    transform: translateY(-2px) scale(1.01);
}

.btn-large i {
    font-size: 1.1rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-large:hover i {
    transform: scale(1.1);
}

.btn-large:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ============================================
   FILTROS Y BÚSQUEDA MODERNOS
   ============================================ */
.filter-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.search-bar {
    display: flex;
    flex-grow: 1;
    max-width: 500px;
    position: relative;
}

.search-bar input {
    flex-grow: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    font-size: 1rem;
    background: var(--gray-50);
    transition: var(--transition-fast);
    outline: none;
}

.search-bar input:focus {
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.search-bar button {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: var(--spacing-md) var(--spacing-lg);
    cursor: pointer;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar button:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.filter-buttons {
    display: flex;
    gap: var(--spacing-sm);
    background: var(--gray-100);
    padding: var(--spacing-xs);
    border-radius: var(--radius-lg);
}

.filter-btn {
    background: transparent;
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-fast);
    color: var(--gray-600);
    position: relative;
}

.filter-btn:hover {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

/* ============================================
   GRID DE CONVOCATORIAS MODERNO
   ============================================ */
.convocatorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.convocatoria-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--gray-200);
    position: relative;
    animation: fadeInUp 0.6s ease-out both;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.convocatoria-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-200);
}

.convocatoria-card .card-header {
    padding: 2rem;
    position: relative;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border-bottom: 1px solid var(--gray-100);
}

.convocatoria-card .card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.convocatoria-card .card-footer {
    padding: 2rem;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
    display: flex;
    gap: 1rem;
}

.convocatoria-card.inactiva {
    opacity: 0.7;
    filter: grayscale(0.3);
}

.status-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge.activa {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.1) 100%);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.inactiva {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.convocatoria-title {
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    font-weight: 700;
    margin-right: 120px;
    color: var(--gray-800);
    line-height: 1.3;
    margin-bottom: 0;
}

.convocatoria-desc {
    margin-bottom: 1.5rem;
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

.convocatoria-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.convocatoria-info p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.convocatoria-info i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
}

.convocatoria-card .card-footer .btn {
    flex: 1;
    justify-content: center;
}

/* ============================================
   PÁGINA DE CONVOCATORIA ESPECÍFICA
   ============================================ */
.page-content {
    padding: 3rem 0;
    background: var(--white);
}

.convocatoria-detail {
    background: var(--gradient-card);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    padding: 3rem;
    margin-bottom: 2rem;
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-primary);
}

.convocatoria-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    z-index: 1;
}

.convocatoria-detail:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Header de convocatoria */
.convocatoria-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--gray-200);
    position: relative;
}

.convocatoria-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

.convocatoria-header-left h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--gray-800);
    font-family: var(--font-secondary);
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

/* Reference code mejorado */
.reference-code {
    background: var(--gradient-primary);
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    font-family: 'Inter', 'Courier New', monospace;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.reference-code i {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Metadata */
.convocatoria-metadata {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 0;
}

.metadata-item {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: var(--gradient-card);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-200);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.metadata-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.metadata-item:hover::before {
    transform: scaleX(1);
}

.metadata-item:hover {
    transform: translateY(-5px) rotateX(2deg) rotateY(1deg);
}

.metadata-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.metadata-label i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.metadata-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 10px;
}

.metadata-value i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 18px;
    text-align: center;
}

/* ============================================
   CONTENIDO DE CONVOCATORIA CON TARJETAS MEJORADAS
   ============================================ */
.convocatoria-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Tarjetas de sección */
.section-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: auto;
    border: 1px solid var(--gray-200);
    position: relative;
    animation: fadeInUp 0.6s ease-out both;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.section-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-200);
}

/* Header de cada sección */
.section-card .card-header {
    padding: 2rem;
    position: relative;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border-bottom: 1px solid var(--gray-100);
}

/* Badges de sección con mejor posicionamiento */
.section-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-badge.descripcion {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.section-badge.requisitos {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.1) 100%);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.section-badge.documentos {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.1) 100%);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.section-badge.criterios {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: #8B5CF6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.section-badge.faq {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(236, 72, 153, 0.1) 100%);
    color: #EC4899;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

/* Títulos de sección */
.section-card .section-title {
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    font-weight: 700;
    margin-right: 120px;
    color: var(--gray-800);
    line-height: 1.3;
    margin-bottom: 0;
}

/* Body de las tarjetas con mejor espaciado */
.section-card .card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Descripción general */
.section-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin: 0;
    text-align: justify;
}

/* Información de requisitos MEJORADA */
.requirements-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.requirement-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border-radius: 12px;
    border-left: 4px solid var(--success);
    transition: var(--transition-normal);
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.requirement-item::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.requirement-item:hover {
    background: var(--primary-50);
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
    border-left-color: var(--primary-light);
}

.requirement-item i {
    color: var(--success);
    font-size: 1.2rem;
    margin-top: 0.1rem;
    min-width: 18px;
    background: rgba(16, 185, 129, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.requirement-item span {
    color: var(--gray-700);
    line-height: 1.6;
    font-size: 1rem;
}

/* Información de documentos MEJORADA */
.documents-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.document-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border-radius: 12px;
    border-left: 4px solid var(--warning);
    transition: var(--transition-normal);
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.document-item::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
    border-radius: 2px;
}

.document-item:hover {
    background: rgba(245, 158, 11, 0.08);
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.document-item i {
    color: var(--warning);
    font-size: 1.2rem;
    margin-top: 0.1rem;
    min-width: 18px;
    background: rgba(245, 158, 11, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.document-item span {
    color: var(--gray-700);
    line-height: 1.6;
    font-size: 1rem;
}

/* Contenido de criterios MEJORADO */
.criteria-content {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, var(--white) 100%);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #8B5CF6;
    position: relative;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.08);
}

.criteria-content::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 20px;
    width: 4px;
    height: 30px;
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    border-radius: 2px;
}

.criteria-content p {
    margin: 0;
    line-height: 1.7;
    color: var(--gray-700);
    white-space: pre-line;
    font-size: 1rem;
}

/* Container FAQ MEJORADO */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    border-color: var(--primary-200);
}

.faq-question {
    background: var(--gradient-primary);
    color: white;
    padding: 1.8rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
}

.faq-question i {
    background: rgba(255, 255, 255, 0.2);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    min-width: 32px;
    backdrop-filter: blur(10px);
}

.faq-answer {
    padding: 2rem;
    color: var(--gray-700);
    line-height: 1.7;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.5) 0%, var(--white) 100%);
    font-size: 1rem;
}

/* Botones de acción mejorados */
.action-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(248, 249, 250, 0.3);
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    backdrop-filter: blur(10px);
}

/* ============================================
   ESTADÍSTICAS MODERNAS
   ============================================ */
.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0 1rem;
}

.card-stats {
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(145deg, var(--white) 0%, #fafbfc 100%);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    min-height: 180px;
}

.card-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 20px 20px 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-stats:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(5, 150, 105, 0.15);
    border-color: var(--primary-200);
}

.card-stats:hover::before {
    transform: scaleX(1);
}

.card-stats .stats-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-stats .stats-info {
    flex: 1;
}

.card-stats .card-body {
    padding: 2rem 1.8rem 1rem;
    position: relative;
    z-index: 2;
}

.card-stats .card-footer {
    background: rgba(5, 150, 105, 0.02);
    border-top: 1px solid rgba(5, 150, 105, 0.1);
    padding: 1rem 1.8rem;
    margin: 0 -1.8rem -1rem;
    border-radius: 0 0 20px 20px;
    text-align: center;
}

.card-stats .card-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 1rem;
    font-family: var(--font-primary);
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.stat-number-large {
    font-weight: 900;
    font-size: 2.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
    font-family: var(--font-secondary);
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(5, 150, 105, 0.2));
}

.card-stats:hover .stat-number-large {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(5, 150, 105, 0.3));
}

.icon-stats {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--white);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.icon-stats::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.card-stats:hover .icon-stats {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(5, 150, 105, 0.4);
}

.card-stats:hover .icon-stats::before {
    width: 100px;
    height: 100px;
}

.card-stats .card-footer small {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

/* ============================================
   WHATSAPP FLOAT MODERNO
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    background: var(--whatsapp-color);
    color: var(--white);
    width: 70px;
    height: 70px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.8rem;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    transition: var(--transition-bounce);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.15);
    box-shadow: var(--shadow-2xl);
    animation: none;
    color: var(--white);
}

.whatsapp-float .tooltip {
    visibility: hidden;
    width: 200px;
    background: var(--gray-800);
    color: var(--white);
    text-align: center;
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    position: absolute;
    z-index: 1;
    bottom: 120%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: var(--transition-normal);
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: var(--backdrop-blur);
}

.whatsapp-float .tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: var(--gray-800) transparent transparent transparent;
}

.whatsapp-float:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* ============================================
   ESTADOS VACÍOS Y PAGINACIÓN
   ============================================ */
.empty-state {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-xl);
    color: var(--gray-500);
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 2px dashed var(--gray-300);
    margin: var(--spacing-xl) 0;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.5;
    color: var(--gray-400);
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-2xl) 0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    transition: var(--transition-normal);
}

.page-link:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.page-link.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-green);
}

/* ============================================
   FOOTER MODERNO
   ============================================ */
.site-footer {
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
    color: var(--gray-300);
    text-align: center;
    padding: var(--spacing-2xl) 0;
    margin-top: var(--spacing-3xl);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.site-footer p {
    font-size: 0.95rem;
    opacity: 0.8;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Animaciones de entrada escalonadas */
.section-card:nth-child(1) { animation-delay: 0.1s; }
.section-card:nth-child(2) { animation-delay: 0.2s; }
.section-card:nth-child(3) { animation-delay: 0.3s; }
.section-card:nth-child(4) { animation-delay: 0.4s; }
.section-card:nth-child(5) { animation-delay: 0.5s; }

.card-stats:nth-child(1) { animation-delay: 0.1s; }
.card-stats:nth-child(2) { animation-delay: 0.2s; }
.card-stats:nth-child(3) { animation-delay: 0.3s; }
.card-stats:nth-child(4) { animation-delay: 0.4s; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .convocatorias-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: var(--spacing-lg);
    }
    
    .features-grid {
        gap: var(--spacing-lg);
    }
    
    .stats-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .card-stats {
        min-height: 160px;
    }
    
    .stat-number-large {
        font-size: 2.4rem;
    }
    
    .icon-stats {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .filter-section {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-md);
    }

    .search-bar {
        max-width: 100%;
    }
    
    .filter-buttons {
        justify-content: center;
    }

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

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

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

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

    .feature-card {
        padding: var(--spacing-lg);
    }

    .whatsapp-float {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        right: var(--spacing-lg);
        bottom: var(--spacing-lg);
    }

    .convocatoria-title {
        font-size: 1.25rem;
        margin-right: 80px;
    }

    .convocatoria-card .card-header,
    .convocatoria-card .card-body,
    .convocatoria-card .card-footer {
        padding: var(--spacing-lg);
    }
    
    /* Responsive para convocatorias específicas */
    .convocatoria-detail {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .convocatoria-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding-bottom: 1.5rem;
    }
    
    .convocatoria-header-left h2 {
        font-size: 2rem;
    }
    
    .convocatoria-metadata {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .metadata-item {
        padding: 1.5rem;
    }
    
    .section-card .card-header,
    .section-card .card-body {
        padding: 1.5rem;
    }
    
    .section-card .section-title {
        font-size: 1.25rem;
        margin-right: 80px;
    }
    
    .section-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        top: 1.5rem;
        right: 1.5rem;
    }
    
    .requirement-item,
    .document-item {
        padding: 0.875rem;
    }
    
    .criteria-content {
        padding: 1.5rem;
    }
    
    .faq-question {
        padding: 1.25rem;
        font-size: 0.95rem;
    }
    
    .faq-answer {
        padding: 1.25rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 0.95rem;
        min-height: 52px;
    }
    
    .stats-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card-stats {
        margin-bottom: 1.5rem;
        min-height: 140px;
    }
    
    .card-stats .card-body {
        padding: 1.5rem 1.2rem;
    }
    
    .card-stats .card-title {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .stat-number-large {
        font-size: 2rem;
    }
    
    .icon-stats {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        border-radius: 16px;
    }
    
    .card-stats .card-footer {
        padding: 0.8rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 0 3rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

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

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

    .site-header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .intro-title {
        font-size: 1.5rem;
    }
    
    .intro-text {
        font-size: 1rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .convocatoria-title {
        font-size: 1.1rem;
        margin-right: 70px;
    }
    
    .status-badge {
        font-size: 0.7rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 0.9rem;
    }
    
    .filter-btn {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.9rem;
    }
    
    .section-card .section-title {
        font-size: 1.1rem;
        margin-right: 70px;
    }
    
    .section-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }
    
    .requirement-item,
    .document-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .criteria-content {
        padding: 1.25rem;
    }
    
    .card-stats {
        min-height: 120px;
    }
    
    .stat-number-large {
        font-size: 1.8rem;
    }
    
    .icon-stats {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        border-radius: 14px;
    }
}

/* ============================================
   MEJORAS PARA FORMULARIOS
   ============================================ */
.form-control,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: var(--font-primary);
    background: var(--white);
    transition: var(--transition-fast);
    outline: none;
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
    background: var(--white);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

/* ============================================
   MEJORAS PARA TABLAS
   ============================================ */
.table-responsive {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.table {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.table thead th {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    border-bottom: 2px solid var(--gray-200);
    color: var(--gray-700);
    font-weight: 600;
    padding: var(--spacing-lg);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--gray-200);
}

.table tbody tr:hover {
    background: linear-gradient(135deg, var(--primary-50) 0%, rgba(5, 150, 105, 0.02) 100%);
}

.table tbody td {
    padding: var(--spacing-lg);
    vertical-align: middle;
}

/* ============================================
   BADGES Y ESTADOS MODERNOS
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
}

.badge.bg-success {
    background: rgba(16, 185, 129, 0.15) !important;
    color: var(--success) !important;
    border-color: rgba(16, 185, 129, 0.3);
}

.badge.bg-danger {
    background: rgba(239, 68, 68, 0.15) !important;
    color: var(--error) !important;
    border-color: rgba(239, 68, 68, 0.3);
}

.badge.bg-warning {
    background: rgba(245, 158, 11, 0.15) !important;
    color: var(--warning) !important;
    border-color: rgba(245, 158, 11, 0.3);
}

.badge.bg-secondary {
    background: rgba(107, 114, 128, 0.15) !important;
    color: var(--gray-600) !important;
    border-color: rgba(107, 114, 128, 0.3);
}

.badge.bg-primary {
    background: rgba(5, 150, 105, 0.15) !important;
    color: var(--primary-color) !important;
    border-color: rgba(5, 150, 105, 0.3);
}

/* ============================================
   CARDS ESPECIALES
   ============================================ */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: var(--transition-normal);
}

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

.card-header {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border-bottom: 1px solid var(--gray-200);
    padding: var(--spacing-lg) var(--spacing-xl);
}

.card-body {
    padding: var(--spacing-xl);
}

.card-footer {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border-top: 1px solid var(--gray-200);
    padding: var(--spacing-lg) var(--spacing-xl);
}

/* ============================================
   ALERTAS MODERNAS
   ============================================ */
.alert {
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: var(--primary-dark);
    border-color: rgba(16, 185, 129, 0.3);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: #B91C1C;
    border-color: rgba(239, 68, 68, 0.3);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    color: #92400E;
    border-color: rgba(245, 158, 11, 0.3);
}

.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    color: #1E40AF;
    border-color: rgba(59, 130, 246, 0.3);
}

/* ============================================
   LOADING STATES
   ============================================ */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--gray-300);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ============================================
   UTILIDADES ADICIONALES
   ============================================ */
.text-primary { color: var(--primary-color) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--error) !important; }
.text-muted { color: var(--gray-500) !important; }
.text-center { text-align: center; }

.bg-primary { background: var(--gradient-primary) !important; }
.bg-light { background: var(--gray-50) !important; }
.bg-white { background: var(--white) !important; }

.border-primary { border-color: var(--primary-color) !important; }
.border-light { border-color: var(--gray-200) !important; }

.rounded { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }

.shadow { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-xl { box-shadow: var(--shadow-xl) !important; }

.transition { transition: var(--transition-normal) !important; }

.my-4 { margin: var(--spacing-lg) 0; }

/* ============================================
   GLASSMORPHISM EFFECTS
   ============================================ */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-green {
    background: rgba(5, 150, 105, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

/* ============================================
   MEJORAS PARA ACCESIBILIDAD
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .section-card,
    .section-card:hover,
    .requirement-item:hover,
    .document-item:hover,
    .card-stats,
    .card-stats:hover,
    .convocatoria-card:hover,
    .feature-card:hover,
    .btn:hover,
    .page-link:hover {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    
    .floating-shape {
        animation: none !important;
    }
    
    .whatsapp-float {
        animation: none !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .whatsapp-float,
    .filter-section,
    .btn,
    .hero-bg-elements,
    .floating-shape {
        display: none !important;
    }
    
    .convocatoria-card,
    .section-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
    
    body {
        background: white;
    }
    
    .hero-section {
        background: var(--primary-color);
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}

/* ============================================
   BREADCRUMB PARA NAVEGACIÓN
   ============================================ */
.breadcrumb {
    background: var(--gray-50);
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-600);
}

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

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

.breadcrumb i {
    color: var(--gray-400);
    font-size: 0.8rem;
}

/* ============================================
   FIXES ESPECÍFICOS PARA CONVOCATORIA.HTML
   ============================================ */

/* Asegurar que los status badges tengan la especificidad correcta */
.convocatoria-detail .status-badge.activa {
    background: var(--gradient-primary) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.convocatoria-detail .status-badge.inactiva {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.15) 0%, rgba(107, 114, 128, 0.1) 100%) !important;
    color: var(--gray-600) !important;
    border: 1px solid rgba(107, 114, 128, 0.3) !important;
}

/* Asegurar que el reference code se vea correctamente */
.convocatoria-detail .reference-code {
    background: var(--gradient-primary) !important;
    color: white !important;
}

/* Asegurar que los botones large funcionen correctamente */
.convocatoria-detail .btn-primary.btn-large {
    background: var(--gradient-primary) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4) !important;
}

.convocatoria-detail .btn-primary.btn-large:hover {
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.5) !important;
    color: white !important;
}

.convocatoria-detail .btn-secondary.btn-large {
    background: var(--white) !important;
    color: var(--gray-700) !important;
    border: 2px solid var(--gray-300) !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08) !important;
}

.convocatoria-detail .btn-secondary.btn-large:hover {
    background: var(--gray-100) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
    color: var(--gray-800) !important;
    border-color: var(--gray-400) !important;
}

/* Asegurar que las section cards se vean bien */
.convocatoria-content .section-card {
    background: var(--white) !important;
    border: 1px solid var(--gray-200) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.convocatoria-content .section-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    border-color: var(--primary-200) !important;
}

/* ============================================
   FIN DEL ARCHIVO CSS OPTIMIZADO
   ============================================ */