:root {

    /* verde oscuro inicial */
    --color-menu-bg: #13ec13;
    /* verde medio final */
    --color-highlight: #ffcc00;
    /* amarillo institucional */
    --color-bg: #f0f8e8;
    /* fondo muy claro verdoso */
    --color-menu-bg: #004080;
    /* verde menú */
    --color-menu-hover: #ffcc00;
    /* amarillo hover */
    --color-mini-bar-bg: #003300;
    /* verde muy oscuro mini barra */
    --transition-time: 0.3s;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

a:focus {
    outline: 3px solid var(--color-highlight);
    outline-offset: 2px;
}
/* --- MINI BARRA SUPERIOR --- */
.mini-bar {
    background-color: var(--color-mini-bar-bg);
    color: white;
    font-size: 14px;
    height: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    user-select: none;
       /* ✨ Animación de entrada SOLO al cargar */
    animation: fadeInDown 0.4s ease-out forwards;
}

/* Efecto individual para los elementos dentro de la barra */
.mini-bar .left a,
.mini-bar .right a {
    opacity: 0;
    animation: fadeInItem 0.4s ease forwards;
}

/* --- ANIMACIONES --- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInItem {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.mini-bar .left,
.mini-bar .right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.mini-bar a {
    color: white;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color var(--transition-time);
    cursor: pointer;
    position: relative;
    white-space: nowrap;
}

.mini-bar a:hover,
.mini-bar a:focus {
    color: var(--color-highlight);
    outline: none;
}

/* Submenu mini barra */
.mini-bar .submenu-mini {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(25, 93, 2, 0.84); /* Fondo verde con leve transparencia */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    min-width: 160px;
    border-radius: 4px;
    display: none;
    flex-direction: column;
    padding: 5px 0;
    z-index: 1300;
}

.mini-bar a[aria-expanded="true"] + .submenu-mini {
    display: flex;
}

.mini-bar .submenu-mini a {
    padding: 8px 15px;
    font-size: 13px;
    color: white;
    transition: background 0.3s ease;
}

.mini-bar .submenu-mini a:hover,
.mini-bar .submenu-mini a:focus {
    background: rgb(234, 220, 24); /* Verde más oscuro al pasar el mouse */
    color: white;
    outline: none;
}

/* Flecha mini barra */
.mini-bar a i.fa-caret-down {
    font-size: 10px;
    transition: transform 0.4s ease, color 0.3s ease;
    transform-origin: center;
}

.mini-bar a[aria-expanded="true"] i.fa-caret-down {
    transform: rotate(180deg) scale(1.2);
    color: var(--color-highlight);
}


/* --- ANIMACIONES --- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- ANIMACIONES --- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInItem {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- HEADER PRINCIPAL --- */
header {
    background: linear-gradient(to right, rgba(0, 51, 0, 0.85), rgba(0, 85, 0, 0.85));
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    color: white;
    padding: 10px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 30px;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 1100;
    font-weight: bold; /* ← Esto fuerza negrita para todo el contenido del header */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 0.6s ease forwards;
}

/* Logo con tagline */
.logo {
    font-family: 'Times New Roman', Times, serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.1;
    user-select: none;
    opacity: 0;
    animation: fadeInItem 0.6s ease forwards, logoMove 1s ease-in-out 10s infinite;
}


/* Estilo del subtítulo del logo */
.logo span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    font-style: italic;
    margin-top: 2px;
    color: #ffcc00;
    letter-spacing: 1px;
}

/* Menú escritorio */
.menu-desktop {
    display: none;
    gap: 30px;
    align-items: center;
    font-weight: 500;
    user-select: none;
}

.menu-desktop > div,
.menu-desktop > a {
    position: relative;
    cursor: pointer;
    opacity: 0;
    animation: fadeInItem 0.6s ease forwards;
}

/* Aparición escalonada de ítems */
.menu-desktop > div:nth-child(1),
.menu-desktop > a:nth-child(1) {
    animation-delay: 0.3s;
}
.menu-desktop > div:nth-child(2),
.menu-desktop > a:nth-child(2) {
    animation-delay: 0.45s;
}
.menu-desktop > div:nth-child(3),
.menu-desktop > a:nth-child(3) {
    animation-delay: 0.6s;
}
.menu-desktop > div:nth-child(4),
.menu-desktop > a:nth-child(4) {
    animation-delay: 0.75s;
}
/* puedes seguir agregando más si hay más enlaces */

/* Estilos normales del menú */
.menu-desktop a,
.menu-desktop > div > a {
    color: white;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition-time);
}

.menu-desktop a:hover,
.menu-desktop > div > a:hover {
    color: var(--color-highlight);
}

/* Flecha submenu */
.menu-desktop i.fa-caret-down {
    transition: transform var(--transition-time);
    font-size: 14px;
    margin-left: 2px;
}

.menu-desktop > div.open > a i.fa-caret-down {
    transform: rotate(180deg);
}

/* Submenus escritorio */
.submenu-desktop {
    position: absolute;
    top: 40px;
    left: 0;
    background-color: rgba(12, 81, 47, 0.92);
    min-width: 170px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    border-radius: 5px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1500;
}

.menu-desktop > div.open .submenu-desktop {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    animation: fadeInItem 0.3s ease;
}

.submenu-desktop a {
    display: block;
    padding: 10px 20px;
    font-size: 12px;
    color: white;
    transition: background var(--transition-time);
    text-decoration: none;
}

.submenu-desktop a:hover,
.submenu-desktop a:focus {
    background: var(--color-highlight);
    color: var(--color-primary-end);
    outline: none;
}

.menu-desktop > div.open .submenu-desktop,
.menu-desktop > div.open .submenu-desktop:hover,
.menu-desktop > div:hover .submenu-desktop {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    animation: fadeInItem 0.3s ease;
}


/* Botón buscador */
.search-container {
    position: relative;
    margin-left: auto;
    opacity: 0;
    animation: fadeInItem 0.6s ease forwards;
    animation-delay: 1s;
}

.search-container input {
    border-radius: 20px;
    border: none;
    padding: 6px 30px 6px 15px;
    font-size: 14px;
    outline: none;
    transition: box-shadow 0.3s;
}

.search-container input:focus {
    box-shadow: 0 0 5px var(--color-highlight);
}

.search-container i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary-end);
    pointer-events: none;
}

/* Iconos sociales */
.social-icons {
    display: flex;
    gap: 15px;
    font-size: 18px;
    color: white;
    user-select: none;
    opacity: 0;
    animation: fadeInItem 0.6s ease forwards;
    animation-delay: 1.2s;
}

.social-icons a:hover {
    color: var(--color-highlight);
}

  .mini-bar .left .menu-padre {
  position: relative;
  display: inline-block;
}

