/* ===========================================================
   LAMC Logistic · style.css
   -----------------------------------------------------------
   1  Tokens              8  CTA
   2  Base                9  Proceso
   3  Componentes         10 Equipo
   4  Header / menú       11 Contacto
   5  Hero (carrusel)     12 Misión y visión
   6  Nosotros            13 Footer y botón "arriba"
   7  Servicios           14 Animaciones y accesibilidad
                          15 Responsive (todos los breakpoints)
   =========================================================== */


/* ===========================================================
   1. TOKENS
   Un solo lugar para colores, tamaños y espaciados.
   =========================================================== */

:root {
    --primary: #0876ff;
    --primary-dark: #0065df;
    --dark: #07111f;
    --ink: #10233f;        /* títulos */
    --text: #1a2636;       /* texto general */
    --muted: #5d6a7c;      /* texto secundario (contraste AA sobre blanco y #f4f7fb) */
    --light: #f4f7fb;
    --white: #ffffff;
    --border: #e3e9f1;

    --radius: 18px;
    --shadow: 0 20px 50px rgba(7, 17, 31, .10);

    --header-h: 76px;
    --gutter: clamp(20px, 5vw, 40px);
    --section-y: clamp(64px, 9vw, 110px);

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}


/* ===========================================================
   2. BASE
   =========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);   /* los anclajes no quedan tapados por el header fijo */
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    overflow-x: clip;
}

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

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

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

/* Solo visible para lectores de pantalla */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* "Saltar al contenido" para navegación con teclado */
.skip-link {
    position: fixed;
    top: -60px;
    left: 16px;
    z-index: 2000;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    transition: top .2s;
}

.skip-link:focus {
    top: 12px;
}


/* ===========================================================
   3. COMPONENTES COMUNES
   =========================================================== */

.container {
    width: min(1180px, calc(100% - 2 * var(--gutter)));
    margin-inline: auto;
}

.section {
    padding-block: var(--section-y);
}

/* Todos los títulos de sección comparten la misma escala (.h2 sirve para un <h1> con este estilo) */
h2,
.h2 {
    margin-bottom: 16px;
    color: var(--ink);
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
}

h2 span,
.h2 span {
    color: var(--primary);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--primary);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.section-label span {
    width: 28px;
    height: 2px;
    background: currentColor;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto clamp(36px, 6vw, 56px);
    text-align: center;
}

.section-heading > p {
    max-width: 62ch;
    margin-inline: auto;
    color: var(--muted);
}

/* Botones */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition: background-color .25s, color .25s, border-color .25s, transform .25s;
}

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

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

.btn-outline {
    border-color: rgba(255, 255, 255, .45);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
}

.btn-white {
    flex-shrink: 0;
    background: var(--white);
    color: var(--primary-dark);
}

.btn-white:hover {
    background: #eaf3ff;
}

.text-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: var(--primary-dark);
    font-size: .9rem;
    font-weight: 700;
}

.text-button:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Redes sociales */

.socials {
    display: flex;
    gap: 8px;
}

.socials a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #13243a;
    color: #b4c1d0;
    transition: background-color .25s, color .25s;
}

.socials a:hover {
    background: var(--primary);
    color: var(--white);
}

/* En tarjetas claras (equipo) los iconos usan colores claros */
.team-info .socials {
    margin-top: 18px;
}

.team-info .socials a {
    background: var(--light);
    color: var(--ink);
}

.team-info .socials a:hover {
    background: var(--primary);
    color: var(--white);
}


/* ===========================================================
   4. HEADER Y MENÚ
   =========================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color .3s, box-shadow .3s;
}

/* .mission-page: cabecera siempre sólida en páginas internas sin hero */
.header.scrolled,
.header.mission-page,
.header.menu-open {
    background: rgba(7, 17, 31, .96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header.scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--header-h);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
}

.logo-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--primary);
}

.logo > span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo strong {
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.logo small {
    margin-top: 4px;
    color: #aebbd0;
    font-size: .6rem;
    letter-spacing: 3px;
}

.nav-menu {
    display: flex;
    gap: clamp(20px, 3vw, 34px);
}

.nav-menu a {
    color: #dce6f3;
    font-size: .9rem;
    font-weight: 600;
    transition: color .25s;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
    color: #5aa2ff;
}

.nav-button {
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 10px;
    color: var(--white);
    font-size: .85rem;
    font-weight: 700;
    transition: background-color .25s, border-color .25s;
}

.nav-button:hover {
    border-color: var(--primary);
    background: var(--primary);
}

.menu-toggle {
    display: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--white);
    font-size: 1.5rem;
}

