@import url("https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800,900&display=swap");
/* ============================================
   UDS - Universidad de Desarrollo Sustentable
   Hoja de Estilos Principal
   ============================================ */

/* Reset y Variables */
:root {
    --color-primary: #0130ce;
    --color-secondary: #0130ce;
    --color-accent: #f4c430;
    --color-dark: #1a1a1a;
    --color-light: #ffffff;
    --color-gray: #f5f5f5;
    --color-text: #333333;
    --font-primary: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5 10px;
}

/* Utilidades */
.text-center {
    text-align: center;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ============================================
   HEADER
   ============================================ */
.main-header {
    background-color: var(--color-primary);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1500px;
    padding-left: 20px;
}

.logo img {
    height: 60px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 60px;
}

.nav-menu a {
    color: var(--color-light);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 10px;
    border-radius: 5px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--color-light);
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.has-dropdown .arrow {
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-light);
    min-width: 260px;
    list-style: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1001;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown li {
    width: 100%;
}

.dropdown a {
    color: #1a1a1a !important;
    display: block;
    padding: 15px 25px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border-radius: 0 !important;
    transition: all 0.3s ease;
}

.dropdown a:hover {
    background-color: var(--color-gray) !important;
    color: var(--color-primary) !important;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-dropdown:hover .arrow {
    transform: rotate(180deg);
}

/* Menú Hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-light);
    margin: 3px 0;
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    text-align: center;
    margin-top: 70px;
    overflow: hidden;
    background: var(--color-primary);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}



/* ============================================
   INFOCARDS SECTION
   ============================================ */
.infocards-section {
    position: relative;
    z-index: 10;
    margin-top: -40px;
    padding-bottom: 60px;
}

.infocards-section .container {
    max-width: 1400px;
}

.infocards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.infocard {
    background-color: var(--color-primary);
    color: var(--color-light);
    padding: 50px 30px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.infocard:hover {
    background-color: #0026a8;
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.infocard-icon {
    width: 90px;
    height: 90px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.infocard-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease;
    color: var(--color-primary);
}

.hero-content p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.3s both;
    color: var(--color-text);
}

.hero-text-bottom {
    padding: 80px 0 40px;
    text-align: center;
    background-color: var(--color-light);
}

.hero-text-bottom h1,
.hero-text-bottom p {
    color: #000000;
    text-shadow: none;
}

@media (max-width: 992px) {
    .infocards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .infocards-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   HISTORY SECTION
   ============================================ */
.history {
    padding: 80px 0;
    background-color: var(--color-gray);
}

.history h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 50px;
}

/* ============================================
   TIMELINE SLIDER
   ============================================ */
.timeline-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0;
}

.slider-container {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    height: auto;
    min-height: 350px;
    align-items: flex-start;
}

.slide {
    flex: 0 0 100%;
    opacity: 0.3;
    transform: scale(0.9);
    transition: all 0.8s ease;
    padding: 0 20px;
    visibility: hidden;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
}

.slide-content {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid var(--color-primary);
}

.slide-content h3 {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.slide-content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

/* Timeline Navigation */
.timeline-nav {
    margin-bottom: 50px;
    position: relative;
    padding: 30px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.nav-bar {
    position: absolute;
    bottom: 45px;
    left: 0;
    width: 100%;
    height: 6px;
    background: #d0d0d0;
    z-index: 1;
    border-radius: 3px;
}

.nav-points {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* Align points to the bar */
}

.nav-point-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.nav-year {
    font-weight: 800;
    font-size: 1.2rem;
    color: #888;
    transition: var(--transition);
}

.nav-point {
    background: rgba(208, 208, 208, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 5px solid rgba(255, 255, 255, 0.8);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.nav-point-wrapper.active .nav-year {
    color: var(--color-primary);
    transform: scale(1.2) translateY(-5px);
}

.nav-point.active {
    background: var(--color-primary);
    transform: scale(1.4);
    box-shadow: 0 5px 15px rgba(1, 48, 206, 0.2);
    border-color: rgba(255, 255, 255, 1);
}

.nav-point:hover {
    background: var(--color-secondary);
}

.nav-point-wrapper:hover .nav-year {
    color: var(--color-primary);
}

/* ============================================
   REGISTRATION SECTION
   ============================================ */
.registration-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.registration-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.registration-bg-slider .bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.registration-bg-slider .bg-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Oscurece un poco la imagen para que resalte el formulario */
}

.registration-bg-slider .bg-slide.active {
    opacity: 1;
}

.registration-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    width: 100%;
}

.registration-card {
    background: rgba(255, 255, 255, 0.25);
    /* More transparent for better glass effect */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.registration-card h2 {
    color: #ffffff;
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.registration-card .subtitle {
    color: #f0f0f0;
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.registration-form .form-group {
    margin-bottom: 20px;
}

.registration-form input,
.registration-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.registration-form input:focus,
.registration-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(1, 48, 206, 0.1);
}

.registration-form .btn-block {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border-radius: 10px;
    margin-top: 10px;
}

/* ============================================
   CAREERS SECTION
   ============================================ */
.careers {
    padding: 80px 0;
    background-color: var(--color-light);
}

.careers h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
}

.careers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.career-card {
    position: relative;
    background-size: cover;
    background-position: center;
    border: none;
    border-radius: 20px;
    padding: 0;
    text-align: center;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.career-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 48, 206, 0.7);
    /* Primary color overlay */
    transition: all 0.5s ease;
    z-index: 1;
}

.career-card:hover .career-card-overlay {
    background: rgba(0, 0, 0, 0.8);
    /* Darken on hover */
}

.career-content-initial,
.career-content-hover {
    position: relative;
    z-index: 2;
    padding: 40px;
    width: 100%;
    transition: all 0.5s ease;
}

.career-content-initial {
    transform: translateY(0);
    opacity: 1;
}

.career-card:hover .career-content-initial {
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    position: absolute;
}

.career-content-hover {
    position: absolute;
    transform: translateY(40px);
    opacity: 0;
    visibility: hidden;
}

.career-card:hover .career-content-hover {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    position: relative;
}

.career-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.career-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.career-content-initial h3 {
    color: var(--color-light);
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.career-content-hover h3 {
    color: var(--color-light);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.career-content-hover p {
    color: #e0e0e0;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-light);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
}

/* ============================================
   ONLINE EDUCATION SECTION
   ============================================ */
.online-education {
    position: relative;
    padding: 100px 0;
    background: var(--color-primary);
    overflow: hidden;
}

.online-content {
    display: flex;
    align-items: center;
}

.online-text {
    width: 50%;
    padding-right: 60px;
    text-align: left;
}

.online-text h2 {
    font-size: 2.2rem;
    color: var(--color-light);
    margin-bottom: 25px;
}

.online-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
}

.online-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.online-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.online-image:hover img {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .online-content {
        flex-direction: column;
    }

    .online-text {
        width: 100%;
        padding: 0 20px;
        margin-bottom: 40px;
    }

    .online-education {
        padding-bottom: 0;
    }

    .online-image {
        position: relative;
        width: 100vw;
        left: 50%;
        transform: translateX(-50%);
        height: 400px;
    }
}

/* ============================================
   INSTITUTIONAL ICONS SECTION
   ============================================ */
.institutional-icons {
    padding: 60px 0;
    background-color: var(--color-gray);
}

.icons-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
}

.icon-item {
    width: 120px;
    height: 120px;
    background: var(--color-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.icon-item:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

.icon-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-light);
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 20px;
}

.contact h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background-color: var(--color-primary);
    color: var(--color-light);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h4,
.footer-links h4,
.footer-social h4 {
    color: var(--color-accent);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #e0e0e0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    color: #d0d0d0;
}

.social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    transition: var(--transition);
}

.social-icons a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0) invert(1);
}

.social-icons a:hover {
    transform: translateY(-3px);
}

.social-icons a:hover img {
    transform: scale(1.1);
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px;
        flex-direction: column;
        background-color: var(--color-light);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu a {
        color: var(--color-primary);
        display: block;
        padding: 15px;
    }

    .nav-menu.active {
        left: 0;
    }

    /* Dropdown on Mobile */
    .has-dropdown .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--color-gray);
        width: 100%;
        padding: 0;
        display: none;
        /* We will show it on click or just keep it open */
    }

    .has-dropdown:hover .dropdown {
        display: block;
    }

    .dropdown a {
        padding: 12px 20px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
}

