/**
 * Imágenes Jaraba - Sistema de Diseño
 * Paleta de colores institucional verde #2d8659
 */

/* ==============================================
   VARIABLES CSS - SISTEMA DE DISEÑO
   ============================================== */
:root {
    /* Colores Institucionales (CONSERVADOS) */
    --primary: #2d8659;
    --primary-light: #34ce57;
    --primary-dark: #155724;
    --secondary: #1e5d3f;
    --header-bg: #1a4d2e;

    /* Gradientes Institucionales */
    --gradient-hero: linear-gradient(135deg, #2d8659 0%, #1e5d3f 50%, #155724 100%);
    --gradient-button: linear-gradient(90deg, #2d8659 0%, #1e5d3f 100%);
    --accent: #f39c12;
    --accent-dark: #d35400;
    --gradient-accent: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);

    /* Neutrales Modernos */
    --white: #ffffff;
    --gray-50: #f8faf9;
    --gray-100: #f1f5f3;
    --gray-200: #e4ebe8;
    --gray-300: #d1ddd6;
    --gray-400: #a8bcb2;
    --gray-500: #7d9689;
    --gray-600: #5a7168;
    --gray-700: #3a4a42;
    --gray-800: #2a352f;
    --gray-900: #1a2520;
    --black: #0a0f0d;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);

    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 20px rgba(52, 206, 87, 0.3);

    /* Tipografía */
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Espaciado */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-24: 6rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Transiciones */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==============================================
   RESET Y BASE
   ============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 {
    font-size: var(--text-5xl);
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-3xl);
}

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==============================================
   CONTENEDOR
   ============================================== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ==============================================
   HEADER Y NAVEGACIÓN
   ============================================== */
.main-header {
    background: var(--header-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-top {
    background: var(--primary-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-2) 0;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.social-links {
    display: flex;
    gap: var(--space-3);
}

.social-links a {
    color: var(--white);
    font-size: 18px;
    transition: all var(--transition-base);
}

.social-links a:hover {
    color: var(--primary-light);
    transform: translateY(-2px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) 0;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.logo-part1 {
    color: var(--primary-light);
}

.logo-part2 {
    color: var(--white);
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    padding: var(--space-3) var(--space-4);
    display: inline-block;
    transition: all var(--transition-base);
    letter-spacing: 0.5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--primary-light);
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-dark);
    min-width: 250px;
    padding: var(--space-2) 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: var(--space-2) var(--space-4);
    color: var(--white);
    font-size: 14px;
    transition: all var(--transition-base);
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-light);
    padding-left: var(--space-6);
}

/* ==============================================
   HERO SECTION
   ============================================== */
.hero-section {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    pointer-events: none;
    transition: opacity 1s ease-in-out, visibility 1s;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 5;
    pointer-events: auto;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(26, 77, 46, 0.4) 0%, rgba(26, 77, 46, 0.75) 50%, rgba(26, 77, 46, 0.9) 100%);
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--white);
    max-width: 1000px;
    padding: var(--space-12) var(--space-6);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, var(--text-6xl));
    line-height: 1.1;
    margin-bottom: var(--space-6);
    color: var(--white);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: var(--text-xl);
    line-height: 1.6;
    margin-bottom: var(--space-8);
    opacity: 0.98;
    max-width: 800px;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);

    /* Truncado a 1 línea en Desktop */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all var(--transition-base);
}

.hero-content p.expanded {
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    display: block !important;
    max-height: 1000px;
}

.hero-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 var(--space-6);
    z-index: 20;
    pointer-events: none;
}

.hero-prev,
.hero-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    pointer-events: auto;
}

.hero-prev:hover,
.hero-next:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.hero-dots {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-3);
    z-index: 20;
}

.hero-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.hero-dots .dot.active {
    background: var(--white);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    border-color: var(--primary);
}

.hero-dots .dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* ==============================================
   BOTONES
   ============================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: var(--gradient-button);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-link {
    background: transparent;
    color: var(--primary);
    padding: 0;
    font-weight: 700;
}

.btn-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ==============================================
   CARDS
   ============================================== */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: var(--space-6);
}

.card-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
    color: var(--gray-900);
}

.card-text {
    color: var(--gray-600);
    margin-bottom: var(--space-4);
    line-height: 1.6;

    /* Homogeneización: máximo 4 líneas en Desktop */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==============================================
   SECCIONES
   ============================================== */
.section {
    padding: var(--space-24) 0;
}

.section-title {
    font-size: var(--text-4xl);
    text-align: center;
    margin-bottom: var(--space-3);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: var(--text-lg);
    margin: 0 auto var(--space-12);
    max-width: 800px;
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--gray-100);
    border-radius: 50%;
    margin-bottom: var(--space-4);
    transition: all var(--transition-base);
}

