:root {
    --color-primary: #fa6400;
    --color-secondary: #0e1f34;
    --color-bg: #ffffff;
    --color-line: #e6eef1;
    --color-muted: #9aa7ad;
    --font-title: "Montserrat", sans-serif;
    --shadow-nav: 0 8px 24px rgba(180, 180, 180, 0.55);
    --font-body: "Montserrat", sans-serif;
    --nav-font: 12px;
    --nav-pad-y: 7px;
    --header-h: 86px;
}

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

body {
    margin: 0;
    /* Columna flexible para que el pie quede abajo en páginas cortas. */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--color-bg);
    font-family: var(--font-body);
}

body > main {
    flex: 1 0 auto;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: 100%;
    margin: 0 auto;
}

/* El menú flota sobre el contenido: el margen negativo le quita el hueco que
   ocupaba en el flujo para que el fondo de la página se vea por detrás. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    height: var(--header-h);
    padding: 1.25rem 0;
    margin-bottom: calc(var(--header-h) * -1);
    background: transparent;
}

/* La primera sección pasa por debajo del menú y recupera su aire con este padding. */
main > :first-child {
    padding-top: calc(var(--header-h) + 26px);
}

.header-bar {
    display: flex;
    justify-content: center;
}

.nav-group {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 70vw;
    max-width: 70vw;
    border-radius: 10px;
    box-shadow: var(--shadow-nav);
}

.nav-pill {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
    padding: var(--nav-pad-y) 16px var(--nav-pad-y) 12px;
    background: #fff;
    border: 1px solid var(--color-line);
    border-right: 0;
    border-radius: 10px 0 0 10px;
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: inherit;
}

.brand:hover {
    color: inherit;
}

.brand img {
    display: block;
    height: 30px;
    width: auto;
}

.nav-cluster {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Todos los elementos como flex: así el que lleva flecha no queda desalineado. */
.nav-links > li {
    display: flex;
    align-items: center;
}

.nav-links a,
.btn-panel {
    font-weight: 700;
    font-size: var(--nav-font);
    line-height: 1;
}

.nav-links a {
    color: var(--color-secondary);
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--color-primary);
}

.has-submenu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Abre el desplegable: se ve como el resto de enlaces, pero no navega. */
.nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-secondary);
    font-family: var(--font-body);
    font-size: var(--nav-font);
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.nav-trigger svg {
    width: 10px;
    height: 10px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.16s ease;
}

.nav-trigger.is-active,
.has-submenu:hover .nav-trigger,
.has-submenu.is-open .nav-trigger {
    color: var(--color-primary);
}

.has-submenu:hover .nav-trigger svg,
.has-submenu.is-open .nav-trigger svg {
    transform: rotate(180deg);
}

.nav-submenu {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    z-index: 30;
    min-width: 220px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    box-shadow: var(--shadow-nav);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

/* Puente invisible para que el ratón pueda bajar del menú al desplegable. */
.nav-submenu::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 0;
    right: 0;
    height: 18px;
}

.has-submenu:hover .nav-submenu,
.has-submenu:focus-within .nav-submenu,
.has-submenu.is-open .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.nav-submenu a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--color-secondary);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-submenu a:hover {
    background: #fdf3ec;
    color: var(--color-primary);
}

.btn-panel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: var(--nav-pad-y) 16px;
    border: 1px solid var(--color-secondary);
    border-left: 0;
    border-radius: 0 10px 10px 0;
    background: var(--color-secondary);
    color: #fff;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-panel:hover,
.btn-panel.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.nav-toggle {
    display: none;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 12px;
    height: 1px;
    margin: 3px auto;
    background: var(--color-secondary);
}

.hero {
    position: relative;
    z-index: 7;
    padding: 52px 0 0;
    text-align: center;
}

.hero h1 {
    margin: 0 0 16px;
    font-family: var(--font-title);
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-secondary);
}

.hero h1 span {
    color: var(--color-primary);
    font-weight: 400;
}

.hero-subtitle {
    margin: 0;
    color: var(--color-muted);
    font-size: clamp(14px, 1.4vw, 17px);
    line-height: 1.5;
}

.hero-subtitle:last-child {
    margin-bottom: 30px;
}

.clients {
    position: relative;
    margin-top: -58px;
    padding: 0 0 86px;
}

.clients-stage {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.clients-viewport {
    position: relative;
    flex: 1;
    height: clamp(350px, 28vw, 450px);
    perspective: 900px;
    overflow: hidden;
}

.clients-track {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    transform-style: preserve-3d;
    /* --step es el ancho de la tarjeta: el desplazamiento de cada posición se
       expresa en múltiplos suyos (--shift), calculados para que el hueco entre
       tarjetas sea el mismo en pantalla pese a la perspectiva. */
    --step: clamp(104px, 13vw, 185px);
    --depth: -225px;
    --depth-step: 125px;
    --angle: -18deg;
}

.client-card {
    --offset: 0;
    --shift: 0;
    --distance: max(var(--offset), -1 * var(--offset));
    position: absolute;
    top: 43%;
    left: 50%;
    width: clamp(104px, 13vw, 185px);
    aspect-ratio: 3 / 4;
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transform:
        translate(-50%, -50%)
        translateX(calc(var(--shift) * var(--step)))
        translateZ(calc(var(--depth) + var(--distance) * var(--depth-step)))
        rotateY(calc(var(--offset) * var(--angle)));
    box-shadow: 0 18px 38px rgba(17, 28, 36, 0.28);
    will-change: transform;
}

.clients-track.is-ready .client-card {
    transition:
        transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
        height 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 0.5s ease 0.05s;
}

/* La foto central se ve al 80% por la perspectiva, así que estos 22,1px de caja
   son los que la dejan en 215px de alto en pantalla. */
.client-card.is-active {
    height: calc(var(--step) * 4 / 3 + 22.1px);
}

.clients-track.is-ready .client-card.is-jumping {
    transition: none;
}

.client-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clients-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(80px, 14%, 270px);
    pointer-events: none;
    z-index: 5;
}

