/* ══════════ Colibium · estudio digital ══════════ */

:root {
  --azul: #004E9E;
  --turquesa: #1AA5A7;
  --menta: #6CB99C;
  --tinta: #111827;
  --gris: #4B5563;
  --gris-claro: #9CA3AF;
  --linea: #E5E7EB;
  --fondo: #FFFFFF;
  --fondo-alt: #F9FAFB;
  --degradado: linear-gradient(120deg, var(--azul), var(--turquesa) 60%, var(--menta));
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --sombra: 0 10px 30px rgba(17, 24, 39, .07);
  --sombra-alta: 0 22px 50px rgba(0, 78, 158, .16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--tinta);
  background: var(--fondo);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.envoltura { width: min(1120px, 100% - 2.5rem); margin: 0 auto; }

/* ── Tipografía ── */
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

.degradado-texto {
  background: var(--degradado);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--turquesa);
  margin-bottom: .9rem;
}

.plomo { color: var(--gris); font-size: 1.08rem; max-width: 46ch; }
.centrado { text-align: center; }
.centrado .plomo { margin-inline: auto; }

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  padding: .85rem 1.6rem;
  /* Sin borde: sobre un fondo degradado, un borde transparente deja ver una
     línea oscura en el canto. El botón de contorno usa una sombra interior. */
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-principal { background: var(--degradado); color: #fff; box-shadow: var(--sombra); }
.btn-principal:hover { transform: translateY(-2px); box-shadow: var(--sombra-alta); }
.btn-borde {
  color: var(--tinta);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--linea);
}
.btn-borde:hover { box-shadow: inset 0 0 0 1px var(--turquesa); color: var(--azul); }
.btn-sm { padding: .6rem 1.15rem; font-size: .88rem; }

/* ── Navegación ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linea);
}
.nav-caja {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 0;
}
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo img { height: 38px; width: auto; }
.logo span { font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.nav-links { display: none; gap: 1.9rem; }
.nav-links a {
  font-size: .93rem;
  font-weight: 500;
  color: var(--gris);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--azul); }
@media (min-width: 880px) { .nav-links { display: flex; } }

.nav-acciones { display: flex; align-items: center; gap: .7rem; }

/* Selector de idioma */
.idioma {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--gris);
  text-decoration: none;
  padding: .35rem .55rem;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--linea);
  transition: color .2s, box-shadow .2s;
}
.idioma:hover { color: var(--azul); box-shadow: inset 0 0 0 1px var(--turquesa); }

/* ── Hero ── */
.hero { position: relative; padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
}
.hero::before { width: 460px; height: 460px; background: rgba(26, 165, 167, .16); top: -160px; right: -140px; }
.hero::after { width: 380px; height: 380px; background: rgba(0, 78, 158, .12); bottom: -180px; left: -150px; }

.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 4rem; } }

.hero h1 { margin-bottom: 1.1rem; }
.hero .plomo { font-size: 1.15rem; margin-bottom: 1.9rem; }
.hero-acciones { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Hero de una sola columna, sin maquetas */
.hero-centrado { padding-block: clamp(4.5rem, 11vw, 7.5rem) clamp(3.5rem, 8vw, 5.5rem); }
.hero-centrado h1 { max-width: 18ch; margin-inline: auto; }
.centrado-flex { justify-content: center; }
.hero-centrado .hero-datos { justify-content: center; max-width: 620px; margin-inline: auto; gap: 2.6rem; }
.hero-centrado .dato { text-align: center; }
.hero-centrado .dato strong { font-size: 1.35rem; }

.hero-datos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--linea);
}
.dato strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -.03em;
}
.dato span { font-size: .85rem; color: var(--gris-claro); }

