@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

.telefono-boton {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
  }
  
  .telefono-boton:hover {
    background-color: #45a049;
  }



.low-dense{
    visibility: hidden;
}

:root {
    --primary: #017a6c;
    --secondary: #059669;
    --accent: #065f46;
    --light: #f0fdfa;
    --dark: #064e3b;
}

body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

.hero-pattern {
    background-color: var(--light);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23017a6c' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--secondary);
    margin: 15px auto 0;
}

.program-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(1, 122, 108, 0.2);
}

.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(1, 122, 108, 0.3);
}

.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scroll-top.visible {
    opacity: 1;
}

/* Carrusel */
.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 60vh;
    min-height: 500px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 400%;
    height: 100%;
}

.imagen-moderna {
    width: 100%;
    max-width: 277px;
    /* puedes ajustar el tamaño */
    height: auto;
    border-radius: 20px;
    /* esquinas redondeadas */
    border: 2px solid #017a6c;
    /* borde gris claro */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    /* sombra suave */
    filter: brightness(1.05) contrast(1.05) saturate(1.2);
    /* filtro moderno */
    transition: all 0.3s ease-in-out;
    /* animación al pasar el mouse */
}

.imagen-moderna:hover {
    filter: brightness(1.1) contrast(1.1) saturate(1.3);
    /* efecto en hover */
    transform: scale(1.02);
    /* ligera ampliación */
}

.imagen-moderna2 {
    width: 100%;
    max-width: 100%;
    /* puedes ajustar el tamaño */
    height: auto;
    border-radius: 10px;
    /* esquinas redondeadas */
  
    /* borde gris claro */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    /* sombra suave */
    filter: brightness(1.05) contrast(1.05) saturate(1.2);
    /* filtro moderno */
    transition: all 0.3s ease-in-out;
    /* animación al pasar el mouse */
}



.imgHero {
    max-width: 277px;
}

.carousel-img {}

.carousel-slide {
    min-width: 25%;
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 20px; */
}

.carousel-content {
    position: relative;
    text-align: center;
    max-width: 100%;
    width: 100%;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;

    }
}

.carousel-title {
    font-size: clamp(1rem, 4vw, 3rem);
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
    position: absolute;
    /* top: 10px; */
    /* Ajusta la distancia desde la parte superior */
    /* left: 10px; */
    position-area: center;
    padding: 100px;
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background-color: rgba(0, 0, 0, 0.4); /* fondo negro con 40% de opacidad */
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    /* font-size: 1.5rem; */
    text-align: center;
}

.carousel-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    position: absolute;
    position-area: center;
    padding: 100px;
    top: 40px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(1, 122, 108, 0.8);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(1, 122, 108, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: 30px;
}

.carousel-btn-next {
    right: 30px;
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.carousel-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator:hover {
    transform: scale(1.2);
}

.carousel-indicator.active {
    background-color: white;
    transform: scale(1.3);
}

/* Gradientes mejorados */
.slide-1 {
    background: linear-gradient(135deg, #017a6c, #059669);
}

.slide-2 {
    background: linear-gradient(135deg, #10B981, #059669);
}

.slide-3 {
    background: linear-gradient(135deg, #8B5CF6, #017a6c);
}

.slide-4 {
    background: linear-gradient(135deg, #065f46, #F59E0B);
}

/* Logo Animation */
.logo-bounce {
    animation: gentleBounce 3s ease-in-out infinite;
}

/* Mobile Menu Animations */
.mobile-menu-open .mobile-menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open .mobile-menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .mobile-menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu-show {
    display: block !important;
}

.mobile-menu-panel-show {
    transform: translateX(0) !important;
}

@keyframes gentleBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }

    60% {
        transform: translateY(-4px);
    }
}

.logo-bounce:hover {
    animation-play-state: paused;
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-container {
        height: 60vh;
        min-height: 450px;
    }

    .carousel-slide {
        padding: 15px;
    }

    .carousel-content {
        max-width: 95%;
    }

    .carousel-title {
        margin-bottom: 0.75rem;
    }

    .carousel-btn {
        width: 50px;
        height: 50px;
    }

    .carousel-btn svg {
        width: 24px;
        height: 24px;
    }

    .carousel-indicator {
        width: 12px;
        height: 12px;
    }

    .carousel-btn-prev {
        left: 15px;
    }

    .carousel-btn-next {
        right: 15px;
    }

    .carousel-indicators {
        bottom: 20px;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 55vh;
        min-height: 400px;
    }

    .carousel-slide {
        padding: 10px;
    }

    .carousel-content {
        max-width: 98%;
    }

    .carousel-btn-prev {
        left: 10px;
    }

    .carousel-btn-next {
        right: 10px;
    }

    .carousel-indicators {
        bottom: 15px;
        gap: 10px;
    }
}