.card:hover .card-icon {
    background: var(--primary);
    color: var(--white);
    transform: rotate(360deg);
}

.card:hover .card-icon i {
    color: var(--white);
}

/* Expandable Content */
.expandable-container {
    position: relative;
}

.expandable-content {
    max-height: 120px;
    /* Reduced to show the toggle */
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    position: relative;
}

.expandable-content.expanded {
    max-height: 2000px;
    /* Large enough */
}

.expandable-container:not(.is-expanded) .expandable-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(transparent, var(--white));
    pointer-events: none;
}

.btn-expand {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-expand i {
    transition: transform 0.3s;
}

.is-expanded .btn-expand i {
    transform: rotate(180deg);
}

.is-expanded .btn-expand {
    margin-top: var(--space-4);
}

/* Featured Study Card */
.featured-study {
    display: flex;
    background: var(--white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    margin-bottom: 50px;
}

/* Institutional Page Styles */
.institutional-section {
    position: relative;
}

.institutional-section .content-text p {
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.value-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.methodology-item {
    padding: 1rem;
    background: rgba(var(--primary-rgb), 0.03);
    border-radius: 8px;
    height: 100%;
}

.location-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.location-info i {
    width: 20px;
    text-align: center;
}

.featured-study-image {
    flex: 0 0 50%;
    position: relative;
    min-height: 450px;
    background: #f5f5f5;
}

.featured-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-study-content {
    flex: 1;
    padding: 60px 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--white);
}

.featured-study-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a4d7a;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.2;
}

.featured-study-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 35px;
    line-height: 1.6;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
}

.benefit-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

.benefit-list li i {
    color: #4caf50;
    margin-right: 12px;
    margin-top: 2px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.featured-study .btn-primary {
    align-self: flex-start;
    padding: 12px 35px;
    font-size: 1rem;
    font-weight: 500;
    background: #4caf50;
    border-color: #4caf50;
    border-radius: 4px;
    text-transform: none;
}

.featured-study .btn-primary:hover {
    background: #45a049;
    border-color: #45a049;
}

@media (max-width: 992px) {
    .featured-study {
        flex-direction: column;
    }

    .featured-study-image {
        flex: 0 0 auto;
        min-height: 300px;
    }

    .featured-study-content {
        padding: 40px 30px;
    }

    .featured-study-title {
        font-size: 1.75rem;
    }
}

/* Universal Carousel */
.universal-carousel {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-viewport {
    overflow: hidden;
    margin: 0 -15px;
    padding: 0 15px;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 30px;
    justify-content: center;
}

.carousel-item {
    flex: 0 0 auto;
    width: calc(33.333% - 20px);
    max-width: 400px;
    min-width: 300px;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.carousel-prev,
.carousel-next {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid #e2e8f0;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 6px 12px rgba(45, 134, 89, 0.2);
}

.carousel-prev:disabled,
.carousel-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f1f5f9;
}

@media (max-width: 1024px) {
    .carousel-item {
        width: calc(50% - 15px);
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        width: 100%;
        max-width: 100%;
    }

    .carousel-container {
        gap: 20px;
    }
}

/* ==============================================
   CIRCULAR MENU / SERVICES SECTION
   ============================================== */
.circular-services-section {
    background: linear-gradient(135deg, #f8faf9 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.circular-menu-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
    justify-items: center;
}

.circular-menu-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all var(--transition-base);
}

.circle-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    margin-bottom: 1.5rem;
}

.circle-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--item-color, var(--primary)), color-mix(in srgb, var(--item-color, var(--primary)) 80%, black));
    border-radius: 50%;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-slow);
    overflow: hidden;
}

.circle-content::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.circular-menu-item:hover .circle-content::before {
    opacity: 1;
}

.circular-menu-item:hover .circle-content {
    transform: scale(1.08) translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.circle-icon {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    transition: all var(--transition-base);
}

.circular-menu-item:hover .circle-icon {
    transform: scale(1.15) rotate(5deg);
    color: #ffffff;
}

.circle-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.circle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--item-color, var(--primary));
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.circle-btn:hover {
    background: #ffffff;
    color: var(--item-color, var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .circular-menu-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .circular-menu-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem 0;
    }

    .circle-wrapper {
        width: 200px;
        height: 200px;
    }

    .circle-icon {
        font-size: 3rem;
    }

    .circle-content h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .circle-wrapper {
        width: 180px;
        height: 180px;
    }

    .circle-icon {
        font-size: 2.5rem;
    }

    .circle-content {
        padding: 1.5rem;
    }
}

