/* ==========================================================================
   Kuadro Studio — página de construcción
   Basada en el lenguaje visual del sitio: turquesa del logo, tipografía Inter,
   esquinas inferiores muy redondeadas y la franja vertical de servicios.
   ========================================================================== */

:root {
  --turquesa: #0fafba;
  --turquesa-claro: #35c9d2;
  --turquesa-oscuro: #0b8e97;
  --fondo: #072a2e;
  --fondo-alto: #0b3b41;
  --tinta: #ffffff;
  --tinta-suave: rgba(255, 255, 255, .72);
  --tinta-tenue: rgba(255, 255, 255, .45);
  --borde: rgba(255, 255, 255, .16);

  --ancho: 1180px;
  --radio-panel: 150px;
  --franja: 62px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--tinta);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* --------------------------------------------------------------------------
   Escena: degradado turquesa con el borde blanco y las esquinas del hero
   -------------------------------------------------------------------------- */
.escena {
  position: relative;
  min-height: 100svh;
  padding: 12px;
  background: var(--fondo);
}

.escena::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 0 0 var(--radio-panel) var(--radio-panel);
  background:
    radial-gradient(120% 90% at 12% 0%, var(--turquesa-claro) 0%, transparent 55%),
    radial-gradient(100% 80% at 90% 20%, var(--turquesa) 0%, transparent 60%),
    linear-gradient(160deg, var(--turquesa-oscuro) 0%, var(--fondo-alto) 55%, var(--fondo) 100%);
  background-size: 160% 160%;
  animation: deriva 24s ease-in-out infinite;
}

@keyframes deriva {
  0%, 100% { background-position: 0% 0%, 100% 20%, 0% 0%; }
  50%      { background-position: 20% 12%, 80% 0%, 100% 100%; }
}

/* Grano sutil para que el degradado no se banda en pantallas grandes */
.escena::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 0 0 var(--radio-panel) var(--radio-panel);
  pointer-events: none;
  opacity: .25;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)' opacity='.35'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Franja vertical de servicios
   -------------------------------------------------------------------------- */
.marquesina {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 12px;
  width: var(--franja);
  overflow: hidden;
  background: rgba(0, 0, 0, .55);
  border-right: 1px solid var(--borde);
  z-index: 2;
}

.marquesina__pista {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 24px 0;
  animation: subir 34s linear infinite;
  will-change: transform;
}

.marquesina__pista span,
.marquesina__pista i {
  writing-mode: vertical-rl;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--tinta-suave);
  white-space: nowrap;
  font-style: normal;
}

.marquesina__pista i { color: var(--turquesa-claro); }

