:root{
    --main-color: #032737;
    --second-color: #E1AD35;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #003848;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1a4f5d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  font-family: "Poppins", sans-serif;
  /* background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); */
  /* background-color: #EBF3FA; */
}

.section-carrusel{
    height: 92vh;
}

.card-content{
    display: flex;
    flex-wrap: wrap;
    padding: 2rem;
}

#bottom {
  background-color: #ff8866;
  left: 50px;
  top: 0px;
  width: 150px;
  height: 150px;
  animation-delay: -800ms;
}

#right {
  background-color: #ff2233;
  left: 160px;
  top: -80px;
  width: 30px;
  height: 30px;
  animation-delay: -1800ms;
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.sectionTitle{
    color: var(--main-color);
}

.card-round{
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: space-around;
}

.card-round .card {
  overflow: visible;
  width: 190px;
  height: 254px;
}

.card-round .content {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 300ms;
  box-shadow: 0px 0px 10px 1px var(--main-color);
  border-radius: 5px;
}

.card-round .front, .back {
  background-color: var(--main-color);
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 5px;
  overflow: hidden;
}

.card-round .back {
  width: 100%;
  height: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.card-round .back::before {
  position: absolute;
  content: ' ';
  display: block;
  width: 160px;
  height: 160%;
  background: linear-gradient(90deg, transparent, #ffffff, #ffffff, #ffffff, #ffffff, transparent);
  animation: rotation_481 5000ms infinite linear;
}

.card-round .back-content {
  position: absolute;
  width: 99%;
  height: 99%;
  background-color: var(--main-color);
  border-radius: 5px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.card-round .card:hover .content {
  transform: rotateY(180deg);
}

@keyframes rotation_481 {
  0% {
    transform: rotateZ(0deg);
  }

  0% {
    transform: rotateZ(360deg);
  }
}

.card-round .front {
  transform: rotateY(180deg);
  color: white;
}

.card-round .front .front-content {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-round .front-content .badge {
  background-color: #00000055;
  padding: 2px 10px;
  border-radius: 10px;
  backdrop-filter: blur(2px);
  width: fit-content;
}

.card-round .description {
  box-shadow: 0px 0px 10px 5px #00000088;
  width: 100%;
  padding: 10px;
  background-color: #00000099;
  backdrop-filter: blur(5px);
  border-radius: 5px;
}

.card-round .title {
  font-size: 11px;
  max-width: 100%;
  display: flex;
  justify-content: space-between;
}

.card-round .front .img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.card-round .front .img img{
  max-width: none;
  height: 77%;
}

.career-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.career-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    display: block;
}

.career-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}

.career-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay degradado oscuro en la parte inferior */
.career-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,30,40,0.92) 0%, rgba(0,30,40,0.45) 55%, transparent 100%);
}

/* Badge "Nueva" diagonal */
.career-card-badge {
    position: absolute;
    top: 18px;
    right: -28px;
    background: #e8b800;
    color: #1a1a1a;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 36px;
    transform: rotate(45deg);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Texto inferior */
.career-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1rem 0.9rem;
    color: #fff;
}

.career-card-info .career-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
    margin-bottom: 2px;
}

.career-card-info .career-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #f5c800;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 8px;
}

/* Pills de modalidad */
.career-card-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.career-pill {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.3px;
    backdrop-filter: blur(4px);
}