.submenu-mini {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #248d02;
  border: 1px solid #ccc;
  padding: 5px;
  min-width: 160px;
  z-index: 100;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.mini-bar .left .menu-padre:hover > .submenu-mini {
  display: block;
}

.submenu-mini a {
  display: block;
  padding: 8px 12px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.submenu-mini a:hover,
.submenu-mini a:focus {
  background-color: #d2b214;
  outline: none;
}


/* Menú hamburguesa móvil */
.hamburguesa {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1150;
}

.hamburguesa span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: 0.3s;
}
nav {
  position: fixed;
  top: 90px;
  right: -280px;
  width: 280px;
  height: calc(100vh - 90px);
  background: linear-gradient(to right, var(--color-menu-bg), var(--color-menu-bg-2));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 15px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: right var(--transition-time) cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  z-index: 1100;
  box-shadow: -2px 0 10px var(--shadow-color), inset -1px 0 4px rgba(255, 255, 255, 0.05);
}

nav.active {
  right: 0;
}

/* Scroll elegante en el menú lateral */
nav::-webkit-scrollbar {
  width: 8px;
}
nav::-webkit-scrollbar-track {
  background: transparent;
}
nav::-webkit-scrollbar-thumb {
  background: var(--color-highlight);
  border-radius: 6px;
  transition: background 0.3s ease;
}
nav::-webkit-scrollbar-thumb:hover {
  background: var(--color-highlight-hover);
}
nav {
  scrollbar-width: thin;
  scrollbar-color: var(--color-highlight) transparent;
}

/* =========================
   ENLACES
========================= */
nav a {
  color: var(--color-text);
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
  padding: 8px 5px;
  border-radius: 5px;
  transition: background var(--transition-time), transform var(--transition-time);
}

nav a:hover,
nav a:focus {
  background: var(--color-highlight);
  color: var(--color-menu-bg);
  outline: none;
  transform: translateX(5px);
}

nav a:focus-visible {
  outline: 2px solid var(--color-highlight);
  outline-offset: 3px;
}

/* =========================
/* =========================
   VARIABLES GLOBALES
========================= */
:root {
    --transition-time: 0.35s;
    --color-menu-bg: rgba(0, 51, 0, 0.92);
    --color-menu-bg-2: rgba(0, 85, 0, 0.92);
    --color-highlight: #4caf50;
    --color-highlight-hover: #388e3c;
    --submenu-link-color: #ffffff;
}

/* =========================
   SUBMENÚS MÓVILES
========================= */
.submenu-mobile {
    max-height: 0;
    overflow: hidden;
    display: block; /* mejor compatibilidad */
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height var(--transition-time) ease,
                opacity var(--transition-time) ease,
                transform var(--transition-time) ease,
                padding var(--transition-time) ease;
    padding: 0 0 0 20px;
    position: relative;
}

.submenu-mobile.open {
    max-height: 500px; /* suficiente para animación */
    opacity: 1;
    transform: translateY(0);
    padding: 6px 0 6px 20px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* Scroll elegante */
.submenu-mobile.open::-webkit-scrollbar {
    width: 6px;
}
.submenu-mobile.open::-webkit-scrollbar-track {
    background: transparent;
}
.submenu-mobile.open::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 3px;
    transition: background 0.3s ease;
}
.submenu-mobile.open:hover::-webkit-scrollbar-thumb {
    background: #4caf50;
}
.submenu-mobile.open::-webkit-scrollbar-thumb:hover {
    background: #388e3c;
}
.submenu-mobile.open {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}
.submenu-mobile.open:hover {
    scrollbar-color: #4caf50 rgba(0,0,0,0.2);
}

/* Fade superior e inferior */
.submenu-mobile.open::before,
.submenu-mobile.open::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 20px;
    pointer-events: none;
    z-index: 5;
}
.submenu-mobile.open::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.35), transparent);
}
.submenu-mobile.open::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.35), transparent);
}

/* Enlaces del submenú */
.submenu-mobile a {
    font-size: 14px;
    line-height: 1.4;
    display: block;
    margin-bottom: 5px; /* gap simulado */
    color: var(--submenu-link-color);
    text-decoration: none;
}

.submenu-mobile a::before {
    content: "➤ ";
    color: #ffffff;
    margin-right: 3px;
    font-weight: bold;
}

/* =========================
   PARENT SUBMENÚ
========================= */
.submenu-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.submenu-parent i.fa-caret-down {
    transition: transform var(--transition-time);
}

.submenu-parent.open i.fa-caret-down {
    transform: rotate(180deg);
}

/* =========================
   ENLACES PRINCIPALES
========================= */
nav a {
    color: white;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
    padding: 7px 5px;
    border-radius: 5px;
    transition: background var(--transition-time);
}

nav a:hover,
nav a:focus {
    background: var(--color-highlight);
    color: var(--color-menu-bg);
    outline: none;
}

/* =========================
   RESPONSIVE
========================= */
@media (min-width: 768px) {
    .hamburguesa {
        display: none;
    }

    nav {
        display: none;
    }

    .menu-desktop {
        display: flex;
        align-items: center;
    }

    .menu-desktop > div:hover .submenu-desktop {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .menu-desktop > div:hover > a i.fa-caret-down {
        transform: rotate(180deg);
    }

    .mini-bar {
        display: flex;
    }
}

@media (max-width: 767px) {
    .mini-bar {
        display: none;
    }

    header {
        top: 0;
    }

    nav {
        top: 60px; /* altura del header */
        width: 240px;
        height: calc(100vh - 60px);
        font-size: 15px;
    }
}

/* Pantallas muy pequeñas (≤ 480px) */
@media (max-width: 480px) {
    nav {
        width: 210px;
        padding: 12px 14px;
    }

    nav a {
        font-size: 15px;
        gap: 8px;
        padding: 6px 4px;
    }

    .submenu-mobile a {
        font-size: 13px;
    }
}




:root {
    --color-fondo: #e5eced;
    --color-titulo: #004d40;
    --color-texto: #ffffff;
    --color-overlay: rgba(0, 40, 30, 0.8);
    --color-iconos: #ffffff;
    --color-controles: rgba(0, 77, 64, 0.8);
    --color-activo: #004d40;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: var(--color-fondo);
}

/* Carousel */
.noticias-carousel {
    width: 100%;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 550px;
    display: flex;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.slide.active {
    display: flex;
}

/* Imagen del slide */
.slide-img {
    width: 55%;
    height: 100%;
}

.slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Contenido con parallax */
.slide-content {
    width: 45%;
    height: 100%;
    position: relative;
    color: var(--color-texto);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;

    background-image: url('imagenes/portada liceo.jpeg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.slide-content::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--color-overlay);
    z-index: 0;
}

.slide-content > * {
    position: relative;
    z-index: 1;
}

.slide-content h2 {
    font-size: 2.2em;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 1.2em;
}

/* Controles e iconos */
.slide-icons {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-activo);
    display: flex;
    flex-direction: column;
    border-radius: 5px 0 0 5px;
    z-index: 5;
}

.slide-icons i {
    color: white;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
}

.control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--color-controles);
    color: white;
    border: none;
    font-size: 28px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    border-radius: 5px;
}

.control.prev {
    left: 10px;
}

.control.next {
    right: 10px;
}

.dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
}

