/* ============================================================
   PAULA CORVINO TALENT — estilos
   Colores tomados de logo.png y fondo.png.
   Tocá estas variables para cambiar todo el sitio de una vez.
   ============================================================ */
:root {
  color-scheme: light;

  --azul-profundo: #0a365c;
  --azul-medio: #4b6d8c;
  --celeste: #bde1f5;
  --celeste-claro: #e7f5fd;
  --casi-blanco: #f7fbfe;
  --blanco: #ffffff;

  --texto: #123a5a;
  --texto-suave: #49708f;

  /* Colores del hero */
  --hero-texto: #26363d;
  --hero-acento: #2f6f86;

  --fuente: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radio: 16px;
  --sombra: 0 18px 45px rgba(10, 54, 92, 0.10);
  --header-h: 78px;
  --max: 1140px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--fuente);
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

.contenedor {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--azul-profundo);
  color: var(--blanco);
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- SECCIÓN: HEADER ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 247, 245, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(75, 109, 140, 0.14);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.header.is-scrolled {
  background: rgba(248, 247, 245, 0.99);
  box-shadow: 0 8px 24px rgba(10, 54, 92, 0.10);
}

.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__logo img {
  display: block;
  height: 46px;
  width: auto;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__link {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--texto);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav__link:hover,
.nav__link.is-active {
  background: var(--celeste-claro);
  color: var(--azul-profundo);
}

/* ---------- SECCIÓN: HERO ---------- */
.hero {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  display: grid;
  align-items: start;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("../assets/images/fondo-hero-ancho.webp") center / cover no-repeat;
  /* En celular se usa la versión 9:16 desde el @media (max-width: 760px). */
}

/* ------------------------------------------------------------
   PARA VOLVER A LA VERSIÓN CON BANDAS (sin scroll):
   .hero            { aspect-ratio: auto; min-height: calc(100svh - var(--header-h)); align-items: center; }
   .hero__media     { background-color: #014f9c; background-size: contain; background-position: center; background-repeat: no-repeat; }
   .hero__contenido { min-height: 0; display: block; }
   Y volver a poner background-size: cover en el @media de celular.
   ------------------------------------------------------------ */

.hero__capa {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(247, 251, 254, 0.80) 42%,
    rgba(189, 225, 245, 0.30) 100%
  );
}

/* El texto se centra en el primer tramo visible del hero,
   no en los 1080px completos, para que quede arriba aunque haya scroll */
.hero__contenido {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-content: center;
  justify-items: start;
  padding-block: 90px;
  will-change: transform, opacity;
}