/* Card oculta por filtro */
.career-card.hidden {
    display: none;
}
/*.career-dropdown-card {
    max-width: 500px;
    width: 500px;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
    /* Añade esto para evitar que afecte el layout * /
    position: relative;
    z-index: 1;
}
.career-dropdown-card:hover {
    border-color: var(--main-color);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.career-dropdown-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, #013b49 0%, #025a6e 100%);
  cursor: pointer;
  user-select: none;
}

.career-dropdown-card:hover .career-dropdown-header {
  background: linear-gradient(135deg, #025a6e 0%, #037593 100%);
}

.career-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  color: white;
  font-size: 1.5rem;
  backdrop-filter: blur(10px);
}

.career-dropdown-header h3 {
  color: white;
}

.career-arrow {
  color: white;
  font-size: 1.25rem;
}

.career-dropdown-card.active .career-arrow {
  transform: rotate(180deg);
}

.career-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.5rem;
}

.career-dropdown-card.active .career-dropdown-content {
  max-height: 500px;
  padding: 1.5rem;
}* /

.career-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
  color: #374151;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  background: #f9fafb;
}

.career-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(3, 59, 73, 0.05), transparent);
  transition: left 0.5s ease;
}

.career-item:hover::before {
  left: 100%;
}

.career-item:hover {
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
  color: #013b49;
  padding-left: 1.5rem;
  transform: translateX(8px);
}

.career-item i {
  width: 2rem;
  font-size: 1.125rem;
  margin-right: 0.75rem;
  color: #013b49;
  transition: all 0.2s ease;
}

.career-item:hover i {
  transform: scale(1.15);
  color: #3b82f6;
}

.career-item:last-child {
  margin-bottom: 0;
}*/

@media (min-width: 1024px) {
  /*.career-dropdown-card:hover:not(.active) {
    border-color: var(--main-color);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
  }
  
  .career-dropdown-card.active .career-dropdown-content,
  .career-dropdown-card:hover .career-dropdown-content {
    max-height: 1000px !important;
    padding: 1.5rem !important;
  }
  
  .career-dropdown-card.active .career-arrow,
  .career-dropdown-card:hover .career-arrow {
    transform: rotate(180deg);
  }*/
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  /*.career-dropdown-card {
    margin-bottom: 1rem;
  }

  .career-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }

  .career-dropdown-header h3 {
    font-size: 1.125rem;
  }*/
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-around;
    margin: 2rem 0;
}

.card {
    overflow: visible;
    width: 190px;
    height: 254px;
}

.content {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 300ms;
    box-shadow: 0px 0px 10px 1px #000000ee;
    border-radius: 5px;
}

.front, .back {
    background-color: var(--main-color);
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 5px;
    overflow: hidden;
}

