/* CloudShift: estilos del sitio (paleta y estética del sitio original) */

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/roboto-latin.woff2") format("woff2");
}
@font-face {
  font-family: "mfn-icons";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../fonts/mfn-icons.woff2") format("woff2");
}

:root {
  --navy: #0c0834;
  --ink: #0a0541;
  --text: #3b3a5a;
  --cyan: #6de0f6;
  --pink: #d0098d;
  --pink-line: #d1088b;
  --purple: #8a2be2;
  --green: #27df6c;
  --light: #f9f8fa;
  --lavender: #f6f3fc;
  --white: #fff;
  --line: #e6e3ee;
  --grad: linear-gradient(135deg, var(--pink) 0%, var(--purple) 50%, var(--cyan) 100%);
  --wrap: 1140px;
  --header-h: 72px;
  --font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/26px var(--font); color: var(--text); background: var(--white); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { font-weight: 500; color: var(--ink); }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
section[id], aside[id] { scroll-margin-top: var(--header-h); }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.themecolor { color: var(--cyan); }
.line-pink { border-bottom: 4px solid var(--pink-line); padding-bottom: 3px; }
.line-cyan { border-bottom: 5px solid var(--cyan); padding-bottom: 4px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--cyan); color: var(--navy); font-weight: 500; border-radius: 6px; }
.skip:focus { top: 12px; }

