/* ========================================
   RESET
======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
    color: var(--text);
    background: #0878D1;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select,
textarea {
    font-family: inherit;
}


/* ========================================
   VARIABLES — FIGMA
======================================== */

:root {
    /* Tipografía compartida: modificar estos valores actualiza las tres páginas */
    --type-hero-size: clamp(3.5rem, 4vw, 4.5rem);
    --type-hero-line-height: var(--type-hero-line-height);
    --type-section-title-size: clamp(2.25rem, 2.4vw, 2.625rem);
    --type-section-title-line-height: 1.19;
    --type-section-label-size: 0.875rem;
    --type-section-label-line-height: 1.25rem;
    --type-body-size: 1rem;
    --type-body-line-height: 1.5rem;
    --type-card-title-size: 1.5rem;
    --type-card-title-line-height: 2rem;


    /* Brand */
    --primary: #0878D1;
    --dark: #082754;
    --whatsapp: #25D366;

    /* Neutral */
    --white: #FFFFFF;
    --light: #F3F8FC;
    --text: #536273;
    --border: #D9E2EA;

    /* Layout */
    --container: 1160px;
}


/* ========================================
   CONTENEDOR
======================================== */

.container {
    width: min(var(--container), calc(100% - 80px));
    margin: 0 auto;
}


/* ========================================
   HEADER
======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 80px;

    z-index: 100;

    background: transparent;

    transition:
        background 0.3s ease,
        box-shadow 0.3s ease,
        backdrop-filter 0.3s ease;
}

.header.scrolled {
    background: rgba(8, 120, 209, 0.96);

    box-shadow: 0 4px 15px rgba(11, 42, 74, 0.15);

    backdrop-filter: blur(8px);
}

.header-container {
    position: relative;

    width: min(100% - 80px, 1400px);
    height: 100%;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* LOGO */

.logo {
    display: flex;
    align-items: center;

    width: 170px;
}

.logo img {
    width: 100%;
    height: auto;
}


/* NAVEGACIÓN */

.nav {
    position: absolute;

    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;

    gap: 2.375rem;
}

.nav a {
    position: relative;

    color: var(--white);

    font-size: 1rem;
    line-height: 1.25rem;

    font-weight: 500;

    transition: opacity 0.3s ease;
}

.nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -0.4375rem;

    width: 0;
    height: 1px;

    background: var(--white);

    transition: width 0.3s ease;
}

.nav a:hover {
    opacity: 0.85;
}

.nav a:hover::after {
    width: 100%;
}


/* BOTÓN HEADER */

.btn-header {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 9.6875rem;
    height: 2.375rem;

    padding: 0 1.375rem;

    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 1.25rem;

    color: var(--white);

    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);

    font-size: 0.75rem;
    line-height: 1.25rem;

    font-weight: 600;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.btn-header:hover {
    background: var(--white);
    color: var(--primary);
}


/* ========================================
   MENÚ MÓVIL
======================================== */

.menu-toggle {
    display: none;

    width: 2.5rem;
    height: 2.5rem;

    border: 0;
    background: transparent;

    cursor: pointer;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 0.3125rem;
}

.menu-toggle span {
    display: block;

    width: 1.4375rem;
    height: 2px;

    background: var(--white);

    border-radius: 2px;
}


/* ========================================
   HERO
======================================== */

.hero {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;

    background-image: url("img/hero.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    overflow: hidden;
}


/* ========================================
   CONTENIDO HERO
======================================== */

.hero-content {
    position: relative;
    z-index: 2;

    width: min(var(--container), calc(100% - 80px));

    margin: 0 auto;

    padding-top: 2.5rem;
}


/* EYEBROW */

.eyebrow {
    margin-bottom: 0.875rem;

    color: var(--white);

    font-size: 0.875rem;
    line-height: 1.25rem;

    font-weight: 700;

    letter-spacing: 0.25rem;
}


/* TÍTULO */

.hero h1 {
    width: 56rem;
    max-width: 100%;

    color: var(--white);

    font-size: var(--type-hero-size);
    line-height: 1.05;

    font-weight: 700;

    letter-spacing: -0.09375rem;

    margin-bottom: 1.25rem;

    text-shadow:
        0 2px 4px rgba(11, 42, 74, 0.45),
        0 4px 12px rgba(11, 42, 74, 0.25);
}


/* SEGUNDA LÍNEA DEL TÍTULO */

.hero h1 span {
    color: #8FD3FF;
}


/* TEXTO */

.hero-text {
    max-width: 35rem;
    margin-bottom: 0;

    color: var(--white);

    font-size: 1.15rem;
    line-height: 1.65rem;

    font-weight: 600;

    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.65),
        0 4px 10px rgba(0, 0, 0, 0.35);
}