.dots span {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.dots span.active {
    background-color: var(--color-activo);
}

/* ==== Transición entre slides ==== */
.fade {
    animation: fadeEffect 1s ease-in-out;
}

@keyframes fadeEffect {
    from { opacity: 0.2; }
    to { opacity: 1; }
}

/* ==== EFECTOS DE ENTRADA PROFESIONALES ==== */
@keyframes slideInLeft {
  0% { opacity: 0; transform: translateX(-80px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  0% { opacity: 0; transform: translateX(80px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Estado inicial oculto */
.reveal {
  opacity: 0;
  visibility: hidden;
  transition: all 0.8s ease;
}

/* Activo */
.reveal.active {
  opacity: 1;
  visibility: visible;
}

/* Variantes */
.reveal.left.active {
  animation: slideInLeft 1s ease forwards;
}

.reveal.right.active {
  animation: slideInRight 1s ease forwards;
}

.reveal.up.active {
  animation: fadeUp 1s ease forwards;
}

/* ====================== MÓVIL ====================== */
@media (max-width: 768px) {
    /* Carousel vertical */
    .carousel {
        flex-direction: column;
        height: auto;
    }

    .slide {
        flex-direction: column;
        height: auto;
    }

    /* Imágenes */
    .slide-img {
        width: 100%;
        height: auto;
        max-height: 300px;
    }

    .slide-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Contenido */
    .slide-content {
        width: 100%;
        padding: 15px 10px;
        height: auto;
        text-align: center;
        background-attachment: scroll !important;
        background-position: center top;
    }

    .slide-content::before {
        background: rgba(0, 40, 30, 0.9);
    }

    .slide-content h2 {
        font-size: 1.5em;
    }

    .slide-content p {
        font-size: 0.95em;
    }

    /* Iconos de control dentro del slide */
    .slide-icons {
        position: static;
        flex-direction: row;
        justify-content: center;
        background: rgba(0, 77, 64, 0.8);
        margin-top: 10px;
        border-radius: 5px;
        padding: 5px;
    }

    .slide-icons i {
        padding: 12px;
        font-size: 24px;
    }

    /* Botones prev/next */
    .control {
        font-size: 32px;
        padding: 12px 18px;
    }

    /* Ocultar los dots en móvil */
    .dots {
        display: none;
    }

    /* Animaciones más rápidas */
    .reveal.left.active,
    .reveal.right.active,
    .reveal.up.active {
        animation-duration: 0.6s;
    }

    /* Pequeño zoom y movimiento de fondo */
    .slide-content {
        background-size: 120%;
        transition: background-position 0.5s ease;
    }

    .slide-content:hover {
        background-position: center center;
    }
}



/* Sección institucional general */
#institucion {
    background-color: #fefefe;
    padding: 60px 40px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1b1b1b;
}

/* Título principal */
#institucion h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
    color: #2e7d32;
    /* Verde institucional */
}

/* Descripción introductoria */
#institucion>p {
    text-align: center;
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
    color: #424242;
}

/* Contenedor de tarjetas */
.values {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* Tarjetas individuales con borde decorativo */
.value-card {
    position: relative;
    background-color: #ffffff;
    border: 2px solid #fbc02d;
    /* Amarillo */
    border-left: 6px solid #2e7d32;
    /* Verde */
    border-radius: 8px;
    padding: 25px 30px 25px 30px;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Franjas superior verde y amarillo */
.value-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    background: linear-gradient(to right, #2e7d32 50%, #fbc02d 50%);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Títulos secundarios con iconos */
.value-card h3 {
    color: #2e7d32;
    font-size: 24px;
    margin-bottom: 15px;
    position: relative;
    padding-left: 40px;
}

/* Icono Misión (checkmark) */
.value-card.mision h3::before {
    content: url('data:image/svg+xml;utf8,<svg fill="%232e7d32" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M9 16.2l-3.5-3.5 1.41-1.41L9 13.38l7.09-7.09L17.5 7l-8.5 8.5z"/></svg>');
    position: absolute;
    left: 0;
    top: 2px;
}

/* Icono Visión (ojo) */
.value-card.vision h3::before {
    content: url('data:image/svg+xml;utf8,<svg fill="%232e7d32" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M12 6.5C7.5 6.5 4.41 9.36 3 12c1.41 2.64 4.5 5.5 9 5.5s7.59-2.86 9-5.5c-1.41-2.64-4.5-5.5-9-5.5zm0 8a2.5 2.5 0 110-5 2.5 2.5 0 010 5z"/></svg>');
    position: absolute;
    left: 0;
    top: 2px;
}

/* Texto de misión y visión */
.value-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #424242;
}

.linea-verde {
    height: 4px;
    background-color: #c7d31e;
    /* Verde institucional */
    width: 100%;
    margin: 0;
    padding: 0;
}


/* ==== CARRUSEL PIE ==== */
.carrusel-pie {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
}

.carrusel-fotos {
    display: flex;
    transition: transform 0.6s ease-in-out;
    will-change: transform;
}

.carrusel-fotos img {
    min-width: 100%;
    object-fit: cover;
    border-radius: 12px;
    filter: brightness(0.9) saturate(1.1);
    transition: transform 6s ease, filter 0.5s ease;
}

/* Efecto Parallax suave en hover */
.carrusel-fotos img:hover {
    transform: scale(1.05);
    filter: brightness(1) saturate(1.2);
}

/* Botones del carrusel */
.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 24px;
    z-index: 2;
    border-radius: 50%;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}

.carrusel-btn:hover {
    background: rgba(46,125,50,0.7);
    border-color: white;
    transform: translateY(-50%) scale(1.1);
}

.carrusel-btn.izq { left: 15px; }
.carrusel-btn.der { right: 15px; }

@media (max-width: 768px) {
    .carrusel-btn {
        font-size: 18px;
        padding: 8px 12px;
    }
}

/* ==== SECCIÓN GENERAL PIE ==== */
#seccionPIE {
    padding: 4rem 1rem;
    background: linear-gradient(180deg, #8edf8e 0%, #f1f8e9 100%);
    font-family: 'Segoe UI', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Efecto Parallax de fondo difuminado */
#seccionPIE::before {
    content: "";
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    background: url('liceo/liceo_frontal.jpg') center/cover fixed;
    opacity: 0.15;
    filter: blur(2px);
    z-index: 0;
}

.contenedor-pie {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Título */
.titulo-pie {
    font-size: 2.8rem;
    color: #000000;
    font-weight: bold;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.15);
}

/* Distribución columnas */
.fila-pie {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}

/* Imagen */
.columna-img {
    flex: 1 1 320px;
    text-align: center;
    transform: translateZ(0);
}

.imagen-pie {
    max-width: 100%;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    transition: transform 0.6s ease, box-shadow 0.4s ease;
}

/* efecto hover parallax */
.imagen-pie:hover {
    transform: scale(1.04) translateY(-8px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.3);
}

/* Texto */
.columna-texto {
    flex: 1 1 320px;
    font-size: 1.15rem;
    color: #333;
    line-height: 1.8;
    text-align: left;
}

.columna-texto p {
    margin-bottom: 1.2rem;
}

/* Botón */
.boton-pie {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: #fff;
    padding: 0.7rem 1.6rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.25);
}

.boton-pie:hover {
    background: linear-gradient(135deg, #43a047, #2e7d32);
    transform: translateY(-3px);
    box-shadow: 4px 4px 14px rgba(0,0,0,0.35);
}

/* Responsive */
@media (max-width: 768px) {
    .fila-pie {
        flex-direction: column;
        text-align: center;
    }
    .columna-texto {
        text-align: center;
    }
    .titulo-pie {
        font-size: 2rem;
    }
}






/* === SECCIÓN GENERAL DE NOTICIAS CON PARALLAX === */
.news-section {
    position: relative;
    padding: 60px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    z-index: 1;
    overflow: hidden;
}

/* Fondo Parallax */
.news-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("liceo/liceo_frontal.jpg"); /* 👈 reemplaza por tu imagen */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

/* Overlay degradado para legibilidad */
.news-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(154, 210, 188, 0.9), rgba(224,242,224,0.95));
    z-index: -1;
}

.news-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #1b5e20; /* Verde vibrante */
    font-weight: 600;
}

/* Contenedor flexible para tarjetas */
.news-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

/* Estilo de cada tarjeta */
.news-item {
    background-color: #ffffff;
    border: 2px solid #ffeb3b;
    border-radius: 12px;
    width: calc(20% - 16px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;

    opacity: 0; /* ocultas por defecto */
    transform: scale(0.9) translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.6s ease;
}

.news-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: #cddc39;
}

/* Imagen */
.news-item img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    background: linear-gradient(180deg, #f9fff9, #e6f7e6);
    padding: 5px;
    margin-top: 15px;
}

/* Contenido */
.content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 20px;
}

.content h3 {
    font-size: 16px;
    color: #2e7d32;
    margin-bottom: 10px;
    text-align: justify;
    font-weight: 600;
}

.content p {
    font-size: 14px;
    color: #000000;
    flex-grow: 1;
    text-align: justify;
    line-height: 1.5;
}