/* ==============================================
/* ==============================================
   GRID & LAYOUT UTILITIES
   ============================================== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: calc(-1 * var(--space-4));
    margin-left: calc(-1 * var(--space-4));
}

.row>* {
    padding-right: var(--space-4);
    padding-left: var(--space-4);
    width: 100%;
}

.col-lg-7 {
    flex: 0 0 auto;
    width: 58.33333333%;
}

.col-lg-5 {
    flex: 0 0 auto;
    width: 41.66666667%;
}

.col-md-6 {
    flex: 0 0 auto;
    width: 50%;
}

.col-12 {
    flex: 0 0 auto;
    width: 100%;
}

@media (max-width: 991px) {

    .col-lg-7,
    .col-lg-5 {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .col-md-6 {
        width: 100%;
    }
}

.grid {
    display: grid;
    gap: var(--space-8);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ==============================================
   FORMS
   ============================================== */
.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 600;
    color: var(--gray-700);
}

.form-control {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.5;
    color: var(--gray-900);
    background-color: var(--white);
    background-clip: padding-box;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    color: var(--gray-900);
    background-color: var(--white);
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(45, 134, 89, 0.1);
}

.alert {
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    border-radius: var(--radius-md);
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==============================================
   FOOTER
   ============================================== */
.main-footer {
    background: var(--gray-800);
    color: var(--white);
    padding: var(--space-16) 0 var(--space-6);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-section h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
    color: var(--white);
}

.footer-section a,
.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: var(--space-2);
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
}