/* ── Maqueta de teléfono ── */
.telefono {
  position: relative;
  width: min(280px, 78%);
  margin: 0 auto;
  aspect-ratio: 9 / 18;
  background: #111;
  border-radius: 34px;
  padding: 9px;
  box-shadow: var(--sombra-alta);
}
.telefono-pantalla {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: #FAF5EC;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}
.tel-marco {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(178, 137, 76, .5);
  border-radius: 16px;
}
.tel-kicker {
  font-size: .52rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #B2894C;
  margin-bottom: .5rem;
}
.tel-nombres {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.75rem;
  color: #6E1F33;
  line-height: 1.15;
}
.tel-linea { width: 46px; height: 1px; background: #B2894C; margin: .7rem auto; }
.tel-fecha { font-size: .58rem; letter-spacing: .22em; color: #7A6A60; }
.tel-btn {
  margin-top: 1.1rem;
  background: #6E1F33;
  color: #F7EBDD;
  font-size: .55rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: .45rem 1rem;
  border-radius: 3px;
}
.tel-flor {
  position: absolute;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  filter: blur(16px);
}
.tel-flor.a { background: rgba(110, 31, 51, .5); top: -6px; right: -6px; }
.tel-flor.b { background: rgba(140, 158, 133, .55); bottom: -6px; left: -6px; }

/* ── Secciones ── */
.seccion { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.seccion-alt { background: var(--fondo-alt); border-block: 1px solid var(--linea); }
.encabezado { margin-bottom: 2.8rem; }

/* ── Tarjetas de servicio ── */
.rejilla { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }

.tarjeta {
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: 14px;
  padding: 1.9rem 1.6rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.tarjeta:hover { transform: translateY(-4px); box-shadow: var(--sombra); border-color: transparent; }
.tarjeta h3 { margin-bottom: .55rem; }
.tarjeta p { color: var(--gris); font-size: .97rem; }

.icono {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--degradado);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.icono svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.lista-check { list-style: none; margin-top: 1rem; }
.lista-check li {
  position: relative;
  padding-left: 1.5rem;
  font-size: .92rem;
  color: var(--gris);
  margin-bottom: .35rem;
}
.lista-check li::before {
  content: "";
  position: absolute;
  left: 0; top: .52em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--turquesa);
}

/* ── Proyecto destacado ── */
.proyecto {
  display: grid;
  gap: 2.4rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--sombra);
}
@media (min-width: 880px) {
  .proyecto { grid-template-columns: 1.1fr .9fr; gap: 0; }
}
.proyecto-texto { padding: 2.2rem; }
.proyecto-texto h3 { font-size: 1.4rem; }
.proyecto-foto { height: 100%; min-height: 280px; }
.proyecto-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

.caso-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 940px) { .caso-grid { grid-template-columns: .95fr 1.05fr; } }

.etiquetas { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0; }
.etiqueta {
  font-size: .8rem;
  font-weight: 500;
  color: var(--azul);
  background: rgba(26, 165, 167, .1);
  border-radius: 20px;
  padding: .3rem .85rem;
}

.metricas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.8rem 0;
  padding: 1.3rem 0;
  border-block: 1px solid var(--linea);
}
.metricas strong { display: block; font-size: 1.5rem; letter-spacing: -.03em; }
.metricas span { font-size: .8rem; color: var(--gris-claro); }

/* ── Proceso ── */
.pasos { counter-reset: paso; display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.paso { position: relative; padding-top: 3.2rem; }
.paso::before {
  counter-increment: paso;
  content: counter(paso);
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--degradado);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.paso h3 { margin-bottom: .4rem; }
.paso p { color: var(--gris); font-size: .95rem; }

/* ── Contacto ── */
.contacto-grid { display: grid; gap: 2.6rem; }
@media (min-width: 900px) { .contacto-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }

.campo { display: block; margin-bottom: 1rem; }
.campo span { display: block; font-size: .88rem; font-weight: 500; margin-bottom: .35rem; }
.campo input, .campo textarea, .campo select {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--tinta);
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: 10px;
  padding: .75rem .9rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.campo input:focus, .campo textarea:focus, .campo select:focus {
  border-color: var(--turquesa);
  box-shadow: 0 0 0 3px rgba(26, 165, 167, .13);
}

/* Campo trampa para robots: invisible sin usar display:none, que algunos
   robots detectan y saltan */
.trampa {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Aviso de resultado del formulario */
.form-aviso {
  display: none;
  font-size: .9rem;
  text-align: center;
  margin-top: .9rem;
  padding: .7rem .9rem;
  border-radius: 8px;
}
.form-aviso.visible { display: block; }
.form-aviso.ok {
  color: #14614A;
  background: rgba(108, 185, 156, .18);
  box-shadow: inset 0 0 0 1px rgba(108, 185, 156, .5);
}
.form-aviso.error {
  color: #8A2F2F;
  background: rgba(164, 90, 90, .12);
  box-shadow: inset 0 0 0 1px rgba(164, 90, 90, .35);
}
.form-aviso a { color: inherit; font-weight: 600; }

.datos-contacto { display: grid; gap: 1rem; margin-top: 1.6rem; }
.dato-fila {
  display: flex;
  align-items: center;
  gap: .9rem;
  text-decoration: none;
  padding: .9rem 1.1rem;
  border: 1px solid var(--linea);
  border-radius: 12px;
  background: #fff;
  transition: border-color .2s, transform .2s;
}
.dato-fila:hover { border-color: var(--turquesa); transform: translateX(3px); }
.dato-fila svg { width: 20px; height: 20px; stroke: var(--turquesa); fill: none; stroke-width: 1.9; flex: 0 0 auto; }
.dato-fila b { display: block; font-size: .95rem; font-weight: 600; }
.dato-fila small { color: var(--gris-claro); font-size: .82rem; }

/* ── Pie ── */
.pie { background: var(--tinta); color: #D1D5DB; padding: 3rem 0 1.8rem; }
.pie-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.pie h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: .8rem; }
.pie a { color: #D1D5DB; text-decoration: none; font-size: .92rem; display: block; margin-bottom: .4rem; }
.pie a:hover { color: var(--menta); }
.pie-logo { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.pie-logo img { height: 34px; filter: brightness(0) invert(1); }
.pie-logo span { font-weight: 700; color: #fff; font-size: 1.1rem; }
.pie p { font-size: .9rem; max-width: 34ch; }
.pie-base {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .84rem;
  color: var(--gris-claro);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: space-between;
}

/* ── WhatsApp flotante ── */
.wa-flotante {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 45;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
  transition: transform .2s;
}
.wa-flotante:hover { transform: scale(1.08); }
.wa-flotante svg { width: 28px; height: 28px; fill: #fff; }

/* ── Aparición ── */
.aparece { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.aparece.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .aparece { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
