/*
  GerentIA — estilos temporales y neutros.
  Todo el diseño vive en las variables de :root.
  Cuando exista el brandbook, cambia solo estas variables (y agrega el logo).
*/

:root {
  color-scheme: light;

  --color-fondo: #ffffff;
  --color-texto: #111111;
  --color-texto-suave: #5f5f5f;
  --color-borde: #e6e6e6;
  --color-acento: #111111;        /* ← color de marca del brandbook */
  --color-sobre-acento: #ffffff;  /* ← texto sobre el color de marca */

  --fuente: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* ← tipografía del brandbook */

  --ancho-texto: 40rem;   /* páginas de lectura (aviso de privacidad) */
  --ancho-sitio: 75rem;   /* inicio */
  --espacio: clamp(1.5rem, 5vw, 3rem);
  --radio: 0.625rem;
}

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

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

.encabezado {
  background-color: #f3f3f5;
  border-bottom-right-radius: 12px;
  border-bottom-left-radius: 12px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--color-texto);
  font-family: var(--fuente);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a {
  color: var(--color-acento);
  text-underline-offset: 0.2em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Contenedores */
.contenedor {
  width: 100%;
  max-width: var(--ancho-texto);
  margin: 0 auto;
  padding: 0 1rem;
}

.contenedor--ancho {
  max-width: var(--ancho-sitio);
  padding: 20px 0;
}

.marca {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--color-texto);
  text-decoration: none;
}

/* Contenido principal */
main {
  flex: 1;
}

.etiqueta {
  display: inline-block;
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-texto-suave);
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

p,
ul {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

.descripcion {
  font-size: 1.1875rem;
  color: var(--color-texto-suave);
  text-wrap: pretty;
}

.nota {
  font-size: 0.9375rem;
  color: var(--color-texto-suave);
}

/* Botón de contacto */
.boton {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radio);
  background: var(--color-acento);
  color: var(--color-sobre-acento);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.boton:hover {
  opacity: 0.85;
}

.boton:focus-visible {
  outline: 2px solid var(--color-acento);
  outline-offset: 3px;
}

.contacto {
  margin-top: 2rem;
}

.contacto p {
  margin-bottom: 0.75rem;
}

/* Hero del inicio
   Celular y tablet vertical: texto arriba, imagen vertical abajo.
   Desktop y tablet horizontal (≥ 1024px): texto sobre la mitad izquierda
   de la imagen horizontal, que tiene esa zona libre para el texto. */
.hero {
  display: flex;
  gap: 2.5rem;
}

.hero__imagen {
  margin: 0;
}

.hero__imagen img {
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
}

@media (min-width: 769px) {
  body {
    background: linear-gradient(to right, #ffffff, #f3f3f5);
  }
}

@media (min-width: 1024px) {

  .contenedor--ancho {
    margin: auto;
    max-width: 90%;
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: center;
  }

  .hero > * {
    grid-column: 1;
    grid-row: 1;
  }

  .hero__texto {
    position: relative;
    z-index: 1;
    width: 44%;
    padding: 2rem 0;
    align-self: self-start;
    margin-top: 100px;
  }

  .hero__imagen img {
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 3vw, 3rem);
  }
}

/* Pie de página */
.pie {
  padding: 1.5rem 0 var(--espacio);
  border-top: 1px solid var(--color-borde);
  font-size: 0.875rem;
  color: var(--color-texto-suave);
      background-color: #f3f3f5;
}

.pie p {
  margin: 0 0 0.35rem;
}

.pie a {
  color: var(--color-texto-suave);
}

/* ===== Tablet (vertical y horizontal chica) ===== */
@media (max-width: 1023px) {
  .contenedor {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3rem;
  }

  .hero__texto {
    width: 100%;
    max-width: 36rem;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 5.5vw, 3rem);
    line-height: 1.1;
  }

  .hero__imagen {
    width: 100%;
    height: auto;
    margin: 0;
  }

  .hero__imagen img {
    width: 100%;
    max-width: 30rem;
    height: auto;
    margin: 0 auto;
    border-radius: 1.25rem;
  }
}

/* ===== Celular ===== */
@media (max-width: 599px) {
  .contenedor {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero {
    gap: 2.5rem;
  }

  .etiqueta {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 7.5vw, 2.25rem);
    line-height: 1.15;
    margin-bottom: 1rem;
  }

  .descripcion {
    font-size: 1rem;
    line-height: 1.55;
  }

  .nota {
    font-size: 0.875rem;
  }

  .contacto {
    margin-top: 1.75rem;
  }

  .boton {
    display: inline-block;
    width: auto;
    padding: 0.75rem 1.5rem;
  }

  .hero__imagen img {
    max-width: 100%;
    border-radius: 1rem;
  }

  .pie {
    font-size: 0.8125rem;
  }
}