/* ==============================================
   ANIMACIONES
   ============================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ==============================================
   UTILITIES
   ============================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: var(--space-1);
}

.mt-2 {
    margin-top: var(--space-2);
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-8 {
    margin-top: var(--space-8);
}

.mb-1 {
    margin-bottom: var(--space-1);
}

.mb-2 {
    margin-bottom: var(--space-2);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.bg-light {
    background-color: var(--gray-100) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.border-0 {
    border: 0 !important;
}

.h-100 {
    height: 100% !important;
}

.w-100 {
    width: 100% !important;
}

.p-4 {
    padding: var(--space-4) !important;
}

.p-3 {
    padding: var(--space-3) !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.gap-3 {
    gap: var(--space-3) !important;
}

.opacity-25 {
    opacity: 0.25 !important;
}

.hover-lift {
    transition: transform var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 768px) {
    :root {
        --text-6xl: 2.25rem;
        /* Ajuste más agresivo para mobile */
        --text-5xl: 1.875rem;
        --text-4xl: 1.5rem;
        --text-xl: 1rem;
    }

    .header-top-content {
        flex-direction: column;
        text-align: center;
        padding: var(--space-1) 0;
    }

    .contact-info span {
        font-size: 11px;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
    }

    .hero-section {
        height: 450px;
        /* Un poco más alto para dar aire al texto */
    }

    .hero-content {
        padding: var(--space-8) var(--space-4);
        justify-content: flex-start;
        padding-top: var(--space-24);
    }

    .hero-content h1 {
        margin-bottom: var(--space-3);
        /* Reducir títulos en móviles si son muy largos */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-content p {
        font-size: var(--text-sm);
        line-height: 1.5;
        margin-bottom: var(--space-6);
        /* Máximo 2 líneas en Mobile */
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .hero-controls {
        padding: 0 var(--space-2);
    }

    .hero-prev,
    .hero-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .hero-dots {
        bottom: var(--space-4);
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    /* Homogeneización de cards en mobile */
    .card-content {
        padding: var(--space-4);
    }

    .card-title {
        font-size: var(--text-xl);
    }

    .card-text {
        font-size: var(--text-sm);
        margin-bottom: var(--space-3);
        /* Truncado en cards móviles */
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 20px;
    }

    .hero-section {
        height: 400px;
    }

    .hero-content {
        padding-top: var(--space-16);
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .btn {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-sm);
    }
}

/* ==============================================
   ESTILOS NUEVA MISIÓN (TREE DESIGN)
   ============================================== */
.mission-tree-section {
    background: radial-gradient(circle at center, #2d8659 0%, #1a4d2e 100%);
    padding: 100px 0 120px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.mission-tree-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.mission-tree-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 90px;
    color: var(--white);
    letter-spacing: -1px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.mission-tree-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 40px;
    position: relative;
}

/* Connecting Lines */
.mission-line-v {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 180px;
    background: rgba(255, 255, 255, 0.8);
    z-index: 0;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.mission-line-h {
    position: absolute;
    top: 50px;
    left: 25%;
    width: 50%;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    z-index: 0;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Mission Points */
.mission-point {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 320px;
    margin: 0 auto;
}

.mission-point-icon {
    width: 130px;
    height: 130px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 6px solid rgba(255, 255, 255, 0.3);
}

.mission-point-icon i {
    font-size: 50px;
    color: var(--primary);
}

.mission-point:hover .mission-point-icon {
    transform: scale(1.1) translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.mission-point-text {
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 600;
    color: var(--white);
    padding: 0 15px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Layout Specifics */
.mission-point-bottom {
    grid-column: 1 / span 2;
    margin-top: 40px;
    max-width: 700px;
}

.mission-point-bottom .mission-point-text {
    font-size: 1.1rem;
}

@media (max-width: 991px) {
    .mission-line-h {
        display: none;
    }

    .mission-line-v {
        left: 37px;
        height: calc(100% - 100px);
        top: 20px;
    }

    .mission-tree-grid {
        grid-template-columns: 1fr;
        padding-left: 70px;
        text-align: left;
        gap: 50px;
    }

    .mission-point {
        flex-direction: row;
        max-width: 100%;
        text-align: left;
        gap: 25px;
        margin: 0;
    }

    .mission-point-icon {
        width: 75px;
        height: 75px;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .mission-point-icon i {
        font-size: 28px;
    }

    .mission-point-bottom {
        grid-column: 1;
        margin-top: 0;
    }
}

/* ==============================================
   ESTILOS REDISEÑO INSTITUCIONAL MODERNIZADO
   ============================================== */

/* Animaciones de Entrada */
@keyframes fadeInUpModern {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-up {
    animation: fadeInUpModern 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Historia Section (Visual Storytelling) */
.historia-modern {
    background: linear-gradient(180deg, var(--gray-50) 0%, #ffffff 100%);
    position: relative;
}

.historia-title-sticky {
    position: sticky;
    top: 150px;
}

.historia-carousel-container {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 8px solid var(--white);
    transition: transform var(--transition-slow);
}

.historia-carousel-container:hover {
    transform: scale(1.02);
}

.historia-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-700);
}

/* Metodología Modern Card (Glassmorphism inspired) */
.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.methodology-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.methodology-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.methodology-card .icon-box {
    width: 90px;
    height: 90px;
    background: var(--gray-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all var(--transition-base);
}

.methodology-card:hover .icon-box {
    background: var(--primary);
    transform: rotateY(180deg);
}

.methodology-card:hover .icon-box i {
    color: var(--white);
}

.methodology-card .icon-box i {
    font-size: 35px;
    color: var(--primary);
    transition: color var(--transition-base);
}

.methodology-card h4 {
    margin-bottom: 15px;
    color: var(--primary-dark);
}

/* Ubidaciones Premium UI */
.location-modern-card {
    background: #ffffff;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid var(--gray-100);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.location-modern-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: rgba(45, 134, 89, 0.2);
}

.location-header {
    background: var(--gray-50);
    padding: 25px 30px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 15px;
}

.location-header i {
    font-size: 24px;
    color: var(--primary);
}

.location-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--primary-dark);
}

.location-body {
    padding: 30px;
    flex-grow: 1;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-row i {
    color: var(--primary);
    margin-top: 4px;
    width: 20px;
    text-align: center;
}

.info-row .label {
    display: block;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--gray-500);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.info-row .value {
    color: var(--gray-800);
    font-size: 0.95rem;
}

.location-footer {
    padding: 20px 30px 30px;
}

.btn-location {
    width: 100%;
    justify-content: center;
    padding: 12px;
}

/* Media Queries for Redesign */
@media (max-width: 991px) {
    .historia-title-sticky {
        position: static;
        margin-bottom: 40px;
    }
}

/* ==============================================
   ESTILOS CONTACTO MODERNO (EXPLORER)
   ============================================== */

.contact-modern-section {
    background: var(--white);
    padding: 100px 0;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

/* Columna Izquierda: Formulario & Info */
.contact-form-panel {
    background: var(--white);
}

.contact-form-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-100);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.contact-form-card h2 {
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--primary-dark);
}

.form-group-modern {
    margin-bottom: 25px;
}

.form-control-modern {
    width: 100%;
    padding: 15px 20px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-100);
    background: var(--gray-50);
    transition: all var(--transition-base);
    font-size: 0.95rem;
}

.form-control-modern:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(45, 134, 89, 0.08);
    outline: none;
}

.btn-contact-submit {
    width: 100%;
    padding: 18px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 25px rgba(45, 134, 89, 0.3);
}

/* Columna Derecha: Map Explorer */
.map-explorer-panel {
    position: sticky;
    top: 120px;
}

.map-visualizer {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    height: 550px;
    margin-bottom: 30px;
    border: 10px solid var(--white);
}

.map-visualizer iframe {
    width: 100%;
    height: 100%;
    border: 0;
    transition: opacity 0.5s ease;
}

.map-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.map-loading-overlay.active {
    display: flex;
}

/* Sede Selector Pills */
.sede-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sede-pill {
    padding: 12px 25px;
    background: var(--gray-100);
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
}

.sede-pill i {
    margin-right: 8px;
    font-size: 1.1rem;
    vertical-align: middle;
}

.sede-pill.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(45, 134, 89, 0.3);
    transform: translateY(-3px);
}

.sede-pill:hover:not(.active) {
    background: var(--gray-200);
    color: var(--primary);
}

/* Floating Contact Info (Home) */
.floating-info-bar {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    padding: 20px 30px;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
}

.floating-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.floating-info-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

.floating-info-item span {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--gray-800);
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .map-explorer-panel {
        position: static;
        order: -1;
    }

    .map-visualizer {
        height: 400px;
    }

    .contact-form-card {
        padding: 30px 20px;
    }
}

/* ==============================================
   ESTILOS REDISEÑO ESTUDIOS (INDEX & CATEGORÍAS)
   ============================================== */

/* Home Carousel: Premium Category Cards */
.study-cat-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--gray-100);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.study-cat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.study-cat-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(45, 134, 89, 0.15);
    border-color: rgba(45, 134, 89, 0.2);
}

.study-cat-card:hover::before {
    transform: scaleX(1);
}

.study-cat-icon {
    width: 100px;
    height: 100px;
    background: var(--gray-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.5s ease;
    border: 1px solid var(--gray-100);
}

.study-cat-card:hover .study-cat-icon {
    background: var(--primary);
    transform: scale(1.1) rotate(10deg);
}

.study-cat-card:hover .study-cat-icon i {
    color: var(--white);
}

.study-cat-icon i {
    font-size: 40px;
    color: var(--primary);
    transition: color 0.5s ease;
}

/* Estudios.php: Filter Bar */
.filter-bar-container {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
    border-top: 1px solid var(--gray-100);
}

.filter-pills {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px;
    scrollbar-width: none;
}

.filter-pills::-webkit-scrollbar {
    display: none;
}

.filter-pill {
    padding: 10px 25px;
    background: var(--gray-50);
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--gray-600);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
}

.filter-pill:hover {
    color: var(--primary);
    background: var(--primary-light);
    opacity: 0.8;
}

.filter-pill.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(45, 134, 89, 0.3);
}

/* Featured Study Card (Premium Redesign) */
.featured-study-modern {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-100);
    transition: all 0.4s ease;
}