.hero-content h1 {
    font-size: 2rem;
}

.online-content {
    grid-template-columns: 1fr;
}

.icons-grid {
    gap: 30px;
}

.timeline {
    grid-template-columns: 1fr;
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .careers-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   MAP SECTION
   ============================================ */
.map-section {
    padding: 80px 0;
    background: #f8f9fa;
    text-align: center;
}

.map-subtitle {
    color: #777;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.map-title {
    color: #777;
    font-size: 2.4rem;
    margin-bottom: 30px;
}

.map-wrapper {
    width: 100%;
    height: 500px;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(0%);
}

@media (max-width: 768px) {
    .map-wrapper {
        height: 300px;
    }
}

/* --- Map Carousel --- */
.map-carousel {
    position: relative;
    overflow: visible;
    padding: 0 60px;
}

.map-carousel-track {
    position: relative;
    min-height: 580px;
    /* iframe 500 + título + botón */
}

.map-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.map-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

/* Botón "Cómo llegar" dentro de cada slide */
.map-slide .map-btn {
    margin-top: 20px;
    display: inline-block;
}

/* Flechas Prev / Next */
.map-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(1, 48, 206, 0.85);
    color: #fff;
    border: none;
    font-size: 1.6rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.map-carousel-arrow:hover {
    background: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
}

.map-carousel-prev {
    left: 0;
}

.map-carousel-next {
    right: 0;
}

/* Dots */
.map-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.map-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    background: transparent;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    padding: 0;
}