/* Botón */
.btn-vermas {
    margin-top: 16px;
    align-self: center;
    background: linear-gradient(135deg, #76ff03, #c6ff00);
    color: #1b1b1b;
    padding: 8px 20px;
    border: none;
    border-radius: 25px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-vermas:hover {
    background: linear-gradient(135deg, #c6ff00, #ffeb3b);
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Título animado */
.titulo_noticias {
    font-size: 40px;
    text-align: center;
    color: #2e7d32;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;

    opacity: 0;
    transform: translateY(25px);
    animation: fadeSlideUp 1s ease forwards;
}

.titulo_noticias::after {
    content: "";
    display: block;
    width: 90px;
    height: 4px;
    background: linear-gradient(90deg, #ffeb3b, #c6ff00);
    margin: 12px auto 0;
    border-radius: 3px;
}

/* Animaciones */
@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeZoomSlide {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }
    60% {
        opacity: 0.7;
        transform: scale(1.05) translateY(10px);
        box-shadow: 0 8px 18px rgba(0,0,0,0.1);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    }
}

.news-item.aparecer {
    animation: fadeZoomSlide 0.9s forwards;
}

/* Retraso escalonado */
.news-item:nth-child(1).aparecer { animation-delay: 0.2s; }
.news-item:nth-child(2).aparecer { animation-delay: 0.4s; }
.news-item:nth-child(3).aparecer { animation-delay: 0.6s; }
.news-item:nth-child(4).aparecer { animation-delay: 0.8s; }
.news-item:nth-child(5).aparecer { animation-delay: 1s; }

/* === Responsive === */
@media (max-width: 1024px) {
    .news-item {
        width: calc(33.33% - 16px);
    }
}

@media (max-width: 768px) {
    .news-item {
        width: calc(50% - 16px);
    }
}

@media (max-width: 480px) {
    .news-item {
        width: 100%;
    }

    .news-section h2,
    .titulo_noticias {
        font-size: 28px;
    }

    .content h3 {
        font-size: 15px;
    }

    .content p {
        font-size: 13px;
    }
}



/* Contenedor principal */
.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
}

.title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 28px;
    color: #2c3e50;
    text-align: center;
    margin: 40px 0 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-bottom: 10px;
    animation: fadeInDown 1s ease-in-out;
}

.title i {
    color: #e74c3c;
    /* Ícono rojo para llamar la atención */
    margin-right: 10px;
}

/* Línea decorativa inferior */
.title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #4CAF50, #FFEB3B);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Animación */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sección con el mapa y el horario (flex para alinear elementos) */
.map-section-flex {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    gap: 30px; /* espacio entre el mapa y el horario */
    flex-wrap: wrap;
}

/* Estilo del mapa */
.map-container {
    flex: 1;
    height: 400px; /* mismo tamaño que antes */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: 3px solid #ffdd00; /* borde amarillo intenso */
    background: #d4edda; /* verde suave de fondo universitario */
}

/* Estilo del iframe dentro del mapa */
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}


/* Estilo del horario - versión universitaria vibrante verde y amarillo */
.horario-grid {
    flex: 1;
    background-color: #d4edda; /* verde suave pero más brillante */
    padding: 15px;
    border-radius: 10px;
    font-size: 13px;
    color: #1b3e20; /* texto verde oscuro para buen contraste */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    border: 3px solid #ffdd00; /* borde amarillo intenso */
}

.horario-grid h3 {
    font-size: 16px;
    color: #000000; /* verde vibrante para títulos */
    margin-bottom: 10px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.grid-dias {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.dia {
    background: #ffffff;
    padding: 8px;
    border-left: 4px solid #2ecc71; /* verde vibrante para los días */
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    transition: transform 0.2s, box-shadow 0.2s;
}

.dia:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.viernes {
    grid-column: span 2;
    border-left-color: #ffdd00; /* amarillo intenso */
    background-color: #fffbea; /* amarillo muy suave y brillante */
    text-align: center;
    font-weight: bold;
    color: #b38600; /* texto amarillo más oscuro */
}

.dia i {
    margin-right: 4px;
    color: #27ae60; /* íconos verdes vibrantes */
}

/* Media Queries para pantallas pequeñas y móviles */

/* Pantallas de 768px o menos */
@media (max-width: 768px) {
    .title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .map-section-flex {
        gap: 20px;
    }

    .map-container {
        height: 300px;
    }

    .horario-grid {
        font-size: 13px;
        padding: 15px;
    }

    .grid-dias {
        grid-template-columns: 1fr;
    }
}

/* Pantallas de 480px o menos */
@media (max-width: 480px) {
    .title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .map-section-flex {
        flex-direction: column;
        gap: 15px;
    }

    .map-container {
        height: 250px;
    }

    .horario-grid {
        font-size: 13px;
        padding: 15px;
    }
}









.btn-ver-especialidad {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 20px;
  background-color: #2e7d32; /* Verde institucional */
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-ver-especialidad:hover {
  background-color: #fbc02d; /* Amarillo institucional */
  color: #000;
}


















.footer-fhm {
    background: linear-gradient(rgba(27, 94, 32, 0.90), rgba(27, 94, 32, 0.90)),
        url('imagenes/portada\ liceo.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 80px 20px 200px;
    /* Aumentado */
    font-family: 'Segoe UI', sans-serif;
}




.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.footer-brand {
    flex: 1 1 250px;
    text-align: center;
}

.footer-logo {
    max-width: 80px;
    margin-bottom: 10px;
}

.footer-brand h3 {
    margin: 10px 0 5px;
    font-size: 1.4em;
    color: #FFEB3B;
}

.slogan {
    font-style: italic;
    font-size: 0.95em;
    color: #dcedc8;
}

.footer-links,
.footer-contact {
    flex: 1 1 200px;
    text-align: center;
}

.footer-links h4,
.footer-contact h4 {
    color: #FFEB3B;
    margin-bottom: 10px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.footer-links li {
    width: 100%;
    max-width: 220px;
    text-align: center;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    padding: 6px 12px;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.footer-links a:hover {
    background-color: #33691e;
    color: #aed581;
}

.footer-contact p {
    margin: 6px 0;
    font-size: 0.95em;
}

.footer-contact i {
    margin-right: 8px;
    color: #aed581;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9em;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
    color: #c8e6c9;
}

/* Responsivo */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand,
    .footer-links,
    .footer-contact {
        flex: 1 1 100%;
    }

    .footer-logo {
        max-width: 60px;
    }

    .footer-links ul {
        flex-direction: column;
        gap: 10px;
    }

    .footer-links li {
        max-width: 100%;
    }

    .footer-links a {
        font-size: 1em;
    }
}

.footer-social {
    flex: 1 1 200px;
    text-align: center;
    margin-top: 10px;
}

.footer-social h4 {
    color: #FFEB3B;
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 8px;
}

.social-icons a {
    color: #ffffff;
    font-size: 1.2em;
    transition: transform 0.3s ease, color 0.3s;
}

.social-icons a:hover {
    color: #aed581;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .footer-social {
        flex: 1 1 100%;
    }
}


.fhm-carousel-section {
    padding: 40px 20px;
    background-color: #f1f8e9;
    text-align: center;
}

.fhm-carousel-title {
    font-size: 2em;
    margin-bottom: 20px;
    color: #33691e;
    border-bottom: 3px solid #aed581;
    display: inline-block;
    padding-bottom: 5px;
}


.footer-bottom .marca-agua {
    display: block;
    font-style: italic;
    color: #cfd8dc;
    margin-top: 8px;
    font-size: 13px;
}









/* TITULO ENLACES IMPORTANTES */

.titulo_enlaces_inportante {
    font-size: 36px;
    text-align: center;
    color: #34495e;
    margin: 40px 0 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUpLinks 1.2s ease-out forwards;
}

.titulo_enlaces_inportante::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(to right, #4CAF50, #FFEB3B);
    /* Verde a amarillo */
    margin: 12px auto 0;
    border-radius: 2px;
}

/* Animación para que aparezca desde abajo con fade */
@keyframes fadeUpLinks {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}













/* ================== VARIABLES ================== */
:root {
    --verde: #1e5128;
    --dorado: #d4af37;
    --blanco: #ffffff;
    --oscuro: #2b2b2b;
    --gris-claro: #f4f4f4;
}

/* ================== GLOBAL ================== */
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--gris-claro);
}

/* ================== ANIMACIONES ================== */
@keyframes zoomRotarFade {
    0% {
        opacity: 0;
        transform: scale(0.8) rotateX(15deg);
    }
    60% {
        opacity: 0.7;
        transform: scale(1.05) rotateX(-5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateX(0deg);
    }
}

/* ================== SECCIÓN ESPECIALIDADES ================== */
.seccion-especialidades {
    position: relative;
    padding: 50px 20px;
    font-family: 'Segoe UI', sans-serif;
    overflow: hidden;
    z-index: 1;
}

.seccion-especialidades::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url("liceo/liceo_frontal.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

.seccion-especialidades::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(224,247,250,0.85), rgba(255,255,255,0.95));
    z-index: -1;
}

.titulo-principal {
    text-align: center;
    font-size: 1.8rem;
    color: var(--verde);
    margin-bottom: 40px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

/* ================== CARRUSEL GENERAL ================== */
.contenedor-carruseles,
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    align-items: stretch;
}

/* ================== TARJETAS ================== */
.carrusel-especialidad {
    background: var(--blanco);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    padding: 30px 15px;
    width: 220px;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    /* Animación */
    opacity: 0;
    transform: scale(0.8) rotateX(15deg);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.carrusel-especialidad.aparecer {
    animation: zoomRotarFade 0.9s forwards;
}

/* Retraso escalonado */
.carrusel-especialidad:nth-child(1).aparecer { animation-delay: 0.2s; }
.carrusel-especialidad:nth-child(2).aparecer { animation-delay: 0.4s; }
.carrusel-especialidad:nth-child(3).aparecer { animation-delay: 0.6s; }
.carrusel-especialidad:nth-child(4).aparecer { animation-delay: 0.8s; }
.carrusel-especialidad:nth-child(5).aparecer { animation-delay: 1s; }

.carrusel-especialidad:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.carrusel-especialidad h3 {
    font-size: 0.875rem;
    color: var(--verde);
    margin-bottom: 10px;
    border-left: 4px solid #00796b;
    padding-left: 8px;
    text-transform: uppercase;
}

.carrusel-especialidad p {
    font-size: 0.78rem;
    color: #333;
    line-height: 1.4;
    margin: 0;
    text-align: justify;
}

/* ================== CARRUSEL DE IMÁGENES ================== */
.carrusel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 2px solid #00796b;
    aspect-ratio: 1 / 1; /* Siempre cuadrado */
}

.carrusel img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.8s ease, transform 0.8s ease, filter 0.5s ease;
    z-index: 0;
    filter: brightness(0.9) contrast(1.05);
}

.carrusel img.visible {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
    position: relative;
}

/* ================== FLECHAS ================== */
.flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 77, 64, 0.8);
    color: #fff;
    border: none;
    font-size: 0.85rem;
    padding: 5px 8px;
    cursor: pointer;
    z-index: 5;
    border-radius: 4px;
    transition: transform 0.2s ease, background-color 0.3s ease;
    will-change: transform;
}