.nav-cta-mobile {
    display: none;
}


/* ===========================================================
   5. HERO (CARRUSEL)
   =========================================================== */

.hero {
    position: relative;
    height: 100vh;
    height: 100svh;              /* evita el salto por la barra del navegador en móvil */
    min-height: 600px;
    overflow: hidden;
    background: var(--dark);
    color: var(--white);
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
}

.hero-slide.active {
    z-index: 2;
    opacity: 1;
    visibility: visible;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg,
        rgba(7, 17, 31, .92) 0%,
        rgba(7, 17, 31, .70) 45%,
        rgba(7, 17, 31, .25) 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    width: min(1180px, calc(100% - 2 * var(--gutter)));
    margin-inline: auto;
    padding-top: var(--header-h);
    padding-bottom: 64px;        /* deja aire para los indicadores */
    opacity: 0;
    translate: 0 24px;
    transition: opacity 1s ease .15s, translate 1s ease .15s;
}

.hero-slide.active .hero-content {
    opacity: 1;
    translate: 0 0;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50px;
    background: rgba(8, 118, 255, .18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: .85rem;
    font-weight: 600;
}

.hero-title {
    max-width: 14em;
    margin-bottom: 20px;
    color: var(--white);
    font-size: clamp(2.2rem, 6vw, 4.75rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.03em;
}

.hero-title span {
    display: block;
    color: #4d9dff;
}

.hero-lead {
    max-width: 38em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Indicadores: el botón mide 24×24 px (área táctil), el punto se dibuja con ::before */

.hero-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    translate: -50% 0;
}

.hero-dot {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    transition: width .3s ease;
}

.hero-dot::before {
    content: "";
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
    transition: width .3s ease, background-color .3s ease;
}

.hero-dot.active {
    width: 44px;
}

.hero-dot.active::before {
    width: 32px;
    border-radius: 20px;
    background: var(--primary);
}

.hero-toggle {
    position: absolute;
    right: var(--gutter);
    bottom: 22px;
    z-index: 10;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 50%;
    background: rgba(7, 17, 31, .4);
    color: var(--white);
    font-size: .8rem;
    transition: background-color .25s;
}

.hero-toggle:hover {
    background: var(--primary);
}


/* ===========================================================
   6. NOSOTROS
   =========================================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(40px, 7vw, 90px);
}

.about-image {
    position: relative;
}

.image-card {
    aspect-ratio: 10 / 11;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #0a2039, #116fd2);
    box-shadow: var(--shadow);
}

/* Si logo1.jpg es un logo y se recorta, cambia "cover" por "contain" */
.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-card {
    position: absolute;
    right: -28px;
    bottom: 35px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.experience-card strong {
    color: var(--primary);
    font-size: 2.4rem;
    line-height: 1;
}

.experience-card span {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.4;
}

.about-content > p {
    max-width: 60ch;
    margin-bottom: 14px;
    color: var(--muted);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 26px 0 22px;
}

.about-features div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .92rem;
    font-weight: 600;
}

.about-features i {
    color: var(--primary);
}


/* ===========================================================
   7. SERVICIOS
   =========================================================== */

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

/* Sin media queries: 3 columnas en escritorio, 2 en tablet, 1 en móvil */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 26px;
}

.service-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 8px 25px rgba(16, 35, 63, .05);
}

.service-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e9eef5;
}

.service-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(10, 30, 55, .25));
    pointer-events: none;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.service-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 26px 26px;
}

.service-category {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-dark);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
}

.service-content h3 {
    margin-bottom: 10px;
    color: var(--ink);
    font-size: 1.25rem;
    line-height: 1.3;
}

.service-content p {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.65;
}

/* margin-top:auto alinea todos los enlaces al fondo aunque los textos midan distinto */
.service-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #edf0f4;
    color: var(--ink);
    font-size: .85rem;
    font-weight: 700;
    transition: color .25s;
}

.service-link span {
    color: var(--primary);
    font-size: 1.3rem;
    transition: translate .25s;
}

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

.service-link:hover span {
    translate: 5px 0;
}


/* ===========================================================
   8. CTA
   =========================================================== */