.map-dot.active,
.map-dot:hover {
    background: var(--color-primary);
    transform: scale(1.25);
}

@media (max-width: 768px) {
    .map-carousel-track {
        min-height: 420px;
    }

    .map-carousel-prev {
        left: 0;
    }

    .map-carousel-next {
        right: 0;
    }

    .map-carousel-arrow {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-page-header {
    margin-top: 100px;
    padding: 60px 0 20px;
    text-align: center;
}

.contact-title {
    color: var(--color-primary);
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.contact-subtitle {
    color: #666;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-page-content {
    position: relative;
    padding: 100px 0;
    background: var(--color-primary);
    overflow: hidden;
    min-height: calc(80vh - 20px);
}

.contact-grid {
    display: flex;
    align-items: center;
}

.contact-info-side {
    width: 50%;
    padding: 0 40px;
    text-align: left;
    color: var(--color-light);
}

.contact-info-side h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--color-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info-side p {
    font-size: 1.3rem;
    line-height: 1.7;
    margin-bottom: 40px;
    color: #ffffff;
    opacity: 0.95;
}

.contact-details {
    list-style: none;
    padding: 0;
}

.contact-details li {
    font-size: 1.25rem;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    font-weight: 500;
}

.contact-details li strong {
    margin-right: 15px;
    font-size: 1.2rem;
}

.contact-social {
    margin-top: 50px;
}

.contact-social h3 {
    font-size: 1.5rem;
    color: var(--color-light);
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-social .social-icons a {
    width: 45px;
    height: 45px;
}

.contact-form-side {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 80px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(1, 48, 206, 0.1);
}

.contact-form .btn-block {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 10px;
}

@media (max-width: 600px) {
    .contact-grid {
        flex-direction: column;
    }

    .contact-info-side {
        width: 100%;
        padding: 0 20px;
        margin-bottom: 40px;
    }

    .contact-page-content {
        padding-bottom: 0;
    }

    .contact-form-side {
        position: relative;
        width: 100vw;
        left: 50%;
        transform: translateX(-50%);
        height: auto;
        padding: 40px 20px;
    }
}

/* ============================================
   PAGINA DR. NAGY
   ============================================ */
.dr-header {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    margin-top: 100px;
}

.dr-bg-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(25px) brightness(0.6);
    transform: scale(1.1);
    z-index: 1;
}

.dr-container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.dr-photo {
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.dr-photo img {
    height: 100%;
    width: auto;
    object-fit: cover;
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.5));
    animation: fadeInUp 1.2s ease-out;
}

@media (max-width: 768px) {
    .dr-header {
        height: 60vh;
    }
}

/* Sección Contenido Dr. Nagy */
.dr-content {
    padding: 80px 0;
    background-color: var(--color-light);
}

.dr-text-block {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.dr-text-block h1 {
    font-size: 2.5rem;
    color: #444;
    /* Darker grey */
    margin-bottom: 40px;
    font-weight: 800;
}

.dr-quote {
    margin-bottom: 60px;
    position: relative;
    padding: 0 40px;
}

.dr-quote p {
    font-size: 1.8rem;
    font-style: italic;
    color: #666;
    /* Grey */
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
}

.dr-quote span {
    display: block;
    font-size: 1.1rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.dr-body {
    text-align: justify;
    max-width: 800px;
    margin: 0 auto;
}

.dr-body p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #555;
    /* Grey */
    margin-bottom: 25px;
}

.dr-message-box {
    text-align: justify;
    background: #fdfdfd;
    padding: 50px;
    border-radius: 20px;
    border-left: 8px solid var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
}

.dr-message-box p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 20px;
}

.dr-footer-quote {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    text-align: center;
}

.dr-footer-quote .main-phrase {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 15px;
    display: block;
}

.dr-dates {
    font-size: 1.2rem;
    margin-bottom: 30px;
    display: block;
    color: #777;
}

.dr-final-biblical {
    font-style: italic;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.dr-final-biblical p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.dr-final-biblical span {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .dr-text-block h1 {
        font-size: 1.8rem;
    }

    .dr-quote p {
        font-size: 1.4rem;
    }

    .dr-content {
        padding: 50px 0;
    }

    .dr-message-box {
        padding: 30px 20px;
    }
}

/* ============================================
   SECCION PILARES (CAROUSEL)
   ============================================ */
.pillars-section {
    padding: 100px 0;
    background-color: var(--color-gray);
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    font-weight: 800;
    margin-bottom: 10px;
}

.section-title p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 0;
}

.pillars-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pillars-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pillar-card {
    position: absolute;
    width: 380px; /* Slightly wider for better text fit */
    height: 520px; /* Standardized height */
    background: #fff;
    padding: 50px 40px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.pillar-card.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1.1);
    /* SPOTLIGHT EFFECT */
    z-index: 3;
    box-shadow: 0 20px 50px rgba(1, 48, 206, 0.15);
    border: 2px solid rgba(1, 48, 206, 0.1);
}

.pillar-card.prev {
    opacity: 0.4;
    visibility: visible;
    transform: translateX(-380px) scale(0.9);
    z-index: 2;
}

.pillar-card.next {
    opacity: 0.4;
    visibility: visible;
    transform: translateX(380px) scale(0.9);
    z-index: 2;
}

.pillar-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}