.flecha:hover {
    background-color: #004d40;
    transform: scale(1.1);
}

.flecha-izq { left: 6px; }
.flecha-der { right: 6px; }

/* ================== RESPONSIVE ================== */
/* Tablets: 3 por fila */
@media (max-width: 1024px) {
    .carrusel-especialidad { width: 30%; }
    .seccion-especialidades::before { background-attachment: fixed; }
}

/* Móviles grandes: 2 por fila */
@media (max-width: 768px) {
    .carrusel-especialidad { width: 45%; }
    .carrusel { aspect-ratio: auto; height: 200px; }
    .carrusel img { height: 100%; }
    .seccion-especialidades::before { background-attachment: scroll; }
}

/* Móviles pequeños: 1 por fila */
@media (max-width: 480px) {
    .carrusel-especialidad { width: 90%; }
    .titulo-principal { font-size: 1.5rem; }
    .carrusel { height: 220px; }
    .carrusel img { height: 100%; }
    .flecha { font-size: 0.8rem; padding: 3px 5px; }
    .carrusel-especialidad p { font-size: 0.75rem; }
}








/* Estilo base de cada bloque de himno */
.himno-liceo,
.himno-chile {
    flex: 1 1 500px;
    /* Cada bloque ocupa mínimo 500px, crece si hay espacio */
    background-color: #f4f4f4;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Encabezados */
.himno h1 {
    font-size: 26px;
    margin-bottom: 8px;
    text-align: center;
    font-weight: bold;
    color: #1e1e1e;
}

.himno h2 {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: center;
    font-style: italic;
    color: #555;
}

/* Estrofas del liceo */
.estrofas-liceo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.estrofas-liceo .estrofa {
    width: 90%;
    max-width: 700px;
    text-align: justify;
    padding: 15px 18px;
    background-color: #f9f9ff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    font-size: 15.5px;
    line-height: 1.6;
}

/* Estrofas del himno nacional */
.estrofas-chile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

.estrofas-chile p {
    width: 90%;
    max-width: 700px;
    text-align: justify;
    padding: 15px 18px;
    background-color: #fffbea;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    font-size: 15.5px;
    line-height: 1.6;
    margin: 0;
}

/* Imagen dentro de cada sección */
.contenedor-imagen {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.img-liceo,
.img-chile {
    width: 90%;
    max-width: 700px;
    height: 300px;
    /* Puedes ajustar este valor según lo que necesites */
    object-fit: cover;
    /* Ajusta la imagen sin deformarla */
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.titulo-himno {
    background-color: #f4f4f4;
    /* Un fondo suave y neutral */
    padding: 20px;
    /* Espaciado interno */
    text-align: center;
    /* Centra el texto */
    border: 2px solid #2c3e50;
    /* Un borde sutil y formal */
    border-radius: 8px;
    /* Bordes redondeados para suavizar el diseño */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Sombra sutil para dar profundidad */
    max-width: 800px;
    /* Limita el ancho máximo */
    margin: 0 auto;
    /* Centra el bloque horizontalmente */
}

.titulo-himno h1 {
    font-family: 'Arial', sans-serif;
    /* Fuente moderna y formal */
    font-size: 36px;
    /* Tamaño grande para el título */
    color: #2c3e50;
    /* Un color oscuro y profesional */
    font-weight: 700;
    /* Negrita para darle énfasis */
    text-transform: uppercase;
    /* Mayúsculas para darle un toque formal */
    letter-spacing: 2px;
    /* Espaciado entre letras para un efecto más formal */
    margin: 0;
    /* Elimina márgenes adicionales */
}

@media screen and (max-width: 768px) {
    .titulo-himno {
        padding: 15px;
        /* Ajuste de padding para pantallas más pequeñas */
    }

    .titulo-himno h1 {
        font-size: 28px;
        /* Reduce el tamaño del texto en pantallas pequeñas */
    }
}

.imagenes-himno {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    gap: 60px;
    flex-wrap: wrap;
}

.imagen-izquierda,
.imagen-derecha {
    width: 380px;
    text-align: center;
    border: 2px solid #2c3e50;
    border-radius: 10px;
    background-color: #f9f9f9;
    padding: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.imagen-izquierda:hover,
.imagen-derecha:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.imagen-izquierda img,
.imagen-derecha img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.imagen-izquierda img:hover,
.imagen-derecha img:hover {
    transform: scale(1.05);
}

.imagen-izquierda p,
.imagen-derecha p {
    margin-top: 10px;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    color: #2c3e50;
    font-size: 18px;
}

@media screen and (max-width: 768px) {
    .imagenes-himno {
        flex-direction: column;
        gap: 30px;
    }

    .imagen-izquierda,
    .imagen-derecha {
        width: 90%;
    }

    .imagen-izquierda img,
    .imagen-derecha img {
        height: 220px;
    }
}

/* BOTONES FLOTANTES CON ONDA ACTIVA */
.music-btn-liceo,
.music-btn-chile {
    position: fixed;
    right: 20px;
    width: 160px;
    padding: 10px 15px;
    background-color: #14532d;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

/* Posiciones */
.music-btn-liceo {
    bottom: 90px;
}

.music-btn-chile {
    bottom: 20px;
}

/* Hover */
.music-btn-liceo:hover,
.music-btn-chile:hover {
    background-color: #1a734b;
    transform: scale(1.05);
}

/* Animación de ondas */
.music-btn-liceo.playing::after,
.music-btn-chile.playing::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160%;
    height: 160%;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 1.5s infinite ease-in-out;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.3;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 480px) {

    .music-btn-liceo,
    .music-btn-chile {
        width: 140px;
        font-size: 14px;
        right: 10px;
        padding: 8px 12px;
    }

    .music-btn-liceo {
        bottom: 80px;
    }

    .music-btn-chile {
        bottom: 15px;
    }
}






body.modo-oscuro {
    background: #121212;
    color: #f1f1f1;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

form {
    background: #fff;
    padding: 2rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    position: relative;
}

body.modo-oscuro form {
    background: #1e1e1e;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.05);
}

form h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: #33691e;
}

body.modo-oscuro form h2 {
    color: #aeea00;
}

.campo {
    position: relative;
    margin-bottom: 1rem;
}

.campo input {
    width: 100%;
    padding: 0.9rem 2.5rem 0.9rem 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

body.modo-oscuro .campo input {
    background-color: #2b2b2b;
    color: #fff;
    border-color: #444;
}

.campo input:focus {
    border-color: #558b2f;
    outline: none;
}

.campo i {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    color: #888;
}

button[type="submit"] {
    width: 100%;
    padding: 0.9rem;
    background: #558b2f;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

button[type="submit"]:hover {
    background: #33691e;
}

.mensaje {
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
    color: #33691e;
}

.mensaje.error {
    color: red;
}

.recordar-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

body.modo-oscuro .recordar-container label {
    color: #ccc;
}

/* Botón modo oscuro */
.modo-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
    transition: color 0.3s;
}

body.modo-oscuro .modo-btn {
    color: #aeea00;
}

@media screen and (max-width: 480px) {
    form {
        padding: 1.5rem;
    }

    .modo-btn {
        top: 0.8rem;
        right: 0.8rem;
    }
}












 

    body {
      background: #f9fdf7;
      color: #2b4a1d;
      font-family: 'Roboto', sans-serif;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      
    }

    .especialidad-admin-section {
      max-width: 1100px;
      margin: 0 auto;
      padding: 40px 20px;
      background: #fff;
      border-radius: 15px;
      box-shadow: 0 5px 20px rgba(106, 139, 68, 0.15);
      overflow: hidden;
    }

    /* Animaciones fade-in */
    .fade-in {
      opacity: 0;
      transform: translateY(30px);
      animation-fill-mode: forwards;
      animation-timing-function: ease-out;
      animation-name: fadeInUp;
      animation-duration: 0.8s;
    }

    .fade-in.delay-1 {
      animation-delay: 0.3s;
    }

    .fade-in.delay-2 {
      animation-delay: 0.6s;
    }

    .fade-in.delay-3 {
      animation-delay: 0.9s;
    }

    @keyframes fadeInUp {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* Título principal */
    .titulo-seccion {
      font-size: 2.8rem;
      font-weight: 700;
      text-align: center;
      margin-bottom: 5px;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 15px;
      color: #2b4a1d;
    }

    .titulo-seccion .icono {
      font-size: 3.5rem;
      color: #f4c430;
    }

    .subtitulo {
      text-align: center;
      font-size: 1.3rem;
      margin-bottom: 40px;
      font-weight: 500;
      color: #466d26;
    }

    /* Video */
    .video-wrapper {
      max-width: 720px;
      margin: 0 auto 50px auto;
      box-shadow: 0 8px 20px rgba(70, 109, 38, 0.2);
      border-radius: 15px;
      overflow: hidden;
    }

    .video-wrapper video {
      width: 100%;
      display: block;
      border-radius: 15px;
    }

    /* Perfil del Estudiante */
    .perfil-estudiante {
      background: #e9f0db;
      border-radius: 12px;
      padding: 25px 30px;
      box-shadow: 0 3px 10px rgba(106, 139, 68, 0.15);
      margin-bottom: 50px;
      color: #37592e;
    }

    .perfil-estudiante h3 {
      color: #466d26;
      font-size: 1.9rem;
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .perfil-estudiante ul {
      list-style: none;
      padding-left: 0;
      font-size: 1.1rem;
      line-height: 1.6;
    }

    .perfil-estudiante ul li {
      position: relative;
      padding-left: 30px;
      margin-bottom: 12px;
      transition: color 0.3s ease;
      cursor: default;
    }

    .perfil-estudiante ul li::before {
      content: "\f058";
      font-family: "Font Awesome 6 Free";
      font-weight: 900;
      position: absolute;
      left: 0;
      top: 2px;
      color: #f4c430;
    }

    .perfil-estudiante ul li:hover {
      color: #466d26;
    }

    /* Descripción general */
    .descripcion-general {
      background: #e9f0db;
      border-radius: 12px;
      padding: 25px 30px;
      box-shadow: 0 3px 10px rgba(106, 139, 68, 0.15);
      margin-bottom: 50px;
      color: #37592e;
      line-height: 1.5;
    }

    .descripcion-general h3,
    .descripcion-general h4 {
      color: #466d26;
      font-weight: 700;
      margin-bottom: 15px;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .descripcion-general h3 .fa-info-circle,
    .descripcion-general h4 .fa-check-circle {
      color: #f4c430;
      font-size: 1.4rem;
    }

    .descripcion-general p {
      font-size: 1.1rem;
      margin-bottom: 12px;
    }

    .descripcion-general ul {
      list-style: none;
      padding-left: 0;
      font-size: 1.1rem;
      margin-bottom: 15px;
    }

    .descripcion-general ul li {
      position: relative;
      padding-left: 30px;
      margin-bottom: 10px;
      cursor: default;
      transition: color 0.3s ease;
    }

    .descripcion-general ul li::before {
      content: "\f058";
      font-family: "Font Awesome 6 Free";
      font-weight: 900;
      position: absolute;
      left: 0;
      top: 2px;
      color: #f4c430;
    }

    .descripcion-general ul li:hover {
      color: #466d26;
    }

    /* Tarjetas */
    .tarjetas-info {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 30px;
      margin-bottom: 50px;
    }

    .tarjeta {
      background: #e9f0db;
      border-radius: 12px;
      padding: 25px 30px;
      box-shadow: 0 3px 15px rgba(106, 139, 68, 0.15);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      color: #37592e;
    }

    .tarjeta:hover {
      transform: translateY(-8px);
      box-shadow: 0 12px 25px rgba(70, 109, 38, 0.25);
    }

    .tarjeta h3 {
      color: #466d26;
      font-size: 1.8rem;
      margin-bottom: 18px;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .tarjeta h3 .fa-star {
      color: #f4c430;
    }

    .tarjeta ul {
      list-style: none;
      padding-left: 0;
      color: #37592e;
      font-size: 1rem;
      line-height: 1.5;
    }

    .tarjeta ul li {
      position: relative;
      padding-left: 25px;
      margin-bottom: 10px;
    }

    .tarjeta ul li::before {
      content: "✔";
      position: absolute;
      left: 0;
      top: 0;
      color: #f4c430;
      font-weight: bold;
    }

    /* Estadísticas */
    .tarjeta-estadisticas .estadisticas-grid {
      display: flex;
      justify-content: space-around;
      gap: 15px;
      flex-wrap: wrap;
    }

    .tarjeta-estadisticas .estadisticas-grid>div {
      text-align: center;
      color: #37592e;
      flex: 1 1 120px;
      margin: 10px 0;
    }

    .contador {
      font-size: 3rem;
      font-weight: 800;
      color: #f4c430;
    }

    .tarjeta-estadisticas p {
      margin-top: 8px;
      font-size: 1rem;
      font-weight: 600;
    }

    /* Botón descarga */
    .descarga-malla {
      text-align: center;
      margin-bottom: 40px;
    }

    .descarga-malla button {
      background: #f4c430;
      border: none;
      color: #2b4a1d;
      font-weight: 700;
      font-size: 1.2rem;
      padding: 14px 40px;
      border-radius: 40px;
      cursor: pointer;
      box-shadow: 0 5px 15px rgba(106, 139, 68, 0.3);
      transition: background-color 0.3s ease;
      display: inline-flex;
      align-items: center;
      gap: 12px;
    }

    .descarga-malla button:hover,
    .descarga-malla button:focus {
      background: #d9b922;
      outline: none;
    }

    .descarga-malla button i {
      font-size: 1.3rem;
    }

    /* Testimonios */
    .testimonios {
      max-width: 800px;
      margin: 0 auto 50px auto;
      text-align: center;
      color: #37592e;
      position: relative;
    }

    .testimonios h3 {
      font-size: 2rem;
      margin-bottom: 30px;
      color: #2b4a1d;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 12px;
    }

    .testimonios h3 .fa-comments {
      color: #f4c430;
    }

    .carrusel-testimonios {
      position: relative;
      overflow: hidden;
      height: 150px;
      margin-bottom: 10px;
    }

    .testimonio {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      opacity: 0;
      transition: opacity 0.6s ease;
      font-style: italic;
      font-size: 1.15rem;
      padding: 0 20px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      height: 150px;
    }

    .testimonio.activo {
      position: relative;
      opacity: 1;
    }

    .testimonio cite {
      margin-top: 15px;
      font-weight: 700;
      font-size: 1rem;
      color: #f4c430;
      align-self: flex-end;
    }

    .controles {
      margin-top: 10px;
    }

    .controles button {
      background: #f4c430;
      border: none;
      color: #2b4a1d;
      font-weight: 700;
      font-size: 1.2rem;
      margin: 0 10px;
      padding: 8px 16px;
      border-radius: 50%;
      cursor: pointer;
      box-shadow: 0 3px 10px rgba(106, 139, 68, 0.3);
      transition: background-color 0.3s ease;
    }

    .controles button:hover,
    .controles button:focus {
      background: #d9b922;
      outline: none;
    }

    /* Botón de inscripción (CTA) */
    .cta-inscripcion {
      text-align: center;
      margin: 50px auto 0 auto;
    }

    .cta-inscripcion a {
      display: inline-block;
      background-color: #2b4a1d;
      color: #f4c430;
      font-weight: 700;
      font-size: 1.3rem;
      padding: 16px 50px;
      border-radius: 50px;
      text-decoration: none;
      box-shadow: 0 6px 18px rgba(244, 196, 48, 0.5);
      transition: background-color 0.3s ease;
    }

    .cta-inscripcion a:hover,
    .cta-inscripcion a:focus {
      background-color: #466d26;
      outline: none;
    }

    /* Responsive */
    @media (max-width: 700px) {
      .tarjeta-estadisticas .estadisticas-grid {
        flex-direction: column;
        gap: 30px;
      }
    }

    @media (max-width: 480px) {
      .titulo-seccion {
        font-size: 2rem;
      }

      .subtitulo {
        font-size: 1.1rem;
        margin-bottom: 30px;
      }

      .tarjeta,
      .descripcion-general,
      .perfil-estudiante {
        padding: 20px 15px;
      }

      .descarga-malla button {
        padding: 12px 30px;
        font-size: 1rem;
      }

      .cta-inscripcion a {
        padding: 14px 30px;
        font-size: 1.1rem;
      }
    }

    /* Sección Profesores y Asistente */
.profesores {
  background: linear-gradient(to bottom, #e9fce9, #fff);
  padding: 60px 20px;
  text-align: center;
  border-top: 3px solid #3a7e1f;
  border-bottom: 3px solid #f4b400;
}

.profesores h2 {
  font-size: 2.5rem;
  color: #2e6b17;
  margin-bottom: 40px;
  font-weight: bold;
  position: relative;
}

.profesores h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 5px;
  background: #f4b400;
  margin: 10px auto 0;
  border-radius: 4px;
}

.profesores-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.profesor {
  background: #ffffff;
  border: 2px solid #cde9c6;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 25px;
  width: 280px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.profesor:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.profesor img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 3px solid #f4b400;
}

.profesor h3 {
  font-size: 1.4rem;
  color: #388e3c;
  margin-bottom: 10px;
}

.profesor p {
  font-style: italic;
  font-size: 1rem;
  color: #555;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .profesor {
    width: 90%;
  }
}
/* === RESPONSIVE EXTENDIDO === */

/* Tablets pequeñas y móviles grandes */
@media screen and (max-width: 768px) {
  .especialidad-admin-section {
    padding: 25px 15px;
  }

  .titulo-seccion {
    font-size: 2.2rem;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .video-wrapper {
    max-width: 100%;
  }

  .perfil-estudiante,
  .descripcion-general,
  .tarjeta {
    padding: 20px 15px;
  }

  .tarjetas-info {
    grid-template-columns: 1fr;
  }

  .cta-inscripcion a {
    font-size: 1.1rem;
    padding: 12px 25px;
  }

  .testimonios h3 {
    font-size: 1.6rem;
  }

  .carrusel-testimonios {
    height: auto;
  }

  .testimonio {
    font-size: 1rem;
  }

  .profesores-container {
    flex-direction: column;
    align-items: center;
  }

  .profesor {
    width: 90%;
  }
}

/* Móviles medianos */
@media screen and (max-width: 600px) {
  .titulo-seccion {
    font-size: 1.9rem;
  }

  .subtitulo {
    font-size: 1rem;
  }

  .contador {
    font-size: 2.5rem;
  }

  .descarga-malla button {
    font-size: 1rem;
    padding: 10px 25px;
    flex-wrap: wrap;
    text-align: center;
  }

  .tarjeta h3,
  .perfil-estudiante h3 {
    font-size: 1.5rem;
  }

  .profesor h3 {
    font-size: 1.2rem;
  }

  .profesor p {
    font-size: 0.95rem;
  }
}

/* Móviles pequeños */
@media screen and (max-width: 480px) {
  .especialidad-admin-section {
    padding: 20px 10px;
  }

  .titulo-seccion {
    font-size: 1.7rem;
  }

  .subtitulo {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .testimonios h3 {
    font-size: 1.5rem;
  }

  .cta-inscripcion a {
    padding: 10px 20px;
    font-size: 1rem;
  }

  .descarga-malla button {
    font-size: 0.95rem;
    padding: 10px 20px;
  }

  .tarjetas-info {
    gap: 20px;
  }

  .profesor img {
    height: auto;
  }
}

/* Ultra móviles (ej: 320px) */
@media screen and (max-width: 360px) {
  .titulo-seccion {
    font-size: 1.5rem;
  }

  .subtitulo {
    font-size: 0.9rem;
  }

  .descarga-malla button,
  .cta-inscripcion a {
    font-size: 0.9rem;
    padding: 8px 18px;
  }

  .tarjeta h3,
  .perfil-estudiante h3 {
    font-size: 1.3rem;
  }

  .testimonios h3 {
    font-size: 1.3rem;
  }
}




/* Botones */
button {
    background-color: #FFCC00;
    color: #004B23;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #E6B800;
    color: white;
}

/* Enlaces destacados */
a {
    color: #004B23;
    text-decoration: none;
}

a:hover {
    color: #FFCC00;
}

/* Estilos del botón de descarga */
#descargar {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#btn-descargar {
    background-color: #007bff;
    color: white;
    font-size: 16px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#btn-descargar:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

#btn-descargar:active {
    transform: scale(0.95);
}

/* Responsividad */
@media (max-width: 768px) {
    #tabla-horas table {
        width: 90%;
        font-size: 12px;
    }

    #tabla-horas th,
    #tabla-horas td {
        padding: 6px;
    }

    #plan-comun {
        width: 90%;
    }

    #plan-comun-content p {
        font-size: 13px;
    }

    #btn-descargar {
        font-size: 14px;
        padding: 10px 16px;
    }
}

/* === SECCIÓN DESCARGA PDF === */
#descargar {
  text-align: center;
  background: #f5f9ff;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 3rem 1.5rem;
  margin: 2rem auto;
  max-width: 600px;
  transition: transform 0.3s ease;
}

#descargar:hover {
  transform: scale(1.02);
}

/* Botón Descargar */
#descargar .btn {
  background-color: #004080; /* Color institucional azul oscuro */
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  border: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 64, 128, 0.3);
  text-decoration: none;
  display: inline-block;
}

