*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue-deep:  #0B1F3A;   
    --blue-mid:   #1E3A5F;   
    --blue-light: #3B5F8A;  
    --teal:       #4B6584;  
    --sky:        #CBD5E1;  

    --white:      #FFFFFF;

    --gray-50:    #F8FAFC;
    --gray-100:   #F1F5F9;
    --gray-200:   #E2E8F0;
    --gray-400:   #94A3B8;
    --gray-600:   #475569;
    --gray-800:   #1E293B;

    --green:      #15803D;
    --purple:     #6D28D9;
    --orange:     #C2410C;
}

header {
    position: sticky;
    z-index: 1000;
    top: 0;
    background: var(--blue-deep);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);

}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
    padding: 0 2rem;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 24px;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    text-decoration: none;
}

.logo-mark {
    display: flex;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.925rem;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

#nav-icon3 {
    display: none;
    width: 28px;
    height: 20px;
    position: relative;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
}

#nav-icon3 span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    position: absolute;
    transition: 0.25s ease-in-out;
}

#nav-icon3 span:nth-child(1) { top: 0; }
#nav-icon3 span:nth-child(2), #nav-icon3 span:nth-child(3) { top: 9px; }
#nav-icon3 span:nth-child(4) { top: 18px; }

#nav-icon3.open span:nth-child(1) { top: 9px; width: 0; left: 50%; }
#nav-icon3.open span:nth-child(2) { transform: rotate(45deg); }
#nav-icon3.open span:nth-child(3) { transform: rotate(-45deg); }
#nav-icon3.open span:nth-child(4) { top: 9px; width: 0; left: 50%; }

.hero {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    background: var(--blue-deep);
}


.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-inner {
    position: relative;
    max-width: 1280px;
    padding: 4rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin: 0 auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--sky);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 1.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--teal);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-content h1 {
    font-family: 'Exo 2', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.08;
    margin-bottom: 1.25rem;
}

.hero-content h1 em {
    font-style: normal;
    background: linear-gradient(90deg, var(--teal), var(--sky));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    color: rgba(255,255,255,0.7);
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    max-width: 540px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

@keyframes entrace {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero .eyebrow {
    animation: entrace 0.7s ease-out both;
}

.hero h1 {
  animation: entrace 0.7s ease-out both;
  animation-delay: 0.15s;
}

.hero .hero-sub {
  animation: entrace 0.7s ease-out both;
  animation-delay: 0.3s;
}

.historia { 
    padding: 4rem 2rem; 
}
 
.container-historia {
    max-width: 1280px;
    margin: 0 auto;
}
 
.badge {
    font-family: 'Inter', sans-serif;
    display: inline-block;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    background: rgba(90, 181, 224, 0.3);
    font-size: 1.1rem;
    font-weight: 600;
    color: #023E8A;
}
 
.info-historia {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4rem;
}
 
.texto-historia {
    flex: 1 1 420px;
    max-width: 560px;
    color: rgba(0, 0, 0, 0.7);
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    line-height: 1.75;
}
 
.texto-historia h1 {
    font-size: 2.5rem;
    font-family: 'Exo 2', sans-serif;
    font-weight: 800;
    color: var(--blue-deep);
    margin-bottom: 1.25rem;
}
 
.texto-historia p { 
    margin-bottom: 1rem; 
    text-align: justify;
}
 
.img-historia {
    flex: 1 1 320px;
    max-width: 500px;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
}
 
.img-historia img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}
 
.mision-vision { 
    padding: 4rem 2rem; 
    background: var(--gray-100); 
}
 
.mv-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
 
.mv-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.25rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}
 
.mv-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(0, 150, 199, 0.12);
    color: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
 
.mv-card h3 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.5rem;
    color: var(--blue-deep);
    margin-bottom: 0.75rem;
}
 
.mv-card p {
    font-family: 'Inter', sans-serif;
    color: var(--gray-600);
    line-height: 1.7;
    text-align: justify;
}

.Proyects-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    margin-bottom: 2rem;
}

.main-container {
    width: min(1280px, 100%);
}

.info-title-proyect {
    text-align: center;
    font-family: 'Inter', sans-serif;
    max-width: 760px;
    margin: 0 auto 2.5rem;
}

.info-title-proyect h1 {
    font-family: 'Exo 2', sans-serif;
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 800;
    color: var(--blue-deep);
    margin-bottom: 0.75rem;
}

.info-title-proyect p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-600);
}

.proyectos-carrusel {
    padding: 0 44px;
    position: relative;
}

.carrusel-arrow svg {
    width: 20px;
    height: 20px;
}

.proyectos-carrusel .swiper-button-prev,
.proyectos-carrusel .swiper-button-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    top: 50%;
    margin-top: -20px;
}


.proyectos-carrusel .swiper-button-prev {
    left: 0;
}

.proyectos-carrusel .swiper-button-next {
    right: 0;
}

.proyectos-carrusel .swiper-button-prev::after,
.proyectos-carrusel .swiper-button-next::after {
    font-size: 16px;
    color: var(--blue-deep);
    font-weight: 700;
}

.card-proyect {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    padding: 1.75rem 1.5rem 1.5rem;
    transition: all 0.3s ease;
    scroll-snap-align: start;
}

.icon-proyect {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(0, 150, 199, 0.12);
    color: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.card-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--blue-deep);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    white-space: nowrap;
}