/* Íconos */
.mfn { display: inline-block; font-style: normal; font-weight: normal; line-height: 1; -webkit-font-smoothing: antialiased; }
.mfn::before { font-family: "mfn-icons"; }
.icon-tools::before { content: "\e93a"; }
.icon-mail::before { content: "\e8d0"; }
.icon-whatsapp::before { content: "\f232"; }
.icon-up-open-big::before { content: "\e946"; }
.icon-cancel-fine::before { content: "\e963"; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ================= Botones (como el sitio original) ================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 9px 32px; border-radius: 50px; color: var(--white); font: 500 16px/26px var(--font); text-decoration: none; white-space: nowrap; transition: transform .2s, opacity .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--lg { min-height: 50px; padding: 12px 38px; font-size: 17px; }
.btn--pink { background: var(--pink); box-shadow: rgb(208 9 141 / .36) 0 5px 25px 5px; }
/* Secundario: mismo acabado que los íconos de Servicios, para no competir con el rosa. */
.btn--ring { border: 2px solid transparent; background: linear-gradient(#170d48, #170d48) padding-box, var(--grad) border-box; box-shadow: rgb(138 43 226 / .35) 0 0 22px; }
.btn--ring:hover { background: linear-gradient(#2c1670, #2c1670) padding-box, var(--grad) border-box; box-shadow: rgb(138 43 226 / .6) 0 0 30px 3px; }
.btn--ring.btn--lg { padding-block: 10px; } /* compensa el borde de 2px */
.btn--green { background: var(--green); box-shadow: rgb(39 223 108 / .25) 0 5px 25px 3px; }
.btn--grad { background: linear-gradient(135deg, var(--pink), var(--purple)); box-shadow: rgb(138 43 226 / .38) 0 5px 25px 3px; }
.btn .mfn { font-size: 17px; }

/* ================= Header ================= */
.header { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--white); transition: background-color .25s, box-shadow .25s; }
.header.is-scrolled { background: var(--navy); box-shadow: 0 8px 24px rgb(0 0 0 / .25); }
.header__bar { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); padding: 0 28px; }
.header__logo img { width: 230px; transition: width .25s; }
.header.is-scrolled .header__logo img { width: 175px; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav__menu { display: flex; gap: 4px; }
.nav__menu a { display: block; padding: 8px 12px; font-size: 15px; font-weight: 500; text-decoration: none; transition: color .2s; }
.nav__menu a:hover, .nav__menu a.is-active { color: var(--cyan); }
.nav__support { display: none; }
.header__support { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 8px 20px; border: 0; border-radius: 50px; background: linear-gradient(135deg, #7026cd, #43208f); box-shadow: rgb(112 38 205 / .45) 0 4px 20px 2px; font-size: 15px; font-weight: 500; line-height: 20px; text-decoration: none; white-space: nowrap; transition: filter .2s, box-shadow .2s; }
.header__support .mfn { color: var(--cyan); }
.header__support:hover { filter: brightness(1.2); box-shadow: rgb(138 43 226 / .6) 0 4px 26px 3px; }
.nav-toggle, .nav__close, .nav-overlay { display: none; }

/* ================= Inicio ================= */
.hero { position: relative; overflow: hidden; color: var(--white); background: var(--navy) url("../img/hosting3-main-bg-slider.jpg") center / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: auto 0 -2px; height: 120px; background: linear-gradient(rgb(12 8 52 / 0), var(--navy) 92%), url("../img/hosting-3-slider-gradient.png") center bottom / 100% 100% no-repeat; pointer-events: none; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 32px; padding: calc(var(--header-h) + 64px) 0 40px; }
.hero h1 { color: var(--white); font-size: clamp(36px, 4.4vw, 58px); line-height: 1.17; font-weight: 400; }
.hero__lead { margin-top: 24px; max-width: 46ch; font-size: 19px; line-height: 30px; color: rgb(255 255 255 / .85); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

/* Nube y bloques flotantes del sitio original, en proporción */
.hero__art { position: relative; aspect-ratio: 1163 / 814; }
.hero__cloud { width: 100%; animation: fadeIn 1.2s ease both .2s; }
.hero__block { position: absolute; width: 15.5%; animation: fadeIn 1s ease both .5s, float 5s ease-in-out 1.5s infinite; }
.hero__block--4 { left: 34.5%; top: .5%; }
.hero__block--2 { left: 44.2%; top: 8.9%; animation-delay: .5s, 2.2s; }
.hero__block--3 { left: 24.9%; top: 9.1%; animation-delay: .5s, 2.2s; }
.hero__block--1 { left: 34.5%; top: 17.1%; animation-delay: .5s, 2.9s; }
/* Escritorio: ilustración con el tamaño y la posición del sitio original (850px sobre 1240px).
   Va fuera del flujo para que el inicio no crezca en alto. */
@media (min-width: 960.02px) {
  .hero__copy { position: relative; z-index: 1; }
  .hero__art { position: absolute; left: calc(50% - min(180px, 14.516vw)); top: calc(50% + 14px); width: min(850px, 68.548vw); transform: translateY(-50%); pointer-events: none; }
}
@media (min-width: 960.02px) and (max-width: 1099.98px) {
  .hero__lead { max-width: calc(41vw - 48px); }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero.is-paused .hero__block { animation-play-state: paused; }
.hero__foot { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 20px 0 70px; }
.hero__areas { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 16px; line-height: 24px; font-weight: 500; color: rgb(255 255 255 / .92); }
.hero__areas li { display: flex; align-items: center; gap: 9px; }
.hero__areas .ico { width: 24px; height: 24px; color: var(--cyan); }
.hero__motion { display: inline-flex; flex: none; align-items: center; gap: 8px; min-height: 40px; padding: 8px 18px 8px 14px; border: 1px solid rgb(255 255 255 / .28); border-radius: 50px; background: rgb(12 8 52 / .45); color: rgb(255 255 255 / .9); font: 500 14px/20px var(--font); cursor: pointer; backdrop-filter: blur(6px); transition: border-color .2s, background-color .2s; }
.hero__motion[hidden] { display: none; }
.hero__motion:hover { border-color: var(--cyan); background: rgb(12 8 52 / .7); }
.hero__motion:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.hero__motion .ico { width: 16px; height: 16px; }
.hero__motion .ico--play { fill: currentColor; stroke: none; }
.hero__motion .ico--play, .hero__motion.is-paused .ico--pause { display: none; }
.hero__motion.is-paused .ico--play { display: block; }

/* ================= Títulos de sección ================= */
.section { padding: 100px 0; }
.section h2, .why__title, .clients__title, .brands__title { font-size: clamp(30px, 3.5vw, 44px); line-height: 1.2; }
.section h3 { font-size: 20px; line-height: 26px; }

/* Secciones claras: alternan blanco y lavanda muy suave, con los circuitos del inicio */
.steps, .why, .brands, .clients, .about { position: relative; }
.steps {
  background:
    linear-gradient(var(--white), rgb(255 255 255 / 0) 120px, rgb(255 255 255 / 0) calc(100% - 120px), var(--white)),
    radial-gradient(430px 400px at calc(50% - min(370px, 28vw)) 52%, rgb(138 43 226 / .13), rgb(138 43 226 / 0)),
    url("../img/circuito-claro-izquierda.svg") center / max(1920px, 100%) auto no-repeat,
    var(--white);
}
.why {
  background:
    radial-gradient(400px 350px at 50% 58%, rgb(255 255 255 / .95), rgb(255 255 255 / 0)),
    url("../img/circuito-claro-lados.svg") center / max(1920px, 100%) auto no-repeat,
    var(--lavender);
}
.brands {
  background:
    radial-gradient(520px 420px at 0 50%, rgb(138 43 226 / .07), rgb(138 43 226 / 0)),
    radial-gradient(520px 420px at 100% 50%, rgb(109 224 246 / .12), rgb(109 224 246 / 0)),
    var(--white);
}
.clients {
  background:
    url("../img/circuito-claro-lados.svg") center 25% / max(1920px, 100%) auto no-repeat,
    var(--lavender);
}
.about {
  background:
    linear-gradient(var(--white), rgb(255 255 255 / 0) 100px),
    radial-gradient(430px 380px at calc(50% + min(330px, 27vw)) 50%, rgb(138 43 226 / .14), rgb(138 43 226 / 0)),
    url("../img/circuito-claro-derecha.svg") center / max(1920px, 100%) auto no-repeat,
    var(--white);
}

/* Servicios (sección oscura, continúa el azul del inicio) */
.services {
  position: relative;
  margin-top: -1px; /* tapa el píxel fraccionario que deja el fondo del inicio */
  color: rgb(255 255 255 / .85);
  background:
    linear-gradient(var(--navy), rgb(12 8 52 / 0) 160px),
    radial-gradient(520px 470px at calc(50% - min(370px, 28vw)) 60%, rgb(112 38 205 / .36), rgb(112 38 205 / 0)),
    radial-gradient(620px 520px at 100% 100%, rgb(86 30 165 / .3), rgb(86 30 165 / 0)),
    url("../img/servicios-circuito.svg") center / max(1920px, 100%) auto no-repeat,
    var(--navy);
}
.services h2, .services h3 { color: var(--white); }
.services__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 72px; align-items: center; }
.services__head p { margin-top: 26px; font-size: 18px; line-height: 28px; max-width: 34ch; }
.services__art { width: min(100%, 440px); margin-top: 48px; }
.service { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 22px; padding-bottom: 44px; }
.service:last-child { padding-bottom: 0; }
/* Los servicios se unen con una pista, como los circuitos del inicio. */
.service:not(:last-child)::before { content: ""; position: absolute; left: 31px; top: 64px; bottom: 0; width: 2px; background: linear-gradient(var(--cyan), var(--purple) 55%, var(--pink)); opacity: .65; }
.service__icon { display: grid; place-items: center; width: 64px; height: 64px; border: 2px solid transparent; border-radius: 50%; background: linear-gradient(#170d48, #170d48) padding-box, var(--grad) border-box; box-shadow: rgb(138 43 226 / .4) 0 0 22px; }
.service__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service p { margin-top: 6px; }

.service__link { color: var(--cyan); font-weight: 500; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.service__link:hover { color: var(--white); }

/* Envío de correos: servicio SMTP con acceso al panel */
.mail {
  position: relative;
  background:
    radial-gradient(460px 400px at calc(50% + min(300px, 24vw)) 50%, rgb(255 255 255 / .9), rgb(255 255 255 / 0)),
    url("../img/circuito-claro-lados.svg") center / max(1920px, 100%) auto no-repeat,
    var(--lavender);
}
.mail__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); grid-template-areas: "head side" "list side"; grid-template-rows: auto auto; column-gap: 56px; row-gap: 34px; align-items: center; }
.mail__head { grid-area: head; }
.mail__head .line-pink { display: inline-block; line-height: 1.15; white-space: nowrap; }
.mail__lead { margin-top: 22px; max-width: 42ch; font-size: 18px; line-height: 28px; }
.mail__list { grid-area: list; }
.mail__list li { position: relative; display: flex; gap: 18px; padding-bottom: 20px; }
.mail__list li:last-child { padding-bottom: 0; }
.mail__list li:not(:last-child)::before { content: ""; position: absolute; left: 24px; top: 50px; bottom: 0; width: 2px; background: linear-gradient(var(--cyan), var(--purple) 55%, var(--pink)); opacity: .65; }
.mail__icon { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px var(--white), rgb(138 43 226 / .22) 0 6px 18px 3px; }
.mail__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--white); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mail .mail__list h3 { font-size: 18px; line-height: 24px; }
.mail__list p { margin-top: 2px; font-size: 15px; line-height: 21px; }
.mail__side { grid-area: side; min-width: 0; text-align: center; }
.mail__figure { margin: 0; }
.mail__flow { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 22px; padding: 0; list-style: none; }
.mail__flow::before { content: ""; position: absolute; left: 16.667%; right: 16.667%; top: 24px; height: 2px; background: linear-gradient(90deg, var(--pink), var(--purple), var(--cyan)); }
.mail__flow li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; line-height: 18px; font-weight: 500; }
.mail__flow svg { width: 50px; height: 50px; padding: 12px; border: 2px solid transparent; border-radius: 50%; background: linear-gradient(var(--white), var(--white)) padding-box, var(--grad) border-box; fill: none; stroke: var(--purple); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mail__window { overflow: hidden; border: 3px solid transparent; border-radius: 18px; background: linear-gradient(var(--navy), var(--navy)) padding-box, var(--grad) border-box; box-shadow: rgb(96 40 190 / .28) 0 22px 55px; }
.mail__window img { display: block; width: 100%; height: auto; }
.mail__bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; color: var(--white); font-size: 13px; }
.mail__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); }
.mail__bar i + i { background: var(--purple); }
.mail__bar i + i + i { background: var(--cyan); }
.mail__bar span { margin-left: 8px; }
.mail__figure figcaption { margin-top: 10px; font-size: 13px; line-height: 18px; text-wrap: balance; }
.mail__cta { margin-top: 28px; }
@media (max-width: 960px) {
  .mail__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "list" "side"; grid-template-rows: auto; row-gap: 30px; }
  .mail__lead { max-width: 52ch; }
}
@media (max-width: 640px) {
  .mail__cta { max-width: 100%; padding-inline: 22px; white-space: normal; }
  .mail__bar { height: 30px; font-size: 12px; }
}

/* Cómo trabajamos */
.steps__grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 72px; align-items: center; }
.steps__art { width: min(100%, 320px); justify-self: center; }
.steps__intro { margin-top: 26px; font-size: 18px; line-height: 28px; }
.steps__list { margin-top: 40px; counter-reset: step; }
.steps__list li { position: relative; padding: 0 0 40px 76px; counter-increment: step; }
.steps__list li::before { content: counter(step); position: absolute; top: 0; left: 0; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 2px solid transparent; background: linear-gradient(var(--white), var(--white)) padding-box, var(--grad) border-box; color: var(--ink); font-size: 21px; font-weight: 700; box-shadow: rgb(138 43 226 / .22) 0 0 20px; }
.steps__list li::after { content: ""; position: absolute; top: 52px; bottom: 0; left: 25px; width: 2px; background: linear-gradient(var(--cyan), var(--purple) 55%, var(--pink)); opacity: .65; }
.steps__list li:last-child { padding-bottom: 0; }
.steps__list li:last-child::after { display: none; }
.steps__list h3 { padding-top: 12px; }
.steps__list p { margin-top: 6px; }

/* Por qué elegirnos: los cuatro motivos conectados con CloudShift */
.why { padding: 90px 0; }
.why__title { text-align: center; margin-bottom: 44px; }
.why__title .themecolor, .clients__title .themecolor { color: inherit; }
.why__grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px minmax(0, 1fr); grid-template-rows: repeat(2, 1fr); }
.why__hub { grid-area: 1 / 2 / 3 / 3; display: grid; place-items: center; background: url("../img/conexiones.svg") center / 100% 100% no-repeat; }
.why__hub span { display: grid; place-items: center; width: 156px; height: 156px; border: 3px solid transparent; border-radius: 50%; background: linear-gradient(var(--white), var(--white)) padding-box, var(--grad) border-box; box-shadow: 0 0 0 11px rgb(255 255 255 / .75), 0 0 0 12px rgb(138 43 226 / .18), rgb(138 43 226 / .2) 0 14px 40px 10px; }
.why__hub img { width: 124px; height: auto; }
.feature { display: flex; align-items: center; gap: 24px; padding: 26px 0; }
/* El centro es el primer hijo: los pares son la columna izquierda, con el ícono hacia el centro. */
.feature:nth-child(even) { flex-direction: row-reverse; text-align: right; }
.feature__icon { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 5px var(--white), rgb(138 43 226 / .28) 0 8px 22px 5px; }
.feature__icon svg { width: 34px; height: 34px; fill: none; stroke: var(--white); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 22px; line-height: 28px; }
.feature p { margin-top: 10px; max-width: 42ch; }

/* Tecnologías con las que trabajamos */
.brands { padding: 100px 0; }
.brands__title { text-align: center; margin-bottom: 18px; }
.brands__lead { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.brands__groups { display: grid; grid-template-columns: 2fr 3fr; gap: 40px 28px; }
.brands__group--main { grid-column: 1 / -1; }
.brands__group--main .brands__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.brands__group--main .brands__list li { min-height: 176px; font-size: 16px; }
.brands__group--main .brands__list img { width: 80px; height: 80px; }
.brands__group h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 18px; color: var(--ink); }
.brands__group h3::after { content: ""; flex: 1; height: 8px; background: radial-gradient(circle at calc(100% - 4px) 50%, var(--cyan) 0 3.5px, transparent 4px), linear-gradient(90deg, var(--pink), var(--purple) 50%, var(--cyan)) left center / calc(100% - 7px) 2px no-repeat; opacity: .75; }
.brands__icon { flex: none; width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: var(--grad); fill: none; stroke: var(--white); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.brands__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 14px; }
.brands__list li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 148px; padding: 20px 12px; border: 1px solid transparent; border-radius: 14px; background: linear-gradient(var(--white), var(--white)) padding-box, linear-gradient(135deg, rgb(208 9 141 / .5), rgb(138 43 226 / .22) 50%, rgb(54 191 224 / .65)) border-box; box-shadow: rgb(96 40 190 / .12) 0 10px 26px; text-align: center; font-size: 14px; font-weight: 500; line-height: 18px; color: var(--ink); }
.brands__list img { width: 64px; height: 64px; object-fit: contain; }
/* Logos que ya incluyen el nombre de la marca: sin texto abajo y más grandes. */
.brands__list .brands__solo { width: auto; max-width: 100%; height: 60px; }
.brands__group--main .brands__list .brands__solo { width: auto; height: 80px; }