.cta {
    padding-block: clamp(52px, 7vw, 75px);
    background: linear-gradient(100deg, #0055bd, #0876ff);
    color: var(--white);
}

.cta-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px 40px;
}

.cta-small {
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.cta h2 {
    margin: 10px 0 12px;
    color: var(--white);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.cta h2 span {
    color: #cfe5ff;
}

.cta p {
    max-width: 570px;
    font-size: 1rem;
}


/* ===========================================================
   9. PROCESO
   La línea entre pasos se dibuja con ::after (sin divs vacíos).
   =========================================================== */

.process-grid {
    --gap: 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
}

.process-item {
    position: relative;
    text-align: center;
}

.process-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 35px;
    left: calc(50% + 50px);
    width: calc(100% + var(--gap) - 100px);
    border-top: 2px dashed #cfd9e6;
}

.process-item > i {
    position: relative;
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--light);
    color: var(--primary);
    font-size: 1.5rem;
}

.process-number {
    position: absolute;
    top: -8px;
    right: calc(50% - 44px);
    z-index: 1;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: .65rem;
    font-weight: 800;
}

.process-item h3 {
    margin-bottom: 4px;
    color: var(--ink);
    font-size: 1.05rem;
}

.process-item p {
    color: var(--muted);
    font-size: .9rem;
}


/* ===========================================================
   10. EQUIPO
   =========================================================== */

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

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin-inline: auto;
}

.team-card {
    overflow: hidden;
    border: 1px solid #e7ebf1;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 10px 30px rgba(15, 35, 64, .06);
}

.team-photo {
    position: relative;
    aspect-ratio: 1 / 1.05;
    overflow: hidden;
    background: #eef3f8;
}

.team-photo::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 90px;
    background: linear-gradient(transparent, rgba(15, 35, 64, .18));
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;   /* no corta las caras */
    transition: transform .5s ease;
}

.team-info {
    padding: 24px 26px 28px;
}

.team-info h3 {
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 1.3rem;
    line-height: 1.25;
}

.team-role {
    color: var(--primary-dark);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.5;
    text-transform: uppercase;
}

.team-description {
    margin-top: 14px;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.6;
}


/* ===========================================================
   11. CONTACTO
   Las clases de la tarjeta de servicios usan el prefijo "quick-"
   para no chocar con las de la sección de Servicios.
   =========================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: clamp(32px, 6vw, 70px);
}

.contact-info > p {
    max-width: 34em;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 1.05rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}

.contact-item .icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--light);
    color: var(--primary);
    font-size: 1.1rem;
}

.contact-item small {
    display: block;
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.3;
}

.contact-item strong {
    display: block;
    overflow-wrap: anywhere;      /* el correo largo no desborda en pantallas de 320 px */
    color: var(--ink);
    font-size: .98rem;
}

a.contact-item:hover strong {
    color: var(--primary-dark);
}

.quick-card {
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 25px 60px rgba(15, 35, 64, .12);
}

.card-label {
    color: var(--primary-dark);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.quick-card h3 {
    margin: 8px 0;
    color: var(--ink);
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    line-height: 1.2;
}

.card-description {
    margin-bottom: 26px;
    color: var(--muted);
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 14px;
}

.quick-link {
    position: relative;
    display: block;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--ink);
    transition: border-color .25s, box-shadow .25s;
}

.quick-link:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(8, 118, 255, .12);
}

.quick-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: rgba(8, 118, 255, .1);
    color: var(--primary);
    font-size: 1.2rem;
}

.quick-link h4 {
    margin-bottom: 6px;
    font-size: 1rem;
}

.quick-link p {
    padding-right: 8px;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.5;
}

.quick-link .arrow {
    position: absolute;
    top: 18px;
    right: 18px;
    color: var(--primary);
    font-size: .9rem;
}

.quick-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 20px;
    margin-top: 22px;
    padding: 22px;
    border-radius: 16px;
    background: #eef5ff;
}

.quick-cta h4 {
    margin-bottom: 4px;
}

.quick-cta p {
    color: var(--muted);
    font-size: .9rem;
}


/* ===========================================================
   12. MISIÓN Y VISIÓN (mision.html)
   =========================================================== */

.mission {
    position: relative;
    overflow: hidden;
    background: var(--light);
}

