* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animaciones para scroll */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    60% {
        opacity: 1;
        transform: translateY(-5px) scale(1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mejora de scroll para secciones */
section {
    scroll-margin-top: 80px;
}

/* Navbar */
.navbar {
    display: grid;
    grid-template-columns: 200px 1fr;
    align-items: center;
    padding: 1rem 5%;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 1000;
}
/* Botón hamburguesa (escondido en desktop) */
.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    user-select: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    color: #00BCD4;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: #00BCD4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.nav-menu {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #00BCD4;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #00BCD4;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 4rem 5%;
    align-items: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8f5f7 100%);
}

.hero-image {
     width: 100%;
    /*height: 550%;*/
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-image img {
    width: 100%;
    max-width: 800px;   
    object-fit: cover;
    border-radius: 10px;
    
}

.hero-content {
    text-align: center;
}

.hero-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-logo-icon {
    width: 40px;
    height: 40px;
    background: #00BCD4;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    color: #00BCD4;
    margin-bottom: 2rem;
}

.btn-primary {
    background: #00BCD4;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: #0097A7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,188,212,0.3);
}

.btn-primary:active {
    transform: translateY(0);
}


/* Misión y Visión */
/*imagen degradado de fondo*/
.mission-vision {
    display: grid;
    min-height: 500px;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 4rem 5%;
    background-image: url('./imagenes/degradado.jpeg');
    background-repeat: no-repeat;
    background-position: left center; 
    background-size: cover; 
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 4rem 5%;
    align-items: start;
   /* background: white;*/
    
}

.mission-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: url('./assets/quienes-somos.png') center/cover no-repeat;
    border-radius: 10px;
}

.mission-content {
    display: grid;
    grid-template-rows: auto auto;
    gap: 3rem;
}

.mision-content {
    display: flex;
    align-items: start;
}