/* Clientes */
.clients { padding: 100px 0; text-align: center; }
.clients__title { margin-bottom: 70px; text-wrap: balance; }
.clients__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.clients__list li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; font-size: 18px; font-weight: 500; color: var(--ink); }
.clients__list li:not(:last-child)::after { content: ""; position: absolute; top: 81px; left: calc(50% + 82px); width: calc(100% + 24px - 164px); height: 2px; background: linear-gradient(90deg, var(--pink), var(--purple) 50%, var(--cyan)); opacity: .65; }
.clients__list img { width: 164px; height: 164px; padding: 16px; border: 3px solid transparent; border-radius: 50%; background: linear-gradient(var(--white), var(--white)) padding-box, var(--grad) border-box; box-shadow: rgb(138 43 226 / .2) 0 0 28px; object-fit: contain; }

/* Nosotros */
.about__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.about__text p { margin-top: 20px; font-size: 18px; line-height: 30px; max-width: 58ch; }
.about__text h2 + p { margin-top: 30px; }
.about__art { width: min(100%, 460px); justify-self: center; }

/* ================= Contacto ================= */
.contact { padding: 100px 0; color: var(--white); background: var(--navy) url("../img/hosting3-footer-bg.png") center top / cover no-repeat; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 48px; align-items: stretch; }
.contact__main { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 32px; }
.contact h2 { color: var(--white); font-size: clamp(28px, 3vw, 36px); line-height: 1.25; }
.contact__lead { margin-top: 20px; font-size: 17px; color: rgb(255 255 255 / .85); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.contact__data { display: grid; gap: 10px; margin-top: 30px; color: rgb(255 255 255 / .85); }
.contact__data li { display: flex; align-items: center; gap: 12px; }
.contact__data .mfn, .contact__data .ico { width: 18px; color: var(--cyan); text-align: center; }
.contact__data a { text-decoration: none; }
.contact__data a:hover { color: var(--cyan); }

.support { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; border-radius: 16px; background: rgb(255 255 255 / .06); border: 1px solid rgb(109 224 246 / .35); scroll-margin-top: calc(var(--header-h) + 20px); }
.support__icon { display: grid; place-items: center; flex: none; width: 60px; height: 60px; margin-bottom: 18px; border-radius: 50%; background: var(--grad); font-size: 24px; }
.support h3 { color: var(--white); font-size: 21px; }
.support p { max-width: 46ch; }
.support p { margin-top: 12px; color: rgb(255 255 255 / .8); font-size: 15px; line-height: 24px; }
.support .btn { margin-top: 22px; }
.ico--logo { fill: currentColor; stroke: none; }
.support .support__mac { margin-top: 22px; color: var(--white); font-size: 15px; font-weight: 500; }
.support__mac-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 10px; }
.support .support__mac-links .btn { margin: 0; min-height: 44px; padding: 8px 14px; gap: 8px; font-size: 15px; }
.support__mac-links .ico--logo { margin-top: -2px; }
.support h3 + p + .support__mac-links { margin-top: 22px; }
.support .support__mac-links + .btn { margin-top: 12px; }
.support .support__mac[hidden] + .support__mac-links { margin-top: 14px; }