/* Debe ir después de .section: la cabecera fija ocupa la parte superior */
.page-top {
    padding-top: calc(var(--header-h) + clamp(48px, 7vw, 90px));
}

.mission::before,
.mission::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.mission::before {
    top: -250px;
    right: -180px;
    width: 500px;
    height: 500px;
    background: rgba(8, 118, 255, .06);
}

.mission::after {
    bottom: -250px;
    left: -180px;
    width: 400px;
    height: 400px;
    background: rgba(8, 118, 255, .04);
}

.mission .container {
    position: relative;
    z-index: 1;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 30px;
}

.mv-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(7, 17, 31, .06);
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 18px 45px rgba(7, 17, 31, .08);
}

.mv-card-image {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: clamp(210px, 26vw, 260px);
    padding: clamp(22px, 3vw, 30px);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: var(--dark);
}

/* Se usa background-image (no el atajo "background") para no perder cover/center */
.mission-image {
    background-image:
        linear-gradient(135deg, rgba(7, 17, 31, .88), rgba(8, 118, 255, .62)),
        url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1000&q=70");
}

.vision-image {
    background-image:
        linear-gradient(135deg, rgba(7, 17, 31, .88), rgba(8, 118, 255, .62)),
        url("https://images.unsplash.com/photo-1494412651409-8963ce7935a7?auto=format&fit=crop&w=1000&q=70");
}

.mv-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 17, 31, .85), rgba(7, 17, 31, .05));
}

.mv-icon {
    position: absolute;
    top: 26px;
    right: 26px;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 14px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    font-size: 1.2rem;
}

.mv-label {
    position: relative;
    z-index: 2;
    color: var(--white);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .2em;
}

.mv-card-content {
    position: relative;
    padding: 35px clamp(24px, 4vw, 38px) 40px;
}

.mv-card-content::after {
    content: "";
    position: absolute;
    top: 0;
    left: clamp(24px, 4vw, 38px);
    width: 55px;
    height: 3px;
    background: var(--primary);
}