.etiqueta {
  margin: 0 0 18px;
  color: var(--azul-medio);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__titulo {
  margin: 0;
  /* Sin tope de ancho: el <br> manda el salto exacto en escritorio */
  color: var(--hero-texto);
  font-size: clamp(2.5rem, 5.2vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.hero__separador {
  display: block;
  width: 100px;
  height: 5px;
  margin: 28px 0 22px;
  background: var(--hero-acento);
}

.hero__bajada {
  max-width: 46ch;
  margin: 0;
  color: var(--hero-acento);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.25;
}

.hero__parrafo {
  max-width: 58ch;
  margin: 20px 0 0;
  color: var(--hero-texto);
  font-size: clamp(0.95rem, 1.25vw, 1.1rem);
  font-weight: 400;
  line-height: 1.5;
}

.hero__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--fuente);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.boton--primario {
  background: var(--hero-texto);
  color: var(--blanco);
  box-shadow: 0 12px 28px rgba(38, 54, 61, 0.22);
}

.boton--primario:hover {
  transform: translateY(-2px);
  background: #3a535d;
  box-shadow: 0 16px 34px rgba(38, 54, 61, 0.28);
}

.boton--secundario {
  background: var(--blanco);
  color: var(--hero-texto);
  border: 2px solid var(--hero-texto);
}

.boton--secundario svg {
  flex: none;
}

.boton--secundario:hover {
  transform: translateY(-2px);
  background: var(--hero-texto);
  color: var(--blanco);
}

.hero__pista {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 24px;
  height: 38px;
  transform: translateX(-50%);
  border: 1px solid rgba(10, 54, 92, 0.35);
  border-radius: 999px;
}

.hero__pista span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 999px;
  background: var(--azul-medio);
  animation: pista 1.8s ease-in-out infinite;
}

@keyframes pista {
  0%   { transform: translateY(0); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ---------- SECCIÓN: SERVICIOS (home + página propia) ---------- */
.servicios {
  padding-block: 110px;
  background: var(--casi-blanco);
}

.servicios__cabecera {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.servicios__intro {
  margin: 0;
  color: var(--hero-texto);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 600;
  line-height: 1.5;
}

.servicios__grilla {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 32px);
  align-items: stretch;
}

.servicio {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid rgba(47, 111, 134, 0.16);
  border-radius: var(--radio);
  background: var(--blanco);
  box-shadow: var(--sombra);
}

.servicio__numero {
  display: block;
  margin-bottom: 18px;
  color: var(--hero-acento);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.servicio__titulo {
  margin: 0;
  color: var(--hero-texto);
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.servicio__subtitulo {
  margin: 6px 0 0;
  color: var(--hero-acento);
  font-size: 0.95rem;
  font-weight: 600;
}

.servicio__texto {
  margin: 14px 0 0;
  color: var(--texto-suave);
  font-size: 0.97rem;
  line-height: 1.6;
}

.servicio__ante {
  margin: 22px 0 10px;
  color: var(--hero-texto);
  font-size: 0.85rem;
  font-weight: 700;
}

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

.servicio__modalidades li {
  position: relative;
  padding-left: 16px;
  color: var(--texto-suave);
  font-size: 0.92rem;
  line-height: 1.55;
}

.servicio__modalidades li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hero-acento);
}

.servicio__modalidades strong {
  color: var(--hero-texto);
  font-weight: 700;
}

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

.servicio__tema {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--celeste-claro);
  color: var(--hero-acento);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

.servicio__cierre {
  margin: auto 0 0;
  padding-top: 22px;
  color: var(--hero-acento);
  font-size: 0.98rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.45;
}

.servicios__cta,
.nosotros__cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 5vw, 60px);
}

/* Las tarjetas aparecen una detrás de otra */
.servicios__grilla .servicio:nth-child(2) { transition-delay: 80ms; }
.servicios__grilla .servicio:nth-child(3) { transition-delay: 160ms; }

@media (max-width: 900px) {
  .servicios {
    padding-block: 80px;
  }

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

/* ---------- SECCIÓN: NOSOTROS ---------- */
.nosotros {
  padding-block: 110px;
  background: var(--blanco);
}

.nosotros__inner {
  max-width: 900px;
}

.nosotros__titulo {
  margin: 0 0 32px;
  color: var(--hero-texto);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.nosotros__textos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.nosotros__textos p {
  margin: 0;
  color: var(--texto-suave);
  font-size: 1.02rem;
  line-height: 1.65;
}

/* Variante con equipo: texto a la izquierda, dos personas a la derecha */
.nosotros--equipo .nosotros__inner {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.nosotros__equipo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(18px, 2.5vw, 28px);
  align-items: start;
}

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

.persona__foto {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radio);
}

.persona__foto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.persona__nombre {
  margin: 22px 0 4px;
  color: var(--hero-texto);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.persona__rol {
  margin: 0;
  color: var(--hero-acento);
  font-size: 0.9rem;
  font-weight: 600;
}

.persona__bio {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.persona__bio p {
  margin: 0;
  color: var(--texto-suave);
  font-size: 0.92rem;
  line-height: 1.6;
}

.persona__areas {
  margin: 22px 0 10px;
  color: var(--hero-texto);
  font-size: 0.85rem;
  font-weight: 700;
}

.nosotros__equipo .persona:nth-child(2) {
  transition-delay: 80ms;
}

/* En tablet el texto pasa arriba; las dos personas siguen en dos columnas */
@media (max-width: 900px) {
  .nosotros--equipo .nosotros__inner {
    grid-template-columns: 1fr;
  }
}

/* ---------- SECCIÓN: FOOTER ---------- */
.footer {
  margin-top: 60px;
  padding-block: 72px 26px;
  background: var(--azul-profundo);
  color: rgba(255, 255, 255, 0.78);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.7fr;
  gap: 40px;
}

.footer__marca {
  margin: 0 0 8px;
  color: var(--blanco);
  font-size: 1.35rem;
  font-weight: 700;
}

.footer__bajada {
  margin: 0;
  color: var(--celeste);
}

.footer__titulo {
  margin: 0 0 16px;
  color: var(--blanco);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.footer__lista a,
.footer__bottom a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__lista a:hover,
.footer__bottom a:hover {
  color: var(--celeste);
  text-decoration: underline;
}

/* Mail con botón para copiar al portapapeles */
.footer__mail {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__copy {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer__copy svg {
  width: 14px;
  height: 14px;
}

.footer__copy:hover,
.footer__copy:focus-visible {
  color: var(--celeste);
  border-color: var(--celeste);
  background: rgba(255, 255, 255, 0.06);
}

.footer__copy::after {
  content: attr(data-feedback);
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--blanco);
  color: var(--azul-profundo);
  font-size: 0.72rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer__copy.is-copiado {
  color: var(--celeste);
  border-color: var(--celeste);
}

.footer__copy.is-copiado::after {
  opacity: 1;
  transform: translateY(0);
}

.footer__copy.is-error {
  color: #ffb4a8;
  border-color: #ffb4a8;
}

.footer__copy.is-error::after {
  opacity: 1;
  transform: translateY(0);
}

.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;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
}

/* ---------- EFECTO: texto que aparece al scrollear ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-reveal].visible {
  opacity: 1;
  transform: none;
}

/* ---------- CELULAR / TABLET ---------- */
@media (max-width: 760px) {
  :root {
    --header-h: 112px;
  }

  .header__inner {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding-block: 10px;
  }

  .header__logo img {
    height: 40px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav__link {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .hero__media {
    background-image: url("../assets/images/fondo-hero-vertical.webp");
  }

  .hero {
    aspect-ratio: auto;
    min-height: calc(100svh - var(--header-h));
  }

  .hero__titulo {
    max-width: none;
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .hero__separador {
    margin: 20px 0 16px;
  }

  .hero__bajada {
    font-size: 1.1rem;
  }

  .hero__parrafo {
    font-size: 0.95rem;
  }

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

  .salto-escritorio {
    display: none;
  }

  .hero__contenido {
    padding-block: 70px;
  }

  .nosotros {
    padding-block: 80px;
  }

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

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

  .footer {
    margin-top: 40px;
    padding-top: 56px;
  }

  .footer__bottom {
    flex-direction: column;
    margin-top: 40px;
  }
}

/* ---------- ACCESIBILIDAD: menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__pista span {
    animation: none;
  }

  .boton {
    transition: none;
  }
}