/* ================= Pie ================= */
.footer { background: var(--navy) url("../img/hosting3-footer-bg.png") 100% 100% / cover no-repeat; color: var(--white); border-top: 1px solid rgb(255 255 255 / .08); }
.footer__inner { display: flex; align-items: center; gap: 28px; padding: 28px 0; }
.footer__copy { margin-right: auto; }
.footer__top:hover { color: var(--cyan); }
.footer__top { font-size: 20px; text-decoration: none; }

/* Botón flotante de WhatsApp */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--green); color: var(--white); font-size: 31px; text-decoration: none; box-shadow: rgb(39 223 108 / .35) 0 6px 20px; transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); }
.wa-float:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
/* Sin margen lateral suficiente, se corre lo que quedaría debajo del botón flotante. */
@media (min-width: 640.02px) and (max-width: 1359.98px) {
  .hero__foot, .footer__inner { padding-right: 84px; }
}

/* ================= Tablet ================= */
@media (max-width: 1459.98px) {
  .nav__menu a { padding: 8px; font-size: 14px; }
  .header__bar { gap: 16px; padding: 0 20px; }
  .header__logo img { width: 190px; }
}

/* Menú lateral */
@media (max-width: 1239.98px) {
  .header__support { margin-left: auto; min-height: 40px; padding: 6px 18px; }
  .nav-toggle { display: block; position: relative; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; }
  .nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--cyan); }
  .nav-toggle span:nth-child(1) { top: 15px; }
  .nav-toggle span:nth-child(2) { top: 21px; }
  .nav-toggle span:nth-child(3) { top: 27px; }

  .nav { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(280px, 85vw); flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 70px 0 24px; background: var(--navy); overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; }
  /* La sombra del panel oscurece el resto, header incluido; la capa de abajo solo recibe el toque para cerrar. */
  .nav.is-open { transform: none; visibility: visible; box-shadow: 0 0 0 100vmax rgb(0 0 0 / .5); }
  .nav__close { display: grid; place-items: center; position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; padding: 0; background: none; border: 0; color: var(--white); font-size: 22px; cursor: pointer; }
  .nav__menu { flex-direction: column; gap: 0; }
  .nav__menu li { border-bottom: 1px solid rgb(255 255 255 / .05); }
  .nav__menu a { padding: 13px 24px; font-size: 15px; }
  .nav__support { display: block; margin: 24px 24px 0; color: var(--cyan); font-size: 14px; text-decoration: none; }
  .nav-overlay { display: block; position: fixed; inset: 0; z-index: 45; }
  .nav-overlay[hidden] { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 62px; }
  .header { background: var(--navy); }
  .header__bar { padding: 0 14px 0 16px; }
  .header__logo img, .header.is-scrolled .header__logo img { width: 175px; }

  .hero__grid { grid-template-columns: 1fr; gap: 24px; padding: calc(var(--header-h) + 48px) 0 16px; }
  .hero__art { width: min(100%, max(560px, 68.548vw)); justify-self: center; }
  .hero__foot { padding-bottom: 56px; }

  .section { padding: 72px 0; }
  .services__grid, .steps__grid, .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .services__head p { max-width: 52ch; }
  .services__art { display: none; }
  .steps__art { display: none; }
  .about__art { width: min(100%, 320px); }
  .brands { padding: 72px 0; }
  .brands__groups { grid-template-columns: 1fr; gap: 36px; }
  .brands__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brands__group:nth-child(2) .brands__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__grid { grid-template-columns: 1fr; }
}