.info-proyect h3 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.15rem;
    color: var(--blue-deep);
    margin-bottom: 0.6rem;
}

.info-proyect p {
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.65;
}

.valores-container { 
    padding: 4rem 2rem; 
    background: var(--gray-200);
}

.badge-container-valores,
.title-container-valores {
    display: flex;
    justify-content: center;
    text-align: center;
}
 
.badge_v3 {
    font-family: 'Inter', sans-serif;
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    background: rgba(90, 181, 224, 0.3);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--blue-mid);
}
 
.info-title-valores h1 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--blue-deep);
}
 
.info-title-valores p {
    font-family: 'Inter', sans-serif;
    color: rgba(0, 0, 0, 0.7);
    font-size: 1.1rem;
    margin-top: 15px;
}
 
.card-container {
    margin-top: 3rem;
}
 
.card-container-valores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
 
.card-valor {
    background: #ffffff;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}
 
.icon-valor {
    width: 56px;
    height: 56px;
    background: #DBEAFE;
    color: #2563EB;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
 
.card-valor h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1f2937;
}
 
.card-valor p {
    font-family: 'Inter', sans-serif;
    color: var(--gray-600);
    line-height: 1.7;
}

.gallery{
    padding: 4rem 2rem  ;
}

.container-gallery {
    width: min(1200px, 90%);
    margin: 0 auto; 
}

.title-gallery {
    text-align: center;
}

.title-gallery h1 {
    font-family: 'Exo 2', sans-serif;
    font-size: 2.5rem;
    color: var(--blue-deep);
    font-weight: 800;
}

.title-gallery p {
    font-family: 'Inter', sans-serif;
    color:var(--gray-600);
    font-size: 1.1rem;
    margin-top: 15px;
}

.gallery-grid{
    margin-top:60px;
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap:20px;
}

.gallery-grid img{
    width:100%;
    height:280px;
    object-fit:cover;
    border-radius:18px;
    transition: transform 0.3s ease;
}

footer {
    background-color: var(--blue-deep);
    color: var(--white);
}

.footer-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3.5rem 2rem 2.5rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 80px;
    height: auto;
}

.footer-logo span {
    font-family: 'Exo 2', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.65);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 340px;
}

.footer-brand,
.footer-col {
    border-right: 1px solid var(--teal);
}

.footer-col h4 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.2rem;
}

.footer-pages {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-contacto-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-pages a {
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.3s ease;
}

.footer-contacto-list li {
    display: flex;
    gap: 1rem;
}

.footer-contacto-list svg {
    width: 16px;
    height: 16px;
    color: var(--teal);
    flex-shrink: 0;
}

.footer-contacto-list p {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.45);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
}

.footer-contacto {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--blue-mid);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--blue-deep);
}

@media (hover: hover) {
    .card-valor:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 30px rgba(0, 0, 0, 0.1);
    }

    .card-proyect:hover {
        transform: scale(1.05);
    }

    .gallery-grid img:hover{
        transform:scale(1.04);
    }

    .footer-pages a:hover {
        color: var(--teal);
    }
}

@media (max-width: 1024px) {
    .historia,
    .mision-vision,
    .valores-container {
        padding: 3rem 1.5rem;
    }

    .info-historia {
        gap: 2.5rem;
    }

    .texto-historia h1 {
        font-size: 2.1rem;
    }

    .info-title-valores h1 {
        font-size: 2.1rem;
    }

    .hero-content h1 {
        font-size: 2.75rem;
    }

    .title-gallery h1 {
        font-size: 2.1rem   ;
    }

    .footer-brand,
    .footer-col {
        border-right: 0px;
    }

}

@media (max-width: 768px) {
    @keyframes entrace {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .hero .eyebrow {
        animation: entrace 0.5s ease-out both;
    }

    .hero h1 {
        animation: entrace 0.5s ease-out both;
        animation-delay: 0.15s;
    }

    .hero .hero-sub {
        animation: entrace 0.5s ease-out both;
        animation-delay: 0.3s;
    }

    .nav-links {
        margin-right: 0px;
        position: fixed;
        top: 68px;
        right: -250px;
        width: 180px;
        background: var(--blue-deep);
        flex-direction: column;
        gap: 0;
        border-radius: 0 0 0 8px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        z-index: 9999;
        transition: right 0.3s ease;
    }

    .nav-links.active {
        display: flex;
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 15px;
        border-radius: 0;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(255, 255, 255, 0.1);
    }

    .nav-links li:not(:last-child) a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    #nav-icon3 {
        display: block;
    }

    .hero-inner{
        padding:2rem 1rem;
    }

    .hero-content h1{
        font-size:2rem;
        line-height:1.2;
    }

    .hero-sub{
        font-size:1rem;
    }

    .historia,
    .mision-vision,
    .valores-container {
        padding: 2.5rem 1.25rem;
    }

    .texto-historia {
        text-align: left;
        font-size: 1rem;
    }

    .texto-historia h1 {
        font-size: 1.85rem;
    }

    .info-title-valores h1 {
        font-size: 1.85rem;
    }

    .title-gallery h1 {
        font-size: 1.85rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 2.5rem 1.5rem 2rem;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-tagline {
        max-width: 100%;
        margin: 0 auto;
    }

    .footer-pages,
    .footer-contacto-list {
        align-items: center;
    }
}