.pillar-card h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.pillar-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* Nav Arrows & Dots */
.pillars-nav {
    position: absolute;
    bottom: -60px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.pillar-arrow {
    background: var(--color-primary);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pillar-arrow:hover {
    transform: scale(1.1);
    background-color: var(--color-secondary);
}

.pillar-dots {
    display: flex;
    gap: 12px;
}

.pillar-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: var(--transition);
}

.pillar-dot.active {
    background: var(--color-primary);
    transform: scale(1.3);
}

@media (max-width: 1024px) {
    .pillar-card.prev {
        transform: translateX(-280px) scale(0.85);
    }

    .pillar-card.next {
        transform: translateX(280px) scale(0.85);
    }

    .pillar-card {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .pillars-carousel-container {
        height: 350px;
    }

    .pillar-card.prev,
    .pillar-card.next {
        display: none;
        /* Only show active on small mobile */
    }

    .pillar-card.active {
        transform: scale(1);
        width: 90%;
    }
}

/* ============================================
   COUNTERS SECTION
   ============================================ */
.counters-section {
    background-color: var(--color-primary);
    padding: 80px 0;
    color: var(--color-light);
    position: relative;
    overflow: hidden;
}

.counters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.counter-number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    font-family: var(--font-primary);
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.counter-label {
    font-size: 1.1rem;
    font-weight: 500;
    max-width: 250px;
    margin: 0 auto;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 992px) {
    .counters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .counters-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .counter-number {
        font-size: 3rem;
    }
}

/* ============================================
   PROYECTO CANAN SECTION
   ============================================ */
.canaan-section {
    padding: 100px 0;
    background-color: var(--color-light);
}

.canaan-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: start;
    width: 100%;
    padding: 0 5%;
}

.species-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--color-primary);
}