/* Sin lugar para el centro de conexiones: dos columnas simples. */
@media (max-width: 1099.98px) {
  .why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; gap: 44px 32px; }
  .why__hub { display: none; }
  .feature, .feature:nth-child(even) { flex-direction: row; align-items: flex-start; padding: 0; text-align: left; }
}

/* ================= Celular ================= */
@media (max-width: 640px) {
  body { font-size: 15px; line-height: 24px; }
  .wrap { width: calc(100% - 36px); }
  .header__bar { gap: 8px; padding: 0 10px 0 14px; }
  .header__logo img, .header.is-scrolled .header__logo img { width: 150px; }
  .header__support { gap: 6px; min-height: 40px; padding: 6px 12px; font-size: 13px; }
  .header__support-more { display: none; }

  /* Inicio en una pantalla: la ilustración toma el alto que dejan el texto y las áreas. */
  .hero { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
  .hero__grid { flex: 1; grid-template-rows: auto minmax(120px, 1fr); align-items: stretch; gap: 0; padding: calc(var(--header-h) + clamp(16px, 4svh, 34px)) 0 0; }
  .hero h1 { font-size: clamp(22px, 6.8vw, 30px); line-height: 1.22; text-wrap: balance; }
  .hero__lead { margin-top: clamp(10px, 1.8svh, 16px); font-size: clamp(14px, 3.9vw, 16px); line-height: 1.5; }
  .hero__actions { gap: 10px; margin-top: clamp(14px, 2.6svh, 24px); }
  .hero__actions .btn { min-height: 44px; padding: 8px 20px; gap: 8px; font-size: 15px; line-height: 22px; white-space: nowrap; box-shadow: rgb(208 9 141 / .3) 0 3px 14px 1px; }
  .hero__actions .btn--ring { padding-block: 6px; box-shadow: rgb(138 43 226 / .3) 0 0 14px; }
  .hero__cta-more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: pre; }
  .hero__art { justify-self: stretch; width: auto; min-height: 0; margin-inline: -18px; aspect-ratio: auto; container-type: size; pointer-events: none; }
  .hero__scene { position: absolute; left: 50%; top: 50%; width: 100%; width: min(118cqw, 172cqh); aspect-ratio: 1163 / 814; transform: translate(-50%, -46%); }
  .hero__foot { position: static; padding: 8px 72px 16px 0; }
  .hero__areas { position: relative; z-index: 2; gap: 4px 14px; font-size: 13px; line-height: 22px; }
  .hero__areas li { gap: 6px; }
  .hero__areas .ico { width: 18px; height: 18px; }
  .hero__motion { position: absolute; z-index: 2; right: 19px; bottom: 78px; width: 44px; min-height: 44px; justify-content: center; gap: 0; padding: 0; }
  .hero__motion span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

  .section { padding: 60px 0; }
  .section h2, .why__title, .clients__title, .brands__title { font-size: 28px; line-height: 1.25; }
  .section h3 { font-size: 18px; line-height: 24px; }
  .services__head p, .steps__intro, .about__text p { font-size: 16px; line-height: 26px; }
  .service { grid-template-columns: 52px minmax(0, 1fr); gap: 16px; }
  .service { padding-bottom: 34px; }
  .service:last-child { padding-bottom: 0; }
  .service:not(:last-child)::before { left: 25px; top: 52px; }
  .service__icon { width: 52px; height: 52px; }
  .service__icon svg { width: 24px; height: 24px; }
  .steps__list li { padding-left: 66px; }

  .why { padding: 60px 0; }
  .why__title { margin-bottom: 40px; }
  .why__grid { grid-template-columns: 1fr; gap: 0; }
  .feature, .feature:nth-child(even) { position: relative; gap: 16px; padding-bottom: 34px; }
  .feature:last-child { padding-bottom: 0; }
  .feature:not(:last-child)::before { content: ""; position: absolute; left: 25px; top: 52px; bottom: 0; width: 2px; background: linear-gradient(var(--cyan), var(--purple) 55%, var(--pink)); opacity: .65; }
  .feature__icon { width: 52px; height: 52px; }
  .feature__icon svg { width: 24px; height: 24px; }
  .feature h3 { font-size: 18px; line-height: 24px; }
  .feature p { margin-top: 10px; }

  .brands { padding: 60px 0; }
  .brands__title { margin-bottom: 14px; }
  .brands__lead { margin-bottom: 40px; }
  .brands__group--main .brands__list { gap: 10px; }
  .brands__group--main .brands__list li { min-height: 124px; font-size: 13px; }
  .brands__group--main .brands__list img { width: 52px; height: 52px; }
  .brands__list { gap: 10px; }
  .brands__list li { min-height: 124px; padding: 16px 8px; gap: 10px; font-size: 13px; }
  .brands__list img { width: 52px; height: 52px; }
  .brands__list .brands__solo { height: 42px; }
  .brands__group--main .brands__list .brands__solo { width: auto; height: 52px; }
  .clients { padding: 60px 0; }
  .clients__title { margin-bottom: 44px; }
  .clients__list { grid-template-columns: 1fr; gap: 0; }
  .clients__list li { flex-direction: row; gap: 20px; width: 270px; margin: 0 auto; padding-bottom: 34px; text-align: left; }
  .clients__list li:last-child { padding-bottom: 0; }
  .clients__list li:not(:last-child)::after { left: 53px; top: 108px; bottom: 0; width: 2px; height: auto; background: linear-gradient(var(--cyan), var(--purple) 55%, var(--pink)); }
  .clients__list img { width: 108px; height: 108px; padding: 10px; }

  .contact { padding: 60px 0 100px; }
  .contact__main { grid-template-columns: 1fr; gap: 28px; }
  .contact__logo { width: 150px; }
  .contact__actions { flex-direction: column; align-items: stretch; }
  .support { padding: 24px; }

  .footer__inner { flex-wrap: wrap; justify-content: center; text-align: center; gap: 12px 24px; padding: 24px 0 96px; }
  .footer__copy { width: 100%; margin: 0; }

  .wa-float { right: 15px; bottom: 16px; width: 52px; height: 52px; font-size: 26px; }
}

