:root {
  --bg: #f8f4eb;
  --text: #0f0f0f;
  --muted: #39443d;
  --gold-1: #f7d98b;
  --gold-2: #d7aa42;
  --gold-3: #8b6520;
  --panel: #f5f5f5;
  --graph: #6d69d7;
  --shadow: rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
}

.page-shell {
  min-height: 100vh;
  background: var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.landing {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 18px 0;
  text-align: center;
}

.hero {
  padding-top: 16px;
}

.hero h1 {
  margin: 0 auto;
  max-width: 980px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.5rem, 3vw, 5rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: #111;
  text-shadow: none;
}

.hero .highlight {
  background: linear-gradient(90deg, var(--gold-1), #f0d98d 34%, var(--gold-2) 65%, var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .highlight-pink {
  color: #d18f8f;
}

.hero .block {
  display: block;
}

.divider {
  width: 110px;
  height: 3px;
  margin: 18px auto 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), rgba(255, 215, 115, 0.5), rgba(255, 255, 255, 0.15));
}

.subtitle {
  margin: 16px 0 0;
  font-size: clamp(1.05rem, 1.3vw, 1.8rem);
  color: var(--muted);
  font-weight: 500;
}

.case-study {
  margin-top: 28px;
}

.video-panel {
  max-width: 760px;
  margin: 0 auto;
}

.video-card {
  position: relative;
  height: 370px;
  background: #000;
  overflow: hidden;
}

.video-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #a8a8a8;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.12);
  transition: opacity 0.2s ease;
}

.video-card.is-playing .video-overlay,
.video-card.is-ended .video-overlay {
  opacity: 0;
}

.play-button {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 122px;
  height: 122px;
  border-radius: 50%;
  border: 10px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(1px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  z-index: 2;
}

.video-card.is-playing .play-button,
.video-card.is-ended .play-button {
  opacity: 0;
  pointer-events: none;
}

.video-card.is-ended .play-button {
  opacity: 0;
  pointer-events: none;
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.38);
}

.play-button::before,
.play-button::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.9);
  border-radius: 2px;
}

.play-button:not(.is-playing)::before {
  left: 50%;
  width: 0;
  height: 0;
  transform: translate(-18%, -50%);
  border-top: 26px solid transparent;
  border-bottom: 26px solid transparent;
  border-left: 42px solid rgba(0, 0, 0, 0.9);
  background: transparent;
  border-radius: 0;
}

.play-button.is-playing::before,
.play-button.is-playing::after {
  width: 11px;
  height: 46px;
  top: 50%;
}

.play-button.is-playing::before {
  left: 41%;
}

.play-button.is-playing::after {
  left: 57%;
}

.play-caption {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  color: #fff;
  font-size: clamp(1rem, 1.5vw, 1.6rem);
  font-weight: 700;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
  z-index: 2;
  transition: opacity 0.2s ease;
}

.video-card.is-playing .play-caption,
.video-card.is-ended .play-caption {
  opacity: 0;
}

.sound-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(0.85rem, 1.2vw, 1.1rem);
  font-weight: 600;
  text-align: center;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 560px;
  margin: 26px auto 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #d18f8f;
  color: #f8f4eb;
  text-decoration: none;
  font-size: clamp(0.72rem, 2.3vw, 1.3rem);
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 0;
  cursor: pointer;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.registration-dialog {
  width: min(420px, calc(100% - 32px));
  max-width: none;
  padding: 0;
  border: 1px solid rgba(248, 244, 235, 0.35);
  background: #d18f8f;
  color: #f8f4eb;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.registration-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.registration-form {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 30px 28px;
}

.registration-form h2 {
  margin: 0 22px 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.45rem, 5vw, 1.85rem);
  line-height: 1.1;
  font-weight: 600;
  color: #39443d;
}

.dialog-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 0;
  padding: 0 4px;
  background: transparent;
  color: #f8f4eb;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.registration-form input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #444;
  border-radius: 2px;
  background: #393939;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
}

.registration-form input::placeholder {
  color: #f8f4eb;
  opacity: 1;
}

.registration-form input:focus-visible,
.registration-submit:focus-visible,
.dialog-close:focus-visible {
  outline: 2px solid #75c77c;
  outline-offset: 2px;
}

.phone-hint {
  margin-top: -6px;
  color: #f8f4eb;
  font-size: 0.78rem;
  text-align: left;
}

.registration-submit {
  min-height: 48px;
  margin-top: 6px;
  border: 0;
  border-radius: 3px;
  background: #39443d;
  color: #f8f4eb;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.registration-submit:hover {
  background: #2e3832;
}

.registration-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-status {
  margin: 2px 0;
  color: #39443d;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: left;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.profile {
  max-width: 920px;
  margin: 84px auto 0;
  padding: 0 14px 30px;
}

.profile h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 2.3vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--muted);
}

.profile-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-top: 10px;
}

.profile-photo {
  width: 195px;
  height: 195px;
  min-width: 195px;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.26)),
    url('./perfil.jpg') center/cover no-repeat;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.12);
}

.profile-copy {
  width: 100%;
  max-width: none;
  text-align: left;
  color: var(--text);
}

.profile-copy p,
.profile-copy li {
  margin: 0 0 14px;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.55;
  color: var(--muted);
}

.profile-copy strong {
  font-weight: 700;
}

.profile-copy ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.footer {
  text-align: center;
  padding: 38px 20px 52px;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 700px) {
  .landing {
    padding-inline: 14px;
  }

  .hero {
    padding-top: 8px;
  }

  .case-study {
    margin-top: 28px;
  }

  .video-card {
    height: 240px;
  }

  .play-button {
    width: 92px;
    height: 92px;
    border-width: 8px;
  }

  .play-button::before {
    border-top-width: 18px;
    border-bottom-width: 18px;
    border-left-width: 26px;
  }

  .play-caption {
    font-size: 1rem;
    bottom: 20px;
  }

  .registration-form {
    padding: 30px 20px 22px;
  }

  .profile {
    margin-top: 60px;
  }

  .profile-photo {
    width: 150px;
    height: 150px;
    min-width: 150px;
  }

  .profile-copy ul {
    text-align: left;
  }
}