.clients-fade-left {
    left: 0;
    background: linear-gradient(to right, #fff 12%, rgba(255, 255, 255, 0) 100%);
}

.clients-fade-right {
    right: 0;
    background: linear-gradient(to left, #fff 12%, rgba(255, 255, 255, 0) 100%);
}

.clients-arrow {
    position: absolute;
    /* misma línea vertical que el centro de las fotos (.client-card usa top: 43%) */
    top: 43%;
    z-index: 6;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #c7ced3;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 0.2s ease;
}

.clients-arrow svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.clients-arrow:hover {
    color: var(--color-primary);
}

.clients-arrow-prev {
    left: clamp(8px, 2.5vw, 44px);
}

.clients-arrow-next {
    right: clamp(8px, 2.5vw, 44px);
}

.client-meta {
    position: absolute;
    left: 50%;
    /* El bloque va anclado al borde inferior del carrusel: el desplazamiento
       negativo es lo que abre los 30px de separación con la foto central. */
    bottom: calc(clamp(4px, 1vw, 18px) - 30px);
    z-index: 7;
    width: min(360px, 80vw);
    margin: 0;
    padding: 0;
    text-align: center;
    transform: translateX(-50%);
    transition: opacity 0.2s ease;
}

.client-meta.is-swapping {
    opacity: 0;
}

.client-name {
    margin: 0 0 3px;
    font-size: 16px;
    font-weight: 800;
    color: var(--color-secondary);
}

.client-company {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
}

.client-quote {
    margin: 0;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.6;
}

.auth {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 28px 16px 80px;
}

.auth-card {
    width: min(100%, 420px);
    margin: 0 auto;
    padding: 36px 32px 32px;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    box-shadow: var(--shadow-nav);
}

.auth-kicker {
    margin: 0 0 8px;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-card h1 {
    margin: 0 0 10px;
    font-family: var(--font-title);
    font-size: clamp(26px, 4vw, 32px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-secondary);
}

.auth-card h1 span {
    color: var(--color-primary);
}

.auth-lead {
    margin: 0 0 28px;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.55;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.form-alert {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #f4c7b8;
    border-radius: 8px;
    background: #fff4ef;
    color: #9a3412;
    font-size: 14px;
    font-weight: 600;
}

.field {
    display: grid;
    gap: 6px;
    color: var(--color-secondary);
    font-size: 13px;
    font-weight: 700;
}

.field-control {
    position: relative;
    display: block;
}

.field-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: #fff;
    color: var(--color-secondary);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field-control .field-input {
    padding-right: 44px;
}

.field-input:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(14, 31, 52, 0.12);
}

.field-input::placeholder {
    color: var(--color-muted);
    font-weight: 400;
}

.field-error {
    color: #b42318;
    font-size: 12px;
    font-weight: 600;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--color-muted);
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle:hover,
.password-toggle[aria-pressed="true"] {
    color: var(--color-secondary);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 8px;
    padding: 13px 16px;
    border: 1px solid var(--color-secondary);
    border-radius: 8px;
    background: var(--color-secondary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.btn-submit:hover {
    background: #08384c;
    border-color: #08384c;
}

.btn-submit-ghost {
    background: #fff;
    color: var(--color-secondary);
}

.btn-submit-ghost:hover {
    background: var(--color-secondary);
    color: #fff;
}

.auth-help {
    margin: 22px 0 0;
    color: var(--color-muted);
    font-size: 14px;
    text-align: center;
}

.auth-help a {
    font-weight: 700;
}

.dashboard {
    padding: 8px 20px 72px;
}

.dashboard-shell {
    width: 70vw;
    max-width: 1080px;
    margin: 0 auto;
}

.dashboard-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 8px;
}

.dashboard-top h1 {
    margin: 0 0 8px;
    font-family: var(--font-title);
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-secondary);
}

.dashboard-top h1 span {
    color: var(--color-primary);
}

.dashboard-top .auth-lead {
    margin-bottom: 24px;
}

.btn-logout {
    width: auto;
    margin-top: 0;
    padding: 10px 16px;
    font-size: 13px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.kpi-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kpi-card,
.panel-block {
    padding: 20px 18px;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    box-shadow: var(--shadow-nav);
}

.kpi-label {
    margin: 0;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.kpi-value {
    margin: 10px 0 6px;
    font-family: var(--font-title);
    font-size: clamp(32px, 4vw, 40px);
    font-weight: 700;
    line-height: 1;
    color: var(--color-secondary);
}

.kpi-hint {
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.4;
}

.panel-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.panel-block h2 {
    margin: 0 0 16px;
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-secondary);
}

.panel-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.panel-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0 0;
    border-top: 1px solid var(--color-line);
}

.panel-list .panel-row:first-child {
    padding-top: 0;
    border-top: 0;
}

.panel-row-title {
    margin: 0 0 3px;
    font-size: 15px;
    font-weight: 800;
    color: var(--color-secondary);
}

.panel-row-meta {
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
}

.panel-empty {
    margin: 0;
    color: var(--color-muted);
    font-size: 14px;
}

.form-success {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid #cde7d8;
    border-radius: 8px;
    background: #f1faf5;
    color: #17663a;
    font-size: 14px;
    font-weight: 600;
}

.panel-form {
    display: grid;
    gap: 16px;
    max-width: 560px;
}

.panel-form .btn-submit {
    width: auto;
    justify-self: start;
}

.panel-thumb {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 8px;
    background: #f3f5f6;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.media-tile {
    display: grid;
    gap: 10px;
}

.media-tile img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 12px;
    background: #f7fafb;
    border: 1px solid var(--color-line);
    border-radius: 10px;
}

.status-pill {
    flex-shrink: 0;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.status-pendiente,
.status-en_curso {
    background: #fff4ef;
    color: var(--color-primary);
}

.status-disponible,
.status-activo {
    background: #e8f4f8;
    color: var(--color-secondary);
}

.status-firmado,
.status-completado {
    background: #f3f5f6;
    color: var(--color-muted);
}

.panel-app {
    display: flex;
    min-height: 100vh;
    background: #f7fafb;
}

.sidebar {
    display: flex;
    flex-direction: column;
    width: 260px;
    flex-shrink: 0;
    padding: 20px 16px;
    background: #fff;
    border-right: 1px solid var(--color-line);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    margin: 0 8px 28px;
}

.sidebar-brand img {
    display: block;
    height: 42px;
    width: auto;
}

.sidebar-nav {
    flex: 1;
}

.sidebar-nav ul {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--color-secondary);
    font-size: 14px;
    font-weight: 700;
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
    background: #fff4ef;
    color: var(--color-primary);
}

.sidebar-nav svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-footer {
    display: grid;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--color-line);
}

.sidebar-user {
    display: grid;
    gap: 2px;
    margin: 0;
}

.sidebar-user span:first-child {
    color: var(--color-secondary);
    font-size: 14px;
    font-weight: 800;
}

.sidebar-user span:last-child {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 600;
}

.sidebar-logout,
.sidebar-web {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: #fff;
    color: var(--color-secondary);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.sidebar-logout:hover,
.sidebar-web:hover {
    border-color: var(--color-secondary);
}

.panel-stage {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.panel-topbar {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid var(--color-line);
}

.panel-topbar-title {
    margin: 0;
    flex: 1;
    color: var(--color-secondary);
    font-size: 15px;
    font-weight: 800;
}

.panel-topbar-user {
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 700;
}

.sidebar-toggle {
    display: grid;
    gap: 4px;
    width: 36px;
    height: 36px;
    padding: 9px 8px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.sidebar-toggle span {
    display: block;
    height: 1.5px;
    background: var(--color-secondary);
}

.panel-content {
    flex: 1;
    padding: 28px 32px 56px;
}

.sidebar-backdrop {
    display: none;
}

body.is-panel .dashboard {
    padding: 0;
}

body.is-panel .dashboard-shell {
    width: 100%;
    max-width: none;
    margin: 0;
}

.wrap {
    width: min(1200px, 100% - 48px);
    margin: 0 auto;
}

.section-title {
    margin: 0 0 14px;
    font-family: var(--font-title);
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--color-secondary);
}

.section-title span {
    color: var(--color-primary);
    font-weight: 400;
}

.section-subtitle {
    max-width: 560px;
    margin: 0 auto;
    color: var(--color-muted);
    font-size: clamp(13px, 1.1vw, 15px);
    line-height: 1.55;
}

.services {
    padding: 30px 0 clamp(60px, 7vw, 100px);
}

.services-head {
    margin-bottom: clamp(26px, 3vw, 40px);
    text-align: center;
}

.bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: clamp(220px, 20vw, 280px);
    gap: 16px;
}

.bento-card {
    display: flex;
    flex-direction: column;
    grid-column: span 4;
    margin: 0;
    padding: clamp(20px, 2vw, 30px);
    border-radius: 16px;
    background: #eef0f2;
    color: inherit;
    /* El menú flota sobre el contenido: sin esto el salto de ancla lo tapa. */
    scroll-margin-top: 110px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(14, 31, 52, 0.1);
}

.bento-card.is-wide {
    grid-column: span 7;
}

.bento-card.is-wide + .bento-card {
    grid-column: span 5;
}

.bento-card.is-top {
    justify-content: flex-start;
}

.bento-card.is-center {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bento-card.is-bottom {
    justify-content: flex-end;
}

.bento-card.is-dark {
    background: #8c919d;
}

.bento-card--copy {
    position: relative;
    background: #f3eae1;
}

.bento-card--copy h3 {
    color: var(--color-secondary);
}

.bento-card--copy .bento-card__title-main {
    color: #0e1f34;
}

.bento-card--copy .bento-card__title-accent {
    color: var(--color-primary);
}

.bento-card--copy p {
    color: var(--color-muted);
}

.bento-card h3 {
    margin: 0 0 4px;
    font-family: var(--font-title);
    font-size: clamp(19px, 1.6vw, 24px);
    font-weight: 300;
    color: var(--color-secondary);
}

.bento-card.is-accent-title h3 {
    color: var(--color-primary);
}

.bento-card p {
    max-width: 36ch;
    margin: 0;
    color: var(--color-muted);
    font-size: clamp(12px, 1vw, 14px);
    line-height: 1.55;
}

.bento-card p.is-accent {
    color: rgba(250, 100, 0, 0.72);
}

.bento-card.is-dark h3,
.bento-card.is-dark p {
    color: #fff;
}

.bento-card.is-center p {
    max-width: 26ch;
}

.bento-card--medida {
    position: relative;
    overflow: hidden;
    background: #131822;
}

.bento-card__go:not(.bento-card__go--dark) {
    position: absolute;
    right: clamp(16px, 1.8vw, 24px);
    bottom: clamp(16px, 1.8vw, 24px);
    z-index: 2;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #131822;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    pointer-events: none;
}

.bento-card--medida h3 {
    color: #eef0f2;
}

.bento-card--medida .bento-card__title-main {
    color: #fff;
}

.bento-card--medida .bento-card__title-accent {
    color: var(--color-primary);
}

.bento-card--medida .bento-card__copy p.is-accent {
    color: #fff;
}

.bento-card.bento-card--medida.is-bottom,
.bento-card.bento-card--web.is-bottom,
.bento-card.bento-card--automation.is-bottom,
.bento-card.bento-card--ia.is-bottom {
    justify-content: flex-start;
}

.bento-card--web {
    position: relative;
    overflow: hidden;
    padding-top: clamp(10px, 1.2vw, 14px);
}

.bento-card__go--dark {
    position: absolute;
    right: clamp(16px, 1.8vw, 24px);
    bottom: clamp(16px, 1.8vw, 24px);
    z-index: 2;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #131822;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    pointer-events: none;
}

.bento-card--web .bento-card__web-art {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    max-height: 46%;
    margin-bottom: 10px;
}

.bento-card--web .bento-card__web-art img {
    display: block;
    width: 86%;
    height: auto;
    max-height: clamp(88px, 11vw, 118px);
    margin: 0 auto;
    object-fit: contain;
    object-position: top center;
}

.bento-card--web .bento-card__web-copy {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    margin-top: auto;
}

.bento-card--web .bento-card__title-main {
    color: #0e1f34;
}

.bento-card--web .bento-card__title-accent {
    color: var(--color-primary);
}

.bento-card--automation {
    position: relative;
    overflow: hidden;
    padding-top: clamp(12px, 1.4vw, 16px);
}

.bento-auto-demo {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: clamp(14px, 2vw, 20px);
    width: 100%;
    max-height: 52%;
    margin-bottom: 10px;
}

.bento-auto-demo__apps {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 0 2px;
}

.bento-auto-demo__apps::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 12%;
    left: 12%;
    z-index: 0;
    border-top: 1px dashed rgba(250, 100, 0, 0.55);
    transform: translateY(-50%);
}

.bento-auto-demo__app {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 8px;
    background: #eef0f2;
    box-shadow: 0 0 0 1px rgba(14, 31, 52, 0.06);
    color: #0e1f34;
    font-size: clamp(9px, 0.75vw, 11px);
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.bento-auto-demo__app i {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--color-primary);
    font-style: normal;
}

.bento-auto-demo__swap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bento-auto-demo__manual {
    padding: 6px 10px;
    border: 1px dashed #b8c0c6;
    border-radius: 999px;
    background: #eef0f2;
    color: #9aa7ad;
    font-size: clamp(8px, 0.7vw, 10px);
    line-height: 1.2;
    text-decoration: line-through;
    white-space: nowrap;
}

.bento-auto-demo__arrow {
    color: #0e1f34;
    font-size: clamp(12px, 1vw, 14px);
    line-height: 1;
}

.bento-auto-demo__sync {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #0e1f34;
    color: #fff;
    font-size: clamp(8px, 0.7vw, 10px);
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.bento-auto-demo__sync i {
    display: grid;
    place-items: center;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--color-primary);
    color: #fff;
    font-size: 8px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
}

.bento-auto-demo__sync i::before {
    content: "✓";
}

.bento-auto-copy {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    margin-top: auto;
}

.bento-card--automation.is-accent-title h3 {
    color: #0e1f34;
}

.bento-card--automation .bento-card__title-main {
    color: #0e1f34;
}

.bento-card--automation .bento-card__title-accent {
    color: var(--color-primary);
}

.bento-card--ia {
    position: relative;
    overflow: hidden;
    background: #131822;
    padding-top: clamp(12px, 1.4vw, 16px);
}

.bento-ia-demo {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 5px;
    width: 90%;
    max-width: 90%;
    max-height: 44%;
    margin: 0 auto 10px;
}

.bento-ia-demo__user {
    align-self: flex-end;
    max-width: 74%;
    margin: 0;
    padding: 5px 8px;
    border-radius: 8px;
    background: #1a2d42;
    color: #fff;
    font-size: clamp(6.5px, 0.62vw, 8.5px);
    line-height: 1.3;
}

.bento-ia-demo__reply {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    max-width: 88%;
}

.bento-ia-demo__fab {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #131822;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
}

.bento-ia-demo__ai {
    flex: 1 1 auto;
    margin: 0;
    padding: 5px 8px;
    border-radius: 8px;
    background: var(--color-primary);
    color: #0e1f34;
    font-size: clamp(6.5px, 0.62vw, 8.5px);
    font-weight: 500;
    line-height: 1.3;
}

.bento-ia-demo__typing {
    display: inline-flex;
    gap: 3px;
    margin-left: 19px;
}

.bento-ia-demo__typing i {
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #5c6773;
    font-style: normal;
}

.bento-ia-copy {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    margin-top: auto;
}

.bento-card--ia .bento-card__title-main {
    color: #fff;
}

.bento-card--ia .bento-card__title-accent {
    color: var(--color-primary);
}

.bento-card--ia .bento-ia-copy p {
    color: #fff;
}

.bento-card--medida .bento-card__layout {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: clamp(12px, 2vw, 24px);
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
}

.bento-card--medida .bento-card__aside {
    display: flex;
    flex: 1 1 52%;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
    min-width: 0;
    min-height: 100%;
}

.bento-card--medida .bento-card__copy p {
    max-width: 38ch;
}

.bento-tool-tags {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 6px 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bento-tool-tags li {
    padding: 3px 9px;
    border: 1px dashed #9aa7ad;
    border-radius: 999px;
    color: #9aa7ad;
    font-size: clamp(10px, 0.75vw, 12px);
    line-height: 1.3;
}

.bento-crm-demo {
    flex: 0 0 clamp(168px, 36%, 248px);
    overflow: hidden;
    border: 1px solid rgba(154, 167, 173, 0.35);
    border-radius: 10px;
    background: #0e1f34;
}

.bento-card--medida .bento-crm-demo {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-height: 100%;
    height: 100%;
    margin-right: 36px;
}

.bento-crm-demo__bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 7px 10px 6px;
    border-bottom: 1px solid rgba(154, 167, 173, 0.2);
}

.bento-crm-demo__dots {
    display: flex;
    gap: 4px;
    grid-column: 1;
}

.bento-crm-demo__dots i {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #3d4f63;
    font-style: normal;
}

.bento-crm-demo__dots i:first-child {
    background: var(--color-primary);
}

.bento-crm-demo__title {
    grid-column: 2;
    color: #eef0f2;
    font-family: var(--font-title);
    font-size: clamp(9px, 0.8vw, 11px);
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}

.bento-crm-demo__body {
    display: flex;
    gap: 8px;
    padding: 8px 10px 10px;
}

.bento-card--medida .bento-crm-demo__body {
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
}

.bento-crm-demo__nav {
    display: flex;
    flex: 0 0 22px;
    flex-direction: column;
    gap: 5px;
    padding-top: 2px;
}

.bento-crm-demo__nav span {
    display: block;
    width: 100%;
    height: 5px;
    border-radius: 999px;
    background: #3d4f63;
}

.bento-crm-demo__nav span.is-active {
    background: var(--color-primary);
}

.bento-crm-demo__main {
    flex: 1 1 auto;
    min-width: 0;
}

.bento-card--medida .bento-crm-demo__main {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.bento-crm-demo__metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-bottom: 8px;
}

.bento-card--medida .bento-crm-demo__metrics {
    flex: 1 1 auto;
    margin-bottom: 10px;
    min-height: 0;
}

.bento-crm-demo__metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 34px;
    padding: 5px 4px;
    border-radius: 5px;
    background: #162a40;
}

.bento-card--medida .bento-crm-demo__metric {
    justify-content: center;
    min-height: 100%;
}

.bento-crm-demo__metric span {
    display: block;
    height: 4px;
    border-radius: 999px;
    background: var(--color-primary);
}

.bento-crm-demo__metric span:first-child {
    width: 88%;
}

.bento-crm-demo__metric span:last-child {
    width: 58%;
}

.bento-crm-demo__rows {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bento-card--medida .bento-crm-demo__rows {
    flex: 0 0 auto;
    margin-top: auto;
}

.bento-crm-demo__row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bento-crm-demo__line {
    flex: 1 1 auto;
    min-width: 0;
    height: 5px;
    border-radius: 999px;
    background: #3d4f63;
}

.bento-crm-demo__status {
    flex: 0 0 auto;
    padding: 3px 6px;
    border-radius: 999px;
    color: #fff;
    font-size: 7px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.bento-crm-demo__status.is-active {
    background: var(--color-primary);
}

.bento-crm-demo__status.is-pending {
    background: #5c6773;
}

.partners {
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 5vw, 70px) 0 100px;
}

.partners-head {
    position: relative;
    z-index: 3;
    text-align: right;
}

.partners-stage {
    position: relative;
    /* El panal sube por detrás del título para que las celdas lleguen hasta él. */
    margin-top: clamp(-90px, -6vw, -40px);
}

.partners-grid {
    --hex-w: clamp(96px, 11vw, 150px);
    --hex-h: calc(var(--hex-w) * 0.94);
    --hex-gap: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Las filas son más anchas que la sección: sobresalen por ambos lados y la
       sección las recorta, igual que en el diseño. */
    width: 100%;
    /* Inclinación en 3D: la fila superior se aleja y la inferior queda más grande. */
    transform: perspective(1500px) rotateX(19deg) rotateZ(3.5deg) scale(1.08);
    transform-origin: 50% 100%;
}

.hex-row {
    position: relative;
    z-index: 1;
    display: flex;
    gap: var(--hex-gap);
    margin-top: calc(var(--hex-h) * -0.25 + var(--hex-gap));
}

.hex-row:first-child {
    margin-top: 0;
}

.hex-row:nth-child(even) {
    transform: translateX(calc(var(--hex-w) * 0.5 + var(--hex-gap) * 0.5));
}

/* El contenedor va sin recortar porque el navegador aplica el filtro antes que
   el clip-path: si la forma estuviera aquí, la sombra se cortaría en el borde.
   El hexágono lo dibuja .hex-inner, que además es quien recibe el puntero. */
.hex {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: var(--hex-w);
    height: var(--hex-h);
    pointer-events: none;
    transform: scale(var(--hex-scale, 1));
    transition:
        transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
        filter 0.28s ease;
}

/* La celda con el cursor crece del todo y las vecinas la mitad, así el salto de
   tamaño se reparte en lugar de cortarse de golpe. */
/* La sombra va como filtro y no como box-shadow porque el clip-path del
   hexágono recortaría cualquier sombra de caja. */
.hex.is-hot {
    z-index: 4;
    filter:
        drop-shadow(0 0 4px rgba(250, 100, 0, 0.55))
        drop-shadow(0 12px 22px rgba(250, 100, 0, 0.45));
}

.hex.is-near {
    z-index: 3;
}

.hex-inner {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 0 14%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: #d9e0e6;
    pointer-events: auto;
}

.hex.is-empty .hex-inner {
    pointer-events: none;
}

.hex-inner::before {
    content: '';
    position: absolute;
    inset: 1px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: #fff;
}

.hex img {
    position: relative;
    width: 100%;
    max-height: 46%;
    object-fit: contain;
}

.partners-fade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to bottom, #fff 0%, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0) 82%, #fff 100%),
        linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0) 7%, rgba(255, 255, 255, 0) 93%, #fff 100%);
}