.mv-number {
    display: block;
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.mv-card-content h3 {
    margin-bottom: 18px;
    color: var(--dark);
    font-size: clamp(1.35rem, 2.6vw, 1.55rem);
    line-height: 1.25;
}

.mv-card-content h3 span {
    color: var(--primary);
}

.mv-card-content p {
    margin-bottom: 14px;
    color: var(--muted);
    font-size: .97rem;
    line-height: 1.8;
}

.mv-card-content p:last-child {
    margin-bottom: 0;
}

.mv-bottom {
    display: flex;
    align-items: center;
    gap: 25px;
    max-width: 1100px;
    margin: clamp(40px, 6vw, 65px) auto 0;
}

.mv-bottom-line {
    flex: 1;
    height: 1px;
    background: rgba(7, 17, 31, .12);
}

.mv-bottom-content {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
}

.mv-bottom-content i {
    color: var(--primary);
    font-size: 1.3rem;
}

.mv-bottom-content p {
    font-size: .95rem;
}

.mv-bottom-content strong {
    color: var(--dark);
}


/* ===========================================================
   13. FOOTER Y BOTÓN "VOLVER ARRIBA"
   =========================================================== */

.footer {
    padding-top: 64px;
    background: var(--dark);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-brand > p {
    max-width: 300px;
    margin: 18px 0;
    color: #9aa8bb;
    font-size: .92rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-column h4 {
    margin-bottom: 6px;
    font-size: .95rem;
}

.footer-column a,
.footer-column span {
    overflow-wrap: anywhere;
    color: #9aa8bb;
    font-size: .92rem;
}

.footer-column a {
    padding: 3px 0;
    transition: color .25s;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    padding-block: 20px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #8a99ad;
    font-size: .82rem;
}

.back-top {
    position: fixed;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 100;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(8, 118, 255, .35);
    opacity: 0;
    pointer-events: none;
    translate: 0 10px;
    transition: opacity .3s, translate .3s, background-color .25s;
}

.back-top.show {
    opacity: 1;
    pointer-events: auto;
    translate: 0 0;
}

.back-top:hover {
    background: var(--primary-dark);
}


/* ===========================================================
   14. ANIMACIONES Y ACCESIBILIDAD
   .reveal la añade script.js solo si el usuario acepta animaciones;
   así, sin JavaScript, todo el contenido se ve igual.
   Usa "translate" (no "transform") para no anular los efectos hover.
   =========================================================== */

.reveal {
    opacity: 0;
    translate: 0 22px;
    transition:
        opacity .7s ease,
        translate .7s ease,
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.reveal.is-visible {
    opacity: 1;
    translate: 0 0;
}

/* Hover solo en dispositivos con puntero (evita que se "quede pegado" al tocar) */
@media (hover: hover) {

    .btn-primary:hover,
    .btn-white:hover {
        transform: translateY(-2px);
    }

    .service-card:hover {
        transform: translateY(-6px);
        border-color: var(--primary);
        box-shadow: 0 18px 40px rgba(16, 35, 63, .12);
    }

    .service-card:hover .service-image img,
    .team-card:hover .team-photo img {
        transform: scale(1.05);
    }

    .team-card:hover,
    .mv-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 22px 48px rgba(15, 35, 64, .13);
    }

    .team-card:hover {
        border-color: var(--primary);
    }
}

.team-card,
.mv-card,
.service-card {
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
    }

    .reveal {
        opacity: 1;
        translate: none;
    }
}


/* ===========================================================
   15. RESPONSIVE
   Escritorio → tablet (950) → tablet pequeña (800) → móvil (700, 520)
   =========================================================== */

@media (max-width: 950px) {

    :root {
        --header-h: 66px;
    }

    /* Menú móvil desplegable */
    .menu-toggle {
        display: grid;
    }

    .nav-button {
        display: none;
    }

    .nav-menu {
        position: absolute;
        top: var(--header-h);
        right: 0;
        left: 0;
        flex-direction: column;
        gap: 0;
        padding: 8px var(--gutter) 24px;
        background: var(--dark);
        box-shadow: 0 20px 30px rgba(0, 0, 0, .25);
        opacity: 0;
        visibility: hidden;        /* los enlaces ocultos no reciben foco con Tab */
        translate: 0 -8px;
        transition: opacity .25s ease, translate .25s ease, visibility .25s;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        translate: 0 0;
    }

    .nav-menu a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        font-size: 1rem;
    }

    .nav-menu .nav-cta-mobile {
        display: block;
        margin-top: 18px;
    }

    .nav-menu .nav-cta-mobile a {
        padding: 0 20px;
        border: 0;
        border-radius: 10px;
        background: var(--primary);
        color: var(--white);
        text-align: center;
        line-height: 50px;
        font-weight: 700;
    }

    /* Secciones */
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        max-width: 560px;
    }

    .experience-card {
        right: 16px;
        bottom: 16px;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 40px;
    }

    .process-item::after {
        display: none;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }

    .hero-overlay {
        background: linear-gradient(90deg, rgba(7, 17, 31, .88), rgba(7, 17, 31, .55));
    }
}


@media (max-width: 800px) {

    /* Equipo: tarjetas horizontales (foto + texto) para que el texto siga legible */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 560px;
    }

    .team-card {
        display: grid;
        grid-template-columns: minmax(110px, 34%) 1fr;
    }

    .team-photo {
        aspect-ratio: auto;
        min-height: 170px;
    }

    .team-photo::after {
        display: none;
    }

    .team-info {
        align-self: center;
        padding: 18px 20px;
    }

    .team-info h3 {
        font-size: 1.15rem;
    }
}


@media (max-width: 700px) {

    .hero-overlay {
        background: linear-gradient(180deg, rgba(7, 17, 31, .6), rgba(7, 17, 31, .88));
    }

    .hero-content {
        padding-bottom: 72px;
    }

    .hero-toggle {
        bottom: 16px;
    }

    .hero-dots {
        bottom: 24px;
    }

    .mv-bottom-line {
        display: none;
    }

    .mv-bottom {
        justify-content: center;
    }
}


@media (max-width: 520px) {

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

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

    .experience-card {
        position: static;
        margin-top: 14px;
        box-shadow: none;
        border: 1px solid var(--border);
    }

    .cta .btn,
    .quick-cta .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .process-item h3 {
        font-size: 1rem;
    }
}

/* Pantallas muy bajas en horizontal (móvil girado): el hero no obliga a un alto de 600 px */
@media (max-height: 520px) and (orientation: landscape) {

    .hero {
        min-height: 480px;
    }

    .hero-content {
        padding-top: calc(var(--header-h) + 8px);
    }

    .hero-title {
        font-size: clamp(1.8rem, 5vw, 2.6rem);
    }
}