.back {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.back::before {
    position: absolute;
    content: ' ';
    display: block;
    width: 160px;
    height: 160%;
    background: linear-gradient(90deg, transparent, #ffffff, #ffffff, #ffffff, #ffffff, transparent);
    animation: rotation_481 5000ms infinite linear;
}

.back-content {
    position: absolute;
    width: 99%;
    height: 99%;
    background-color: #151515;
    border-radius: 5px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.card:hover .content {
    transform: rotateY(180deg);
}

@keyframes rotation_481 {
    0% { transform: rotateZ(0deg); }
    100% { transform: rotateZ(360deg); }
}

.front {
    transform: rotateY(180deg);
    color: white;
}

.front-content {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.badge {
    background-color: #00000055;
    padding: 2px 10px;
    border-radius: 10px;
    backdrop-filter: blur(2px);
    width: fit-content;
}

.description {
    box-shadow: 0px 0px 10px 5px #00000088;
    width: 100%;
    padding: 10px;
    background-color: #00000099;
    backdrop-filter: blur(5px);
    border-radius: 5px;
}

.title {
    font-size: 11px;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
}

.front .img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.front .img img{
    max-width: none;
    height: 77%;
}



.section-title {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    color: #013B49;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    max-width: 2xl;
    margin: 0 auto 3rem auto;
}


/*.career-cards-container {
    padding: 2rem;
    margin: 2rem;
}

.carrer-cards-container-flex{
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    justify-content: center;
    align-items: flex-start; 
}

/ *.career-dropdown-card {
    max-width: 600px;
    width: 600px;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
    /* Añade esto * /
    flex-shrink: 0;
    position: relative;
}

.career-dropdown-card.active {
    border-color: var(--main-color);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    /* Aumenta el z-index para que se superponga * /
    z-index: 2;
}

.career-dropdown-header {
    padding: 1.5rem;
    background: var(--main-color);
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.career-dropdown-header:hover {
    background: linear-gradient(135deg, var(--main-color) 0%, #037593 100%);
}

.career-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.career-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    color: white;
    font-size: 1.5rem;
}

.career-dropdown-header h3 {
    color: white;
    margin: 0;
    font-size: 1.25rem;
}

.career-arrow {
    color: white;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.career-dropdown-card.active .career-arrow {
    transform: rotate(180deg);
}

.career-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
}

.career-dropdown-card.active .career-dropdown-content {
    max-height: 1000px;
    padding: 1.5rem;
}* /

.career-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.career-item:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    color: #013b49;
    border-color: var(--main-color);
    transform: translateX(4px);
}

.career-item i {
    width: 2rem;
    font-size: 1.125rem;
    margin-right: 0.75rem;
    color: #013b49;
}

.career-item:hover i {
    color: var(--main-color);
}

.career-item:last-child {
    margin-bottom: 0;
}

@media (max-width: 1040px) {
    .carrer-cards-container-flex{
        gap: 0;
    }
    /*.career-dropdown-card{
        width: 366px;
    }* /

    .card-content{
        padding: 0px;
    }

    .card-round .card{
        width: 180px;
    }

}

@media (max-width: 768px) {

    .carrer-cards-container-flex{
        gap: 0;
    }
    /*.career-dropdown-card{
        width: 366px;
    }* /
    .section-title {
        font-size: 2rem;
    }
    
    /*.career-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }* /
    
    .career-dropdown-header h3 {
        font-size: 1.125rem;
    }
}

/*.career-dropdown-card:not(.active):not(:hover) .career-dropdown-content {
    max-height: 0 !important;
    padding: 0 1.5rem !important;
}

.career-dropdown-card.active {
    z-index: 10;
    position: relative;
}

.career-dropdown-card:not(.active) {
    z-index: 1;
}*/

/* *** Oferta Académica *** */
/*  FILTROS  */
.filters {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
    align-items: center;
}

.filters-group {
    display: flex;
    gap: 0;
    padding: 10px;
    border-radius: 40px;
    background: #f7f7f7;
}
/* ** Botones de nivel (Licenciaturas, Maestrías, Doctorados) ** */
.filtros-btn {
    background: transparent;
    /*border: 1px solid #f7f7f7;*/
    border-radius: 25px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}
#oferta-academica div.filters div:nth-child(2) {
    background: none;
}

.filtros-btn:last-child {
    border-right: none;
}

.filtros-btn.activo {
    font-weight: 700;
    background: var(--main-color);
    color: var(--second-color);
}
.filtros-btn--amarillo.activo {
    font-weight: 700;
    background: none;
    color: var(--main-color);
}

/* *** GRID DE CARDS *** */
.career-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 15rem;
    /*
    align-items: start;
    grid-auto-rows: 1fr;
    */
}
/* *** CAREER CARD *** */
.career-card.hidden-extra,
.career-card.hidden {
    display: none !important;
}

.career-card {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    aspect-ratio: 1 / 1;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.career-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}

.career-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.career-cards-container {
    width: 100%;
    justify-items: center;
}

/* *** Boton ver mas *** */
.ver-mas-container {
    text-align: center;
    margin-top: 32px;
}

.ver-mas-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #555;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.2s;
}

.ver-mas-btn svg {
    width: 40px;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 50%;
    padding: 8px;
    transition: border-color 0.2s, transform 0.3s;
}

.ver-mas-btn:hover {
    color: #0d3b3b;
}

.ver-mas-btn:hover svg {
    border-color: #0d3b3b;
}

.ver-mas-btn.expandido svg {
    transform: rotate(180deg);
}


@media (min-width: 1024px) {
}

@media (max-width: 1023px) {
    .career-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 0 2rem;
    }

    .filtros-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .filters-group {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .career-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 1rem;
    }

    .filters {
        gap: 10px;
        margin-bottom: 24px;
    }

    .filtros-btn {
        padding: 8px 12px;
        font-size: 0.82rem;
    }

    .filters-group {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        width: 90%;
        border-radius: 28px;
    }
    #we-offer-you {
        
    }
}

/* estilos cuando no se muestra oferta academica */
#empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px 20px 60px 20px;
    text-align: center;
    gap: 12px;
}

.empty-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--main-color);
}

.empty-desc {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 320px;
}
#empty-state div i {
    font-size: 2rem;
}


.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--main-color);
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1024px) {
  .video-container {
    margin-bottom: 2rem;
  }
}

@media (max-width: 640px) {
  .video-container {
    border-radius: 1rem;
  }
}