/* ========================================
   BOTONES HERO
======================================== */

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 0.9375rem;
    margin-top: 1.875rem;
    position: relative;
}


/* ========================================
   BOTONES
======================================== */

.hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 18rem;
    min-width: 18rem;
    max-width: 18rem;

    height: 3rem;
    min-height: 3rem;
    max-height: 3rem;

    padding: 0 1rem;

    border-radius: 1.5625rem;

    font-size: 0.9375rem;
    line-height: 1.25rem;

    font-weight: 600;

    white-space: nowrap;
    flex: 0 0 18rem;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        background-color 0.35s ease,
        border-color 0.35s ease,
        color 0.35s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
}


/* BOTÓN PRINCIPAL */

.hero-buttons .btn-primary {
    background: rgba(8, 120, 209, 0.55);

    border: 1px solid var(--primary);

    color: var(--white);

    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);

    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.25),
        0 4px 12px rgba(11, 42, 74, 0.15);
}

.hero-buttons .btn-primary:hover {
    background: var(--white);
    border-color: var(--primary);
    color: var(--primary);

    box-shadow:
        0 6px 18px rgba(11, 42, 74, 0.25);

    transform: translateY(-2px);
}


/* BOTÓN WHATSAPP */

.hero-buttons .btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 0.6rem;

    background: rgba(8, 120, 209, 0.55);

    border: 1px solid var(--primary);

    color: var(--white);

    white-space: nowrap;

    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);

    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.25),
        0 4px 12px rgba(11, 42, 74, 0.15);
}

.hero-buttons .btn-whatsapp img {
    width: 1.8rem;
    height: 1.8rem;

    flex-shrink: 0;

    filter: brightness(0) invert(1);
}

.hero-buttons .btn-whatsapp:hover {
    background: var(--white);
    border-color: var(--whatsapp);
    color: var(--whatsapp);

    box-shadow:
        0 6px 18px rgba(11, 42, 74, 0.25);

    transform: translateY(-2px);
}

.hero-buttons .btn-whatsapp:hover img {
    filter: brightness(0) saturate(100%) invert(67%) sepia(61%) saturate(565%) hue-rotate(94deg) brightness(91%) contrast(90%);
}

/* ========================================
   SECCIONES
======================================== */

section {
    position: relative;
}

section:not(.hero) {
    padding: 10rem 0;
}


/* ETIQUETAS */

.section-label {
    margin-bottom: 0.625rem;

    color: var(--primary);

    font-size: var(--type-section-label-size);
    line-height: var(--type-section-label-line-height);

    font-weight: 700;

    letter-spacing: 0.1875rem;
}


/* TÍTULOS */

section h2 {
    color: var(--dark);

    font-size: var(--type-section-title-size);
    line-height: var(--type-section-title-line-height);

    font-weight: 700;

    letter-spacing: -0.05rem;
}


/* ========================================
   NOSOTROS
======================================== */

.about {
    background: var(--white);
}

.about-container {
    display: grid;

    grid-template-columns: 1fr 1.15fr;

    gap: 5rem;

    align-items: center;
}

.about-text h2 {
    margin-bottom: 1.5625rem;
}

.about-text>p:not(.section-label) {
    max-width: 34.375rem;

    margin-bottom: 0.9375rem;

    color: var(--text);

    font-size: 1rem;
    line-height: 1.5rem;
}


/* CARACTERÍSTICAS */

.about-features {
    display: grid;

    grid-template-columns: repeat(3, 1fr);
}

.feature {
    min-height: 13rem;

    padding: 0.625rem 2rem;

    border-left: 1px solid var(--border);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    text-align: center;
}

.feature:first-child {
    border-left: 0;
}

.feature-icon {
    width: 5.625rem;
    height: 5.625rem;

    margin-bottom: 1rem;
}