/* Kit Digital
   ------------------------------------------------------------------ */

.kit-hero {
    padding: clamp(50px, 6vw, 90px) 0 clamp(36px, 4vw, 60px);
    background: linear-gradient(180deg, #fdf3ec 0%, #fff 100%);
    text-align: center;
}

.kit-kicker {
    margin: 0 0 12px;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.kit-title {
    max-width: 26ch;
    margin: 0 auto 18px;
    font-family: var(--font-title);
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--color-secondary);
}

.kit-title span {
    color: var(--color-primary);
    font-weight: 400;
}

.kit-lead {
    max-width: 60ch;
    margin: 0 auto;
    color: var(--color-muted);
    font-size: clamp(13px, 1.1vw, 15px);
    font-weight: 300;
    line-height: 1.7;
}

.kit-cta {
    display: inline-block;
    margin-top: 26px;
    padding: 12px 26px;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.2s ease;
}

.kit-cta:hover {
    background: var(--color-secondary);
}

.kit-badges {
    display: block;
    width: min(100%, 620px);
    height: auto;
    margin: 40px auto 0;
    /* El JPG viene con fondo blanco, así se funde con el degradado del hero. */
    mix-blend-mode: multiply;
}

.kit-center {
    text-align: center;
}

.kit-center-text {
    text-align: center;
}

.kit-about {
    padding: clamp(40px, 5vw, 70px) 0;
}

.kit-about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(24px, 4vw, 70px);
    align-items: start;
}