.species-card h3 {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.species-intro {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.species-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}

.species-list li {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.species-list li::before {
    content: " ??\;
 font-size: 0.9rem;
}

.species-list li.and-more {
    grid-column: span 2;
    margin-top: 10px;
    color: var(--color-primary);
    font-style: italic;
}

.species-list li.and-more::before {
    content: \?\;
}

.section-tag {
    display: inline-block;
    background: rgba(1, 48, 206, 0.1);
    color: var(--color-primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.canaan-content h2 {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 30px;
    position: relative;
}

.canaan-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.heroic-highlight {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9ff;
    border-radius: 15px;
    border-left: 5px solid var(--color-primary);
    position: relative;
}

.heroic-highlight p {
    margin-bottom: 0;
    font-style: italic;
    color: var(--color-primary);
    font-weight: 500;
}

@media (max-width: 1200px) {
    .canaan-grid {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .canaan-grid {
        grid-template-columns: 1fr;
    }

    .canaan-content {
        order: -1;
    }

    .canaan-content h2 {
        font-size: 2.5rem;
    }
}

.species-list li.section-tag {
    margin-bottom: 0;
    display: flex;
    align-items: start;
    justify-content: flex-start;
    gap: 8px;
    width: fit-content;
}

/* ============================================
   AED PAGE STYLES
   ============================================ */
.aed-hero {
    background-color: #254450;
    padding: 120px 0 80px;
    text-align: center;
    color: var(--color-light);
    margin-top: 70px;
    /* Offset for fixed header */
}

.aed-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.aed-hero p {
    font-size: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

.aed-hero .highlight {
    color: var(--color-accent);
    font-weight: 700;
}

@media (max-width: 768px) {
    .aed-hero h1 {
        font-size: 2.5rem;
    }

    .aed-hero p {
        font-size: 1.2rem;
        padding: 0 20px;
    }
}

/* AED Combined Section (Bridge + Pillars) */
.aed-combined-section {
    background-color: #f8f9fa;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.aed-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(10rem, 30vw, 35rem);
    /* Increased size for combined section */
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    z-index: 0;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

.aed-bridge-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 150px;
    /* Ample space before pillars */
}

.aed-logo-slideshow {
    flex: 1;
    max-width: 400px;
    position: relative;
    height: 400px;
    cursor: pointer;
    perspective: 1000px;
}

.aed-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.aed-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.aed-slide.active {
    z-index: 3;
    transform: translateZ(0);
    opacity: 1;
}

.aed-slide.behind {
    z-index: 2;
    transform: translateZ(-100px) translateY(20px) scale(0.9);
    opacity: 0.7;
}

.aed-slide.exit {
    z-index: 4;
    transform: translateX(120%) rotate(15deg);
    opacity: 0;
}

.aed-bridge-content {
    flex: 1.5;
}

.aed-bridge-content h2 {
    font-size: 2.8rem;
    color: #254450;
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: 800;
}

.aed-bridge-content p {
    font-size: 1.2rem;
    color: #444;
    line-height: 1.8;
}

.aed-pillars-wrapper {
    position: relative;
    z-index: 1;
}

@media (max-width: 992px) {
    .aed-bridge-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        margin-bottom: 100px;
    }

    .aed-bridge-content h2 {
        font-size: 2.2rem;
    }

    .aed-logo-slideshow {
        max-width: 300px;
        height: auto;
    }
}

/* AED Principles Section (Tabs) */
.aed-principles-section {
    padding: 100px 0;
    background-color: var(--color-light);
}

.principles-subtitle {
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.principles-description {
    max-width: 800px;
    margin: 0 auto 50px;
    color: #666;
    font-size: 1.1rem;
}

.principles-tabs-container {
    max-width: 900px;
    margin: 0 auto;
}

.principles-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 30px;
    border-radius: 30px;
    border: 2px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 5px 15px rgba(1, 48, 206, 0.2);
}

.principles-content-box {
    background: #fdfdfd;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    min-height: 250px;
    border-top: 5px solid var(--color-primary);
    position: relative;
}

.tab-content {
    display: none;
    animation: fadeInTab 0.5s ease;
}

.tab-content.active {
    display: block;
}

.placeholder-text {
    font-style: italic;
    color: #999;
    text-align: center;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .principles-tabs {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .tab-btn {
        width: 100%;
        max-width: 300px;
    }

    .principles-content-box {
        padding: 30px 20px;
    }
}

/* AED Join Our Team Section */
.aed-join-section {
    background-color: #254450;
    padding: 80px 0;
    color: white;
    text-align: center;
}

.aed-join-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.aed-join-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    background-color: var(--color-accent);
    color: #254450;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    text-decoration: none;
}

.btn-cta:hover {
    background-color: white;
    color: #254450;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* UDS Dynamic Hero */
.uds-dynamic-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    margin-top: 80px;
    /* Header offset */
}

.hero-bg-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideFade 16s infinite;
}

.hero-slide:nth-child(1) {
    animation-delay: 0s;
}

.hero-slide:nth-child(2) {
    animation-delay: 8s;
}

@keyframes slideFade {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    10% {
        opacity: 1;
    }

    40% {
        opacity: 1;
    }

    50% {
        opacity: 0;
        transform: scale(1.1);
    }

    100% {
        opacity: 0;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(1, 48, 206, 0.4));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    color: white;
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 400;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    color: white;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .uds-dynamic-hero {
        height: 60vh;
    }
}

/* Authorities Section */
.about-uds-autoridades {
    padding: 100px 0;
    background-color: var(--color-gray);
}

.autoridades-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.authority-card {
    background-color: transparent;
    width: 100%;
    height: 300px;
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.authority-card:hover .card-inner,
.authority-card.active .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.card-front {
    background-color: white;
    color: var(--color-primary);
    border-top: 5px solid var(--color-primary);
}

.card-back {
    background-color: var(--color-primary);
    color: white;
    transform: rotateY(180deg);
    padding: 25px;
}

.auth-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.card-front h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.card-front .role {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.card-back h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-back p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.card-hint {
    margin-top: 20px;
    font-size: 0.75rem;
    color: #999;
    font-style: italic;
}

@media (max-width: 1200px) {
    .autoridades-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .autoridades-grid {
        grid-template-columns: 1fr;
    }

    .authority-card {
        height: 280px;
    }
}

/* Study With Us Section */
.about-uds-study {
    padding: 100px 0;
    background-color: white;
}

.study-with-us-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
}

.study-text {
    flex: 1.2;
}

.study-text h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 25px;
}

.study-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.study-text .highlight-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary);
    border-left: 5px solid var(--color-accent);
    padding-left: 20px;
    margin-bottom: 30px;
}

.study-image {
    flex: 1;
}

.study-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
}

.study-image img:hover {
    transform: scale(1.02);
}

@media (max-width: 992px) {
    .study-with-us-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .study-text .highlight-text {
        border-left: none;
        border-top: 5px solid var(--color-accent);
        padding-left: 0;
        padding-top: 20px;
    }
}

/* UDS Pillars Section */
.about-uds-pillars {
    padding: 100px 0;
    background-color: var(--color-gray);
}

/* UDS Strategies Section */
.uds-strategies-section {
    padding: 100px 0;
    background-color: white;
}

.strategies-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 40px auto 0;
}