.text-iseu{
    background-color: var(--main-color);
    color: white;
}

.circle-arrow{
    background-color: var(--main-color);
    color: white;
}
.testimonial-carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.testimonial-carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.testimonial-item {
  flex: 0 0 100%; /* Por defecto 100% en móviles */
  padding: 0 1rem;
  box-sizing: border-box;
  min-width: 100%; /* Importante: mantener min-width 100% para móviles */
}

/* Testimonial Navigation */
.testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 50%;
  color: #013b49;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.testimonial-nav:hover {
  background: #013b49;
  color: white;
  border-color: #013b49;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.testimonial-nav-left {
  left: -1rem;
}

.testimonial-nav-right {
  right: -1rem;
}

.testimonial-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dot:hover {
  background: #9ca3af;
  transform: scale(1.2);
}

.testimonial-dot.active {
  background: #013b49;
  width: 2.5rem;
  border-radius: 1rem;
}

/* CORRECCIÓN: Estilos responsivos para desktop */
@media (min-width: 768px) {
  .testimonial-item {
    flex: 0 0 50%; /* Cambiar a 50% en tablets y desktop */
    min-width: 50%; /* IMPORTANTE: también cambiar min-width */
    padding: 0 1.5rem;
  }
  
  .testimonial-nav {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.875rem;
  }

  .testimonial-nav-left {
    left: -0.5rem;
  }

  .testimonial-nav-right {
    right: -0.5rem;
  }
}

@media (min-width: 1024px) {
  .testimonial-item {
    flex: 0 0 50%;
    min-width: 50%;
    padding: 0 2rem;
  }
  
  .testimonial-nav-left {
    left: -1rem;
  }

  .testimonial-nav-right {
    right: -1rem;
  }
}

@keyframes fadeInTestimonial {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.button-test{
    background-color: var(--main-color);
}

/* Estilos para las imágenes dentro del testimonio */
.testimonial-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ajustes para el contenido del testimonio en móviles */
@media (max-width: 767px) {
  .testimonial-item {
    padding: 0 0.5rem;
  }
  
  .testimonial-item .flex-col {
    gap: 1.5rem;
  }
  
  .testimonial-item img {
    width: 280px;
    height: 120px;
  }
  
  .testimonial-item .relative .button-test {
    width: 2.5rem;
    height: 2.5rem;
    bottom: -0.75rem;
    right: -0.75rem;
  }
  
  .testimonial-item .button-test i {
    font-size: 0.875rem;
  }
  
  .testimonial-item p.text-lg {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .testimonial-item h4.text-xl {
    font-size: 1.125rem;
  }
  
  .testimonial-nav {
    display: none; /* Ocultar flechas en móviles muy pequeños */
  }
}

@media (max-width: 640px) {
  .testimonial-nav {
    display: flex; /* Mostrar flechas en móviles normales */
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
  }
  
  .testimonial-nav-left {
    left: 0.25rem;
  }

  .testimonial-nav-right {
    right: 0.25rem;
  }
}

/* Asegurar que el contenedor no tenga overflow horizontal */
#testimonios {
  overflow-x: hidden;
}

/* Mejorar la responsividad de las estadísticas */
@media (max-width: 640px) {
  #testimonios .grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  
  #testimonios .grid > div {
    padding: 1rem 0.5rem;
  }
  
  #testimonios .grid .text-4xl {
    font-size: 1.5rem;
  }
}

/* Ajustar el padding general en móviles */
@media (max-width: 768px) {
  #testimonios {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .testimonial-carousel-container {
    margin: 0 -0.5rem;
  }
}

.gallery-filter {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #374151;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.gallery-filter:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.gallery-filter.active {
  background: linear-gradient(135deg, #013b49 0%, #025a6e 100%);
  color: white;
  border-color: #013b49;
}

/* Gallery Grid - Masonry Style */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: #f3f4f6;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  aspect-ratio: 4 / 3;
}

.gallery-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(1, 59, 73, 0.8) 0%, rgba(2, 92, 114, 0.8) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.15);
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Gallery Overlay */
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-content {
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay-content {
  transform: translateY(0);
}

.gallery-view-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #013b49;
  background: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-view-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  animation: zoomIn 0.4s ease;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10001;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg) scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10001;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

