* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #2c3e50;
}

/* Header */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #7db0e3, #7fb8f8);
    padding: 12px 24px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    z-index: 2000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-link {
    display: block;
}

.logo {
    height: 91px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.03);
}

.text-logo {
    text-align: left;
}

.unidad-text {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* === BOTÓN DE MENÚ MÓVIL === */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 2001;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 18px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

nav i {
    font-size: 16px;
}

/* Menú desplegable */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
    top: 100%;
    right: 0;
    margin-top: 8px;
}

.dropdown-content a {
    color: #003366 !important;
    padding: 12px 16px !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.dropdown-content a:hover {
    background-color: #eef5ff;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: rgba(255, 255, 255, 0.3);
}

/* === MENÚ RESPONSIVO AJUSTADO === */
@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(135deg, #7db0e3, #7fb8f8);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
        gap: 10px;
        display: none;
        width: 90%;
        max-width: 320px;
        border-radius: 12px;
        margin-top: 8px;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav ul a {
        padding: 12px 16px !important;
        justify-content: center;
        width: 100%;
        border-radius: 8px;
        margin: 0 8px;
    }

    .dropdown {
        width: 100%;
        text-align: center;
    }

    .dropdown-content {
        position: static;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        margin-top: 8px;
        border-radius: 8px;
        display: none;
        min-width: auto;
        right: auto;
        left: auto;
        width: calc(100% - 32px);
        margin: 8px 16px;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown > a::after {
        content: " ▼";
        float: right;
    }
}

/* Carrusel */
.carousel-section {
    margin-top: 120px;
}

.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 600px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.slide img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background: rgb(0 0 0 / 0%);
    backdrop-filter: blur(4px);
    padding: 24px;
    border-radius: 12px;
    max-width: 75%;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.caption h1 {
    font-size: 2.6rem;
    margin-bottom: 12px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.caption p {
    font-size: 1.25rem;
    line-height: 1.5;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Dots */
.dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 6px;
    background-color: #ccc;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active, .dot:hover {
    background-color: #2c7be5;
}

/* Botones de navegación */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(44, 123, 229, 0.8);
    color: white;
    border: none;
    padding: 14px 18px;
    cursor: pointer;
    font-size: 22px;
    z-index: 100;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover, .next:hover {
    background-color: #2c7be5;
    transform: translateY(-50%) scale(1.15);
}

/* Contenido general - COMPACTO */
.content-section {
    padding: 20px 20px;
    background-color: white;
    border-bottom: 1px solid #eee;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    text-align: center;
}

.content-section h2 {
    font-size: 2.2rem;
    color: #003366;
    margin-bottom: 30px;
}

/* --- Sección Conócenos --- */
.history-box {
    display: flex;
    gap: 40px;
    align-items: center;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

.history-content {
    flex: 1;
}

.history-image-wrapper {
    flex: 0 0 320px;
    text-align: center;
}

.history-img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.history-img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.history-text h3 {
    font-size: 2rem;
    color: #003366;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
}

.history-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #7db0e3, #2c7be5);
    border-radius: 2px;
}

.history-text h4 {
    font-size: 1.4rem;
    color: #0057b8;
    margin: 20px 0 12px;
}

.history-text p {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #444;
    margin-bottom: 16px;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.program-card {
    background: #f0f8ff;
    padding: 18px;
    border-radius: 10px;
    border-left: 4px solid #2c7be5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.program-card h5 {
    color: #003366;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.program-card ul {
    padding-left: 20px;
    margin: 0;
}

.program-card li {
    margin: 6px 0;
    font-size: 0.95rem;
    color: #333;
}

/* Animación al hacer scroll */
.animated-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animated-element.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Aspectos Institucionales */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.note-card {
    background: #bfe3f8;
    padding: 25px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    cursor: pointer;
}

.note-card:nth-child(1) { animation-delay: 0.1s; }
.note-card:nth-child(2) { animation-delay: 0.2s; }
.note-card:nth-child(3) { animation-delay: 0.3s; }
.note-card:nth-child(4) { animation-delay: 0.4s; }

.note-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.pin {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 24px;
    color: #d32f2f;
    z-index: 10;
    background: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.note-card h3 {
    font-size: 1.4rem;
    color: #003366;
    margin-bottom: 10px;
    text-align: center;
}

.note-card p {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #333;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aspect-list {
    padding-left: 20px;
    margin: 12px 0 0;
    text-align: left;
}

.aspect-list li {
    margin-bottom: 8px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #333;
}

.aspect-list li strong {
    color: #003366;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #1a252f;
    color: #ecf0f1;
    font-size: 0.95rem;
    margin-top: 0;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}

/* Estilos del footer */
.custom-footer {
    background-color: #cfe8f7;
    padding: 20px 40px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 15px;
}

.footer-logo img {
    width: 60px;
    height: auto;
    margin-right: 10px;
}

.footer-logo p {
    font-size: 12px;
    margin: 0;
    text-align: center;
    font-weight: bold;
    color: #003366;
}

.footer-divider {
    width: 2px;
    height: 60px;
    background-color: #003366;
    margin: 0 20px;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 8px 15px;
    border-radius: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-size: 14px;
    color: #333;
}

.contact-item i {
    margin-right: 10px;
    color: #003366;
    font-size: 16px;
}

.download-btn {
    background: white;
    border: 2px solid #003366;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    color: #003366;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.download-btn:hover {
    background: #003366;
    color: white;
}

.download-btn i {
    font-size: 16px;
}

.footer-copyright {
    font-size: 12px;
    color: #003366;
    text-align: center;
    width: 100%;
    margin-top: 10px;
    font-weight: bold;
}

.section-description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.6;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.documents-section {
    margin-top: 30px;
    background: linear-gradient(135deg, #f0f8ff, #e6f7ff);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.documents-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #005682;
}

.documents-header h3 {
    color: #003366;
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.documents-header h3 i {
    color: #005682;
    font-size: 28px;
}

.documents-counter {
    background: linear-gradient(135deg, #005682, #0078b5);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 86, 130, 0.3);
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.doc-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e6f7ff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 400px;
}

.doc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #005682, #0078b5, #0099e6, #00bfff, #00d6ff);
}

.doc-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(0, 86, 130, 0.1) 0%, transparent 70%);
    opacity: 0.5;
    z-index: 0;
}

.doc-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 86, 130, 0.3);
    border-color: #005682;
}

.card-doc-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 2px solid #f0f8ff;
    position: relative;
    z-index: 1;
}

.card-doc-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #005682, #0078b5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 5px 12px rgba(0, 86, 130, 0.4);
    position: relative;
    z-index: 1;
}

.card-doc-icon i {
    position: relative;
    z-index: 1;
}

.card-doc-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #0078b5, #0099e6);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

.card-doc-title {
    font-size: 18px;
    font-weight: 700;
    color: #003366;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    z-index: 1;
}

.card-doc-year {
    display: inline-block;
    background: linear-gradient(135deg, #e6f7ff, #d1e7ff);
    color: #005682;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    border: 2px solid #d1e7ff;
    position: relative;
    z-index: 1;
}

.card-doc-file {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8fbff, #e6f7ff);
    border-radius: 16px;
    border: 2px dashed #d1e7ff;
    position: relative;
    z-index: 1;
}

.file-doc-icon {
    font-size: 50px;
    color: #0078b5;
    position: relative;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.file-doc-name {
    font-size: 14px;
    color: #444;
    text-align: center;
    word-break: break-all;
    line-height: 1.6;
    max-width: 100%;
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.file-doc-link {
    display: inline-block;
    background: linear-gradient(135deg, #005682, #0078b5);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s;
    text-align: center;
    width: 100%;
    max-width: 260px;
    box-shadow: 0 6px 18px rgba(0, 86, 130, 0.4);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.file-doc-link:hover {
    background: linear-gradient(135deg, #003366, #005682);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 86, 130, 0.5);
    color: white;
}

.file-doc-link:active {
    transform: translateY(-2px);
}

.events-section{
    background:linear-gradient(135deg,#f0f8ff,#e6f7ff);
    padding:35px;
    border-radius:20px;
    box-shadow:0 6px 20px rgba(0,0,0,.08);
}

.events-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-bottom:3px solid #005682;
    padding-bottom:15px;
    margin-bottom:30px;
}

.events-header h3{
    display:flex;
    gap:10px;
    color:#003366;
    margin:0;
}

.events-counter{
    background:linear-gradient(135deg,#005682,#0078b5);
    color:#fff;
    padding:8px 20px;
    border-radius:25px;
    font-weight:700;
    display:flex;
    gap:8px;
    align-items:center;
}

.events-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
}

.event-card{
    background:#fff;
    border-radius:18px;
    padding:22px;
    border:2px solid #e6f7ff;
    box-shadow:0 8px 22px rgba(0,0,0,.12);
    display:flex;
    flex-direction:column;
    transition:.3s;
}

.event-card:hover{
    transform:translateY(-6px);
    box-shadow:0 14px 35px rgba(0,86,130,.25);
    border-color:#005682;
}

.event-header{
    display:flex;
    gap:15px;
    margin-bottom:15px;
}

.event-icon{
    width:55px;
    height:55px;
    background:linear-gradient(135deg,#005682,#0078b5);
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:22px;
}

.event-title{
    margin:0;
    font-size:17px;
    color:#003366;
}

.event-date{
    margin-top:6px;
    display:inline-block;
    background:#e6f7ff;
    color:#005682;
    padding:5px 14px;
    border-radius:20px;
    font-size:13px;
    font-weight:700;
}

.event-content{
    flex:1;
    display:flex;
    flex-direction:column;
    gap:14px;
}

.event-image{
    height:160px;
    border-radius:12px;
    background:#f0f8ff;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}

.event-image img{
    width:50%;
    height:100%;
    object-fit:cover;
    transition: transform 0.3s ease;
}

.event-image img:hover {
    transform: scale(1.05);
}

.placeholder-icon{
    font-size:40px;
    color:#0078b5;
}

.event-description{
    font-size:14px;
    color:#444;
    text-align:center;
    line-height:1.6;
}

.event-actions{
    margin-top:auto;
    text-align:center;
}

.event-action-btn{
    background:#005682;
    color:#fff;
    padding:10px 18px;
    border-radius:10px;
    text-decoration:none;
    font-weight:600;
    display:inline-flex;
    gap:8px;
}

.event-action-btn:hover{
    background:#003366;
}

.no-events{
    grid-column:1/-1;
    text-align:center;
    color:#999;
    padding:40px;
}

.no-events i{
    font-size:60px;
    margin-bottom:15px;
}

/* === SECCIÓN UBICACIÓN Y COMENTARIOS === */
.contenedor {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 30px;
}

.mapa {
    width: 40%;
    text-align: center;
}

.mapa iframe {
    width: 100%;
    height: 250px;
    border-radius: 15px;
    border: 1px solid #ccc;
}

.formulario-comentarios {
    width: 28%;
    background: #a9cbed;
    padding: 18px;
    border-radius: 25px;
}

.formulario-comentarios h2 {
    text-align: center;
    font-size: 18px;
    margin-bottom: 12px;
}

.campo {
    display: flex;
    align-items: center;
    background: #d7e8f7;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 13px;
}

.campo i {
    margin-right: 8px;
}

.campo input,
.campo textarea,
.campo select {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
}

textarea {
    resize: none;
    height: 55px;
}

.estrellas {
    text-align: center;
    margin: 10px 0;
}

.estrellas i {
    font-size: 20px;
    cursor: pointer;
    color: #555;
}

.estrellas i.activa {
    color: gold;
}

.boton {
    display: block;
    margin: auto;
    padding: 7px 18px;
    border: none;
    border-radius: 18px;
    background: #fff;
    font-weight: bold;
    cursor: pointer;
}

.destacados {
    padding: 40px 0;
    background: #f5f9ff;
}

.destacados h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 28px;
    color: #2c3e50;
    font-weight: 600;
}

.carrusel {
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

.tarjetas {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    animation: scroll 30s linear infinite;
}

.tarjeta {
    min-width: 280px;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e6ed;
    flex: 0 0 auto;
}

.tarjeta:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.tarjeta .header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f4f8;
}

.tarjeta .avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #7099d7 0%, #4b64a2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
}

.tarjeta .info {
    flex: 1;
}

.tarjeta .info .nombre {
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 4px 0;
}

.tarjeta .info .nacionalidad {
    font-size: 12px;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tarjeta .comentario {
    font-size: 13px;
    line-height: 1.6;
    color: #34495e;
    margin-bottom: 15px;
    font-style: italic;
    padding-left: 10px;
    border-left: 3px solid #667eea;
}

.tarjeta .rating {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f39c12;
    font-size: 16px;
}

.tarjeta .rating span {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 500;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.mensaje-error {
    background: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 14px;
}

.mensaje-exito {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 14px;
}

/* === AJUSTE RESPONSIVO: FORMULARIO ABAJO DEL MAPA === */
@media (max-width: 768px) {
    .contenedor {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 20px 12px;
    }

    .mapa,
    .formulario-comentarios {
        width: 100% !important;
        max-width: none;
    }

    .formulario-comentarios {
        order: 2;
        padding: 16px;
    }

    .mapa {
        order: 1;
    }
    
    .tarjetas {
        gap: 15px;
        padding: 0 15px;
        animation-duration: 40s;
    }
    
    .tarjeta {
        min-width: 260px;
        padding: 18px;
    }
    
    .tarjeta .avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .tarjeta .info .nombre {
        font-size: 14px;
    }
    
    .tarjeta .comentario {
        font-size: 12px;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .tarjetas {
        gap: 10px;
        padding: 0 10px;
    }
    
    .tarjeta {
        min-width: 240px;
        padding: 15px;
    }
    
    .destacados h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
}

/* === PROGRAMAS EDUCATIVOS - MAPA CURRICULAR === */
.hero-programs {
    color: #003366;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-programs h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero-programs p {
    font-size: 1rem;
    opacity: 0.95;
}

.section-title {
    text-align: center;
    margin: 2rem 0;
}

.section-title h2 {
    font-size: 1.5rem;
    color: #7db0e3;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-title p {
    color: #6c757d;
    font-size: 0.9rem;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.program-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #7db0e3;
    transition: all 0.3s ease;
}

.program-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.program-card h3 {
    font-size: 1.2rem;
    color: #7db0e3;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.program-card .program-type {
    display: inline-block;
    background: #7db0e3;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.program-card p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.subjects-list {
    list-style: none;
    padding: 0;
}

.subjects-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
    font-size: 0.85rem;
    color: #343a40;
}

.subjects-list li:last-child {
    border-bottom: none;
}

.curricular-map {
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.map-container {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.map-header {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.phase {
    text-align: center;
    padding: 0.75rem;
    border-radius: 6px;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    background: #7db0e3;
}

.phase small {
    display: block;
    font-size: 0.7rem;
    opacity: 0.9;
    margin-top: 0.2rem;
}

.semesters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.semester-card {
    background: white;
    border: 2px solid #7db0e3;
    border-radius: 6px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.semester-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.semester-card h4 {
    background: #7db0e3;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-align: center;
}

.semester-card ul {
    list-style: none;
    padding: 0;
    font-size: 0.85rem;
}

.semester-card li {
    padding: 0.4rem 0;
    border-bottom: 1px dashed #f8f9fa;
    color: #343a40;
}

.semester-card li:last-child {
    border-bottom: none;
}

/* === FAQ === */
.faq-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-header h1 {
    font-size: 36px;
    color: #1565c0;
    margin-bottom: 15px;
}

.faq-header p {
    font-size: 18px;
    color: #546e7a;
    max-width: 700px;
    margin: 0 auto;
}

.search-faq {
    max-width: 600px;
    margin: 20px auto 40px;
    position: relative;
}

.search-faq input {
    width: 100%;
    padding: 15px 20px 15px 45px;
    border: 2px solid #bbdefb;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
}

.search-faq input:focus {
    border-color: #2196f3;
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.2);
}

.search-faq i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #2196f3;
    font-size: 18px;
}

.categories-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.category-btn {
    padding: 10px 25px;
    background: #e3f2fd;
    border: 2px solid #bbdefb;
    border-radius: 30px;
    color: #1565c0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-btn:hover,
.category-btn.active {
    background: #2196f3;
    color: white;
    border-color: #2196f3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.category-btn.all {
    background: #2196f3;
    color: white;
    border-color: #2196f3;
}

.faq-section {
    margin-bottom: 40px;
}

.faq-section h2 {
    font-size: 24px;
    color: #0d47a1;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #2196f3;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-section h2 i {
    color: #2196f3;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.faq-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid #e3f2fd;
}

.faq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(33, 150, 243, 0.15);
    border-color: #bbdefb;
}

.faq-question {
    padding: 20px;
    background: linear-gradient(135deg, #2196f3 0%, #1565c0 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
}

.faq-question i {
    font-size: 20px;
    transition: transform 0.3s;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background: #f8fbff;
}

.faq-answer.show {
    padding: 20px;
    max-height: 1000px;
}

.faq-answer p {
    color: #37474f;
    line-height: 1.7;
    margin: 0;
    font-size: 15px;
}

.faq-meta {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    background: #e3f2fd;
    font-size: 13px;
    color: #546e7a;
    border-top: 1px solid #bbdefb;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #78909c;
}

.no-results i {
    font-size: 60px;
    margin-bottom: 20px;
    color: #bbdefb;
}

.no-results p {
    font-size: 18px;
    max-width: 500px;
    margin: 0 auto;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2196f3;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
    transition: all 0.3s;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #1565c0;
    transform: translateY(-3px);
}

/* === AJUSTES RESPONSIVE PARA MÓVILES === */
@media (max-width: 1000px) {
    
    .logo {
        height: 80px;
    }

    .unidad-text {
        font-size: 1.5rem;
    }

    nav ul {
        gap: 8px;
    }

    nav a {
        padding: 10px 14px;
        font-size: 0.92rem;
    }

    .carousel-section,


    .content-section h2 {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }

    .carousel {
        height: 600px;
    }

    .caption {
        max-width: 95%;
        padding: 20px 16px;
    }

    .caption h1 {
        font-size: 1.8rem;
    }

    .caption p {
        font-size: 1rem;
    }

    .prev, .next {
        width: 40px;
        height: 40px;
        font-size: 18px;
        padding: 12px;
    }

    .history-box {
        padding: 20px 12px;
        gap: 24px;
    }

    .history-img {
        max-width: 280px;
    }

    .programs-grid,
    .documents-grid,
    .events-grid,
    .notes-grid,
    .faq-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .program-card,
    .doc-card,
    .event-card,
    .note-card {
        padding: 16px;
    }

    .map-header {
        flex-direction: column;
        gap: 12px;
    }

    .phase {
        padding: 10px;
        font-size: 0.85rem;
    }

    .semesters-grid {
        grid-template-columns: 1fr;
    }

    .semester-card {
        padding: 14px;
    }

    .semester-card h4 {
        font-size: 0.95rem;
        padding: 8px 12px;
    }

    .destacados {
        padding: 30px 0;
    }

    .custom-footer {
        padding: 16px 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
    }

    .footer-divider {
        height: 1px;
        width: 100%;
        margin: 8px 0;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }
}