.feature strong {
    color: var(--dark);

    font-size: var(--type-card-title-size);
    line-height: var(--type-card-title-line-height);

    font-weight: 700;

    margin-bottom: 0.3125rem;
}

.feature span {
    color: var(--text);

    font-size: 0.9375rem;
    line-height: 1.25rem;
}


/* ========================================
   SERVICIOS
======================================== */

.services {
    background: var(--light);
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    margin-bottom: 0;
}


/* GRILLA */

.services-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(20rem, 1fr));

    gap: 1.25rem;
}


/* TARJETA */

.service-card {
    background: var(--white);

    border-radius: 0.25rem;

    overflow: hidden;

    box-shadow:
        0 0.5rem 1.5rem rgba(11, 42, 74, 0.06);

    display: flex;
    flex-direction: column;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-0.25rem);

    box-shadow:
        0 0.75rem 2rem rgba(11, 42, 74, 0.10);
}


/* IMAGEN */

.service-image {
    width: 100%;

    height: 9rem;

    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.4s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.03);
}


/* CONTENIDO */

.service-content {
    position: relative;

    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 2rem 1.5rem 1.5rem;
}


/* ICONO */

.service-icon {
    position: absolute;

    top: -1.875rem;
    left: 1.5rem;

    width: 3.75rem;
    height: 3.75rem;

    border-radius: 50%;

    background: var(--white);

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        0 0.25rem 0.75rem rgba(11, 42, 74, 0.10);

    transition: transform 0.6s ease;
}

.service-icon img {
    width: 2rem;
    height: 2rem;

    object-fit: contain;
}


/* TÍTULO */

.service-content h3 {
    margin-bottom: 0.5rem;

    color: var(--dark);

    font-size: 1.5rem;
    line-height: 2rem;

    font-weight: 700;
}


/* DESCRIPCIÓN */

.service-content p {
    margin: 0;

    color: var(--text);

    font-size: 0.875rem;
    line-height: 1.25rem;
}


/* SABER MÁS */

.service-link {
    display: inline-flex;
    align-items: center;

    gap: 0.4rem;

    width: fit-content;

    margin-top: auto;
    padding-top: 1.25rem;

    color: var(--primary);

    font-size: 0.9375rem;
    line-height: 1.25rem;

    font-weight: 600;

    transition:
        gap 0.25s ease,
        color 0.25s ease;
}

.service-link span {
    transition:
        transform 0.25s ease;
}

.service-link:hover {
    color: var(--dark);

    gap: 0.65rem;
}

.service-link:hover span {
    transform: translateX(0.1875rem);
}

.service-icon {
    transition: transform 0.6s ease;
}

.service-card:hover .service-icon {
    transform: rotate(360deg);
}

/* ========================================
   CARRUSEL DE CLIENTES
======================================== */

.clients-carousel {
    width: min(var(--container), calc(100% - 80px));

    margin: 4rem auto 0;

    overflow: hidden;
    position: relative;

    mask-image: linear-gradient(to right,
            transparent 0%,
            black 6%,
            black 94%,
            transparent 100%);
}


/* PISTA */

.clients-track {
    display: flex;
    align-items: center;

    width: max-content;

    gap: 4rem;

    animation: clients-scroll 30s linear infinite;
}


/* LOGOS */

.client-logo {
    width: 190px;
    height: 90px;
    flex: 0 0 190px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo img {
    display: block;

    width: 175px;
    height: 75px;

    object-fit: contain;
}

/* AJUSTES INDIVIDUALES */

.logo-bdf img {
    transform: scale(1.22);
}

.logo-ciriaco img {
    transform: scale(1.30);
}

.logo-ibiray {
    flex-basis: 140px;
    width: 140px;
}

.logo-veiga {
    flex-basis: 140px;
    width: 140px;
}

.logo-ibiray img,
.logo-veiga img {
    max-width: none;
}

.clients-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 3.5rem;

    animation: clients-scroll 30s linear infinite;
}

/* ANIMACIÓN */

@keyframes clients-scroll {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 2rem));
    }

}


/* PAUSA AL PASAR EL MOUSE */

.clients-carousel:hover .clients-track {
    animation-play-state: paused;
}

/* ========================================
   CONTACTO
======================================== */

