:root {
  --header-h: 88px;         /* altura del header */
  --light: #fff;            /* fondo claro lado derecho */
  --dark: #000;             /* fondo oscuro lado izquierdo */
}

/* Reset mínimo */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: #111; }

/* Header */
.header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #eee;
  background: #fff;
}
.header img { max-width: 220px; height: auto; }

/* Landing */
.landing {
  position: relative;
  min-height: calc(100dvh - var(--header-h));
  display: grid;
  grid-template-columns: 1fr auto 1fr;   /* izq | imagen | der */
  align-items: center;
  justify-items: center;
  overflow: hidden;
  isolation: isolate;
}

/* Fondo mitad negro / mitad blanco */
.landing::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--dark) 0 50%, var(--light) 50% 100%);
  z-index: -1;
}

/* Imagen central */
.hero img {
  display: block;
  height: auto;
  max-height: min(91dvh, 980px);
  width: auto;
  object-fit: contain;
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}
.hero-mobile{ display: none;}
.cta-group-mobile{display: none;}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  background: #fff;
  color: #222;
  border: 1px solid #cfcfcf;
  letter-spacing: .06em;
  font-size: 13px;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.07); }

/* Alineaciones de cada lado */
.cta-left  { justify-self: end; }
.cta-right { justify-self: start;  }

/* Animación */
@keyframes fadeIn {
  to { opacity: 1; }
}

/* ======= Mobile ======= */
@media (max-width: 900px) {
  :root { --header-h: 72px; }

  .header img { max-width: 170px; }

  .hero img{
    display: none;
  }
  /* Usamos flexbox en lugar de grid en mobile */
  .landing {
    display: flex;
    flex-direction: column;
    justify-content: space-between;   /* botones arriba / imagen abajo */
    align-items: center;
    min-height: calc(100dvh - var(--header-h));
    padding: 40px 5px 0 5px;
  }

  .hidden {
    display: none;
  }
  /* .landing::before {
    background: var(--light);
  } */

  /* Contenedor para los botones apilados */
  .cta-group {
    display: none;
    flex-direction: column;
    /* gap: 12px; */
    width: 100%;
    /* max-width: 420px; */
  }
  .cta-group-mobile {
    display: flex;
    justify-content: space-around;
    /* flex-direction: column; */
    gap: 15px;
    width: 100%;
    /* max-width: 420px; */
  }

  .btn {
    width: 100%;
    min-height: 28px;
    font-size: 10px;
    /* border-radius: 6px; */
    /* background-color: transparent;
    border: none; */
  }

  .cta-left  { justify-self: end; padding: 0;  }
  .cta-right  { justify-self: end; padding: 0;  }

  /* Imagen pegada al bottom */
  .hero-mobile {
    margin-top: auto;  /* empuja hacia abajo */
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero-mobile img {
    max-height: 65dvh; /* ajustá según quieras */
    height: auto;
    width: auto;
    object-fit: contain;
  }
}


/* Accesibilidad: respeta reduce-motion */
@media (prefers-reduced-motion: reduce) {
  .hero img { animation: none; opacity: 1; }
}
