/* ===================================================================== */
/* RESET Y CONFIGURACIÓN BASE */
/* ===================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* ===================================================================== */
/* VARIABLES CSS */
/* ===================================================================== */

:root {
    --primary-color: #2C5282;
    --secondary-color: #fdfbfb;
    --accent-color: #4A5568;
    --text-light: #718096;
    --bg-light: #F7FAFC;
    --white: #FFFFFF;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --container-max-width: 1200px;
}

/* ===================================================================== */
/* UTILIDADES Y COMPONENTES GLOBALES */
/* ===================================================================== */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #001f3f 0%, #003d7a 25%, #0074d9 50%, #39cccc 75%, #001f3f 100%);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-full {
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #FF6B35;
    margin-bottom: 16px;
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    color: #000000;              /* NUEVO: Negro */
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================================================== */
/* HEADER Y NAVEGACIÓN */
/* ===================================================================== */

.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.nav-logo h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.nav-logo span {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* ===================================================================== */
/* SECCIÓN HERO CON CARRUSEL */
/* ===================================================================== */

.hero {
    margin-top: 80px;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #475569 75%, #64748b 100%);
    z-index: -2;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(56, 161, 105, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(44, 82, 130, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(56, 161, 105, 0.2) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
    z-index: -1;
}

.hero-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

/* Carrusel */
.slider-container {
    height: 100vh;
    position: relative;
}

.slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(44, 82, 130, 0.85), rgba(56, 161, 105, 0.75));
    z-index: 1;
}

/* Contenido del Hero */
.hero-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-main {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 80px;
    align-items: center;
    min-height: 80vh;
}

.slide-content-center {
    text-align: center;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto;
}

.hero-content {
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgb(1, 14, 37);
    border: 1px solid rgba(56, 161, 105, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.badge-icon {
    font-size: 1.1rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.title-line-1 {
    display: block;
    color: #F1F5F9;
}

.title-line-2 {
    display: block;
    color: #CBD5E0;
}

.highlight-text {
    background: linear-gradient(135deg, #ff9100, #48BB78);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #fdfbfb;
    margin-bottom: 32px;
    max-width: 600px;
}

.slide-content-center .hero-description {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Estadísticas */
.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.slide-content-center .hero-stats {
    justify-content: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--secondary-color);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #CBD5E0;
    margin-top: 4px;
}

/* Features */
.hero-features {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-icon {
    font-size: 1.5rem;
}

/* Botones */
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.slide-content-center .hero-buttons {
    justify-content: center;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* ===================================================================== */
/* IMAGEN DEL HERO - SECCIÓN CORREGIDA */
/* ===================================================================== */

.hero-image {
    position: relative;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(56, 161, 105, 0.3), rgb(253, 251, 251));
    padding: 4px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.image-frame::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #010e25, #2C5282, #010e25);
    border-radius: 22px;
    z-index: -1;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.image-frame img {
    width: 100% !important;
    height: auto !important;
    border-radius: 16px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

/* Fallback para imagen que no carga */
.image-frame img[src=""],
.image-frame img:not([src]) {
    background: rgba(255, 255, 255, 0.1);
    min-height: 300px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #CBD5E0;
    font-size: 1.1rem;
}

.image-frame img[src=""]:before,
.image-frame img:not([src]):before {
    content: "📷 Imagen no disponible";
}

/* ===================================================================== */
/* CONTROLES DEL CARRUSEL - CORREGIDOS */
/* ===================================================================== */

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 100%;
    pointer-events: none;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    position: absolute;
    pointer-events: all;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ===================================================================== */
/* SECCIÓN FORMACIÓN ACADÉMICA */
/* ===================================================================== */

.academic-formation {
    padding: 60px 0;
    background: linear-gradient(135deg, #001122 0%, #002244 25%, #003366 50%, #004488 75%, #001122 100%);
    color: var(--white);
}

.academic-formation .section-header h2 {
    color: #FF6B35
}

.academic-formation .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

.academic-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.academic-formation .credentials h3,
.academic-formation .research h3 {
    color: var(--white);
    margin-bottom: 30px;
    font-size: 1.5rem;
}

/* ===================================================================== */
/* LÍNEA DE TIEMPO ACADÉMICA */
/* ===================================================================== */

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #4A90E2, #2C5282, #4A90E2);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-bottom: 20px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -23px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #4A90E2, #2C5282);
    border-radius: 50%;
    border: 3px solid #001122;
    box-shadow: 
        0 0 0 3px rgba(74, 144, 226, 0.3),
        0 0 15px rgba(74, 144, 226, 0.5);
    z-index: 2;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #FF6B35;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.1), transparent);
    transition: left 0.6s ease;
}

.timeline-content:hover::before {
    left: 100%;
}

.timeline-content:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.degree-level {
    color: #4A90E2;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.degree-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.degree-institution {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-style: italic;
}

/* ===================================================================== */
/* SECCIÓN FORMACIÓN ACADÉMICA - ACTUALIZADA */
/* ===================================================================== */

/* Sección de verificación académica */
.academic-verification {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.verification-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.2);
    transition: all 0.3s ease;
}

.verification-link:hover {
    color: #4A90E2;
    background: rgba(74, 144, 226, 0.15);
    border-color: #4A90E2;
    transform: translateY(-1px);
}

.verification-icon {
    font-size: 1rem;
}

.senescyt-badge {
    background: linear-gradient(135deg, #38A169, #48BB78);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(56, 161, 105, 0.3);
    margin-left: auto;
}

/* Mejoras para los diferentes tipos de marcadores */
.timeline-marker.doctorate {
    background: linear-gradient(135deg, #FF6B35, #FF8C42);
    width: 20px;
    height: 20px;
    border: 4px solid #001122;
    box-shadow: 
        0 0 0 4px rgba(255, 107, 53, 0.4),
        0 0 20px rgba(255, 107, 53, 0.6);
    z-index: 2;
}

.timeline-marker.masters {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    width: 18px;
    height: 18px;
    border: 3px solid #001122;
    box-shadow: 
        0 0 0 3px rgba(74, 144, 226, 0.4),
        0 0 15px rgba(74, 144, 226, 0.5);
    z-index: 2;
}

.timeline-marker.bachelor {
    background: linear-gradient(135deg, #39CCCC, #2CB5B5);
    width: 16px;
    height: 16px;
    border: 3px solid #001122;
    box-shadow: 
        0 0 0 3px rgba(57, 204, 204, 0.3),
        0 0 15px rgba(57, 204, 204, 0.4);
    z-index: 2;
}

/* Destacar grados importantes */
.timeline-item.featured-degree .timeline-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border-left: 5px solid #FF6B35;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.timeline-item.featured-degree.masters .timeline-content {
    border-left-color: #4A90E2;
}

/* Información institucional mejorada */
.degree-institution {
    margin-top: 10px;
}

.institution-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.institution-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    background: white;
    padding: 2px;
}

.institution-logo:hover {
    transform: scale(1.1);
    border-color: #4A90E2;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.institution-location {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin-left: 38px; /* Alineado con el texto de la institución */
}

/* Badges de destacados */
.degree-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 10px;
}


/* Descripción adicional */
/* CSS actualizado para descripción con párrafo */
.degree-description {
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 8px;
    padding: 10px 15px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 6px;
    border-left: 3px solid #4A90E2;
}

.degree-description p {
    color: #FF6B35 !important;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

/* Alternativa más específica si la anterior no funciona */
.timeline-item.masters .degree-description p {
    color: #FF6B35 !important;
}

/* O aún más específica */
#formacion-academica .degree-description p {
    color: #FF6B35 !important;
}

/* Efectos hover especiales para maestrías */
.timeline-item.masters:hover .timeline-content {
    transform: translateX(12px) scale(1.02);
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.15), rgba(74, 144, 226, 0.08));
    border-left-color: #39CCCC;
}

.timeline-item.masters:hover .timeline-marker {
    transform: scale(1.3);
    box-shadow: 
        0 0 0 6px rgba(74, 144, 226, 0.6),
        0 0 25px rgba(74, 144, 226, 0.8);
}

/* Enlace interactivo de tesis doctoral */
.thesis-title-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.thesis-title-link:hover {
    color: #4A90E2;
    transform: translateX(5px);
}

.thesis-link-icon {
    font-size: 0.9rem;
    opacity: 0;
    margin-left: 8px;
    transition: all 0.3s ease;
    color: #4A90E2;
}

.thesis-title-link:hover .thesis-link-icon {
    opacity: 1;
    transform: translateX(3px);
}

.thesis-title-link:focus {
    outline: 3px solid rgba(74, 144, 226, 0.5);
    outline-offset: 2px;
}

/* Animación pulsante para badges */
@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.highlight-badge {
    animation: badgePulse 3s ease-in-out infinite;
}

.highlight-badge:nth-child(1) { animation-delay: 0s; }
.highlight-badge:nth-child(2) { animation-delay: 1s; }

/* Línea de conexión mejorada con gradiente */
.timeline::before {
    background: linear-gradient(to bottom, 
        #FF6B35 0%, 
        #4A90E2 25%, 
        #4A90E2 75%, 
        #39CCCC 100%);
    width: 4px;
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.4);
}

/* CSS para párrafos dentro de títulos de artículos */
.article-title {
    font-size: 0.95rem;
    line-height: 1.4;
    flex: 1;
    transition: color 0.3s ease;
}

.article-title p {
    color: #FF6B35 !important;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    font-weight: inherit;
    font-size: inherit;
}

/* Hover effect para el párrafo */
.article-link:hover .article-title p {
    color: #FF8C42 !important; /* Un poco más claro en hover */
}

/* Especificidad adicional si no funciona */
.scientific-articles .article-link .article-title p {
    color: #FF6B35 !important;
}

/* Aún más específica */
#formacion-academica .scientific-articles .article-link .article-title p {
    color: #FF6B35 !important;
}

/* Para todos los estados del enlace */
.article-link:link .article-title p,
.article-link:visited .article-title p,
.article-link:active .article-title p {
    color: #FF6B35 !important;
}
/* ===================================================================== */
/* RESPONSIVE DESIGN PARA FORMACIÓN ACADÉMICA ACTUALIZADA */
/* ===================================================================== */

@media (max-width: 768px) {
    .academic-verification {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px 15px;
    }
    
    .verification-link {
        justify-content: center;
        padding: 8px 12px;
    }
    
    .senescyt-badge {
        text-align: center;
        margin-left: 0;
        margin-top: 5px;
    }
    
    .institution-info {
        gap: 8px;
    }
    
    .institution-logo {
        width: 24px;
        height: 24px;
    }
    
    .institution-location {
        margin-left: 32px;
        font-size: 0.75rem;
    }
    
    .degree-highlights {
        gap: 6px;
        margin-top: 10px;
    }
    
    .highlight-badge {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
    
    .degree-description {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    .timeline-item.featured-degree .timeline-content {
        padding: 20px 15px;
    }
    
    .timeline-marker.doctorate {
        left: -19px;
        width: 18px;
        height: 18px;
    }
    
    .timeline-marker.masters {
        left: -18px;
        width: 16px;
        height: 16px;
    }
    
    .timeline-marker.bachelor {
        left: -17px;
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .institution-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .institution-logo {
        align-self: flex-start;
        width: 22px;
        height: 22px;
    }
    
    .institution-location {
        margin-left: 0;
    }
    
    .highlight-badge {
        font-size: 0.65rem;
        padding: 2px 8px;
    }
    
    .degree-description {
        font-size: 0.8rem;
    }
    
    .thesis-link-icon {
        font-size: 0.8rem;
    }
}
/* ===================================================================== */
/* INVESTIGACIÓN Y TESIS DOCTORAL */
/* ===================================================================== */

.research {
    position: relative;
}

.doctoral-thesis {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 2px solid rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.doctoral-thesis::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.8s ease;
}

.doctoral-thesis:hover::before {
    left: 100%;
}

.doctoral-thesis h4 {
    color: #4A90E2;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.thesis-highlight {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 107, 53, 0.1));
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #FF6B35;
    color: var(--white);
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
    font-style: italic;
    position: relative;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.2);
}

.thesis-highlight::before {
    content: '"';
    position: absolute;
    top: -5px;
    left: 10px;
    font-size: 2rem;
    color: #FF6B35;
    opacity: 0.6;
}

.thesis-highlight::after {
    content: '"';
    position: absolute;
    bottom: -15px;
    right: 15px;
    font-size: 2rem;
    color: #FF6B35;
    opacity: 0.6;
}


/* Enlace para tesis doctoral */
.thesis-title-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.thesis-title-link:hover {
    color: #4A90E2;
    transform: translateX(5px);
}

.thesis-link-icon {
    font-size: 0.9rem;
    opacity: 0;
    margin-left: 8px;
    transition: all 0.3s ease;
    color: #4A90E2;
}

.thesis-title-link:hover .thesis-link-icon {
    opacity: 1;
    transform: translateX(3px);
}


/* ===================================================================== */
/* PUBLICACIONES Y ARTÍCULOS CIENTÍFICOS */
/* ===================================================================== */

.publications {
    margin-top: 25px;
}

.publications h4 {
    color: #4A90E2;
    margin-bottom: 20px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.publications h4::before {
    content: '📄';
    font-size: 1.2rem;
}

.scientific-articles {
    list-style: none;
    padding: 0;
}

.scientific-articles li {
    margin-bottom: 15px;
}

.article-link {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #FF6B35;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.article-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.1), transparent);
    transition: left 0.6s ease;
}

.article-link:hover::before {
    left: 100%;
}

.article-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    border-left-color: #FF6B35;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.article-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.4;
    flex: 1;
    transition: color 0.3s ease;
}

.article-link:hover .article-title {
    color: var(--white);
}

.external-link-icon {
    font-size: 1.1rem;
    opacity: 0.6;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.article-link:hover .external-link-icon {
    opacity: 1;
    transform: translateX(3px);
}

/* ===================================================================== */
/* EFECTOS ADICIONALES */
/* ===================================================================== */

.academic-formation .credentials-list li,
.academic-formation .research p,
.academic-formation .publications h4,
.academic-formation .publications li {
    color: rgba(255, 255, 255, 0.9);
}

/* Animación de entrada para la línea de tiempo */
@keyframes timelineSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-item {
    animation: timelineSlideIn 0.6s ease-out;
    animation-fill-mode: both;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }

/* ===================================================================== */
/* RESPONSIVE DESIGN PARA FORMACIÓN ACADÉMICA */
/* ===================================================================== */

@media (max-width: 768px) {
    .academic-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .timeline {
        padding-left: 25px;
    }

    .timeline::before {
        left: 12px;
    }

    .timeline-marker {
        left: -20px;
        width: 14px;
        height: 14px;
    }

    .timeline-content {
        padding: 15px;
    }

    .degree-title {
        font-size: 1rem;
    }

    .thesis-highlight {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .article-link {
        padding: 12px 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .article-title {
        font-size: 0.9rem;
    }

    .external-link-icon {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .timeline {
        padding-left: 20px;
    }

    .timeline::before {
        left: 10px;
        width: 2px;
    }

    .timeline-marker {
        left: -18px;
        width: 12px;
        height: 12px;
    }

    .timeline-content {
        padding: 12px;
    }

    .degree-level {
        font-size: 0.8rem;
    }

    .degree-title {
        font-size: 0.95rem;
    }

    .degree-institution {
        font-size: 0.85rem;
    }

    .thesis-highlight {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .article-link {
        padding: 10px 12px;
    }

    .article-title {
        font-size: 0.85rem;
    }
}

/* CSS para badge SENESCYT - Override completo de estilos de enlace */
.senescyt-badge.downloadable {
    background: linear-gradient(135deg, #38A169, #48BB78);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(56, 161, 105, 0.3);
    margin-left: auto;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    
    /* Override de todos los estados de enlace */
    color: var(--white) !important;
}

/* Estados específicos del enlace */
.senescyt-badge.downloadable:link {
    color: var(--white) !important;
}

.senescyt-badge.downloadable:visited {
    color: var(--white) !important;
}

.senescyt-badge.downloadable:hover {
    background: linear-gradient(135deg, #2F855A, #38A169);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(56, 161, 105, 0.4);
}

.senescyt-badge.downloadable:active {
    color: var(--white) !important;
    transform: translateY(-1px);
}

.senescyt-badge.downloadable:focus {
    color: var(--white) !important;
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Efecto shimmer */
.senescyt-badge.downloadable::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.senescyt-badge.downloadable:hover::before {
    left: 100%;
}

/* Icono - Override de colores en todos los estados */
.download-icon {
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    color: var(--white) !important;
}

.senescyt-badge.downloadable:hover .download-icon {
    opacity: 1;
    transform: scale(1.1);
    color: var(--white) !important;
}

.senescyt-badge.downloadable:visited .download-icon,
.senescyt-badge.downloadable:link .download-icon,
.senescyt-badge.downloadable:active .download-icon,
.senescyt-badge.downloadable:focus .download-icon {
    color: var(--white) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .senescyt-badge.downloadable {
        margin-left: 0;
        margin-top: 8px;
        padding: 10px 16px;
    }
}

/* ===================================================================== */
/* OVERLAYS PARA TARJETAS ACADÉMICAS */
/* ===================================================================== */

/* Hacer las tarjetas clickeables */
.timeline-content {
    cursor: pointer;
    user-select: none;
    position: relative; /* Importante para el overlay */
}

/* OVERLAY PRINCIPAL - OCULTO POR DEFECTO */
.timeline-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 17, 34, 0.98), rgba(74, 144, 226, 0.95));
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.9);
    z-index: 10;
    border-radius: 12px;
}

/* OVERLAY ACTIVO */
.timeline-content.overlay-active .timeline-overlay {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* CONTENIDO DEL OVERLAY - SOLO DESCRIPCIÓN EXPANDIDA */
.overlay-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.6;
    text-align: center;
    max-width: 90%;
    width: 100%;
    animation: slideInFromBottom 0.6s ease-out 0.2s both;
}

.overlay-description p {
    margin: 0;
    padding: 0;
    color: inherit;
}

/* BOTÓN DE CIERRE */
.overlay-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.overlay-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

/* ANIMACIONES */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* OCULTAR CONTENIDO ORIGINAL CUANDO ESTÁ ACTIVO */
.timeline-content.overlay-active .degree-level,
.timeline-content.overlay-active .degree-title,
.timeline-content.overlay-active .degree-institution,
.timeline-content.overlay-active .degree-description {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* INDICADOR VISUAL */
.timeline-content::after {
    content: '👆';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
    opacity: 0.6;
    animation: pulse 2s infinite;
    z-index: 1;
}

.timeline-content.overlay-active::after {
    display: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* RESPONSIVE PARA OVERLAYS */
@media (max-width: 768px) {
    .timeline-overlay {
        padding: 20px;
    }
    
    .overlay-description {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .timeline-overlay {
        padding: 15px;
    }
    
    .overlay-description {
        font-size: 1.1rem;
    }
    
    .overlay-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
}

/* ACCESIBILIDAD */
.timeline-content:focus {
    outline: 3px solid rgba(255, 107, 53, 0.5);
    outline-offset: 2px;
}

/* MODO REDUCIR MOVIMIENTO */
@media (prefers-reduced-motion: reduce) {
    .timeline-overlay {
        transition: opacity 0.2s ease;
    }
    
    .overlay-description {
        animation: none;
    }
    
    .overlay-close:hover {
        transform: none;
    }
    
    .timeline-content::after {
        animation: none;
    }
}


/* ===================================================================== */
/* SECCIÓN EXPERIENCIA PROFESIONAL - FONDO BLANCO MODERNO - CORREGIDO */
/* ===================================================================== */
.professional-experience {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.professional-experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 101, 101, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.experience-timeline-visual {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #3b82f6, #10b981, #f59e0b, #ef4444);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.experience-card {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
    gap: 40px;
}

.experience-card.reverse {
    flex-direction: row-reverse;
}

.year-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
    z-index: 10;
    border: 3px solid #ffffff;
}

.card-content {
    flex: 1;
    background: #ffffff;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.05), transparent);
    transition: left 0.8s ease;
}

.card-content:hover::before {
    left: 100%;
}

.card-content:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(59, 130, 246, 0.2);
}

/* ESTILOS PARA TARJETAS CLICKEABLES */
.clickable-card {
    cursor: pointer;
    position: relative;
}

.clickable-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.2),
        0 0 0 2px rgba(59, 130, 246, 0.3);
}

.clickable-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1)) border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.clickable-card:hover::after {
    opacity: 1;
    border-color: rgba(59, 130, 246, 0.3);
}

/* INDICADOR DE ENLACE EN TARJETAS CLICKEABLES */
.card-link-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding: 8px 0;
    border-top: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: #64748b;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.clickable-card:hover .card-link-indicator {
    opacity: 1;
    color: #3b82f6;
    border-top-color: #3b82f6;
}

.link-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.clickable-card:hover .link-arrow {
    transform: translateX(5px);
}

.experience-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.experience-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.experience-icon.ceo {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.experience-icon.president {
    background: linear-gradient(135deg, #10b981, #059669);
}

.experience-icon.consultant {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.experience-icon.teacher {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

/* ESTILOS PARA LOGOS DE ORGANIZACIONES */
.experience-icon.feia-logo {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 3px solid #10b981;
}

.experience-icon.creinti-logo {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 3px solid #ef4444;
}

.logo-image {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 6px;
    animation: logoFlip 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

/* Animación de volteo sobre su propio eje */
@keyframes logoFlip {
    0%, 100% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(180deg);
    }
}

/* Efecto al hacer hover */
.experience-icon:hover .logo-image {
    animation-duration: 1s;
    transform: scale(1.1);
}

.experience-info h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.experience-company {
    font-size: 1.1rem;
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.4;
}

/* ESTILOS PARA ENLACES DE UNIVERSIDADES */
.university-links {
    line-height: 1.6;
}

.university-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin: 2px 0;
}

.university-link:hover {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.university-link:hover .link-icon {
    transform: rotate(45deg) scale(1.1);
}

.link-icon {
    font-size: 0.8rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.university-link:hover .link-icon {
    opacity: 1;
}

.position-type {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    font-style: italic;
    margin-left: 8px;
}

.experience-period {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #475569;
    padding: 4px 14px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 8px;
}

.experience-description {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.experience-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.highlight-tag {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    color: #475569;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    transition: all 0.3s ease;
    text-decoration: none;
}

.highlight-tag:hover {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Estilos para enlaces en highlight-tags */
.highlight-link {
    text-decoration: none;
    cursor: pointer;
    position: relative;
}

.highlight-link:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.highlight-link::after {
    content: ' 🔗';
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.8em;
}

.highlight-link:hover::after {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
        transform: none;
    }

    .experience-card,
    .experience-card.reverse {
        flex-direction: column;
        text-align: center;
        padding-left: 80px;
        align-items: flex-start;
    }

    .year-badge {
        left: 30px;
        top: 20px;
        transform: translateX(-50%);
        position: absolute;
    }

    .card-content {
        padding: 25px 20px;
        width: 100%;
    }

    .experience-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .experience-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .logo-image {
        width: 35px;
        height: 35px;
    }

    .experience-highlights {
        justify-content: center;
        gap: 8px;
    }

    .university-links {
        text-align: center;
    }

    .university-link {
        display: flex;
        justify-content: center;
        margin: 4px auto;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .experience-card {
        padding-left: 60px;
    }

    .year-badge {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .card-content {
        padding: 20px 15px;
    }

    .experience-info h4 {
        font-size: 1.3rem;
    }

    .experience-company {
        font-size: 1rem;
    }

    .experience-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .logo-image {
        width: 30px;
        height: 30px;
    }

    .highlight-tag {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .university-link {
        font-size: 0.9rem;
        padding: 6px 10px;
        max-width: 260px;
    }

    .position-type {
        font-size: 0.75rem;
        display: block;
        margin-left: 0;
        margin-top: 2px;
    }

    .card-link-indicator {
        font-size: 0.8rem;
        padding: 6px 0;
    }
}
.experience-company p {
    color: #FF6B35;
}


/* ===================================================================== */
/* SECCIÓN DE LIBROS RENOVADA - FONDO BLANCO - CORREGIDA */
/* ===================================================================== */

.books-section {
    background: linear-gradient(135deg, #001122 0%, #002244 25%, #003366 50%, #004488 75%, #001122 100%);
    padding: 80px 0;
    position: relative;
}

.books-section .container {
    max-width: 1200px;
}

.books-section h3 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 16px;
    position: relative;
}

.books-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FF6B35, #4A90E2);
    border-radius: 2px;
}

.books-subtitle {
    font-size: 1.1rem;
    color: #ffffff  !important; 
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.book-card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #E2E8F0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.book-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #FF6B35;
}

.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.8s ease;
}

.book-card:hover::before {
    left: 100%;
}

.book-content {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 30px;
    align-items: start;
}

.book-cover-container {
    position: relative;
}

.book-cover {
    width: 140px;
    height: 190px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    position: relative;
}

.book-cover:hover {
    transform: rotateY(-10deg) rotateX(5deg) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #FF6B35, #FF8C42);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.book-info h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.book-description {
    font-size: 1rem;
    color: var(--accent-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

.book-features {
    display: grid;
    gap: 8px;
    margin-bottom: 25px;
}

.book-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--accent-color);
}

.feature-check {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #38A169, #48BB78);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
}

.book-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.book-btn {
    padding: 12px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
}

.book-btn-primary {
    background: linear-gradient(135deg, #FF6B35, #FF8C42);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.book-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.book-btn-secondary {
    background: transparent;
    color: #4A90E2;
    border-color: #4A90E2;
}

.book-btn-secondary:hover {
    background: #4A90E2;
    color: white;
    transform: translateY(-2px);
}

.book-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #E2E8F0;
}

.book-stat {
    text-align: center;
}

.book-stat-number {
    font-weight: 700;
    font-size: 1.1rem;
    color: #FF6B35;
}

.book-stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ===================================================================== */
/* RESPONSIVE DESIGN PARA EXPERIENCIA */
/* ===================================================================== */

@media (max-width: 768px) {
    .experience-timeline {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .experience-item {
        grid-column: 1 / -1 !important;
        padding: 25px;
    }

    .books-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .book-content {
        grid-template-columns: 120px 1fr;
        gap: 20px;
    }

    .book-cover {
        width: 120px;
        height: 160px;
    }

    .book-card {
        padding: 25px;
    }

    .experience-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .experience-highlights {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .book-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .book-cover {
        margin: 0 auto 20px;
        width: 130px;
        height: 173px;
    }

    .book-actions {
        justify-content: center;
    }

    .experience-item {
        padding: 20px;
    }

    .experience-highlights {
        justify-content: center;
    }
}
/* ===================================================================== */
/* MODALES DE VISTA PREVIA DE LIBROS */
/* ===================================================================== */

.preview-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.preview-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideInUp 0.4s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
}

.modal-header h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    font-size: 2rem;
    color: #64748b;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(100, 116, 139, 0.1);
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: rotate(90deg) scale(1.1);
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.preview-pages {
    position: relative;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    min-height: 400px;
}

.preview-page {
    display: none;
    animation: pageSlide 0.3s ease;
}

.preview-page.active {
    display: block;
}

.preview-page img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
}

.preview-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 20px;
}

.nav-btn {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

.nav-btn:hover {
    background: linear-gradient(135deg, #357ABD, #2C5282);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
}

.nav-btn:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.page-indicator {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    color: var(--primary-color);
    border: 1px solid #cbd5e1;
}

.modal-footer {
    border-top: 1px solid #e2e8f0;
    padding: 20px 30px;
    background: #f8fafc;
    text-align: center;
}

.modal-footer .book-btn {
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Animaciones para los modales */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pageSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive para modales */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h3 {
        font-size: 1.2rem;
    }

    .modal-body {
        padding: 20px;
    }

    .preview-pages {
        min-height: 300px;
    }

    .preview-page img {
        max-height: 350px;
    }

    .preview-navigation {
        flex-direction: column;
        gap: 15px;
        padding: 0;
    }

    .nav-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .modal-footer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 10px;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-header h3 {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 15px;
    }

    .preview-pages {
        min-height: 250px;
    }

    .preview-page img {
        max-height: 280px;
    }

    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
}

/* También necesitas actualizar el subtítulo de la sección a blanco */
.books-subtitle {
    color: #ffffff;
}

/* ===================================================================== */
/* GALERÍA HORIZONTAL COMPLETA - CSS DEFINITIVO */
/* ===================================================================== */

.moments-gallery {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    position: relative;
}

.moments-gallery .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================================================== */
/* HEADER DE LA SECCIÓN */
/* ===================================================================== */

.moments-gallery .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.moments-gallery .section-header h2 {
    color: #FF6B35;
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.moments-gallery .section-header p {
    color: #4a5568;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===================================================================== */
/* FILTROS EN UNA SOLA FILA */
/* ===================================================================== */

.gallery-filters {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    margin-bottom: 50px !important;
    padding: 6px 12px !important;
    background: rgba(255, 255, 255, 0.8) !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.gallery-filters::-webkit-scrollbar {
    display: none !important;
}

.filter-btn {
    padding: 10px 16px !important;
    border: 2px solid transparent !important;
    background: transparent !important;
    color: #64748b !important;
    border-radius: 25px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    min-width: fit-content !important;
}

.filter-btn:hover {
    color: #4A90E2 !important;
    border-color: rgba(74, 144, 226, 0.3) !important;
    transform: translateY(-2px) !important;
}

.filter-btn.active {
    background: linear-gradient(135deg, #4A90E2, #357ABD) !important;
    border-color: #4A90E2 !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3) !important;
    transform: translateY(-2px) !important;
}

/* ===================================================================== */
/* CONTENEDOR HORIZONTAL CON FLECHAS */
/* ===================================================================== */

.gallery-horizontal-container {
    position: relative !important;
    margin: 0 25px !important;
    padding: 20px 0 !important;
    width: calc(100% - 50px) !important;
}

.gallery-horizontal-scroll {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 20px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth !important;
    padding: 10px 0 20px 0 !important;
    width: 100% !important;
    scrollbar-width: thin !important;
    scrollbar-color: #CBD5E0 #F1F5F9 !important;
    -webkit-overflow-scrolling: touch !important;
}

.gallery-horizontal-scroll::-webkit-scrollbar {
    height: 8px !important;
}

.gallery-horizontal-scroll::-webkit-scrollbar-track {
    background: #F1F5F9 !important;
    border-radius: 4px !important;
}

.gallery-horizontal-scroll::-webkit-scrollbar-thumb {
    background: #CBD5E0 !important;
    border-radius: 4px !important;
}

.gallery-horizontal-scroll::-webkit-scrollbar-thumb:hover {
    background: #4A90E2 !important;
}

/* ===================================================================== */
/* FLECHAS DE NAVEGACIÓN */
/* ===================================================================== */

.gallery-nav-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 45px !important;
    height: 45px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 1.4rem !important;
    color: #4A90E2 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 15 !important;
    opacity: 0.7 !important;
}

.gallery-nav-btn:hover {
    background: #4A90E2 !important;
    color: white !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3) !important;
    opacity: 1 !important;
}

.gallery-nav-btn:active {
    transform: translateY(-50%) scale(0.95) !important;
}

.gallery-nav-prev {
    left: -20px !important;
}

.gallery-nav-next {
    right: -20px !important;
}

.gallery-nav-btn.disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* ===================================================================== */
/* ITEMS DE LA GALERÍA */
/* ===================================================================== */

.gallery-item {
    flex: 0 0 auto !important;
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    height: auto !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: block !important;
    position: relative !important;
}

.gallery-item.filtering {
    opacity: 0 !important;
    transform: scale(0.8) !important;
    pointer-events: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.gallery-item.visible {
    opacity: 1 !important;
    transform: scale(1) !important;
    pointer-events: all !important;
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
}

/* ===================================================================== */
/* TARJETAS DE LA GALERÍA */
/* ===================================================================== */

.gallery-card {
    background: white !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    border: 1px solid #e2e8f0 !important;
    height: 320px !important;
    width: 100% !important;
}

.gallery-card:hover {
    transform: translateY(-8px) scale(1.05) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    border-color: #4A90E2 !important;
    z-index: 10 !important;
}

/* ===================================================================== */
/* IMAGEN CON TAMAÑO FIJO */
/* ===================================================================== */

.gallery-image {
    position: relative !important;
    width: 100% !important;
    height: 200px !important;
    overflow: hidden !important;
    background: #f1f5f9 !important;
}

.gallery-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.4s ease !important;
    display: block !important;
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.1) !important;
}

/* ===================================================================== */
/* OVERLAY CON EFECTOS */
/* ===================================================================== */

.gallery-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(
        135deg, 
        rgba(0, 17, 34, 0.85) 0%, 
        rgba(74, 144, 226, 0.75) 100%
    ) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    opacity: 0 !important;
    transition: all 0.3s ease !important;
    padding: 15px !important;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1 !important;
}

.gallery-content h3 {
    color: white !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    transform: translateY(20px) !important;
    transition: transform 0.3s ease 0.1s !important;
}

.gallery-content p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
    transform: translateY(20px) !important;
    transition: transform 0.3s ease 0.2s !important;
}

.gallery-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    transform: translateY(20px) !important;
    backdrop-filter: blur(10px) !important;
}

.gallery-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(0) scale(1.05) !important;
}

.gallery-card:hover .gallery-content h3,
.gallery-card:hover .gallery-content p,
.gallery-card:hover .gallery-btn {
    transform: translateY(0) !important;
}

/* ===================================================================== */
/* INFORMACIÓN DE LA TARJETA */
/* ===================================================================== */

.gallery-info {
    padding: 16px !important;
    background: white !important;
    height: 120px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.gallery-category {
    display: inline-block !important;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0) !important;
    color: #4A90E2 !important;
    padding: 4px 10px !important;
    border-radius: 12px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 8px !important;
    border: 1px solid rgba(74, 144, 226, 0.2) !important;
    width: fit-content !important;
}

.gallery-info h4 {
    color: #1e293b !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

/* Estados de categorías con colores */
.gallery-category.conferences { 
    background: linear-gradient(135deg, #fef3e2, #fed7aa) !important;
    color: #ea580c !important;
    border-color: rgba(234, 88, 12, 0.2) !important;
}

.gallery-category.consulting { 
    background: linear-gradient(135deg, #f0f9ff, #bae6fd) !important;
    color: #0369a1 !important;
    border-color: rgba(3, 105, 161, 0.2) !important;
}

.gallery-category.education { 
    background: linear-gradient(135deg, #f0fdf4, #bbf7d0) !important;
    color: #16a34a !important;
    border-color: rgba(22, 163, 74, 0.2) !important;
}

.gallery-category.events { 
    background: linear-gradient(135deg, #fdf2f8, #fce7f3) !important;
    color: #be185d !important;
    border-color: rgba(190, 24, 93, 0.2) !important;
}

/* ===================================================================== */
/* MODAL PARA IMÁGENES EXPANDIDAS */
/* ===================================================================== */

.gallery-modal {
    display: none !important;
    position: fixed !important;
    z-index: 9999 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(5px) !important;
}

.gallery-modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    animation: fadeIn 0.3s ease !important;
}

.gallery-modal .modal-content {
    background: white !important;
    border-radius: 16px !important;
    max-width: 800px !important;
    width: 90% !important;
    max-height: 90vh !important;
    overflow: hidden !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3) !important;
    animation: slideInUp 0.4s ease !important;
}

.gallery-modal .modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 25px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
}

.gallery-modal .modal-header h3 {
    color: #1e293b !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.gallery-modal .modal-close {
    background: rgba(100, 116, 139, 0.1) !important;
    border: none !important;
    font-size: 1.8rem !important;
    color: #64748b !important;
    cursor: pointer !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.gallery-modal .modal-close:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    transform: rotate(90deg) !important;
}

.gallery-modal .modal-body {
    padding: 25px !important;
    text-align: center !important;
}

.gallery-modal #modal-image {
    max-width: 100% !important;
    max-height: 400px !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    margin-bottom: 20px !important;
}

.modal-description p {
    color: #4a5568 !important;
    line-height: 1.6 !important;
    margin-bottom: 15px !important;
}

.modal-details {
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
    margin-top: 15px !important;
}

.modal-category,
.modal-date {
    background: #f1f5f9 !important;
    color: #4a5568 !important;
    padding: 6px 12px !important;
    border-radius: 12px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
}

/* ===================================================================== */
/* RESPONSIVE DESIGN */
/* ===================================================================== */

@media (max-width: 768px) {
    .moments-gallery {
        padding: 60px 0;
    }
    
    .moments-gallery .section-header h2 {
        font-size: 2rem;
    }
    
    .gallery-filters {
        gap: 6px !important;
        padding: 4px 8px !important;
    }
    
    .filter-btn {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }
    
    .gallery-horizontal-container {
        margin: 0 20px !important;
        width: calc(100% - 40px) !important;
    }
    
    .gallery-horizontal-scroll {
        gap: 15px !important;
    }
    
    .gallery-item {
        width: 240px !important;
        min-width: 240px !important;
        max-width: 240px !important;
    }
    
    .gallery-item.visible {
        width: 240px !important;
        min-width: 240px !important;
        max-width: 240px !important;
    }
    
    .gallery-card {
        height: 280px !important;
    }
    
    .gallery-image {
        height: 160px !important;
    }
    
    .gallery-info {
        height: 120px !important;
        padding: 12px !important;
    }
    
    .gallery-nav-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
    }
    
    .gallery-nav-prev {
        left: -15px !important;
    }
    
    .gallery-nav-next {
        right: -15px !important;
    }
}

@media (max-width: 480px) {
    .moments-gallery {
        padding: 50px 0;
    }
    
    .moments-gallery .section-header h2 {
        font-size: 1.8rem;
    }
    
    .moments-gallery .section-header p {
        font-size: 1rem;
    }
    
    .gallery-filters {
        gap: 4px !important;
        padding: 3px 6px !important;
    }
    
    .filter-btn {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
    }
    
    .gallery-horizontal-container {
        margin: 0 15px !important;
        width: calc(100% - 30px) !important;
    }
    
    .gallery-horizontal-scroll {
        gap: 12px !important;
    }
    
    .gallery-item {
        width: 200px !important;
        min-width: 200px !important;
        max-width: 200px !important;
    }
    
    .gallery-item.visible {
        width: 200px !important;
        min-width: 200px !important;
        max-width: 200px !important;
    }
    
    .gallery-card {
        height: 250px !important;
    }
    
    .gallery-image {
        height: 140px !important;
    }
    
    .gallery-info {
        height: 110px !important;
        padding: 10px !important;
    }
    
    .gallery-nav-btn {
        width: 35px !important;
        height: 35px !important;
        font-size: 1rem !important;
    }
    
    .gallery-nav-prev {
        left: -10px !important;
    }
    
    .gallery-nav-next {
        right: -10px !important;
    }
}

/* ===================================================================== */
/* ANIMACIONES */
/* ===================================================================== */

@keyframes slideInHorizontal {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.gallery-item.visible {
    animation: slideInHorizontal 0.4s ease-out !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===================================================================== */
/* SOBRESCRIBIR CUALQUIER ESTILO CONFLICTIVO */
/* ===================================================================== */

.gallery-grid {
    display: none !important;
}

.gallery-column {
    display: none !important;
}

/* Asegurar que el flexbox siempre prevalezca */
.moments-gallery .gallery-horizontal-scroll {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}


/* ===================================================================== */
/* SECCIÓN SERVICIOS */
/* ===================================================================== */

.services {
    padding: 100px 0;
    background: linear-gradient(135deg, #001122 0%, #002244 25%, #003366 50%, #004488 75%, #001122 100%) !important;
    color: var(--white);
}

.services-tabs {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    background: transparent; /* quitamos el fondo blanco */
    border-radius: var(--border-radius);
    padding: 8px;
    color: #fff; /* letras en blanco */
}

.tab-btn {
    flex: 1;
    padding: 16px 24px;
    background: transparent;
    border: none;
    color: #ffffff; /* 🔥 Texto blanco */
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--border-radius);
    white-space: nowrap;
}

.tab-btn.active {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow);
}

.tab-content {
    position: relative;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(56, 161, 105, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    color: #ef4444 !important;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-card ul {
    text-align: left;
    margin-bottom: 30px;
    color: var(--accent-color);
}

.service-card li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.service-cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.service-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===================================================================== */
/* SECCIÓN TESTIMONIOS */
/* ===================================================================== */

.testimonials {
    padding: 100px 0;
    background: var(--white);
}

    
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(56, 161, 105, 0.1), transparent);
    transition: left 0.6s ease;
}

.testimonial-card:hover::before {
    left: 100%;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: -10px;
    left: 30px;
    font-size: 4rem;
    color: var(--secondary-color);
    line-height: 1;
}

.testimonial-content {
    margin-bottom: 24px;
}

.testimonial-content p {
    font-style: italic;
    color: var(--accent-color);
    line-height: 1.6;
    margin-top: 20px;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-info h4 {
    color: var(--primary-color);
    margin-bottom: 4px;
}

.author-info span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.testimonial-rating {
    color: #FFD700;
    font-size: 1.2rem;
}

/* ===================================================================== */
/* SECCIÓN PROYECTOS */
/* ===================================================================== */

.projects {
    padding: 100px 0;
    background: linear-gradient(135deg, #001122 0%, #002244 25%, #003366 50%, #004488 75%, #001122 100%) !important;
    color: var(--white);
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(56, 161, 105, 0.1), transparent);
    transition: left 0.6s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    color: var(--primary-color);
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.project-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    background: var(--secondary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===================================================================== */
/* RESPONSIVE DESIGN PARA NUEVA SECCIÓN DE CONTACTO */
/* ===================================================================== */
/* ===================================================================== */
/* SECCIÓN CONTACTO */
/* ===================================================================== */

.contact {
    padding: 100px 0;
    background: var(--bg-light);
    color: var(--white);
}

/* Opciones de Contacto */
.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.contact-option {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.05), transparent);
    transition: left 0.8s ease;
}

.contact-option:hover::before {
    left: 100%;
}

.contact-option:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.whatsapp-option:hover {
    border-color: #25D366;
    box-shadow: 0 20px 40px rgba(37, 211, 102, 0.2);
}

.ai-option:hover {
    border-color: #4A90E2;
    box-shadow: 0 20px 40px rgba(74, 144, 226, 0.2);
}

.form-option:hover {
    border-color: #FF6B35;
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
}

.option-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.whatsapp-option .option-icon {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.ai-option .option-icon {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
}

.form-option .option-icon {
    background: linear-gradient(135deg, #FF6B35, #FF8C42);
}

.contact-option:hover .option-icon {
    transform: scale(1.1) rotate(10deg);
}

.contact-option h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.contact-option p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.option-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 25px;
}

.feature {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    color: var(--accent-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #cbd5e1;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 200px;
    justify-content: center;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.ai-btn {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.ai-btn:hover {
    background: linear-gradient(135deg, #357ABD, #2C5282);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.form-btn {
    background: linear-gradient(135deg, #FF6B35, #FF8C42);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.form-btn:hover {
    background: linear-gradient(135deg, #FF8C42, #FF6B35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Contenedor del Formulario */
.contact-form-container {
    background: rgba(0, 17, 34, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.contact-form-wrapper {
    background: var(--white);
    border-radius: 20px;
    max-width: 1000px;
    margin: 40px auto;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.4s ease;
}

.form-header {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    padding: 25px 30px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-header h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.close-form-btn {
    background: rgba(100, 116, 139, 0.1);
    border: none;
    font-size: 2rem;
    color: #64748b;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-form-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: rotate(90deg) scale(1.1);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 30px;
}

.contact-info h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 1.3rem;
    margin-top: 2px;
}

.contact-item strong {
    color: var(--primary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.contact-item p {
    color: var(--accent-color);
    margin: 0;
}

.availability {
    margin-top: 25px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.availability h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.availability ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.availability li {
    margin-bottom: 6px;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.contact-form {
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}

/* Modal del Chatbot IA */
.ai-chatbot-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 17, 34, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.chatbot-container {
    background: var(--white);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    height: 600px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.4s ease;
}

.chatbot-header {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.chatbot-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.status {
    font-size: 0.8rem;
    opacity: 0.8;
}

.close-chatbot-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-chatbot-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8fafc;
}

.message {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #FF6B35, #FF8C42);
}

.message-content {
    background: white;
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 70%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-message .message-content {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
}

.message-content p {
    margin: 0;
    line-height: 1.4;
}

.quick-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.quick-option {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border: 1px solid #cbd5e1;
    color: var(--accent-color);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-option:hover {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    transform: translateY(-1px);
}

.chatbot-input {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    background: white;
}

.chatbot-input input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.chatbot-input input:focus {
    border-color: #4A90E2;
}

.chatbot-input button {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.chatbot-input button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* Animaciones necesarias */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Estilos de formulario reutilizados */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E2E8F0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.1);
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #E53E3E;
}

.error-message {
    color: #E53E3E;
    font-size: 0.875rem;
    margin-top: 4px;
    display: block;
    min-height: 20px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #001f3f 0%, #003d7a 25%, #0074d9 50%, #39cccc 75%, #001f3f 100%);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-full {
    width: 100%;
}



/* ===================================================================== */
/* FOOTER */
/* ===================================================================== */

.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section h3 {
    font-size: 1.5rem;
}

.footer-section p {
    color: #CBD5E0;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #CBD5E0;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-links a {
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #CBD5E0;
}

.footer-bottom p {
    margin-bottom: 8px;
}

/* ===================================================================== */
/* ANIMACIONES Y EFECTOS - SECCIÓN CORREGIDA */
/* ===================================================================== */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: slideInUp 0.6s ease-out;
}

/* Estados de carga */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ANIMACIÓN SPIN CORREGIDA */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Enfoque de teclado mejorado */
.btn:focus,
.nav-link:focus,
.tab-btn:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(56, 161, 105, 0.3);
    outline-offset: 2px;
}

/* ===================================================================== */
/* CLASES AUXILIARES PARA DEBUGGING */
/* ===================================================================== */

.debug-image {
    border: 3px solid red !important;
}

.debug-container {
    border: 3px solid blue !important;
}

.debug-frame {
    border: 3px solid green !important;
}

.force-image-visible {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
}

/* ===================================================================== */
/* RESPONSIVE DESIGN - CORREGIDO Y COMPLETO */
/* ===================================================================== */

/* TABLETS - 768px y menor */
@media (max-width: 768px) {
    /* Header responsive mejorado */
    .nav-container {
        padding: 0.8rem 15px;
        flex-wrap: wrap;
    }

    .nav-logo h2 {
        font-size: 1.2rem;
    }

    .nav-logo span {
        font-size: 0.8rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 40px;
        transition: var(--transition);
        box-shadow: var(--shadow);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .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);
    }

    .nav-link {
        padding: 15px;
        font-size: 1.1rem;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
        text-align: center;
    }

    /* Hero responsive corregido */
    .hero {
        margin-top: 70px;
    }

    .hero-main {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 30px;
        padding: 30px 0;
        min-height: 70vh;
    }

    .hero-content {
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero-image {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        order: -1;
        margin-bottom: 20px;
        max-width: 150px !important;
        padding: 0 15px !important;
    }

    .image-container {
        max-width: 150px !important;
        width: 150px !important;
    }

    .slide-content-center {
        padding: 30px 15px;
    }

    /* Tipografía móvil */
    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.1;
        margin-bottom: 20px;
    }

    .title-line-1,
    .title-line-2 {
        font-size: 2.2rem !important;
    }

    .hero-description {
        font-size: 1rem !important;
        margin: 0 auto 20px auto;
        max-width: 100% !important;
        padding: 0 10px;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 14px;
        margin-bottom: 20px;
    }

    /* Stats responsive */
    .hero-stats {
        justify-content: center;
        gap: 25px;
        margin-bottom: 25px;
        flex-wrap: wrap;
    }

    .stat-item {
        min-width: 80px;
    }

    .stat-number {
        font-size: 1.8rem !important;
    }

    .stat-label {
        font-size: 0.75rem !important;
    }

    /* Features responsive */
    .hero-features {
        gap: 15px;
        margin-bottom: 25px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .feature-item {
        flex: 0 1 auto;
        min-width: 100px;
        padding: 10px 14px;
    }

    /* Botones responsive */
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 250px;
    }

    /* Controles del carrusel */
    .slider-btn {
        padding: 10px 14px;
        font-size: 18px;
    }

    .prev { left: 10px; }
    .next { right: 10px; }

    /* Secciones generales */
    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .academic-content,
    .books-section,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .experience-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tab-buttons {
        flex-wrap: wrap;
        gap: 6px;
        padding: 6px;
    }

    .tab-btn {
        flex: 1;
        min-width: 100px;
        font-size: 0.85rem;
        padding: 10px 14px;
    }

    .services-grid,
    .projects-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .service-card,
    .testimonial-card {
        padding: 25px 20px;
    }

    .contact-form {
        padding: 25px 18px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
}

/* MÓVILES - 480px y menor */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .nav-container {
        padding: 0.7rem 12px;
    }

    .nav-logo h2 {
        font-size: 1.1rem;
    }

    .nav-logo span {
        font-size: 0.75rem;
    }

    /* Hero móvil optimizado */
    .hero {
        min-height: 85vh;
        margin-top: 65px;
    }

    .slider-container {
        height: 85vh;
    }

    .hero-main {
        padding: 20px 0;
        min-height: 60vh;
        gap: 25px;
    }

    .slide-content-center {
        padding: 20px 12px;
    }

    /* Tipografía móvil muy pequeña */
    .hero-title {
        font-size: 1.8rem !important;
        margin-bottom: 16px;
    }

    .title-line-1,
    .title-line-2 {
        font-size: 1.8rem !important;
    }

    .hero-description {
        font-size: 0.9rem !important;
        margin-bottom: 18px;
        line-height: 1.5;
        padding: 0 5px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
        margin-bottom: 16px;
    }

    /* Stats móvil muy compacto */
    .hero-stats {
        gap: 20px;
        margin-bottom: 20px;
    }

    .stat-number {
        font-size: 1.5rem !important;
    }

    .stat-label {
        font-size: 0.7rem !important;
    }

    /* Features móvil */
    .hero-features {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }

    .feature-item {
        flex-direction: row;
        justify-content: center;
        padding: 8px 14px;
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    /* Botones móvil */
    .btn-large {
        font-size: 0.9rem;
        padding: 12px 24px;
        width: 100%;
        max-width: 220px;
    }

    /* IMAGEN MÓVIL - FORZADO PEQUEÑO */
    .hero-image {
        max-width: 100px !important;
        width: 100px !important;
        padding: 0 10px !important;
        margin-bottom: 10px;
    }

    .image-container {
        max-width: 100px !important;
        width: 100px !important;
    }

    /* Controles carrusel móvil */
    .slider-btn {
        padding: 8px 12px;
        font-size: 16px;
    }

    .prev { left: 5px; }
    .next { right: 5px; }

    .slider-dots {
        bottom: 20px;
        gap: 8px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    /* Secciones móvil */
    .section-header h2 {
        font-size: 1.6rem;
    }

    .section-header p {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    .tab-btn {
        font-size: 0.8rem;
        padding: 8px 10px;
        min-width: 90px;
    }

    .service-card,
    .testimonial-card {
        padding: 20px 15px;
    }

    .project-content {
        padding: 20px;
    }

    .contact-form {
        padding: 20px 15px;
    }
}

/* MÓVILES MUY PEQUEÑOS - 320px y menor */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }

    .nav-container {
        padding: 0.6rem 10px;
    }

    .nav-logo h2 {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 1.6rem !important;
    }

    .title-line-1,
    .title-line-2 {
        font-size: 1.6rem !important;
    }

    .hero-description {
        font-size: 0.85rem !important;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .stat-number {
        font-size: 1.3rem !important;
    }

    .stat-label {
        font-size: 0.65rem !important;
    }

    /* IMAGEN MUY PEQUEÑA - FORZADO */
    .hero-image {
        max-width: 80px !important;
        width: 80px !important;
        padding: 0 8px !important;
        margin-bottom: 8px;
    }

    .image-container {
        max-width: 80px !important;
        width: 80px !important;
    }

    .btn-large {
        font-size: 0.85rem;
        padding: 10px 20px;
        max-width: 200px;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .tab-btn {
        font-size: 0.75rem;
        padding: 7px 8px;
        min-width: 80px;
    }
}

/* PANTALLAS EXTRA PEQUEÑAS - 280px y menor */
@media (max-width: 280px) {
    /* IMAGEN EXTREMADAMENTE PEQUEÑA */
    .hero-image {
        max-width: 60px !important;
        width: 60px !important;
        padding: 0 5px !important;
        margin-bottom: 5px;
    }

    .image-container {
        max-width: 60px !important;
        width: 60px !important;
    }

    .hero-title {
        font-size: 1.4rem !important;
    }

    .title-line-1,
    .title-line-2 {
        font-size: 1.4rem !important;
    }
}

/* ===================================================================== */
/* UTILIDADES ADICIONALES */
/* ===================================================================== */

/* Ocultar elementos en móvil */
@media (max-width: 480px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Texto más pequeño en móvil */
@media (max-width: 480px) {
    .small-text-mobile {
        font-size: 0.8rem !important;
    }
}

/* Espaciado reducido en móvil */
@media (max-width: 480px) {
    .reduced-padding-mobile {
        padding: 10px !important;
    }
}

/* CORRECCIÓN DEFINITIVA PARA LA IMAGEN */
.hero-image {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
}

.hero-image .image-container {
    display: block !important;
    visibility: visible !important;
    position: static !important;
    width: 100% !important;
    max-width: 400px !important;
}

.hero-image .image-frame {
    display: block !important;
    visibility: visible !important;
    position: static !important;
    width: 100% !important;
}

.hero-image .image-frame img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    position: static !important;
}

/* ===================================================================== */
/* SECCIÓN SITIOS WEB Y PORTAFOLIO DIGITAL - VERSIÓN MEJORADA */
/* ===================================================================== */

.websites {
    padding: 80px 0;
    background: var(--bg-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* ===== Botones compactos del portafolio (responsivo inteligente) ===== */
.portfolio-links {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 columnas para pantallas grandes */
    gap: 20px;
    margin: 24px 0 40px;
    max-width: 100%;
    justify-content: center;
}

.plink {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 16px 12px;
    text-decoration: none;
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* AGREGAR ESTA LÍNEA: */
    border: 2px solid #1e3a8a;  /* ESTA LÍNEA CAMBIAR */

    min-height: 100px;
    position: relative;
    overflow: hidden;
}

.plink::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 31, 63, 0.05), transparent);
    transition: left 0.6s ease;
}

.plink:hover::before {
    left: 100%;
}

.plink:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
    background: #f8fafc;
        /* AGREGAR ESTA LÍNEA: */
    bborder-color: #1e40af;
}

.plink:active {
    transform: translateY(-2px) scale(1.01);
}

.plink.featured {
    border: 2px solid #1e3a8a;
    background: var(--white);
}

.plink.featured:hover {
    border-color: #1e40af;
    background: #f8fafc;
}

.plink-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--primary-color), #003d7a);
    color: var(--white);
    font-size: 1.1rem;
    box-shadow:
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.25),
        0 4px 8px rgba(44, 82, 130, 0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.plink.featured .plink-logo {
    background: linear-gradient(135deg, #001f3f, #39cccc);
    box-shadow:
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.3),
        0 4px 12px rgba(0, 31, 63, 0.3);
}

.plink:hover .plink-logo {
    transform: scale(1.1);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.4),
        0 6px 16px rgba(44, 82, 130, 0.3);
}

.plink.featured:hover .plink-logo {
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.5),
        0 6px 20px rgba(0, 31, 63, 0.4);
}

.plink-label {
    font-size: 0.9rem;
    color: var(--accent-color);
    text-align: center;
    line-height: 1.2;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.plink:hover .plink-label {
    color: var(--primary-color);
}

.plink.featured .plink-label {
    color: #001f3f;
    font-weight: 700;
}

/* CTA de la sección - Mejorada */
.websites-cta {
    text-align: center;
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 31, 63, 0.1);
    margin-top: 20px;
}

.websites-cta h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.websites-cta p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* ===================================================================== */
/* RESPONSIVE DESIGN OPTIMIZADO */
/* ===================================================================== */

/* Pantallas extra grandes (1400px+) - 6 columnas */
@media (min-width: 1400px) {
    .portfolio-links {
        grid-template-columns: repeat(6, 1fr);
        gap: 24px;
        max-width: 1000px;
        margin: 32px auto 48px;
    }

    .plink {
        min-height: 110px;
        padding: 20px 16px;
    }

    .plink-logo {
        width: 56px;
        height: 56px;
        font-size: 1.2rem;
    }

    .plink-label {
        font-size: 0.95rem;
    }
}

/* Pantallas grandes (1200px - 1399px) - 6 columnas compactas */
@media (min-width: 1200px) and (max-width: 1399px) {
    .portfolio-links {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
        max-width: 900px;
        margin: 28px auto 44px;
    }

    .plink {
        min-height: 105px;
        padding: 18px 14px;
    }

    .plink-logo {
        width: 54px;
        height: 54px;
        font-size: 1.15rem;
    }
}

/* Pantallas medianas (992px - 1199px) - 6 columnas */
@media (min-width: 992px) and (max-width: 1199px) {
    .portfolio-links {
        grid-template-columns: repeat(6, 1fr);
        gap: 18px;
        margin: 26px 0 42px;
    }

    .plink {
        min-height: 100px;
        padding: 16px 12px;
    }

    .plink-logo {
        width: 52px;
        height: 52px;
        font-size: 1.1rem;
    }
}

/* Tablets (768px - 991px) - 3 columnas */
@media (min-width: 768px) and (max-width: 991px) {
    .portfolio-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        margin: 24px 0 40px;
    }

    .plink {
        min-height: 95px;
        padding: 14px 10px;
    }

    .plink-logo {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }

    .plink-label {
        font-size: 0.85rem;
    }

    .websites-cta {
        padding: 35px 25px;
    }

    .websites-cta h3 {
        font-size: 1.6rem;
    }

    .websites-cta p {
        font-size: 1rem;
    }
}

/* Móviles grandes (520px - 767px) - 2 columnas */
@media (min-width: 520px) and (max-width: 767px) {
    .portfolio-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        margin: 20px 0 36px;
    }

    .plink {
        min-height: 90px;
        padding: 12px 8px;
    }

    .plink-logo {
        width: 44px;
        height: 44px;
        font-size: 0.9rem;
    }

    .plink-label {
        font-size: 0.8rem;
    }

    .websites-cta {
        padding: 30px 20px;
    }

    .websites-cta h3 {
        font-size: 1.4rem;
    }

    .websites-cta p {
        font-size: 0.95rem;
    }
}

/* Móviles pequeños (hasta 519px) - 2 columnas compactas */
@media (max-width: 519px) {
    .portfolio-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin: 18px 0 32px;
    }

    .plink {
        min-height: 80px;
        padding: 10px 6px;
        gap: 8px;
    }

    .plink-logo {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }

    .plink-label {
        font-size: 0.75rem;
        line-height: 1.1;
    }

    .websites-cta {
        padding: 25px 15px;
    }

    .websites-cta h3 {
        font-size: 1.3rem;
    }

    .websites-cta p {
        font-size: 0.9rem;
    }
}

/* Móviles muy pequeños (hasta 320px) */
@media (max-width: 320px) {
    .portfolio-links {
        gap: 10px;
        margin: 16px 0 28px;
    }

    .plink {
        min-height: 75px;
        padding: 8px 4px;
        gap: 6px;
    }

    .plink-logo {
        width: 36px;
        height: 36px;
        font-size: 0.7rem;
    }

    .plink-label {
        font-size: 0.7rem;
    }

    .websites-cta {
        padding: 20px 12px;
    }

    .websites-cta h3 {
        font-size: 1.2rem;
    }

    .websites-cta p {
        font-size: 0.85rem;
    }
}

/* ===================================================================== */
/* OPTIMIZACIONES PARA RENDIMIENTO */
/* ===================================================================== */

/* Reducir animaciones en dispositivos de baja gama */
@media (max-width: 768px) and (max-height: 1024px) {
    .plink {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .plink::before {
        transition: left 0.4s ease;
    }

    .plink-logo {
        transition: transform 0.2s ease;
    }
}

/* Modo de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .plink {
        transition: none;
    }

    .plink::before {
        display: none;
    }

    .plink:hover {
        transform: none;
    }

    .plink:hover .plink-logo {
        transform: none;
    }
}

/* ===================================================================== */
/* UTILIDADES ADICIONALES */
/* ===================================================================== */

/* Estado de focus mejorado para accesibilidad */
.plink:focus {
    outline: 3px solid rgba(0, 31, 63, 0.3);
    outline-offset: 2px;
}

/* Hover solo en dispositivos que lo soportan */
@media (hover: hover) {
    .plink:hover {
        transform: translateY(-4px) scale(1.02);
    }
}

/* Para dispositivos touch, usar solo el efecto active */
@media (hover: none) {
    .plink:hover {
        transform: none;
        background: var(--white);
    }

    .plink:active {
        transform: scale(0.98);
        background: #f8fafc;
    }
}

/* === LOGO CÍRCULO - SOLUCIÓN DIRECTA === */
.plink-logo {
  width: 70px;
  height: 70px;
  border-radius: 70%;
  display: flex !important;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color), #003d7a);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
  transition: all 0.3s ease;
}

.plink-logo .logo-img {
  max-width: 58px !important;
  max-height: 58px !important;
  width: 58px !important;
  height: 58px !important;
  object-fit: contain !important;
  display: block !important;
}
.plink.featured .plink-logo {
  background: linear-gradient(135deg, #001f3f, #39cccc);
}

.plink.featured .plink-logo .logo-img {
  max-width: 35% !important;
  max-height: 35% !important;
}

.directory-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: block;
}

/* ===================================================================== */
/* ESPACIADO REDUCIDO ENTRE SECCIONES */
/* ===================================================================== */

.websites {
    padding: 60px 0;
    background: var(--bg-light);
    min-height: auto;
    display: flex;
    align-items: center;
}

.services {
    padding: 70px 0;
}

.testimonials {
    padding: 70px 0;
    background: var(--bg-light);
}

.projects {
    padding: 70px 0;
}

.contact {
    padding: 70px 0;
    background: var(--bg-light);
}

.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 50px 0 20px;
}

/* Reducir espaciado en elementos internos */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

/* Responsive - mantener espaciado reducido en móvil */
@media (max-width: 768px) {
    .websites,
    .academic-formation,
    .professional-experience,
    .services,
    .testimonials,
    .projects,
    .contact {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .academic-content,
    .books-section {
        gap: 25px;
        margin-bottom: 25px;
    }

    .books-section {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .websites,
    .academic-formation,
    .professional-experience,
    .services,
    .testimonials,
    .projects,
    .contact {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 25px;
    }
}

/* GLOBO CSS MINIMALISTA - OPCIÓN 4 */
.section-header-with-globe {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.section-header-with-globe h2 {
    color: #FF6B35;
    margin: 0;
}

.globe-minimal {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 30% 30%, #4A90E2, #2C5282),
        linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
    position: relative;
    animation: rotateSmooth 8s linear infinite;
    box-shadow: 
        0 0 0 3px rgba(74, 144, 226, 0.2),
        0 4px 15px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.globe-minimal::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 25%;
    width: 30%;
    height: 30%;
    background: radial-gradient(circle, rgba(255,255,255,0.4), transparent);
    border-radius: 50%;
}

@keyframes rotateSmooth {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .section-header-with-globe {
        flex-direction: column;
        gap: 15px;
    }
    .globe-minimal {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .globe-minimal {
        width: 40px;
        height: 40px;
    }
}