@keyframes subir {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

/* --------------------------------------------------------------------------
   Panel de contenido
   -------------------------------------------------------------------------- */
.panel {
  position: relative;
  z-index: 3;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: clamp(48px, 9vh, 104px) clamp(24px, 5vw, 72px) clamp(40px, 7vh, 72px);
  padding-left: calc(var(--franja) + clamp(24px, 5vw, 72px));
  min-height: calc(100svh - 24px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

/* Entrada escalonada */
.panel > * {
  opacity: 0;
  transform: translateY(14px);
  animation: entrar .7s cubic-bezier(.22, .61, .36, 1) forwards;
}

.panel > *:nth-child(1) { animation-delay: .05s; }
.panel > *:nth-child(2) { animation-delay: .15s; }
.panel > *:nth-child(3) { animation-delay: .25s; }
.panel > *:nth-child(4) { animation-delay: .35s; }
.panel > *:nth-child(5) { animation-delay: .45s; }
.panel > *:nth-child(6) { animation-delay: .55s; }
.panel > *:nth-child(7) { animation-delay: .65s; }

@keyframes entrar {
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Marca
   -------------------------------------------------------------------------- */
.marca { margin: 0 0 clamp(28px, 5vh, 48px); }

.marca__logo {
  display: block;
  width: auto;
  height: clamp(38px, 5vw, 52px);

  /* El logotipo original es turquesa y aquí el fondo también lo es, así que
     quedaba con muy poco contraste. `brightness(0)` lo aplana a negro e
     `invert(1)` lo vuelve blanco puro, respetando la transparencia.
     Si algún día tienes el archivo ya en blanco, borra esta línea. */
  filter: brightness(0) invert(1);
}

/* `display: block` de arriba le gana al [hidden] del navegador, así que el
   respaldo tipográfico necesita esta regla para que el logo roto desaparezca. */
.marca__logo[hidden],
.marca__texto[hidden] { display: none; }

/* Respaldo tipográfico si el archivo del logo aún no está cargado */
.marca__texto {
  margin: 0;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--turquesa-claro);
}

.marca__texto span { color: var(--tinta); font-weight: 500; }

/* --------------------------------------------------------------------------
   Pastilla de estado
   -------------------------------------------------------------------------- */
.pastilla {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(20px, 3vh, 30px);
  padding: 9px 18px;
  border: 1px solid var(--borde);
  border-radius: 999px;
  background: rgba(0, 0, 0, .35);
  font-size: 14px;
  font-weight: 500;
  color: var(--tinta-suave);
}

.pastilla__punto {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, .7);
  animation: latido 2.4s ease-out infinite;
}

@keyframes latido {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); }
  70%  { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* --------------------------------------------------------------------------
   Texto
   -------------------------------------------------------------------------- */
.titular {
  margin: 0 0 clamp(18px, 3vh, 26px);
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.03em;
  max-width: 16ch;
}

.titular em {
  font-style: normal;
  color: var(--turquesa-claro);
}

.bajada {
  margin: 0 0 clamp(26px, 4vh, 38px);
  max-width: 56ch;
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.65;
  color: var(--tinta-suave);
}

/* --------------------------------------------------------------------------
   Servicios
   -------------------------------------------------------------------------- */
.servicios {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 clamp(30px, 5vh, 46px);
  padding: 0;
  list-style: none;
}

.servicios li {
  padding: 9px 16px;
  border: 1px solid var(--borde);
  border-radius: 999px;
  font-size: 14px;
  color: var(--tinta-suave);
  background: rgba(255, 255, 255, .04);
}

/* --------------------------------------------------------------------------
   Acciones
   -------------------------------------------------------------------------- */
.acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
  margin-bottom: auto;
}

.boton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  background: var(--turquesa-claro);
  color: #04262a;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
}

.boton:hover,
.boton:focus-visible {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}

.boton svg { transition: transform .25s ease; }
.boton:hover svg { transform: translateX(4px); }

.correo {
  color: var(--tinta-suave);
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--borde);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}

.correo:hover,
.correo:focus-visible {
  color: #fff;
  border-color: currentColor;
}

/* --------------------------------------------------------------------------
   Pie
   -------------------------------------------------------------------------- */
.pie {
  width: 100%;
  margin-top: clamp(48px, 9vh, 96px);
  padding-top: 22px;
  border-top: 1px solid var(--borde);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  align-items: center;
  justify-content: space-between;
}

.derechos {
  margin: 0;
  font-size: 13px;
  color: var(--tinta-tenue);
}

/* --------------------------------------------------------------------------
   Foco visible y accesibilidad
   -------------------------------------------------------------------------- */
a:focus-visible {
  outline: 2px solid var(--turquesa-claro);
  outline-offset: 4px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  :root { --radio-panel: 90px; --franja: 46px; }
  .marquesina__pista span,
  .marquesina__pista i { font-size: 12px; }
}

@media (max-width: 600px) {
  :root { --radio-panel: 56px; }

  .marquesina { display: none; }

  .panel {
    padding-left: clamp(24px, 5vw, 72px);
    justify-content: flex-start;
    padding-top: clamp(52px, 10vh, 90px);
  }

  .pie {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   Menos movimiento
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .escena::before,
  .marquesina__pista,
  .pastilla__punto { animation: none; }

  .panel > * {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .boton { transition: none; }
}