.featured-study-modern:hover {
    transform: scale(1.01);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.12);
}

.study-image-panel {
    position: relative;
    height: 100%;
}

.study-image-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.study-content-panel {
    padding: 50px;
}

.study-cat-label {
    display: inline-block;
    padding: 5px 15px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.study-modern-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.study-benefit-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 30px 0;
}

.study-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.study-benefit-item i {
    color: var(--primary);
    margin-top: 4px;
    font-size: 1.1rem;
}

.study-benefit-item span {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Mobile Adjustments for Studies */
@media (max-width: 991px) {
    .featured-study-modern {
        grid-template-columns: 1fr;
    }

    .study-image-panel {
        height: 300px;
    }

    .study-content-panel {
        padding: 40px 25px;
    }

    .study-modern-title {
        font-size: 1.75rem;
    }
}


/* ==============================================
   ESTILOS PORTAL DE PACIENTES
   ============================================== */

.portal-access-section {
    background: linear-gradient(135deg, #1a4d2e 0%, #2d8659 100%);
    padding: 80px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.portal-access-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.portal-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-2xl);
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.portal-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--white);
}

.portal-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.btn-portal-access {
    background: var(--white);
    color: var(--primary);
    padding: 18px 45px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.btn-portal-access:hover {
    transform: translateY(-5px) scale(1.05);
    background: var(--primary-light);
    color: var(--primary-dark);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.portal-link {
    background: rgba(45, 134, 89, 0.1);
    color: var(--primary) !important;
    font-weight: 700 !important;
    border-radius: 50px;
    padding: 8px 18px !important;
}

.portal-link:hover {
    background: var(--primary) !important;
    color: var(--white) !important;
}

@media (max-width: 991px) {
    .portal-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 25px;
    }

    .portal-content h2 {
        font-size: 2rem;
    }

    .btn-portal-access {
        width: 100%;
    }
}

/* ==============================================
   ESTILOS REDISEÑO PROFESIONALES (PAGE)
   ============================================== */

.prof-card-modern {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 40px 25px;
    text-align: center;
    border: 1px solid var(--gray-100);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.prof-card-modern:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(45, 134, 89, 0.12);
    border-color: rgba(45, 134, 89, 0.2);
}

.prof-image-container {
    width: 120px;
    /* Standardize size to 120px */
    height: 120px;
    min-width: 120px;
    min-height: 120px;
    border-radius: 50%;
    padding: 5px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    margin-bottom: 25px;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prof-card-modern:hover .prof-image-container {
    background: var(--primary-light);
    border-color: var(--primary);
    transform: scale(1.05);
}

.prof-image-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--white);
}

