*, *::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;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
}

.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;
    width: fit-content;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--teal);
    border-radius: 50%;
}

.hero-content h1 {
    font-family: 'Exo 2', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.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: 560px;
    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;
}

.contacto-container { 
    padding: 4rem 2rem; 
}

.contacto-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
}

.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: 1rem;
    font-weight: 600;
    color: var(--blue-deep);
}

.dato-contacto {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.dato-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(0, 150, 199, 0.12);
    color: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dato-contacto strong {
    display: block;
    font-family: 'Inter', sans-serif;
    color: var(--blue-deep);
    margin-bottom: 0.2rem;
}

.dato-contacto p {
    font-family: 'Inter', sans-serif;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.form-contacto {
    background: var(--gray-100);
    border-radius: 20px;
    padding: 2.5rem;
}

.form-contacto h2 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.75rem;
    color: var(--blue-deep);
    margin-bottom: 0.5rem;
}

.form-contacto > p {
    font-family: 'Inter', sans-serif;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

#formContacto {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-family: 'Inter', sans-serif;
}

#formContacto label {
    font-weight: 600;
    color: #023E8A;
    margin-bottom: -0.5rem;
}

#formContacto input,
#formContacto textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d4d4d4;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
    transition: .3s;
}

#formContacto input:focus,
#formContacto textarea:focus {
    border-color: var(--blue-deep);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, .15);
}

#formContacto textarea {
    resize: vertical;
    min-height: 120px;
}

#formContacto button {
    margin-top: 0.5rem;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--blue-deep), var(--blue-light));
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

#formContacto button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 119, 182, .3);
}

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;
}

::-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 (max-width: 1024px) {
    .contacto-grid {
        grid-template-columns: 1fr;
    }

    .form-contacto { 
        padding: 2rem; 
    }

    .footer-pages a:hover {
        color: var(--teal);
    }

    .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: 3rem 1rem; 
    }
    
    .hero-content h1 { 
        font-size: 2rem; 
    }
    
    .hero-sub { 
        font-size: 1rem; 
    }

    .contacto-container { 
        padding: 2.5rem 1.25rem; 
    }

    .form-contacto { 
        padding: 1.5rem; 
    }
    
    .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;
    }
}