#descargar .btn:hover {
  background-color: #0059b3; /* Azul más claro al pasar el mouse */
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 480px) {
  #descargar {
    padding: 2rem 1rem;
  }

  #descargar .btn {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    width: 100%;
  }
}


/* Fondo parallax */
.nuestro-equipo-parallax {
    background-image: url('liceo/Dia-nacional-bandera-¿Que-representa-este-simbolo-para-chilenos-3.jpg'); /* Cambia por tu imagen */
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Capa verde */
.overlay-verde {
    background-color: rgba(68, 167, 59, 0.792); /* Verde semitransparente */
    padding: 60px 20px;
    color: #fff;
    text-align: center;
}

.overlay-verde h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.overlay-verde p {
    font-size: 1rem;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

/* Fila de tarjetas */
.fila-equipo {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Tarjetas con misma altura */
.card-equipo {
    background: #fff;
    color: #000;
    width: 300px;
    height: 420px; /* Altura fija para igualar todas */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Para alinear contenido y botón */
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

/* Imágenes más altas sin recorte */
.card-equipo img {
    width: 100%;
    height: auto; /* Mantiene proporción */
    max-height: 250px; /* Más altura que antes */
    object-fit: contain; /* No recorta, ajusta dentro del espacio */
    background-color: #f5f5f5; /* Fondo relleno si sobra espacio */
    display: block;
    margin: 0 auto;
}

/* Texto alineado */
.card-equipo h3 {
    font-size: 1.3rem;
    margin: 10px 0 5px;
    color: #222;
}

.card-equipo p {
    font-size: 0.9rem;
    color: #666;
    padding: 0 10px;
    margin-bottom: 10px;
    flex-grow: 1; /* Empuja el botón hacia abajo */
}

/* Botón alineado */
.btn-conocer {
    display: inline-block;
    background-color: #00be23a1;
    color: #fff;
    padding: 10px 20px;
    margin: 0 auto 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}
.btn-conocer:hover {
    background-color: #009e8c;
}

/* Estado visible para animación */
.card-equipo.visible {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
    .fila-equipo {
        flex-direction: column;
        align-items: center;
    }
    .card-equipo {
        width: 90%;
        height: auto; /* En móvil dejamos que crezca */
    }
    .card-equipo img {
        max-height: 200px; /* Menos altura en móvil */
    }
}

/* Animación suave al pasar el mouse */
.card-equipo img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-equipo img:hover {
    transform: scale(1.05); /* Zoom ligero */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15); /* Sombra suave */
}



/* SECCIÓN TALLERES */
#seccion-talleres {
  position: relative;
  background-image: url('liceo/liceo_frontal.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  color: #fff;
  min-height: 700px;
  overflow: hidden;
  padding: 60px 20px;
}

/* Capa verde que cubre todo el fondo */
.overlay-verde-talleres {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 108, 86, 0.9);
  z-index: 1;
  padding: 60px 20px;
  box-sizing: border-box;
  text-align: center;
  overflow-y: auto;
}

/* Que el contenido dentro quede sobre la capa */
.overlay-verde-talleres > * {
  position: relative;
  z-index: 2;
}

/* Título */
.overlay-verde-talleres h2 {
  font-size: 3rem;
  font-weight: 700;
  color: #e0f2f1;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);

  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.2s;
}

/* Contenedor tarjetas: fila única con scroll horizontal */
.contenedor-talleres {
  display: flex;
  flex-wrap: nowrap; /* No envuelve */
  gap: 20px;
  justify-content: flex-start;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: auto;
  align-items: stretch;
  -webkit-overflow-scrolling: touch; /* scroll suave móvil */
}

/* Ocultar scrollbar (opcional) */
.contenedor-talleres::-webkit-scrollbar {
  display: none;
}
.contenedor-talleres {
  -ms-overflow-style: none;  /* IE y Edge */
  scrollbar-width: none;     /* Firefox */
}

/* Tarjetas con fondo blanco */
.tarjeta-taller {
  background-color: #fff;
  border-radius: 10px;
  width: 220px; /* reducido para que quepa en una fila */
  padding: 20px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  color: #004d40;

  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;

  /* Flex para alinear contenido y que botón quede abajo */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;

  min-height: 380px; /* altura proporcional */
  box-sizing: border-box;
  text-align: center;
}

/* Animación en cascada para tarjetas */
.tarjeta-taller:nth-child(1) {
  animation-delay: 0.4s;
}
.tarjeta-taller:nth-child(2) {
  animation-delay: 0.6s;
}
.tarjeta-taller:nth-child(3) {
  animation-delay: 0.8s;
}

/* Hover tarjetas */
.tarjeta-taller:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
}

/* Imagen tarjetas */
.tarjeta-taller img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
}

