/* ============================================================
   00 · Base — reset, tipografía, grilla y componentes comunes
   ============================================================
   Los colores, tipografías y medidas viven en tema.css, que se
   carga ANTES que este archivo. Aquí no debe aparecer ningún
   color literal: si hace falta uno nuevo, se agrega como
   variable al tema. Así una landing para otro cliente se
   reskinea reemplazando un solo archivo.
   ============================================================ */

/* --- Reset ------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -.02em;
}

h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

/* --- Accesibilidad ----------------------------------------- */

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.saltar-al-contenido {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    padding: 12px 20px;
    background: var(--accent);
    color: var(--sobre-acento);
    font-weight: 700;
}
.saltar-al-contenido:focus { left: 0; }

.solo-lectores {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* --- Layout ------------------------------------------------ */

.contenedor {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.seccion { padding: clamp(56px, 8vw, 104px) 0; }

.seccion--alt { background: var(--bg-alt); }

/* --- Encabezado de sección --------------------------------- */

.antetitulo {
    display: block;
    margin-bottom: 14px;
    color: var(--accent);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.encabezado-seccion {
    max-width: 640px;
    margin-inline: auto;
    margin-bottom: clamp(36px, 5vw, 58px);
    text-align: center;
}

.encabezado-seccion p { color: var(--text-soft); }

/* --- Botones ----------------------------------------------- */

.boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 28px;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.boton--primario {
    background: var(--grad);
    color: var(--sobre-acento);
    box-shadow: var(--brillo);
}

.boton--secundario {
    background: transparent;
    color: var(--text);
    box-shadow: inset 0 0 0 1px var(--border-strong);
}

.boton:hover { transform: translateY(-2px); }
.boton--secundario:hover { background: var(--surface-2); }
.boton:active { transform: translateY(0); }

/* --- Animación de entrada ---------------------------------- */

/* Duración, distancia y curva salen de variables (animaciones.css),
   que cambian según el tamaño de pantalla. */
.revelar {
    opacity: 0;
    transform: translateY(var(--anim-dist, 22px));
    transition: opacity var(--anim-dur, .6s) var(--anim-curva, ease),
                transform var(--anim-dur, .6s) var(--anim-curva, ease);
}

.revelar.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .revelar { opacity: 1; transform: none; }
}

/* --- Piezas compartidas --------------------------------------
   Tarjeta con borde azul tenue y fondo levemente degradado, y el
   recuadro de ícono con resplandor. Son la misma pieza en todas
   las secciones, por eso viven aquí y no en cada sección. */

.servicio,
.resultado,
.compromiso,
.proyecto,
.testimonio {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(15, 29, 66, .7) 0%, rgba(10, 22, 52, .5) 100%);
}

.servicio__icono,
.resultado__icono,
.compromiso__icono {
    display: grid;
    place-items: center;
    flex: none;
    width: 52px; height: 52px;
    border: 1px solid rgba(61, 139, 255, .4);
    border-radius: 14px;
    background: radial-gradient(circle at 50% 30%, rgba(31, 111, 255, .35) 0%, rgba(10, 22, 52, .9) 75%);
    box-shadow: 0 0 22px rgba(31, 111, 255, .25), inset 0 0 12px rgba(90, 168, 255, .15);
    color: #8cc4ff;
}

/* En secciones claras las tarjetas son blancas con sombra suave, y
   los íconos pierden el resplandor: sobre blanco se ve sucio. */
.seccion--clara .servicio,
.seccion--clara .testimonio,
.seccion--clara .paso {
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.seccion--clara .servicio__icono,
.seccion--clara .paso__icono {
    border: 0;
    background: #eaf2ff;
    box-shadow: none;
    color: var(--accent);
}

/* Palabra destacada dentro de un título */
.destacado { color: var(--blue-soft); }