.contact {
    position: relative;

    background: linear-gradient(110deg,
            #0757B8 0%,
            #0878D1 50%,
            #38A9F0 100%);

    overflow: hidden;
}


/* ESTRELLAS DECORATIVAS */

.contact-stars {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    opacity: 0.18;

    pointer-events: none;

    z-index: 1;

    transition: transform 0.15s ease-out;
    will-change: transform;
}


/* CONTENIDO */

.contact-container {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns: 1fr 1.15fr;

    gap: 5rem;

    align-items: center;
}


/* INFORMACIÓN */

.contact-info {
    color: var(--white);
}

.contact-info .section-label {
    color: var(--white);

    margin-bottom: 0.875rem;
}

.contact-info h2 {
    color: var(--white);
    margin-bottom: 1.25rem;
}

.contact-info>p:not(.section-label) {
    max-width: 30rem;

    margin-bottom: 1.875rem;

    color: rgba(255, 255, 255, 0.9);

    font-size: 1rem;
    line-height: 1.5rem;
}


/* DATOS DE CONTACTO */

.contact-details {
    display: flex;
    flex-direction: column;

    gap: 0.8125rem;
}

.contact-details a,
.contact-details>span {
    display: flex;
    align-items: center;

    gap: 0.75rem;

    color: var(--white);

    font-size: 0.875rem;
    line-height: 1.25rem;
}


/* ICONOS */

.contact-icon {
    width: 3.125rem;
    height: 3.125rem;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--white);

    border-radius: 50%;
}

.contact-icon img {
    width: 1.875rem;
    height: 1.875rem;

    object-fit: contain;
}


/* FORMULARIO */

.contact-form-container {
    min-height: 400px;

    background: var(--white);

    padding: 2.5rem;

    border-radius: 1rem;

    box-shadow:
        0 1rem 2.5rem rgba(11, 42, 74, 0.12);
}

.contact-form {
    display: flex;
    flex-direction: column;

    gap: 1.25rem;
}


/* FILAS */

.form-row {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 1rem;
}


/* GRUPOS */

.form-group {
    display: flex;
    flex-direction: column;

    gap: 0.4375rem;
}

.form-group label {
    color: var(--dark);

    font-size: 0.875rem;
    line-height: 1.25rem;

    font-weight: 600;
}


/* CAMPOS */

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    border: 1px solid var(--border);

    border-radius: 0.5rem;

    background: var(--white);

    color: var(--dark);

    font-size: 0.875rem;
    line-height: 1.25rem;

    outline: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.form-group input,
.form-group select {
    height: 2.75rem;

    padding: 0 0.875rem;
}

.form-group textarea {
    min-height: 7rem;

    padding: 0.75rem 0.875rem;

    resize: vertical;
}


/* FOCUS */

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(8, 120, 209, 0.10);
}


/* BOTÓN */