/* Línea decorativa */
.linea-taller {
  width: 60px;
  height: 3px;
  background-color: #00796b;
  margin-left: auto;
  margin-right: auto;
  border-radius: 2px;
  margin-bottom: 15px;
}

/* Botón detalles */
.btn-detalles-taller {
  background-color: #004d40;
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  padding: 10px 30px;

  min-width: 150px;
  margin-top: auto; /* Empuja el botón abajo */
  text-align: center;
  align-self: center;
  display: inline-block;
}

.btn-detalles-taller:hover {
  background-color: #00796b;
}

/* Animación keyframes */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .overlay-verde-talleres {
    position: relative;   /* Cambia de absolute a relative para altura natural */
    height: auto;         /* Altura según contenido */
    overflow-y: visible;  /* Sin scroll interno */
    padding-bottom: 60px; /* Espacio extra abajo */
  }

  .contenedor-talleres {
    flex-direction: column;
    align-items: center;
    overflow-x: visible; /* sin scroll horizontal en móvil */
  }

  .tarjeta-taller {
    width: 90%;
    max-width: 400px;
    min-height: auto; /* altura flexible */
  }
}

/* Contenedor principal para tarjetas + beneficios (debe envolver todo junto con .contenedor-talleres) */
.contenedor-talleres-y-beneficios {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: auto; /* scroll horizontal si no caben */
  -webkit-overflow-scrolling: touch;
  align-items: stretch;
}