.card {
    background: #f9f9f9;
    padding: 2.5rem;
    border-radius: 10px;
    border-left: 4px solid #00BCD4;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}

.card-icon {
    color: #00BCD4;
    font-size: 2rem;
    margin-bottom: 1rem;
    margin: 0;
}

.card-icon img {
    width: 40px;   
    height: 40px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem; 
    margin-bottom: 1.5rem;
}

.card h3 {
    color: #00BCD4;
    font-size: 1.5rem;
    margin-bottom: 0;
    margin-top: 0;
}

.card p {
    color: #666;
    line-height: 1.9;
    margin-bottom: 1rem;
    text-align: justify;
}

.card ol {
    color: #666;
    line-height: 2;
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.card ol li {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    text-align: justify;
}

.card ol li:last-child {
    margin-bottom: 0;
}

/* Card de Quiénes Somos */
.quienes-somos-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2.5rem;
    height: fit-content;
}

.quienes-somos-card .quienes-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.quienes-somos-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.quienes-somos-card p {
    text-align: justify;
    max-width: 100%;
    margin-bottom: 0;
}

/* Servicios Section */
.servicios {
    padding: 4rem 5%;
    background: linear-gradient(135deg, #e8f5f7 0%, #f5f5f5 100%);
}

.servicios h2 {
    font-size: 2rem;
    color: #00838F;
    margin-bottom: 2rem;
}

.servicios-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: space-between;
}

.tab-btn, .solicitude-btn{
    padding: 0.5rem 1.5rem;
    border: 2px solid #00BCD4;
    background: white;
    color: #00BCD4;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.tab-btn.active,
.tab-btn:hover, .solicitude-btn:hover {
    background: #00BCD4;
    color: white;
}

.solicitude-btn{
    background: #00BCD4;
    color: white;
    border: none;
    border-radius: 5px;
    width: 262px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.solicitude-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.solicitude-btn:hover::before {
    width: 300px;
    height: 300px;
}

.solicitude-btn:hover {
    background: #0097A7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,188,212,0.4);
}

.solicitude-btn:active {
    transform: translateY(0);
}

.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel {
    display: flex; /* Cambiar de grid a flex */
    gap: 1.5rem;
    transition: transform 0.5s ease;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0; /* Evita que las cards se compriman */
    max-width: 300px;
    min-height: 198px;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 12px 28px rgba(0,188,212,0.2);
}

.service-card h4 {
    color: #00BCD4;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.service-card p {
    color: #666;
    font-size: 0.9rem;
}

.carousel-nav {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.carousel-btn:hover {
    background: #0097A7;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0,188,212,0.4);
}

.carousel-btn:active {
    transform: scale(1.05);
}

/* Noticias Section */
.noticias {
    padding: 4rem 5%;
    background: white;
    display: none;
}

.noticias h2 {
    font-size: 2rem;
    color: #00838F;
    margin-bottom: 2rem;
}

.noticias-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.noticia-card {
    background: white;
    border-radius: 10px;
    width: 317px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.noticia-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.noticia-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
}
.noticia-image img {
    width: 276pxs;
    height: auto;
    display: block;
}

.noticia-image::before {
    position: absolute;
    top: 20px;
    font-size: 1.2rem;
    font-style: italic;
    color: #FFD700;
}

.noticia-content {
    padding: 1.5rem;
}

.noticia-content h4 {
    color: #00BCD4;
    margin-bottom: 0.5rem;
}

.noticia-content p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.noticia-link {
    color: #00BCD4;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}
/* === Noticias Carousel === */
.noticias-carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.noticias-carousel {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease;
}

.noticia-card {
    flex-shrink: 0;
    width: 317px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Navegación del carrusel de noticias */
.noticias-carousel-nav {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}



.bottom-container{
    display: flex;
    justify-content: space-between;
}


/* Ubicación Section */
.ubicacion {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    padding: 4rem 5%;
    background: #f5f5f5;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.ubicacion h2{
     font-size: 2m;
    color: #00838F;
    margin-bottom: 2rem;
}

.ubicacion-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ubicacion-info h2 {
    color: #00838F;
    font-size: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ubicacion-icon {
    color: #00BCD4;
    font-size: 2rem;
}

.ubicacion-info p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}


hr{
    background: #1BB6D2;
    height: 2px;
    border: none;
}

/* Contacto Section */
.contacto {
    padding: 4rem 5%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8f5f7 100%);
}

.contacto h2 {
    font-size: 2.5rem;
    color: #00838F;
    text-align: center;
    margin-bottom: 3rem;
}

.contacto-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contacto-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.contacto-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,188,212,0.2);
}

.contacto-icon {
    color: #00BCD4;
    flex-shrink: 0;
}

.contacto-info h3 {
    color: #00838F;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.contacto-info a {
    color: #666;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.contacto-info a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #00BCD4;
    transition: width 0.3s ease;
}

.contacto-info a:hover::after {
    width: 100%;
}

.contacto-info a:hover {
    color: #00BCD4;
    transform: translateX(3px);
}

/* Footer */
footer {
    background: none;
    color: #1BB6D2;
    text-align: center;
    padding: 2rem 5%;
}
.footer-container{
     display: flex;
    justify-content: space-between;
}
.socials{
    display: flex;
    gap: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero,
    .mission-vision,
    .ubicacion {
        grid-template-columns: 1fr;
    }

    .noticias-grid {
        grid-template-columns: 1fr;
    }

    .carousel {
        grid-template-columns: 1fr;
    }

      /* Navbar ahora tiene 2 filas */
    .navbar {
        grid-template-columns: 1fr auto;
    }

    /* Mostrar hamburguesa */
    .hamburger {
        display: block;
        text-align: right;
    }

    /* Menú oculto por defecto */
    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
        align-items: center;
        box-shadow: 0 3px 15px rgba(0,0,0,0.15);
        display: none;
    }

    /* Mostrar menú cuando active */
    .nav-menu.active {
        display: flex;
    }
}

/*Para movil hasta mision y vision*/
@media (max-width: 768px) {

    .hero {
        grid-template-columns: 1fr !important;
        padding: 2rem 1rem;
        gap: 1.5rem;
        grid-auto-rows: auto;
    }
    .hero-image img {
        max-width: 350px;
        width: 100%;
        border-radius: 10px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .subtitle {
        font-size: 1.3rem;
    }

    .btn-primary {
        width: 90%;
        padding: 1rem;
        font-size: 1.1rem;
    }
    .navbar {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1rem;
    }

    .nav-menu {
        justify-content: center;
        gap: 1rem;
        font-size: 0.9rem;
    }

    .mission-vision {
        grid-template-columns: 1fr !important;
        background-position: center;
        background-size: cover;
    }

    .mission-image {
        max-width: 100%;
        width: 100%;
        background-size: cover;
    }

    .card {

        padding: 1rem;
        border-left-width: 3px;
    }
     body, html {
        overflow-x: hidden;
    }

    img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

    .contacto-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contacto h2 {
        font-size: 2rem;
    }

    .contacto-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 2rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .contacto-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contacto-item:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
}