/* Gallery animations */
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.gallery-item.filter-hidden {
  display: none;
}

/* Responsive adjustments for gallery */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
  }

  .gallery-overlay-content h3 {
    font-size: 1.125rem;
  }

  .gallery-overlay-content p {
    font-size: 0.875rem;
  }

  .lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }

  .lightbox-nav {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-filter {
    font-size: 0.875rem;
    padding: 0.625rem 1rem;
  }
}

/* From Uiverse.io by Yaya12085 */ 
.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 350px;
  background-color: #fff;
  padding: 20px;
  border-radius: 20px;
  position: relative;
}

/* .title {
  font-size: 28px;
  color: royalblue;
  font-weight: 600;
  letter-spacing: -1px;
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 30px;
}

.title::before,.title::after {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  border-radius: 50%;
  left: 0px;
  background-color: royalblue;
}

.title::before {
  width: 18px;
  height: 18px;
  background-color: royalblue;
}

.title::after {
  width: 18px;
  height: 18px;
  animation: pulse 1s linear infinite;
} */

/* Animacion "Te ofrecemos" */
.plantel-tab {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    padding: 2px 12px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
}

.plantel-tab.activo {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}



.message, .signin {
  color: rgba(88, 87, 87, 0.822);
  font-size: 14px;
}

.signin {
  text-align: center;
}

.signin a {
  color: royalblue;
}

.signin a:hover {
  text-decoration: underline royalblue;
}

.flex {
  display: flex;
  width: 100%;
  gap: 6px;
}

.form label {
  position: relative;
}

.form label .input {
  width: 100%;
  padding: 10px 10px 20px 10px;
  outline: 0;
  border: 1px solid rgba(105, 105, 105, 0.397);
  border-radius: 10px;
}

.form label .input + span {
  position: absolute;
  left: 10px;
  top: 15px;
  color: grey;
  font-size: 0.9em;
  cursor: text;
  transition: 0.3s ease;
}

.form label .input:placeholder-shown + span {
  top: 15px;
  font-size: 0.9em;
}

.form label .input:focus + span,.form label .input:valid + span {
  top: 30px;
  font-size: 0.7em;
  font-weight: 600;
}

.form label .input:valid + span {
  color: green;
}

.submit {
  border: none;
  outline: none;
  background-color: royalblue;
  padding: 10px;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  transform: .3s ease;
}

.submit:hover {
  background-color: rgb(56, 90, 194);
}

@keyframes pulse {
  from {
    transform: scale(0.9);
    opacity: 1;
  }

  to {
    transform: scale(1.8);
    opacity: 0;
  }
}

#contacto{
    background: linear-gradient(179deg, rgb(255, 255, 255) 0%, rgba(158, 188, 197, 1) 100%);
}

/* Debug CSS - Verificar que el dropdown funciona */
.dropdown-container {
  position: relative !important;
}

.dropdown-menu {
  position: absolute !important;
  top: calc(100% + 0.5rem) !important;
  left: 0 !important;
  min-width: 14rem !important;
  background: white !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid #e5e7eb !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-10px) !important;
  transition: all 0.2s ease !important;
  z-index: 50 !important;
  padding: 0.5rem !important;
}

.dropdown-container:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* Forzar visibilidad para testing */
.dropdown-menu {
  display: block !important;
}

/* Asegurar que los items tengan el estilo correcto */
.dropdown-item {
  display: flex !important;
  align-items: center !important;
  padding: 0.625rem 0.875rem !important;
  font-size: 0.9375rem !important;
  color: #374151 !important;
  border-radius: 0.5rem !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.dropdown-item:hover {
  background-color: #f3f4f6 !important;
  color: var(--main-color) !important;
}

.dropdown-item i {
  font-size: 0.875rem !important;
  width: 1.25rem !important;
  color: #6b7280 !important;
}

/* Sección "Sobre nosotros" */
#section-about-us {
    background: rgb(1, 76, 93, 0.1);
    border: 1px solid #025366;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.checkbox-grid-about-us {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

#other-field {
    margin-top: 10px;
    display: none;    
}