/* Contenedor de las tarjetas de talleres */
.contenedor-talleres {
  display: flex;
  flex-wrap: nowrap; /* que no se envuelvan */
  gap: 20px;
  flex: 2; /* ocupa más espacio */
  /* para que el scroll solo aparezca en el padre */
}

/* Tarjeta beneficios, para que se parezca a las demás */
.tarjeta-beneficios {
  flex: 1; /* ocupa espacio proporcional */
  background-color: #145214cc;
  color: white;
  padding: 20px;
  border-radius: 10px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 485px; /* misma altura que las tarjetas de talleres */
  text-align: justify;
}

/* Título y línea decorativa */
.tarjeta-beneficios h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: left;
}

.tarjeta-beneficios .linea-taller {
  width: 60px;
  height: 3px;
  background-color: #00796b;
  border-radius: 2px;
  margin-bottom: 15px;
  align-self: start;
}

/* Lista con buen espaciado */
.tarjeta-beneficios ul {
  list-style: disc inside;
  line-height: 1.6;
  padding-left: 0;
  margin: 0;
  flex-grow: 1; /* empuja el botón abajo */
}

/* Botón "Ver más talleres" */
.btn-ver-mas-talleres {
  background-color: #0c6f03;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  padding: 10px 15px;
  margin-top: 20px;
  text-align: center;
  align-self: flex-start;
  transition: background-color 0.3s ease;
  display: inline-block;
  cursor: pointer;
}

.btn-ver-mas-talleres:hover {
  background-color: #095202;
}

/* Responsive: apilar en móviles */
@media (max-width: 900px) {
  .contenedor-talleres-y-beneficios {
    flex-direction: column;
    overflow-x: visible;
  }

  .contenedor-talleres,
  .tarjeta-beneficios {
    flex: none;
    width: 90%;
    max-width: 400px;
    margin: 0 auto 30px;
    min-height: auto;
  }
}

/* === Animaciones de entrada lateral === */
@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-60px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(60px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Título con entrada desde arriba (se mantiene igual) */
.overlay-verde-talleres h2 {
  font-size: 3rem;
  font-weight: 700;
  color: #e0f2f1;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);

  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.2s;
}

/* Tarjetas talleres: entran desde abajo pero ahora se alternan lados */
.tarjeta-taller {
  background-color: #fff;
  border-radius: 10px;
  width: 220px;
  padding: 20px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  color: #004d40;

  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;

  min-height: 380px;
  box-sizing: border-box;
  text-align: center;
}

/* Animación alternada (izq/der) */
.tarjeta-taller:nth-child(odd) {
  animation: fadeInLeft 1s ease forwards;
}
.tarjeta-taller:nth-child(even) {
  animation: fadeInRight 1s ease forwards;
}

/* Cascada: retrasos */
.tarjeta-taller:nth-child(1) { animation-delay: 0.4s; }
.tarjeta-taller:nth-child(2) { animation-delay: 0.6s; }
.tarjeta-taller:nth-child(3) { animation-delay: 0.8s; }
.tarjeta-taller:nth-child(4) { animation-delay: 1s; }
.tarjeta-taller:nth-child(5) { animation-delay: 1.2s; }

/* Hover sigue igual */
.tarjeta-taller:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
}

/* === Tarjeta beneficios con animación lateral === */
.tarjeta-beneficios {
  flex: 1;
  background-color: #145214cc;
  color: white;
  padding: 20px;
  border-radius: 10px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 485px;
  text-align: justify;

  opacity: 0;
  animation: fadeInRight 1.2s ease forwards;
  animation-delay: 1.4s;
}

/* Botones también con ligera entrada */
.btn-detalles-taller,
.btn-ver-mas-talleres {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 1.6s;
}







.linea-noticia {
    border: none;
    height: 4px; /* grosor */
    border-radius: 2px;
    background: linear-gradient(to right, #27ae60, #ffdd00); /* degradado verde a amarillo */
    margin: 20px 0; /* separación arriba y abajo */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* sombra suave */
}


/* Estilo del video en la sección PIE */
.video-pie video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 3px solid #27ae60; /* verde institucional */
}


