.prof-image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--gray-300);
}

.prof-name-modern {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 8px;
    line-height: 1.2;
}

.prof-spec-modern {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.prof-mp-modern {
    font-size: 0.8rem;
    color: var(--gray-500);
    background: var(--gray-50);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 30px;
}

/* Portal Button in Header */
/* ==============================================
   PREMIUM AESTHETICS & BACKGROUNDS
   ============================================== */
.bg-medical-soft {
    background-color: #f8faf9;
    background-image: radial-gradient(#2d865910 1px, transparent 1px), radial-gradient(#2d865910 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
}

.bg-mesh-gradient {
    background-color: #f8fafc;
    background-image:
        radial-gradient(at 0% 0%, hsla(153, 50%, 92%, 1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, hsla(38, 95%, 92%, 1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(153, 50%, 92%, 1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, hsla(38, 95%, 92%, 1) 0px, transparent 50%);
}

.glass-card-premium {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    border-radius: 12px;
    transition: all var(--transition-base);
}

.glass-card-premium:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
}

.section-decorative-title {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.section-decorative-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 10px;
}

.btn-portal-header {
    background: var(--gradient-accent) !important;
    color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    border: none !important;
    font-weight: 700 !important;
    transition: all var(--transition-base);
}

.btn-portal-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
    filter: brightness(1.1);
    color: var(--white) !important;
}

.accent-button {
    background: var(--gradient-accent) !important;
    color: var(--white) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.accent-button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(243, 156, 18, 0.4);
    color: var(--white) !important;
}

   

/* ==============================================
   FOOTER STYLES
   ============================================== */
.main-footer {
    background: linear-gradient(135deg, #1a4d2e 0%, #155724 100%);
    color: #ffffff;
    padding: 60px 0 0;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-section p i {
    margin-right: 8px;
    color: #34ce57;
    width: 18px;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 8px 0;
    font-size: 0.9rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    padding-left: 12px;
}

.footer-section a:hover {
    color: #34ce57;
    border-left-color: #34ce57;
    padding-left: 18px;
}

.footer-location-name {
    font-weight: 700;
    font-size: 1rem;
    color: #34ce57 !important;
    margin-bottom: 15px !important;
}

.footer-director {
    margin-top: 15px;
    margin-bottom: 5px !important;
}

.footer-matricula {
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-sede-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-sede-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.footer-sede-name {
    font-weight: 700;
    font-size: 1rem;
    color: #34ce57 !important;
    margin-bottom: 5px !important;
}

.footer-sede-service {
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 10px !important;
}

.footer-social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-social-icons a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    padding: 0;
}

.footer-social-icons a:hover {
    background: #34ce57;
    border-color: #ffffff;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(52, 206, 87, 0.4);
    padding: 0;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 20px 0;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 40px 0 0;
        margin-top: 60px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .footer-social-icons {
        justify-content: center;
    }

    .footer-bottom {
        padding: 20px 0;
    }
}

/* Custom Scrollbar for Dropdowns */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: var(--white);
}