:root {
  --bg: #4a4945;        /* gris del estudio de la foto */
  --bg-dark: #2f2e2b;
  --white: #ffffff;
  --title-glow: rgba(196, 128, 132, 0.9);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  background: linear-gradient(to bottom, var(--bg-dark) 0%, var(--bg) 55%);
  background-color: var(--bg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ============================================================
   MOBILE: logo y texto arriba, Gabi abajo
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
}

/* oscurece la parte baja para que el credito se lea sobre la foto */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 32%;
  background: linear-gradient(to top, rgba(40, 39, 36, 0.85) 0%, rgba(40, 39, 36, 0) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero__photo {
  /* ===== AJUSTES DE LA FOTO EN MOVIL ===== */
  --photo-top: clamp(17rem, 40%, 30rem);  /* VERTICAL: mas = la baja */
  /* ======================================= */
  position: absolute;
  top: var(--photo-top);
  left: 0;
  width: 100%;
  height: auto;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  /* funde el borde superior de la foto con el fondo */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 30%);
}

/* tablet vertical: la foto no crece de mas, pegada a la derecha */
@media (min-width: 481px) {
  .hero__photo {
    left: auto;
    right: 0;
    width: min(100%, 30rem);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%),
                        linear-gradient(to right, transparent 0%, #000 25%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 30%),
                linear-gradient(to right, transparent 0%, #000 25%);
    mask-composite: intersect;
  }
}

.hero__logo {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: clamp(2rem, 5vh, 3rem) 1.25rem 0;
}

.hero__logo img {
  display: block;
  width: min(52vw, 13rem);
  height: auto;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 30rem;
  padding: clamp(2.5rem, 11vh, 6rem) 1.75rem 0;
}

.title {
  font-family: "Petrona", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.12;
  font-size: clamp(1.7rem, 8vw, 2.4rem);
  margin: 0 0 0.9rem;
  text-shadow: 0.05em 0.07em 0.12em var(--title-glow);
}

.lead {
  line-height: 1.45;
  font-size: clamp(0.9rem, 3.9vw, 1.05rem);
  max-width: 17rem;
  margin: 0 0 1rem;
  opacity: 0.95;
}

.contact {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
  font-size: clamp(1.1rem, 5vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.contact__icon {
  display: inline-flex;
  width: clamp(1.75rem, 7.5vw, 2rem);
  flex-shrink: 0;
}

.contact__icon svg {
  width: 100%;
  height: auto;
  display: block;
}

.contact__number {
  white-space: nowrap;
}

.contact:hover .contact__number,
.contact:focus-visible .contact__number {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   Footer / credito comercial
   ============================================================ */
.credit {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  text-align: center;
  padding: 0.35rem 1rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  font-size: clamp(0.62rem, 2.6vw, 0.72rem);
  line-height: 1.45;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.credit__line {
  margin: 0;
  opacity: 0.95;
}

.credit a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.credit a:hover,
.credit a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   DESKTOP: foto de fondo, texto a la izquierda
   ============================================================ */
@media (min-width: 768px) and (orientation: landscape) {
  body {
    background: var(--bg);
  }

  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 0 4rem;
  }

  .hero::after {
    height: 22%;
  }

  .hero__photo {
    /* ===== AJUSTES DE LA FOTO EN DESKTOP ===== */
    --photo-dk-zoom: 1.13;        /* TAMAÑO: 1 = foto completa */
    /* ========================================= */
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 85% center;  /* mantiene a Gabi a la derecha */
    transform: scale(var(--photo-dk-zoom));
    transform-origin: 80% 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero__logo {
    position: absolute;
    top: clamp(1.5rem, 6vh, 3.5rem);
    left: 0;
    right: 0;
    padding: 0;
  }

  .hero__logo img {
    width: clamp(10rem, 16vw, 15rem);
  }

  .hero__content {
    width: 58%;
    max-width: none;
    padding: 0 0 0 clamp(2rem, 4.7vw, 6rem);
  }

  .title {
    max-width: 10.5em;  /* siempre 3 lineas, como el diseño */
    font-size: clamp(2.3rem, 4.9vw, 4.6rem);
    margin-bottom: 1.1rem;
  }

  .lead {
    max-width: 35em;
    font-size: clamp(0.78rem, 1.25vw, 1.1rem);
    margin-bottom: 1.1rem;
  }

  .contact {
    margin-left: 0.8rem;
    font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  }

  .contact__icon {
    width: clamp(1.9rem, 3.1vw, 2.6rem);
  }

  .credit {
    font-size: clamp(0.7rem, 1.08vw, 0.9rem);
    padding: 0.5rem 1.5rem 0.9rem;
  }
}