.btn-submit {
    width: 100%;

    height: 3rem;
    min-height: 3rem;

    padding: 0 1rem;

    border: 0;

    border-radius: 1.5625rem;

    background: var(--primary);

    color: var(--white);

    font-family: inherit;

    font-size: 0.9375rem;
    line-height: 1.25rem;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.btn-submit:hover {
    background: var(--dark);

    transform: translateY(-2px);

    box-shadow:
        0 6px 18px rgba(11, 42, 74, 0.25);
}

/* ========================================
   FORMULARIO
======================================== */

.contact-form-container {
    padding: 1.5625rem;

    background: var(--white);

    border-radius: 1.5rem;

    box-shadow: 0 10px 30px rgba(11, 42, 74, 0.12);
}

.contact-form {
    display: flex;
    flex-direction: column;

    gap: 0.75rem;
}

.form-row {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 0.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;

    gap: 0.3125rem;
}

.form-group label {
    color: var(--dark);

    font-size: 0.875rem;
    line-height: 1.25rem;

    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    border: 1px solid var(--border);

    border-radius: 0.75rem;

    padding: 0.625rem 0.6875rem;

    color: var(--text);

    background: var(--white);

    font-size: 0.875rem;
    line-height: 1.25rem;

    outline: none;

    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 10rem;

    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #8B98A5;
}


/* BOTÓN FORMULARIO */

.btn-submit {
    width: 100%;

    height: 3rem;
    min-height: 3rem;

    padding: 0 1rem;

    border: 0;
    border-radius: 1.5625rem;

    background: var(--primary);

    color: var(--white);

    font-family: inherit;
    font-size: 0.9375rem;
    line-height: 1.25rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.btn-submit:hover {
    background: var(--dark);

    transform: translateY(-2px);

    box-shadow:
        0 6px 18px rgba(11, 42, 74, 0.25);
}



/* ========================================
   FOOTER
======================================== */

.footer {
    background: var(--light);
    color: var(--dark);
    padding: 4rem 0 1.5rem;
}

.footer-container {
    width: min(var(--container), calc(100% - 80px));
    margin: 0 auto;
    text-align: center;
}


/* LOGO Y DESCRIPCIÓN */

.footer-brand img {
    width: 190px;
    height: auto;
    display: block;
    margin: 0 auto 1.25rem;
}

.footer-brand p {
    max-width: 500px;
    margin: 0 auto;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
}


/* NAVEGACIÓN */

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.footer-nav a {
    color: var(--dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.footer-nav a:hover {
    opacity: 0.65;
}


/* CONTACTO */

.footer-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.footer-contact a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--dark);
}


/* PARTE INFERIOR */

.footer-bottom {
    width: 100%;
    margin: 3rem auto 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-bottom p {
    margin: 0;
    color: var(--text);
    font-size: 0.75rem;
}


/* CRÉDITO Y LOGO GONZADEMARCO */

.footer-design {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: nowrap;
    white-space: nowrap;
    color: var(--text);
    font-size: 0.75rem;
}

.footer-design img {
    display: block;
    width: 150px;
    height: auto;
    flex-shrink: 0;
    object-fit: contain;
}



/* ========================================
   WHATSAPP FLOTANTE
======================================== */

.whatsapp-float {
    position: fixed;

    right: 1.25rem;
    bottom: 1.25rem;

    z-index: 90;

    width: 3.4375rem;
    height: 3.4375rem;

    border-radius: 50%;

    background: var(--whatsapp);

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.20);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);

    box-shadow: 0 7px 22px rgba(0, 0, 0, 0.25);
}

.whatsapp-float img {
    width: 1.875rem;
    height: 1.875rem;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 1000px) {

    .header-container {
        width: calc(100% - 3.125rem);
    }

    .nav {
        gap: 1.375rem;
    }

    .nav a {
        font-size: 0.8125rem;
    }

    .btn-header {
        min-width: 7.8125rem;

        padding: 0 0.9375rem;

        font-size: 0.6875rem;
    }

    .container,
    .hero-content {
        width: calc(100% - 3.125rem);
    }

    .about-container {
        grid-template-columns: 1fr;

        gap: 3.125rem;
    }

    .contact-container {
        grid-template-columns: 1fr;

        gap: 2.8125rem;
    }
}




/* ========================================
   MÓVIL
======================================== */

@media (max-width: 760px) {

    .header {
        height: 4.375rem;
    }

    .header-container {
        width: calc(100% - 2.1875rem);
    }

    .logo {
        width: 9.0625rem;
    }

    /* ========================================
   MENÚ MÓVIL MORPHING
======================================== */

    .menu-toggle {
        position: relative;
        z-index: 1100;

        width: 2.5rem;
        height: 2.5rem;

        border: 0;
        background: transparent;

        cursor: pointer;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 0.3125rem;
    }

    .menu-toggle span {
        display: block;

        width: 1.4375rem;
        height: 2px;

        background: var(--white);

        border-radius: 2px;

        transition:
            transform 0.4s ease,
            opacity 0.3s ease;
    }


    /* CAPA DEL MENÚ */

    .nav {
        position: fixed;

        top: 0;
        left: 0;

        width: 100%;
        max-width: none;

        height: 100dvh;

        margin: 0;
        padding: 8rem 2rem 3rem;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;

        gap: 1.75rem;

        background: var(--primary);

        clip-path: circle(0% at 90% 2.2rem);

        opacity: 0;

        pointer-events: none;

        transform: none;

        transition:
            clip-path 0.65s cubic-bezier(0.77, 0, 0.175, 1),
            opacity 0.2s ease;

        z-index: 1050;
    }


    /* MENÚ ABIERTO */

    .nav.active {
        opacity: 1;

        pointer-events: auto;

        clip-path: circle(150% at 90% 2.2rem);
    }


    /* ENLACES */

    .nav a {
        opacity: 0;

        transform: translateY(20px);

        color: var(--white);

        font-size: 1.15rem;
        font-weight: 600;

        text-decoration: none;

        transition:
            opacity 0.35s ease,
            transform 0.35s ease;
    }

    .nav.active a {
        opacity: 1;
        transform: translateY(0);
    }


    /* ENTRADA ESCALONADA */

    .nav.active a:nth-child(1) {
        transition-delay: 0.20s;
    }

    .nav.active a:nth-child(2) {
        transition-delay: 0.25s;
    }

    .nav.active a:nth-child(3) {
        transition-delay: 0.30s;
    }

    .nav.active a:nth-child(4) {
        transition-delay: 0.35s;
    }

    .nav.active a:nth-child(5) {
        transition-delay: 0.40s;
    }


    /* HAMBURGUESA → X */

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(4px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-4px) rotate(-45deg);
    }


    .btn-header {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }


    /* HERO */

    .hero {
        min-height: 45rem;

        align-items: flex-end;
    }

    .hero-content {
        width: calc(100% - 2.5rem);

        padding-top: 0;
        padding-bottom: 4.375rem;
    }

    .hero h1 {
        width: 100%;

        font-size: 2.625rem;
        line-height: 2.875rem;
    }

    .hero-text {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: flex-start;
    }

    .btn {
        width: auto;
    }


    /* SECCIONES */

    section:not(.hero) {
        padding: 8rem 0;
    }

    .container {
        width: calc(100% - 2.5rem);
    }

    section h2 {
        font-size: 2.25rem;
        line-height: 2.625rem;
    }


    /* SERVICIOS */

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

    .service-image {
        height: 11.875rem;
    }


    /* NOSOTROS */

    .about-features {
        grid-template-columns: 1fr;
    }

    .feature {
        border-left: 0;

        border-top: 1px solid var(--border);

        padding: 1.5625rem;
    }

    .feature:first-child {
        border-top: 0;
    }


    /* FORMULARIO */

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        padding: 1.25rem;
    }


    /* FOOTER */

    .footer {
        padding: 3.5rem 0 1.5rem;
    }

    .footer-container {
        width: calc(100% - 2.1875rem);
    }

    .footer-brand img {
        width: 170px;
    }

    .footer-brand p {
        font-size: 0.85rem;
    }

    .footer-nav {
        flex-direction: column;
        gap: 1.1rem;
        margin-top: 2rem;
    }

    .footer-contact {
        flex-direction: column;
        gap: 0.9rem;
        margin-top: 2rem;
    }

    .footer-bottom {
        width: calc(100% - 2.1875rem);

        margin-top: 2.5rem;

        flex-direction: column;

        text-align: center;

        gap: 0.75rem;
    }


    /* WHATSAPP */

    .whatsapp-float {
        width: 3.125rem;
        height: 3.125rem;

        right: 0.9375rem;
        bottom: 0.9375rem;
    }

    .whatsapp-float img {
        width: 1.6875rem;
        height: 1.6875rem;
    }
}