.strategy-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 30px;
    background: #fdfdfd;
    border-radius: 0;
    border-left: 5px solid var(--color-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.strategy-item:hover {
    transform: translateX(10px);
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.strategy-icon {
    display: none;
}

.strategy-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

@media (max-width: 768px) {
    .strategy-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        border-left: none;
        border-top: 5px solid var(--color-primary);
    }
}

/* ============================================
   WAVE SECTION ANIMATION
   ============================================ */
.wave-section {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  background: #0130ce;
  margin-top: 30px; 
}

.wave-section .wave {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0130ce;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
  transition: 0.5s;
}

.wave-section .wave span {
  content: "";
  position: absolute;
  width: 325vh;
  height: 325vh;
  top: 0;
  left: 50%;
  transform: translate(-50%, -75%);
  background: #000;
}

.wave-section .content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
}

.wave-section .content h1 {
  font-family: "Poppins", sans-serif;
  font-size: 4em;
  font-weight: 800;
  letter-spacing: 2px;
  margin: 0;
  text-transform: uppercase;
  line-height: 1.1;
}

.wave-section .content p {
  font-family: "Poppins", sans-serif;
  font-size: 1.5em;
  margin-top: 10px;
  opacity: 0.9;
}

.wave-section .wave span:nth-child(1) {
  border-radius: 45%;
  background: rgba(1, 48, 206, 0.8); /* Azul semi-transparente */
  animation: animateWave 8s linear infinite;
}

.wave-section .wave span:nth-child(2) {
  border-radius: 40%;
  background: rgba(20, 20, 20, 0.5);
  animation: animateWave 12s linear infinite;
}

.wave-section .wave span:nth-child(3) {
  border-radius: 42.5%;
  background: rgba(20, 20, 20, 0.3);
  animation: animateWave 18s linear infinite;
}

@keyframes animateWave {
  0% {
    transform: translate(-50%, -75%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -75%) rotate(360deg);
  }
}

@media (max-width: 768px) {
    .wave-section .content h1 {
        font-size: 2.5em;
    }
    .wave-section .content p {
        font-size: 1.2em;
    }
}