.kit-about-copy p {
    margin: 0 0 18px;
    color: var(--color-muted);
    font-size: clamp(13px, 1.05vw, 15px);
    font-weight: 300;
    line-height: 1.8;
}

.kit-about-copy p:last-child {
    margin-bottom: 0;
}

.kit-segments {
    padding: clamp(40px, 5vw, 70px) 0;
}

.segment-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin: clamp(26px, 3vw, 40px) 0 0;
    padding: 0;
    list-style: none;
}

/* Cada segmento tiene su propio pastel para diferenciarlos sin recargar. */
.segment-card {
    padding: 22px 20px;
    border-radius: 16px;
    background: #f4f7fa;
}

.segment-card:nth-child(2) { background: #fdf3ec; }
.segment-card:nth-child(3) { background: #f2f7f4; }
.segment-card:nth-child(4) { background: #f6f4fb; }
.segment-card:nth-child(5) { background: #fdf8ec; }

.segment-name {
    margin: 0 0 10px;
    color: var(--color-muted);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.segment-amount {
    margin: 0 0 10px;
    color: var(--color-primary);
    font-family: var(--font-title);
    font-size: clamp(18px, 1.6vw, 22px);
    font-weight: 400;
}

.segment-detail {
    margin: 0;
    color: var(--color-secondary);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
}

.kit-solutions {
    padding: clamp(40px, 5vw, 70px) 0;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: clamp(26px, 3vw, 40px);
}

.solution-card {
    display: flex;
    flex-direction: column;
    padding: 26px 24px;
    border-radius: 18px;
    background: #f7f9fb;
}

.solution-card:nth-child(4n + 2) { background: #fdf5ef; }
.solution-card:nth-child(4n + 3) { background: #f3f7f5; }
.solution-card:nth-child(4n) { background: #f6f5fb; }

.solution-card h3 {
    margin: 0 0 14px;
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--color-secondary);
}

.solution-card ul {
    flex: 1 1 auto;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.solution-card li {
    position: relative;
    margin-bottom: 9px;
    padding-left: 16px;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
}

.solution-card li::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-primary);
}

.solution-card li:last-child {
    margin-bottom: 0;
}

.solution-aid {
    margin-top: auto;
    padding-top: 16px;
    color: var(--color-secondary);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.65;
}

.solution-aid span {
    color: var(--color-primary);
    font-weight: 400;
}

.kit-request {
    padding: clamp(50px, 6vw, 90px) 0 calc(clamp(50px, 6vw, 90px) + 100px);
    background: linear-gradient(180deg, #fff 0%, #fdf3ec 100%);
}

.kit-request-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: center;
}

.kit-request-copy p {
    margin: 0 0 22px;
    color: var(--color-muted);
    font-size: clamp(13px, 1.05vw, 15px);
    font-weight: 300;
    line-height: 1.8;
}

.kit-highlights {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kit-highlights li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 18px;
    color: var(--color-secondary);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
}

.kit-highlights li::before {
    content: '';
    position: absolute;
    top: 9px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
}

.kit-highlights strong {
    color: var(--color-primary);
    font-weight: 400;
}

.kit-form-card {
    display: grid;
    gap: 14px;
    padding: clamp(24px, 3vw, 34px);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(14, 31, 52, 0.07);
}

.kit-form-card form {
    display: grid;
    gap: 14px;
}

.kit-form-card .field {
    font-weight: 400;
}

.kit-feedback {
    margin: 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fdf3ec;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 400;
}

.kit-form-note {
    margin: 0;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 300;
    text-align: center;
}

/* Servicios
   ------------------------------------------------------------------ */

.service-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 5vw, 70px) 0 clamp(50px, 6vw, 90px);
    background: linear-gradient(180deg, #fdf3ec 0%, #fff 100%);
}

.service-hero:has(+ .service-copy),
.service-hero:has(+ .service-ia) {
    padding-bottom: clamp(16px, 2vw, 28px);
}

.service-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.service-hero-title {
    max-width: 18ch;
    margin: 0 0 16px;
    font-family: var(--font-title);
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--color-secondary);
}

.service-hero-title span {
    color: var(--color-primary);
    font-weight: 400;
}

.service-hero-lead {
    max-width: 46ch;
    margin: 0;
    color: var(--color-muted);
    font-size: clamp(13px, 1.1vw, 15px);
    font-weight: 300;
    line-height: 1.7;
}

.service-hero-actions {
    margin: clamp(18px, 2.2vw, 26px) 0 0;
    text-align: left;
}

.service-hero-body {
    max-width: 52ch;
    margin: 22px 0 0;
    color: var(--color-muted);
    font-size: clamp(13px, 1.05vw, 15px);
    font-weight: 300;
    line-height: 1.8;
}

.service-hero-body + .service-hero-body {
    margin-top: 14px;
}

.service-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 1.6vw, 22px);
    margin: clamp(26px, 3vw, 38px) 0 0;
    padding: 0;
    list-style: none;
}

.service-step-name {
    margin: 0 0 14px;
    padding: 10px 8px;
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    color: var(--color-secondary);
    font-size: clamp(13px, 1.1vw, 15px);
    font-weight: 500;
    text-align: center;
}

.service-step-detail {
    margin: 0;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 300;
    line-height: 1.7;
}

.service-hero-art img {
    display: block;
    width: 100%;
    height: auto;
    /* La ilustración viene con fondo blanco: así se funde con el degradado. */
    mix-blend-mode: multiply;
}

.service-copy {
    padding: 0 0 clamp(40px, 5vw, 70px);
}

.copy-lead {
    margin: 0 0 14px;
    color: var(--color-secondary);
    font-size: clamp(15px, 1.2vw, 17px);
    font-weight: 300;
    line-height: 1.55;
}

.copy-intro {
    margin: 0;
    color: var(--color-muted);
    font-size: clamp(13px, 1.05vw, 15px);
    font-weight: 300;
    line-height: 1.8;
}

.copy-case-figure {
    margin: clamp(28px, 4vw, 48px) 0 0;
}

.copy-case-figure img {
    display: block;
    width: 100%;
    height: clamp(240px, 32vw, 420px);
    border-radius: 24px;
    object-fit: cover;
}

.copy-promise {
    margin-top: 50px;
}

.copy-promise .section-title {
    margin-bottom: 14px;
}

.copy-promise-lead {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
}

.copy-promise-intro {
    max-width: 720px;
    margin: 0 auto clamp(28px, 3.5vw, 44px);
    color: var(--color-muted);
    font-size: clamp(13px, 1.05vw, 15px);
    font-weight: 300;
    line-height: 1.75;
    text-align: center;
}

.copy-cards-title {
    margin: clamp(36px, 4vw, 56px) 0 14px;
    text-align: center;
}

.copy-cards-lead {
    text-align: center;
}

.copy-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: clamp(26px, 3vw, 40px) 0 0;
    padding: 0;
    list-style: none;
}

.copy-card {
    padding: 22px 20px;
    border-radius: 16px;
    background: #f4f7fa;
}

.copy-card:nth-child(3n+2) { background: #fdf3ec; }
.copy-card:nth-child(3n) { background: #f2f7f4; }

.copy-card.is-tall {
    grid-row: span 2;
}

.copy-card.is-wide {
    grid-column: span 2;
}

.copy-card-title {
    margin: 0 0 10px;
    color: var(--color-secondary);
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
}

.copy-card-text {
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.7;
}

.service-ia {
    padding: 0 0 clamp(48px, 6vw, 80px);
}

.service-ia-last {
    padding-bottom: clamp(60px, 7vw, 110px);
}

.copy-cards.ia-beneficios {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ia-ofertas {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(16px, 2vw, 24px);
    margin: clamp(32px, 4vw, 48px) 0 0;
    padding: 0;
    list-style: none;
}

.ia-oferta {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 4px 28px;
    background: none;
}

.ia-oferta .procesos-text {
    flex: 1 1 auto;
}

.ia-oferta .ia-tags {
    flex-shrink: 0;
}

.ia-oferta + .ia-oferta {
    border-left: 1px solid var(--color-secondary);
}

.ia-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.ia-tags li {
    padding: 6px 10px;
    border: 1px solid var(--color-secondary);
    border-radius: 999px;
    background: none;
    color: var(--color-secondary);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.04em;
}

.ia-oferta-actions {
    flex-shrink: 0;
    margin: 20px 0 0;
}

.ia-ejemplos {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin: clamp(32px, 4vw, 48px) 0 0;
    padding: 0;
    list-style: none;
}

.ia-ejemplo {
    padding: 22px 24px;
    border: 1px dashed var(--color-secondary);
    border-radius: 16px;
    background: none;
}

.ia-ejemplo-title {
    margin: 0 0 14px;
    color: var(--color-primary);
    font-family: var(--font-title);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ia-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ia-flow-node {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 16px;
    padding: 9px 14px;
    border: 1px solid rgba(14, 31, 52, 0.12);
    border-radius: 8px;
    background: #fff;
}

.ia-flow-node:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
    font-family: var(--font-title);
    font-size: 13px;
    line-height: 1;
}

.ia-flow-label {
    color: var(--color-secondary);
    font-family: var(--font-title);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.ia-flow-node.is-hot {
    border-color: color-mix(in srgb, var(--color-primary) 45%, transparent);
    background: #fff7f0;
}

.ia-flow-node.is-hot .ia-flow-label {
    color: var(--color-primary);
}

.ia-ejemplo-text {
    margin: 16px 0 0;
    width: 100%;
    max-width: none;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.7;
}

.service-ia-dual-cta {
    margin-top: clamp(40px, 5vw, 56px);
    padding: clamp(36px, 4vw, 48px) 0 0;
    border-top: 1px solid rgba(14, 31, 52, 0.08);
}

.ia-dual-cta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(20px, 3vw, 28px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.ia-dual-cta-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: clamp(24px, 3vw, 32px);
    border: 1px solid rgba(14, 31, 52, 0.1);
    border-radius: 18px;
    background: linear-gradient(165deg, #fff 0%, #f8fafc 100%);
}

.ia-dual-cta-card:nth-child(2) {
    border-color: color-mix(in srgb, var(--color-primary) 18%, transparent);
    background: linear-gradient(165deg, #fff 0%, #fff8f2 100%);
}

.ia-dual-cta-label {
    margin: 0 0 10px;
    color: var(--color-primary);
    font-family: var(--font-title);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ia-dual-cta-title {
    margin: 0 0 12px;
    min-height: 2.7em;
    color: var(--color-secondary);
    font-family: var(--font-title);
    font-size: clamp(17px, 1.5vw, 21px);
    font-weight: 400;
    line-height: 1.35;
}

.ia-dual-cta-lead {
    flex: 1 1 auto;
    margin: 0;
    color: var(--color-muted);
    font-size: clamp(13px, 1.05vw, 15px);
    font-weight: 300;
    line-height: 1.65;
}

.ia-dual-cta-actions {
    flex-shrink: 0;
    margin: clamp(18px, 2vw, 22px) 0 0;
}

.web-cta-btn.is-secondary {
    background: #fff;
    color: var(--color-secondary);
    box-shadow: inset 0 0 0 1px rgba(14, 31, 52, 0.22);
}

.web-cta-btn.is-secondary:hover {
    color: var(--color-secondary);
    background: rgba(14, 31, 52, 0.04);
    filter: none;
}

.service-features {
    padding: clamp(40px, 5vw, 70px) 0 clamp(40px, 5vw, 70px);
    background: #edf2f6;
}

.service-prices {
    padding: clamp(40px, 5vw, 72px) 0 clamp(40px, 5vw, 70px);
}

.service-procesos {
    padding: clamp(20px, 3vw, 36px) 0 clamp(36px, 4vw, 56px);
}

.procesos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
    margin: clamp(32px, 4vw, 48px) 0 0;
    padding: 0;
    list-style: none;
}

.procesos-card {
    padding: 4px 28px;
}

.procesos-card + .procesos-card {
    border-left: 1px solid var(--color-secondary);
}

.procesos-title {
    margin: 0 0 10px;
    color: var(--color-secondary);
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
}

.procesos-text {
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.7;
}

.service-flow {
    padding: clamp(20px, 3vw, 40px) 0 clamp(60px, 7vw, 100px);
}

.service-flow-cta {
    margin-top: clamp(48px, 6vw, 72px);
    padding: clamp(40px, 5vw, 56px) 0;
    background: linear-gradient(180deg, #fff 0%, #fdf3ec 100%);
}

.service-flow-cta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

.service-flow-cta-title {
    margin: 0;
    text-align: left;
}

.service-flow-cta-lead {
    margin: 0;
    color: var(--color-muted);
    font-size: clamp(13px, 1.1vw, 15px);
    font-weight: 300;
    line-height: 1.55;
}

.service-flow-cta-actions {
    margin: clamp(18px, 2vw, 24px) 0 0;
}

.flow-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    margin: clamp(34px, 4vw, 56px) 0 0;
    padding: 0;
    list-style: none;
}

.flow-step {
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    padding: 0 clamp(5px, 0.6vw, 9px);
}

.flow-card {
    grid-row: 1;
    align-self: end;
    padding: 18px 17px 20px;
    border-radius: 18px;
    background: #f4f7fa;
}

.flow-step:nth-child(3n+2) .flow-card {
    background: #fdf3ec;
}

.flow-step:nth-child(3n) .flow-card {
    background: #f2f7f4;
}

.flow-title {
    margin: 0 0 8px;
    color: var(--color-secondary);
    font-family: var(--font-title);
    font-size: clamp(13px, 1.05vw, 15px);
    font-weight: 400;
    line-height: 1.35;
}

.flow-hook {
    margin: 0 0 6px;
    color: var(--color-secondary);
    font-size: clamp(11px, 0.82vw, 12px);
    font-weight: 400;
    line-height: 1.45;
}

.flow-text {
    margin: 0;
    color: var(--color-muted);
    font-size: clamp(12px, 0.9vw, 13px);
    font-weight: 300;
    line-height: 1.6;
}

/* La línea punteada se dibuja en cada paso de borde a borde: sin hueco entre
   columnas, los tramos encajan y parece una sola guía continua. */
.flow-axis {
    position: relative;
    grid-row: 2;
    height: clamp(36px, 4vw, 52px);
    margin: 0 calc(clamp(5px, 0.6vw, 9px) * -1);
}

.flow-axis::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    border-top: 2px dotted #dbe4ea;
}

.flow-axis::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 50%;
    left: 50%;
    width: 1px;
    background: var(--color-line);
}

.flow-step:nth-child(even) .flow-axis::after {
    top: 50%;
    bottom: 0;
}

.flow-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
}

.flow-number {
    grid-row: 3;
    align-self: start;
    margin: 0;
    color: var(--color-primary);
    font-family: var(--font-title);
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 300;
    line-height: 1;
    text-align: center;
}

.flow-step:nth-child(even) .flow-card {
    grid-row: 3;
    align-self: start;
}

.flow-step:nth-child(even) .flow-number {
    grid-row: 1;
    align-self: end;
}

.service-clients {
    padding: 0 0 clamp(60px, 7vw, 110px);
}

.service-maintain {
    padding: clamp(40px, 5vw, 70px) 0 calc(clamp(50px, 6vw, 90px) + 60px);
    background: linear-gradient(180deg, #fff 0%, #fdf3ec 100%);
}

.maintain-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: clamp(28px, 4vw, 48px) clamp(24px, 3.5vw, 56px);
    align-items: center;
}

.maintain-card {
    padding: 4px 0 4px 32px;
    border-left: 1px solid var(--color-secondary);
    background: none;
    box-shadow: none;
}

.maintain-card ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px clamp(16px, 2vw, 28px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.maintain-card li {
    position: relative;
    margin: 0;
    padding-left: 16px;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
}

.maintain-card li::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-primary);
}

.service-maintain .section-title {
    margin: 0 0 12px;
}

.maintain-badge {
    margin: 0 0 2px;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.web-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(28px, 3vw, 40px) clamp(18px, 2vw, 28px);
    margin: clamp(40px, 5vw, 64px) 0 0;
    padding: 0;
    list-style: none;
}

.web-card {
    padding: 14px 14px 18px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(14, 31, 52, 0.22);
}

.web-shot {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 18px;
    background: #f7f9fb;
}

.web-type {
    margin: 16px 0 0;
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
    color: var(--color-secondary);
}

.web-card.is-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    height: 100%;
}

.web-cta {
    margin: 0;
    padding: 0 6px;
    text-align: center;
}

.web-cta-btn {
    display: inline-block;
    padding: 11px 20px;
    border-radius: 10px;
    background: var(--color-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-align: center;
}

.web-cta-btn:hover {
    color: #fff;
    filter: brightness(0.96);
}

.service-prices .section-title {
    margin-bottom: 14px;
}

.service-prices .section-subtitle {
    margin-bottom: clamp(28px, 3.5vw, 44px);
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.price-card {
    display: flex;
    flex-direction: column;
    padding: 28px 26px;
    border-radius: 18px;
    background: #f7f9fb;
    box-shadow: 0 4px 12px rgba(14, 31, 52, 0.22);
}

.price-card:nth-child(2) {
    background: #fdf5ef;
}

.price-card:nth-child(3) {
    background: #f3f7f5;
}

.price-card h3 {
    margin: 0 0 8px;
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-primary);
    text-align: center;
}

.price-lead {
    margin: 0 0 18px;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
}

.price-card ul {
    flex: 1 1 auto;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.price-card li {
    position: relative;
    margin-bottom: 9px;
    padding-left: 16px;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
}

.price-card li::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-primary);
}

.price-card li:last-child {
    margin-bottom: 0;
}

.price-from {
    margin-top: auto;
    padding-top: 16px;
    color: var(--color-secondary);
    font-size: 14px;
    font-weight: 300;
    text-align: right;
}

.price-from span {
    color: var(--color-primary);
    font-weight: 400;
}

.price-cta {
    display: block;
    margin-top: 16px;
    padding: 11px 16px;
    border-radius: 10px;
    background: var(--color-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.price-cta:hover {
    color: #fff;
    filter: brightness(0.96);
}

.feature-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: clamp(28px, 4vw, 48px) clamp(24px, 3.5vw, 56px);
    align-items: stretch;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 1fr 1fr;
    gap: clamp(28px, 4vw, 48px) clamp(24px, 3.5vw, 56px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-intro {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.feature-intro .section-title {
    margin-bottom: 12px;
}

.feature-intro-lead {
    max-width: 34ch;
    margin: 0;
    color: var(--color-muted);
    font-size: clamp(13px, 1.05vw, 15px);
    font-weight: 300;
    line-height: 1.75;
}

.feature-item {
    min-width: 0;
}

.feature-title {
    margin: 0 0 8px;
    font-family: var(--font-title);
    font-size: clamp(14px, 1.15vw, 16px);
    font-weight: 400;
    line-height: 1.35;
    color: var(--color-secondary);
}

.feature-text {
    margin: 0;
    color: var(--color-muted);
    font-size: clamp(12px, 0.95vw, 13px);
    font-weight: 300;
    line-height: 1.7;
}

.promise {
    padding: clamp(20px, 3vw, 40px) 0 clamp(60px, 7vw, 110px);
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 60px);
    align-items: start;
}

.promise-grid.is-triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.promise-grid.is-triple .promise-card:nth-child(even) {
    margin-top: 0;
}

.promise-grid.is-triple .promise-card:nth-child(3n+1) {
    background: #f7f9fb;
}

.promise-grid.is-triple .promise-card:nth-child(3n+2) {
    background: #fdf5ef;
}

.promise-grid.is-triple .promise-card:nth-child(3n) {
    background: #f2f7f4;
}

.copy-promise .promise-grid.is-triple .promise-card {
    display: flex;
    flex-direction: column;
    padding: clamp(22px, 2.5vw, 30px) clamp(18px, 2vw, 24px);
}

.copy-promise .promise-grid.is-triple .promise-card:nth-child(3n+2) {
    margin-top: clamp(28px, 4vw, 64px);
}

.copy-promise .promise-grid.is-triple .promise-card:nth-child(3n) {
    margin-top: clamp(48px, 6vw, 96px);
}

.copy-promise .promise-icon svg {
    width: 28px;
    height: 28px;
}

.copy-promise .promise-kicker {
    margin: 16px 0 10px;
    letter-spacing: 0.16em;
}

.copy-promise .promise-title {
    margin-bottom: 12px;
    font-size: clamp(17px, 1.55vw, 21px);
}

.copy-promise .promise-text {
    flex: 1;
    max-width: none;
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.65;
}

/* Las tarjetas van escalonadas, como en la referencia. */
.promise-card:nth-child(even) {
    margin-top: clamp(30px, 5vw, 80px);
}

.promise-card {
    padding: clamp(30px, 3.5vw, 52px) clamp(26px, 3vw, 48px);
    background: #f7f9fb;
}

.promise-card:nth-child(even) {
    background: #fdf5ef;
}

.promise-icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 1.1;
    stroke-linecap: round;
}

.promise-kicker {
    margin: 26px 0 16px;
    color: var(--color-muted);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.promise-title {
    margin: 0 0 20px;
    font-family: var(--font-title);
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--color-secondary);
}

.promise-title span {
    color: var(--color-primary);
    font-weight: 400;
}

.promise-text {
    max-width: 42ch;
    margin: 0 0 28px;
    color: var(--color-muted);
    font-size: clamp(13px, 1.05vw, 15px);
    font-weight: 300;
    line-height: 1.8;
}

.promise-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.promise-link::after {
    content: '→';
    letter-spacing: 0;
    transition: transform 0.15s ease;
}

.promise-link:hover::after {
    transform: translateX(4px);
}

.process {
    padding: clamp(20px, 3vw, 40px) 0 clamp(60px, 7vw, 110px);
}

.process-heading {
    margin-bottom: clamp(28px, 3.5vw, 48px);
    text-align: center;
}

.process-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(26px, 3.5vw, 56px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.process-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

/* El recuadro iguala la altura del texto; el número queda centrado. */
.process-number {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 18px;
    background: linear-gradient(90deg, transparent 50%, #eef2f6 50%);
    font-family: var(--font-title);
    font-size: clamp(26px, 2.8vw, 38px);
    font-weight: 300;
    line-height: 1;
    color: var(--color-primary);
}

.process-title {
    margin: 0 0 6px;
    font-family: var(--font-title);
    font-size: clamp(14px, 1.15vw, 16px);
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--color-secondary);
}

.process-text {
    margin: 0;
    color: var(--color-muted);
    font-size: clamp(12px, 0.9vw, 13px);
    font-weight: 300;
    line-height: 1.55;
}

/* Contacto
   ------------------------------------------------------------------ */

.contact-hero {
    padding: clamp(50px, 6vw, 90px) 0 clamp(24px, 3vw, 40px);
    background: linear-gradient(180deg, #fdf3ec 0%, #fff 100%);
    text-align: center;
}

/* El degradado llega hasta el pie para que no quede una franja blanca. */
.contact-main {
    padding: clamp(30px, 4vw, 50px) 0 calc(clamp(50px, 6vw, 90px) + 100px);
    background: linear-gradient(180deg, #fff 0%, #fdf3ec 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: start;
}

.contact-copy p {
    margin: 0 0 26px;
    color: var(--color-muted);
    font-size: clamp(13px, 1.05vw, 15px);
    font-weight: 300;
    line-height: 1.8;
}

.contact-channels {
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 16px;
}

.contact-channels li {
    display: grid;
    gap: 3px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-line);
    color: var(--color-secondary);
    font-size: clamp(14px, 1.15vw, 16px);
    font-weight: 300;
}

.contact-channels li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.contact-channels a,
.contact-channel-link {
    color: var(--color-primary);
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--color-primary) 45%, transparent);
    text-underline-offset: 3px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.contact-channels a:hover,
.contact-channel-link:hover {
    color: var(--color-secondary);
    text-decoration-color: currentColor;
}

.contact-label {
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Empresa
   ------------------------------------------------------------------ */

.company-hero {
    padding: clamp(50px, 6vw, 90px) 0 clamp(30px, 3vw, 44px);
    background: linear-gradient(180deg, #fdf3ec 0%, #fff 100%);
    text-align: center;
}

.company-figure {
    padding: 0 0 clamp(40px, 5vw, 70px);
}

.company-figure img {
    display: block;
    width: 100%;
    height: clamp(240px, 32vw, 420px);
    border-radius: 24px;
    object-fit: cover;
}

.company-story {
    padding: 0 0 clamp(40px, 5vw, 70px);
}

.company-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(24px, 4vw, 70px);
    align-items: start;
}

.company-story-copy p {
    margin: 0 0 18px;
    color: var(--color-muted);
    font-size: clamp(13px, 1.05vw, 15px);
    font-weight: 300;
    line-height: 1.8;
}

.company-story-copy p:last-child {
    margin-bottom: 0;
}

.company-values {
    padding: 0 0 clamp(40px, 5vw, 70px);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: value;
}

.value-card {
    padding: 26px 24px;
    border-radius: 18px;
    background: #f4f7fa;
}

.value-card:nth-child(2) { background: #fdf3ec; }
.value-card:nth-child(3) { background: #f2f7f4; }

.value-card::before {
    counter-increment: value;
    content: counter(value, decimal-leading-zero) '.';
    display: block;
    margin-bottom: 14px;
    color: var(--color-primary);
    font-family: var(--font-title);
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 300;
    line-height: 1;
}

.value-name {
    margin: 0 0 10px;
    color: var(--color-secondary);
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 400;
}

.value-detail {
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.7;
}

.company-projects {
    padding: 0 0 calc(clamp(50px, 6vw, 90px) + 100px);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: clamp(26px, 3vw, 40px) 0 0;
    padding: 0;
    list-style: none;
}

.company-projects-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: clamp(10px, 1.5vw, 16px) clamp(18px, 3vw, 32px);
    margin-top: 50px;
    text-align: center;
}

.company-projects-cta-title {
    margin: 0;
}

.company-projects-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 36ch;
    color: var(--color-primary);
    font-size: clamp(15px, 1.35vw, 18px);
    font-weight: 400;
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.2s ease;
}

.company-projects-cta-link::after {
    content: '→';
    flex-shrink: 0;
    color: var(--color-primary);
    transition: transform 0.15s ease;
}

.company-projects-cta-link:hover {
    color: var(--color-secondary);
}

.company-projects-cta-link:hover::after {
    transform: translateX(4px);
}

.project-face {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    padding: 26px 24px;
    border: 1px solid var(--color-line);
    border-radius: 18px;
    background: #fff;
    color: inherit;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.project-face[href]:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(14, 31, 52, 0.07);
}

a.project-face:not([href]) {
    background: #f7f9fb;
}

a.project-face:not([href]) .project-icon svg {
    stroke: var(--color-muted);
}

/* Tarjeta anticipo: maqueta desenfocada con el rótulo encima. */
.project-card.is-teaser .project-face {
    position: relative;
    justify-content: flex-start;
    border-style: dashed;
    background: #fbfcfd;
    overflow: hidden;
}

.teaser-ghost {
    display: flex;
    flex-direction: column;
    gap: 14px;
    filter: blur(4px);
    opacity: 0.55;
}

.ghost-logo {
    width: 128px;
    height: 20px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--color-secondary) 0 62%, var(--color-primary) 62% 100%);
}

.ghost-line {
    width: 100%;
    height: 9px;
    border-radius: 5px;
    background: #dde4ea;
}

.ghost-line.is-short {
    width: 62%;
}

.ghost-link {
    width: 64px;
    height: 9px;
    border-radius: 5px;
    background: var(--color-primary);
}

.teaser-label {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--color-secondary);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.project-icon svg {
    display: block;
    width: 26px;
    height: 26px;
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.project-name {
    margin: 0;
    color: var(--color-secondary);
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 400;
}

.project-name.is-plain {
    color: var(--color-primary);
}

/* Crece para empujar el enlace al pie, lleve la tarjeta logo o icono más título. */
.project-tagline {
    flex: 1 1 auto;
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.7;
}

/* Los PNG están normalizados a un lienzo de 36px con la palabra a la misma altura. */
.project-logo {
    display: block;
    align-self: flex-start;
    width: auto;
    height: 36px;
    object-fit: contain;
    object-position: left top;
}

.project-link {
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-link::after {
    content: ' →';
}

.project-soon {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer {
    margin-top: 0;
    padding: clamp(30px, 4vw, 48px) 0 24px;
    background: #fff;
    border-top: 1px solid var(--color-line);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 40px;
}

.footer-brand img {
    display: block;
    height: 30px;
    width: auto;
}

.footer-contact,
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 26px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--color-muted);
    font-size: 13px;
}

.footer-contact a,
.footer-legal a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact a:hover,
.footer-legal a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    margin-top: clamp(20px, 3vw, 32px);
    padding-top: 16px;
    border-top: 1px solid var(--color-line);
}

.footer-bottom p {
    margin: 0;
    color: var(--color-muted);
    font-size: 12px;
}

.legal {
    padding: clamp(40px, 6vw, 80px) 0 calc(clamp(60px, 8vw, 110px) + 100px);
}

.legal-intro {
    max-width: 60ch;
    margin: 0;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.7;
}

.about {
    padding: clamp(60px, 7vw, 110px) 0;
    background: #fdf2ea;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(28px, 5vw, 80px);
    align-items: center;
}

.about-intro p {
    margin: 0;
    color: var(--color-muted);
    font-size: clamp(13px, 1.1vw, 15px);
    line-height: 1.6;
}

.about-copy {
    padding-left: clamp(24px, 4vw, 60px);
    border-left: 1px solid #e6d5c6;
}

.about-copy p {
    margin: 0 0 22px;
    color: var(--color-muted);
    font-size: clamp(13px, 1.05vw, 15px);
    line-height: 1.7;
}

.about-copy p:last-child {
    margin-bottom: 0;
}

.soluciones-hero {
    padding: clamp(50px, 6vw, 90px) 0 clamp(12px, 2vw, 24px);
    background: linear-gradient(180deg, #fdf3ec 0%, #fff 100%);
    text-align: center;
}

.soluciones-hero .kit-title {
    max-width: 18em;
}

.soluciones-list {
    padding: 0 0 clamp(60px, 7vw, 110px);
    background: linear-gradient(180deg, #fff 0%, #fdf3ec 100%);
}

.solucion-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 3.5vw, 48px) clamp(18px, 2vw, 28px);
    margin: clamp(36px, 5vw, 56px) 0 0;
    padding: 0;
    list-style: none;
}

.solucion-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    color: inherit;
}

.solucion-card:hover .solucion-title {
    color: var(--color-primary);
}

.solucion-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 16px;
    background: #f4f7fa;
}

.solucion-title {
    margin: 4px 0 0;
    padding-left: 5px;
    color: var(--color-secondary);
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
}

.solucion-excerpt {
    margin: 0;
    padding-left: 5px;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
}

.solucion-page {
    min-height: calc(100vh - var(--header-h));
    background: linear-gradient(180deg, #fdf3ec 0%, #fff 22%, #fff 78%, #fdf3ec 100%);
}

.solucion-head {
    padding: clamp(36px, 5vw, 64px) 0 clamp(20px, 3vw, 36px);
    text-align: center;
}

.solucion-preview-flag {
    display: inline-block;
    margin: 0 0 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff4ef;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.solucion-body {
    max-width: 760px;
    padding-bottom: clamp(60px, 7vw, 110px);
    color: var(--color-secondary);
    font-family: var(--font-body);
    font-size: clamp(15px, 1.15vw, 17px);
    font-weight: 300;
    line-height: 1.75;
}

.solucion-body h2,
.solucion-body h3,
.solucion-body h4 {
    margin: 1.4em 0 0.5em;
    font-family: var(--font-title);
    font-weight: 400;
    line-height: 1.3;
}

.solucion-body p,
.solucion-body ul,
.solucion-body ol,
.solucion-body figure {
    margin: 0 0 1em;
}

.solucion-rich-list {
    padding-left: 1.2em;
}

.solucion-rich-image img {
    display: block;
    width: 100%;
    border-radius: 16px;
}

.solucion-rich-image figcaption {
    margin-top: 8px;
    color: var(--color-muted);
    font-size: 13px;
}

.panel-form.is-wide {
    max-width: 820px;
}

.panel-row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.panel-row-actions a {
    color: var(--color-secondary);
    font-size: 13px;
}

.panel-row-actions a:hover {
    color: var(--color-primary);
}

.panel-thumb-lg {
    width: 96px;
    height: 64px;
    margin-top: 10px;
}

.editorjs-holder {
    min-height: 320px;
    padding: 8px 4px 16px;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    background: #fff;
}

.editorjs-holder .ce-block__content,
.editorjs-holder .ce-toolbar__content {
    max-width: 680px;
}

.status-publicada {
    background: #e8f4f8;
    color: var(--color-secondary);
}

.status-borrador {
    background: #fff4ef;
    color: var(--color-primary);
}

@media (max-width: 1100px) {
    .segment-grid,
    .copy-cards,
    .copy-cards.ia-beneficios {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .solution-grid,
    .project-grid,
    .solucion-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .copy-promise .promise-grid.is-triple {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 520px;
        margin-inline: auto;
    }

    .copy-promise .promise-grid.is-triple .promise-card:nth-child(3n+2),
    .copy-promise .promise-grid.is-triple .promise-card:nth-child(3n) {
        margin-top: 0;
    }
}

@media (max-width: 900px) {
    .promise-grid:not(.is-triple) {
        grid-template-columns: 1fr;
    }

    .promise-grid.is-triple {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .process-list,
    .feature-layout,
    .feature-grid,
    .price-grid,
    .web-grid,
    .maintain-layout,
    .service-flow-cta-grid,
    .procesos-grid,
    .ia-ofertas,
    .ia-dual-cta-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .procesos-card,
    .ia-oferta {
        padding: 24px 0 0;
    }

    .procesos-card + .procesos-card,
    .ia-oferta + .ia-oferta {
        border-left: 0;
        border-top: 1px solid var(--color-secondary);
    }

    .web-card.is-cta {
        min-height: 240px;
    }

    /* En pantallas estrechas la línea no cabe: se recorre en horizontal y los
       pasos se enganchan al centro al arrastrar. */
    .flow-scroll {
        /* El .wrap deja 24px a cada lado: los recuperamos para que la línea
           llegue al borde de la pantalla mientras se arrastra. */
        overflow-x: auto;
        margin: 0 -24px;
        padding: 0 24px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .flow-track {
        grid-auto-columns: minmax(230px, 240px);
    }

    .flow-step {
        scroll-snap-align: center;
    }

    .maintain-card ul {
        grid-template-columns: 1fr;
    }

    .promise-card:nth-child(even) {
        margin-top: 0;
    }

    .kit-about-grid,
    .kit-request-grid,
    .contact-grid,
    .service-hero-grid,
    .company-story-grid,
    .value-grid {
        grid-template-columns: 1fr;
    }

    .bento {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: clamp(200px, 32vw, 260px);
    }

    .bento-card,
    .bento-card.is-wide + .bento-card {
        grid-column: span 1;
    }

    .bento-card.is-wide {
        grid-column: span 2;
    }

    .bento-card--medida .bento-card__layout {
        flex-wrap: wrap;
    }
}

@media (max-width: 720px) {
    .ia-flow {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .ia-flow-node {
        margin-right: 0;
    }

    .ia-flow-node:not(:last-child) {
        margin-bottom: 14px;
    }

    .ia-flow-node:not(:last-child)::after {
        content: "↓";
        right: auto;
        left: 18px;
        top: auto;
        bottom: -15px;
        transform: none;
    }

    .ia-flow-label {
        white-space: normal;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 34px 0 0;
    }

    .clients {
        margin-top: -22px;
        padding: 0 0 66px;
    }

    .clients-viewport {
        height: 320px;
    }

    .clients-track {
        --step: 150px;
    }

    .client-card {
        top: 34%;
        width: 150px;
    }

    .client-meta {
        width: min(320px, 88vw);
        bottom: -30px;
    }

    .bento {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .bento-card,
    .bento-card.is-wide,
    .bento-card.is-wide + .bento-card {
        grid-column: auto;
        min-height: 170px;
    }

    .bento-card--medida {
        min-height: 280px;
    }

    .bento-card--medida .bento-card__layout {
        flex-direction: column;
        align-items: stretch;
    }

    .bento-card--medida .bento-crm-demo {
        align-self: stretch;
        width: 100%;
        max-width: 260px;
        min-height: 200px;
    }

    .segment-grid,
    .solution-grid,
    .project-grid,
    .solucion-grid,
    .copy-cards {
        grid-template-columns: 1fr;
    }

    .copy-card.is-tall,
    .copy-card.is-wide {
        grid-row: auto;
        grid-column: auto;
    }

    .partners-head {
        text-align: center;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .partners-stage {
        margin-top: -16px;
    }

    .partners-grid {
        --hex-w: 86px;
        transform: perspective(900px) rotateX(15deg) rotateZ(3deg) scale(1.12);
    }

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

    .about-copy {
        padding-left: 0;
        padding-top: 26px;
        border-left: 0;
        border-top: 1px solid #e6d5c6;
    }

    .clients-arrow {
        top: 34%;
        width: 44px;
        height: 44px;
    }

    .clients-arrow svg {
        width: 26px;
        height: 26px;
    }

    .clients-fade {
        width: 56px;
    }
}

@media (max-width: 980px) {
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .clients-track.is-ready .client-card {
        transition: none;
    }
}

@media (max-width: 860px) {
    .nav-group {
        width: 70vw;
        max-width: 70vw;
    }

    .nav-pill {
        flex: 1;
        padding-left: 10px;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-cluster {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        padding: 12px;
        background: #fff;
        border: 1px solid var(--color-line);
        border-radius: 10px;
        box-shadow: var(--shadow-nav);
        z-index: 21;
    }

    .nav-cluster.is-open {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Dentro del menú móvil el desplegable va desplegado, sin flotar. */
    .has-submenu {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .nav-trigger svg {
        display: none;
    }

    .nav-submenu {
        position: static;
        min-width: 0;
        padding: 0 0 0 12px;
        border: 0;
        border-left: 1px solid var(--color-line);
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-submenu a {
        padding: 4px 0;
    }

    .auth-card {
        padding: 28px 20px 24px;
    }

    .kpi-grid,
    .kpi-grid-three,
    .panel-split {
        grid-template-columns: 1fr;
    }

    .dashboard-top {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 40;
        transform: translateX(-105%);
        box-shadow: var(--shadow-nav);
        transition: transform 0.22s ease;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .panel-topbar {
        display: flex;
    }

    .panel-content {
        padding: 20px 16px 48px;
    }

    .sidebar-backdrop[hidden] {
        display: none;
    }

    body.sidebar-open .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 35;
        border: 0;
        background: rgba(14, 31, 52, 0.38);
        cursor: pointer;
    }
}