/* ========================================
   ANIMACIÓN HERO
======================================== */

.hero .eyebrow,
.hero h1,
.hero .hero-text {
    opacity: 0;
    transform: translateY(25px);
    animation: heroFadeUp 0.8s ease forwards;
}

.hero .eyebrow {
    animation-delay: 0.2s;
}

.hero h1 {
    animation-delay: 0.4s;
}

.hero .hero-text {
    animation-delay: 0.6s;
}

.hero .hero-buttons {
    position: relative;
    top: 30px;
}

.hero .hero-buttons .btn {
    opacity: 0;
    animation: botonesAparecen 0.7s ease-out 0.8s forwards;
}

.hero .hero-buttons .btn:nth-child(2) {
    animation-delay: 1s;
}

@keyframes botonesAparecen {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        translate: 0 25px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

/* ========================================
   ANIMACIÓN NOSOTROS
======================================== */

.about-text,
.about-features .feature {
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}


/* ESTADO INICIAL DE LA ANIMACIÓN */

.about:not(.is-visible) .about-text,
.about:not(.is-visible) .about-features .feature {
    opacity: 0;
    transform: translateY(30px);
}


/* RETRASOS */

.about.is-visible .about-text {
    transition-delay: 0.1s;
}

.about.is-visible .about-features .feature:nth-child(1) {
    transition-delay: 0.25s;
}

.about.is-visible .about-features .feature:nth-child(2) {
    transition-delay: 0.4s;
}

.about.is-visible .about-features .feature:nth-child(3) {
    transition-delay: 0.55s;
}


/* ESTADO VISIBLE */

.about.is-visible .about-text,
.about.is-visible .about-features .feature {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   ANIMACIÓN SERVICIOS
======================================== */

.services .section-header,
.services .service-card {
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}


/* ESTADO INICIAL */

.services:not(.is-visible) .section-header {
    opacity: 0;
    transform: translateY(30px);
}

.services:not(.is-visible) .service-card {
    opacity: 0;
    transform: translateY(30px);
}


/* RETRASOS */

.services.is-visible .section-header {
    transition-delay: 0.1s;
}

.services.is-visible .service-card:nth-child(1) {
    transition-delay: 0.3s;
}

.services.is-visible .service-card:nth-child(2) {
    transition-delay: 0.5s;
}


/* ESTADO VISIBLE */

.services.is-visible .section-header,
.services.is-visible .service-card {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   ANIMACIÓN CLIENTES
======================================== */

.clients .section-header,
.clients .clients-carousel {
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}


/* ESTADO INICIAL */

.clients:not(.is-visible) .section-header {
    opacity: 0;
    transform: translateY(30px);
}

.clients:not(.is-visible) .clients-carousel {
    opacity: 0;
    transform: translateY(25px);
}


/* RETRASOS */

.clients.is-visible .section-header {
    transition-delay: 0.1s;
}

.clients.is-visible .clients-carousel {
    transition-delay: 0.35s;
}


/* ESTADO VISIBLE */

.clients.is-visible .section-header,
.clients.is-visible .clients-carousel {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   ANIMACIÓN CONTACTO
======================================== */

.contact .contact-info,
.contact .contact-form-container {
    opacity: 0;
    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}


/* ESTADO INICIAL */

.contact:not(.is-visible) .contact-info {
    transform: translateX(-35px);
}

.contact:not(.is-visible) .contact-form-container {
    transform: translateX(35px);
}


/* RETRASO DEL FORMULARIO */

.contact.is-visible .contact-form-container {
    transition-delay: 0.2s;
}


/* ESTADO VISIBLE */

.contact.is-visible .contact-info,
.contact.is-visible .contact-form-container {
    opacity: 1;
    transform: translateX(0);
}

/* =========================================
   EFECTO BORDE ANIMADO - BOTÓN PRINCIPAL
========================================= */

.animated-border {
    position: relative;
    overflow: hidden;
    /*isolation: isolate;*/
}

.animated-border span {
    position: absolute;
    display: block;
    pointer-events: none;
    z-index: 2;
}

/* Línea superior */
.animated-border span:nth-child(1) {
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right,
            transparent,
            #38A9F0);
    animation: border-top 2s linear infinite;
    -webkit-animation: border-top 2s linear infinite;
}

/* Línea inferior */
.animated-border span:nth-child(2) {
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(to left,
            transparent,
            #38A9F0);
    animation: border-bottom 2s linear infinite;
    -webkit-animation: border-bottom 2s linear infinite;
}

/* Ocultamos los laterales */
.animated-border span:nth-child(3),
.animated-border span:nth-child(4) {
    display: none;
}

/* Animación superior */
@keyframes border-top {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@-webkit-keyframes border-top {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Animación inferior */
@keyframes border-bottom {
    0% {
        right: -100%;
    }

    100% {
        right: 100%;
    }
}

@-webkit-keyframes border-bottom {
    0% {
        right: -100%;
    }

    100% {
        right: 100%;
    }
}

.animated-border span {
    transition: opacity 0.2s ease;
}

.animated-border:hover span {
    opacity: 0;
}

/* ========================================
   SAFARI 26+ — TINTADO DE LA INTERFAZ
   Color directo en un elemento fijo que cumple los criterios de macOS.
======================================== */
.safari-tint {
    position: fixed;
    top: 4px;
    left: 0;
    width: 90%;
    height: 15px;
    background-color: #0878D1;
    pointer-events: none;
    opacity: 0;
    z-index: 9999;
}


/* Mantener la sección de clientes blanca aunque el body tenga el color de respaldo para Safari */
.clients {
    background: var(--white);
}



/* ========================================
   SUBMENÚ DE SERVICIOS
======================================== */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-dropdown__trigger {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.nav-chevron {
    display: inline-block;
    font-size: 1rem;
    line-height: 1;
    transition: transform .25s ease;
}

.nav-dropdown:hover .nav-dropdown__trigger .nav-chevron,
.nav-dropdown:focus-within .nav-dropdown__trigger .nav-chevron {
    transform: rotate(180deg);
}

.nav-submenu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    transform: translateY(8px);
    min-width: 180px;
    padding: .5rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
    background: rgba(8, 39, 84, .97);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: .75rem;
    box-shadow: 0 12px 30px rgba(8, 39, 84, .2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 1200;
}

.nav-submenu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -16px;
    height: 16px;
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-submenu a {
    display: block;
    width: 100%;
    padding: .7rem .85rem;
    color: #fff;
    font-size: .875rem;
    line-height: 1.25rem;
    border-radius: .45rem;
    white-space: nowrap;
}

.nav-submenu a::after {
    display: none;
}

.nav-submenu a:hover,
.nav-submenu a:focus-visible {
    background: rgba(255, 255, 255, .14);
    opacity: 1;
}

.nav-submenu-toggle {
    display: none;
}

@media (max-width:760px) {
    .nav-dropdown {
        width: 100%;
        height: auto;
        display: grid;
        grid-template-columns: max-content 2rem;
        justify-content: center;
        align-items: center;
        column-gap: .15rem;
        row-gap: .35rem;
    }

    .nav-dropdown__trigger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: auto;
        min-height: 2.5rem;
        padding: 0;
        opacity: 1;
        transform: none;
    }

    .nav-dropdown__trigger .nav-chevron {
        display: none;
    }

    .nav-submenu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2rem;
        height: 2.5rem;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: .5rem;
        background: transparent;
        color: #fff;
        cursor: pointer;
    }

    .nav-submenu-toggle .nav-chevron {
        font-size: 1.05rem;
    }

    .nav-dropdown.mobile-open .nav-submenu-toggle .nav-chevron {
        transform: rotate(180deg);
    }

    .nav-submenu {
        grid-column: 1 / -1;
        position: static;
        left: auto;
        top: auto;
        transform: none;
        min-width: 0;
        width: 100%;
        margin: 0;
        padding: .35rem;
        gap: .2rem;
        background: rgba(255, 255, 255, .09);
        border: 1px solid rgba(255, 255, 255, .18);
        border-radius: .65rem;
        box-shadow: none;
        display: none !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .nav-dropdown.mobile-open .nav-submenu {
        display: flex !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-dropdown:hover .nav-submenu,
    .nav-dropdown:focus-within .nav-submenu {
        transform: none;
    }

    .nav-submenu a {
        display: block;
        width: 100%;
        opacity: 1;
        transform: none;
        font-size: 1rem;
        line-height: 1.4;
        text-align: center;
        padding: .65rem;
        justify-content: center;
    }

    .nav-submenu a::after {
        display: none;
    }
}

/* Correcciones de estabilidad para navegación y submenú móvil */
@media (max-width: 760px) {
  .nav-dropdown__trigger::after,
  .nav-dropdown__trigger:hover::after,
  .nav-dropdown__trigger:focus-visible::after {
    display: none !important;
    width: 0 !important;
  }
  .nav-dropdown__trigger .nav-chevron,
  .nav-dropdown > .nav-submenu-toggle {
    display: none !important;
  }
  .nav-dropdown {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .25rem;
    width: 100%;
    border: 0 !important;
  }
  .nav-dropdown__trigger {
    justify-content: center;
    width: 100%;
    border: 0 !important;
  }
  .nav-dropdown .nav-submenu {
    width: max-content;
    min-width: 120px;
    max-width: 100%;
    margin: .15rem auto .4rem;
    border-top: 0;
  }
}