/* Celulares muy bajos: se ajusta un poco más para que siga entrando en una pantalla. */
@media (max-width: 640px) and (max-height: 540px) {
  .hero__grid { grid-template-rows: auto minmax(70px, 1fr); padding-top: calc(var(--header-h) + 10px); }
  .hero h1 { font-size: clamp(21px, 6vw, 24px); line-height: 1.18; }
  .hero__lead { margin-top: 8px; font-size: 14px; line-height: 1.35; }
  .hero__actions { margin-top: 12px; }
  .hero__foot { padding: 4px 72px 8px 0; }
  .hero__areas { row-gap: 0; line-height: 20px; }
}

/* Celulares angostos: los botones largos no deben ensanchar la página. */
@media (max-width: 374.98px) {
  .btn { white-space: normal; padding-inline: 18px; text-align: center; }
  .support { padding-inline: 18px; }
  .support > .btn { gap: 8px; padding-inline: 16px; }
  .support__mac-links { grid-template-columns: 1fr; }
  .header__logo img, .header.is-scrolled .header__logo img { width: 124px; }
  .header__support .mfn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Cinco áreas en el inicio: tres y dos cuando no entran en una fila. */
@media (min-width: 640.02px) and (max-width: 999.98px) {
  .hero__areas { display: grid; grid-template-columns: repeat(3, auto); gap: 14px 22px; }
}
@media (min-width: 640.02px) and (max-width: 767.98px) {
  .hero__foot { flex-direction: column; align-items: flex-start; }
}

/* ================= Encuadre según el alto de la pantalla (escritorio) =================
   Cada sección ocupa el alto libre debajo del header y su contenido se achica si la pantalla es baja. */
@media (min-width: 960.02px) {
  main > section[id], .light > section[id] {
    display: flex; flex-direction: column; justify-content: center;
    min-height: min(100vh - var(--header-h), 900px);
    padding-block: clamp(16px, 16.667vh - 93px, 100px);
  }
  main > section.contact[id] { min-height: 0; }
  .service:not(:last-child) { padding-bottom: clamp(10px, 13.333vh - 94px, 34px); }
}
@media (min-width: 960.02px) and (max-height: 800px) {
  .service { grid-template-columns: 52px minmax(0, 1fr); gap: 18px; }
  .service:not(:last-child) { padding-bottom: clamp(5px, 13.333vh - 81px, 34px); }
  .service:not(:last-child)::before { left: 25px; top: 52px; }
  .service__icon { width: 52px; height: 52px; }
  .service__icon svg { width: 25px; height: 25px; }
  .services .service h3 { font-size: 18px; line-height: 24px; }
  .service p { margin-top: 3px; font-size: 15px; line-height: 21px; }
  .brands__title { margin-bottom: 10px; }
  .brands__lead { margin-bottom: 22px; }
  .brands__groups { row-gap: 20px; }
  .brands__group h3 { margin-bottom: 12px; }
  .brands__group--main .brands__list li { min-height: 132px; padding-block: 12px; }
  .brands__list li { min-height: 116px; padding-block: 10px; gap: 10px; }
  .brands__group--main .brands__list img { width: 64px; height: 64px; }
  .brands__list img { width: 52px; height: 52px; }
  .brands__list .brands__solo { height: 50px; }
  .brands__group--main .brands__list .brands__solo { height: 66px; }
}
@media (min-width: 960.02px) and (max-height: 760px) {
  .services__grid { gap: 56px; }
  .services__head p { margin-top: 18px; }
  .services__art { width: min(100%, 440px, 124vh - 410px); margin-top: 28px; }
  .mail__grid { row-gap: 12px; }
  .mail__head h2 { font-size: clamp(28px, 3vw, 36px); }
  .mail__lead { margin-top: 12px; font-size: 16px; line-height: 23px; }
  .mail__list li { padding-bottom: 6px; gap: 14px; }
  .mail__flow { margin-bottom: 12px; }
  .mail__flow::before { top: 20px; }
  .mail__flow li { gap: 4px; font-size: 13px; line-height: 16px; }
  .mail__flow svg { width: 42px; height: 42px; padding: 10px; }
  .mail__list li:not(:last-child)::before { left: 21px; top: 44px; }
  .mail__icon { width: 44px; height: 44px; }
  .mail__icon svg { width: 21px; height: 21px; }
  .mail .mail__list h3 { font-size: 17px; line-height: 22px; }
  .mail__list p { font-size: 14px; line-height: 19px; }
  .mail__cta { margin-top: 18px; }
  .steps__intro { margin-top: 16px; }
  .steps__list { margin-top: 26px; }
  .steps__list li { padding-bottom: 24px; }
  .steps__art { width: min(100%, 320px, 63vh - 60px); }
  .why__title { margin-bottom: 24px; }
  .feature { padding-block: 18px; }
  .clients__title { margin-bottom: 48px; }
}

/* Pantallas medianas: servicios en dos columnas y marcas compactas, para que entren al hacer clic. */
@media (min-width: 700px) and (max-width: 960px) {
  .services__grid { gap: 32px; }
  .services__head p { margin-top: 16px; }
  .services__list { display: grid; grid-auto-flow: column; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); column-gap: 28px; }
  .service { grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding-bottom: 26px; }
  .service:nth-child(4) { padding-bottom: 0; }
  .service:not(:last-child)::before { left: 25px; top: 52px; }
  .service:nth-child(4)::before { display: none; }
  .service__icon { width: 52px; height: 52px; }
  .service__icon svg { width: 25px; height: 25px; }
  .services .service h3 { font-size: 18px; line-height: 24px; }
  .service p { margin-top: 3px; font-size: 15px; line-height: 21px; }
  .mail__grid { row-gap: 22px; }
  .mail__lead { margin-top: 14px; }
  .mail__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
  .mail__list li { padding: 0; }
  .mail__list li:not(:last-child)::before { display: none; }
  .mail__icon { width: 44px; height: 44px; }
  .mail__icon svg { width: 21px; height: 21px; }
  .mail__grid { row-gap: 14px; }
  .mail__side { display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); grid-template-areas: "figure flow" "figure cta"; column-gap: 20px; }
  .mail__flow { grid-area: flow; align-self: end; margin: 0; }
  .mail__figure { grid-area: figure; align-self: center; }
  .mail__side .mail__cta { grid-area: cta; align-self: start; justify-self: center; padding-inline: 20px; font-size: 16px; }
  .mail__figure figcaption { margin-top: 6px; font-size: 12px; line-height: 15px; }
  .mail__cta { margin-top: 18px; }
  .brands__title { margin-bottom: 10px; }
  .brands__lead { margin-bottom: 20px; }
  .brands__groups { gap: 16px; }
  .brands__group h3 { margin-bottom: 10px; }
  .brands__list li, .brands__group--main .brands__list li { min-height: 112px; padding-block: 10px; gap: 8px; }
  .brands__list img, .brands__group--main .brands__list img { width: 52px; height: 52px; }
  .brands__list .brands__solo, .brands__group--main .brands__list .brands__solo { width: auto; height: 50px; }
}

@media (min-width: 700px) and (max-width: 960px) and (max-height: 680px) {
  .about__art { width: min(100%, 288px); }
}

/* ================= Página 404 ================= */
.notfound { min-height: 100vh; display: grid; place-items: center; padding: 24px; color: var(--white); text-align: center; background: var(--navy) url("../img/hosting3-main-bg-slider.jpg") center / cover no-repeat; }
.notfound img { width: 220px; margin: 0 auto 36px; }
.notfound h1 { color: var(--white); font-size: clamp(30px, 5vw, 44px); font-weight: 400; line-height: 1.2; }
.notfound p { margin: 14px 0 30px; color: rgb(255 255 255 / .85); }
.notfound .btn { display: inline-flex; }
