/* ====== Base / Tokens ====== */
:root{
  --bg-image: url("./pexels-karan-mridha-17124288-23174993.jpg"); /* Cambia por tu imagen: puede ser /img/bg.jpg o una URL completa */
  --bg-color: #0b1220;       /* Color de respaldo si no carga la imagen */
  --overlay-from: rgba(11,18,32,0.80);
  --overlay-to:   rgba(11,18,32,0.55);
  --text: #e8ecf3;
  --muted: #b8c0cc;
  --accent: #aadb1e;         /* Puedes cambiar a tu color de marca */
  --radius: 16px;
}

/* ====== Reset mínimo y tipografía ====== */
*{ box-sizing: border-box; }
html,body{ height: 100%; }
body{
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg-color);
}

/* ====== Hero full-screen ====== */
.hero{
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;

  /* Fondo a pantalla completa */
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Evita scroll jump en iOS con background-attachment: fixed */
@supports (background: paint(worklet)) {
  /* nada específico, solo evita hacks viejos */
}

/* Overlay para legibilidad */
.overlay{
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--overlay-from), var(--overlay-to));
  backdrop-filter: blur(2px);
}

/* ====== Contenido ====== */
.content{
  position: relative;
  padding: 2rem 1.25rem;
  max-width: 720px;
  animation: fadeIn 700ms ease-out both;
}

h1{
  margin: 0 0 .5rem;
  font-size: clamp(2rem, 4vw + 1rem, 4rem);
  line-height: 1.05;
  letter-spacing: .3px;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}

.subtitle{
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw + .6rem, 1.2rem);
}

/* Correos de contacto */
.contacts{
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: .4rem;
}
.contacts a{
  color: var(--text);
  text-decoration: none;
  padding: .5rem .75rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  display: inline-block;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}
.contacts a:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.12);
}

/* Botón CTA opcional */
.cta{
  display: inline-block;
  padding: .85rem 1.1rem;
  border-radius: calc(var(--radius) + 8px);
  color: #0b1220;
  background: var(--accent);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(170,219,30,.35);
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
}
.cta:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(170,219,30,.45);
}

/* Footer pequeño */
.footnote{
  position: absolute;
  left: 0; right: 0; bottom: 1rem;
  text-align: center;
  font-size: .9rem;
  color: rgba(232,236,243,.85);
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}

/* ====== Animación ====== */
@keyframes fadeIn{
  from{ opacity: 0; transform: translateY(6px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* ====== Responsivo ====== */
@media (min-width: 768px){
  .content{ padding: 2.5rem; }
  .contacts{
    grid-template-columns: 1fr 1fr;
    justify-items: center;
  }
  .contacts a{ width: 100%; max-width: 320px; }
}
