/* ===================================================
   Landing — Gustavo Cuevas / XEVT 104.1 FM
   Capacitación IA + WhatsApp · Villahermosa
   Paleta: editorial profesional · navy + ámbar
   =================================================== */

/* ============ RESET + TOKENS ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Color */
  --bg-dark:        #0A0F1C;
  --bg-dark-2:      #0F1729;
  --bg-dark-3:      #141C30;
  --bg-light:       #F5F2EC;      /* cream off-white */
  --bg-light-2:     #EDE8DD;
  --text-on-dark:   #F8FAFC;
  --text-on-dark-muted: #9CA8BC;
  --text-on-light:  #0A0F1C;
  --text-on-light-muted: #4A5568;
  --accent:         #E8A33D;       /* amber refinado */
  --accent-2:       #F4B655;
  --accent-deep:    #B47C26;
  --whatsapp:       #25D366;
  --whatsapp-dark:  #1FAD52;
  --border-dark:    rgba(255, 255, 255, 0.08);
  --border-light:   rgba(10, 15, 28, 0.10);

  /* Type */
  --font-display: "Georgia", "Iowan Old Style", "Times New Roman", serif;
  --font-body:    -apple-system, system-ui, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Spacing */
  --container: 1120px;
  --gutter: clamp(20px, 5vw, 48px);

  /* Curves */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-on-dark);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--accent); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============ REUSABLE: BRAND MARK ============ */
.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
}
.brand-mark__call {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-on-dark);
  letter-spacing: 0.18em;
}
.brand-mark__freq {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.22em;
  padding: 3px 8px;
  border: 1px solid var(--accent);
  border-radius: 2px;
}
.brand-mark--lg .brand-mark__call { font-size: 1.5rem; }
.brand-mark--lg .brand-mark__freq { font-size: 0.85rem; }

/* ============ REUSABLE: EYEBROW / TITLES ============ */
.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.section-eyebrow--dark { color: var(--accent-deep); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}
.section-title--dark { color: var(--text-on-light); }

.section-header { margin-bottom: clamp(3rem, 7vw, 5rem); }
.section-header--center { text-align: center; }

/* ============ REUSABLE: BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 20px 32px; font-size: 1.05rem; }

.btn--whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
}
.btn--whatsapp:hover {
  background: var(--whatsapp-dark);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.btn--primary {
  background: var(--accent);
  color: var(--bg-dark);
  box-shadow: 0 4px 18px rgba(232, 163, 61, 0.30);
}
.btn--primary:hover {
  background: var(--accent-2);
  box-shadow: 0 8px 24px rgba(232, 163, 61, 0.45);
}

.btn__icon { width: 20px; height: 20px; flex-shrink: 0; }
.btn__arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}
.btn:hover .btn__arrow { transform: translate(3px, -3px); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-dark);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('images/villahermosa-hero.png');
  background-size: cover;
  background-position: right center;
  filter: saturate(0.7) brightness(0.45);
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,15,28,0.55) 0%, rgba(10,15,28,0.75) 60%, rgba(10,15,28,0.95) 100%),
    linear-gradient(90deg, rgba(10,15,28,0.85) 0%, rgba(10,15,28,0.40) 50%, rgba(10,15,28,0.55) 100%);
  z-index: 1;
}

.hero__nav {
  position: relative;
  z-index: 2;
  padding-top: 28px;
  padding-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.hero__nav-loc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}
.hero__nav-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(40px, 8vh, 80px);
  padding-bottom: clamp(40px, 8vh, 80px);
  max-width: 900px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.8rem;
  animation: fade-up 0.8s var(--ease) both;
}
.hero__eyebrow-line {
  display: inline-block;
  width: 36px; height: 1px;
  background: var(--accent);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 5.4rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--text-on-dark);
  margin-bottom: 1.6rem;
  animation: fade-up 0.9s 0.1s var(--ease) both;
}
.hero__title-accent {
  color: var(--accent);
  font-style: italic;
}
.hero__lead {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-on-dark-muted);
  max-width: 580px;
  margin-bottom: 2.4rem;
  animation: fade-up 1s 0.25s var(--ease) both;
}

.hero__date-bar {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  margin-bottom: 2.4rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade-up 1s 0.4s var(--ease) both;
  flex-wrap: wrap;
}
.hero__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.hero__date-day {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.hero__date-month {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text-on-dark);
  margin-top: 2px;
}
.hero__date-arrow {
  font-size: 1.4rem;
  color: var(--text-on-dark-muted);
  font-weight: 300;
}
.hero__date-time {
  margin-left: auto;
  padding-left: 18px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-on-dark);
  border-left: 1px solid var(--border-dark);
}

.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  animation: fade-up 1s 0.55s var(--ease) both;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  animation: fade-up 1s 0.7s var(--ease) both;
}
.hero__badge-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  animation: pulse 2.2s ease-in-out infinite;
}
.hero__badge-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  animation: pulse-ring 2.2s ease-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(2.2); opacity: 0; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ HOOK SECTION ============ */
.hook {
  background: var(--bg-light);
  padding: clamp(70px, 12vw, 130px) 0;
  position: relative;
}
.hook::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}
.hook__inner { max-width: 880px; }
.hook__question {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--text-on-light);
}
.hook__question em {
  color: var(--accent-deep);
  font-style: italic;
}

/* ============ LEARN SECTION ============ */
.learn {
  background: var(--bg-dark);
  padding: clamp(80px, 13vw, 140px) 0;
  position: relative;
}
.learn__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
@media (min-width: 768px) {
  .learn__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
.learn__card {
  position: relative;
  padding: 44px 36px;
  background: linear-gradient(180deg, var(--bg-dark-2), var(--bg-dark));
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.learn__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(232, 163, 61, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.learn__card:hover {
  border-color: rgba(232, 163, 61, 0.3);
  transform: translateY(-4px);
}
.learn__card:hover::before { opacity: 1; }

.learn__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.18em;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.learn__num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-dark);
  max-width: 60px;
}
.learn__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}
.learn__text {
  color: var(--text-on-dark-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}
.learn__text strong {
  color: var(--text-on-dark);
  font-weight: 600;
}

/* ============ INSTRUCTOR SECTION ============ */
.instructor {
  background: var(--bg-dark-2);
  padding: clamp(80px, 13vw, 140px) 0;
  position: relative;
}
.instructor__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: start;
}
@media (min-width: 880px) {
  .instructor__grid {
    grid-template-columns: 340px 1fr;
    gap: 80px;
  }
}
.instructor__visual {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* avatar */
.avatar {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(232, 163, 61, 0.2);
}
.avatar__initials {
  font-family: var(--font-display);
  font-size: 4.6rem;
  font-weight: 700;
  color: var(--bg-dark);
  letter-spacing: -0.04em;
  line-height: 1;
}
.avatar__ring {
  position: absolute;
  inset: -10px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0.4;
  animation: ring-spin 18s linear infinite;
}
.avatar__ring::before {
  content: '';
  position: absolute;
  top: -5px; left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
}
@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

.credentials {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.credentials__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}
.credentials__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.credentials__value {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-on-dark);
}

.instructor__intro {
  padding-top: 10px;
}
.instructor__name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-bottom: 1.6rem;
}
.instructor__surname {
  color: var(--accent);
  font-style: italic;
}
.instructor__bio {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--text-on-dark-muted);
  margin-bottom: 1.6rem;
  max-width: 540px;
}
.instructor__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.instructor__link:hover {
  border-color: var(--accent);
  gap: 14px;
}

/* ============ AUDIENCE SECTION ============ */
.audience {
  background: var(--bg-light);
  padding: clamp(80px, 13vw, 140px) 0;
  text-align: center;
}
.audience__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 18px;
  margin-bottom: 2.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-on-light);
}
.audience__item {
  position: relative;
}
.audience__dot {
  color: var(--accent);
  font-weight: 400;
}
.audience__note {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-on-light-muted);
}
.audience__note strong {
  color: var(--text-on-light);
  font-weight: 600;
}

/* ============ DETAILS SECTION ============ */
.details {
  background: var(--bg-dark);
  padding: clamp(80px, 13vw, 140px) 0;
}
.details__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) {
  .details__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .details__grid { grid-template-columns: repeat(4, 1fr); }
}
.detail-card {
  padding: 32px 24px;
  background: var(--bg-dark-2);
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.detail-card:hover {
  border-color: rgba(232, 163, 61, 0.3);
  background: var(--bg-dark-3);
}
.detail-card__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.detail-card__value {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-on-dark);
  line-height: 1.1;
}
.detail-card__sub {
  font-size: 0.88rem;
  color: var(--text-on-dark-muted);
  margin-top: 4px;
}
.detail-card--highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-color: var(--accent);
}
.detail-card--highlight .detail-card__label,
.detail-card--highlight .detail-card__value,
.detail-card--highlight .detail-card__sub {
  color: var(--bg-dark);
}
.detail-card--highlight:hover {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

/* ============ FINAL CTA SECTION ============ */
.final-cta {
  background: var(--bg-dark);
  padding: clamp(80px, 13vw, 140px) 0;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232, 163, 61, 0.10), transparent 60%);
  pointer-events: none;
}
.final-cta__inner {
  position: relative;
  text-align: center;
  max-width: 800px;
}
.final-cta__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.022em;
  margin-bottom: 1.4rem;
}
.final-cta__title em {
  color: var(--accent);
  font-style: italic;
}
.final-cta__hint {
  font-size: 1.05rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 2.6rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta__buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============ FOOTER ============ */
.footer {
  background: #06090F;
  padding: 70px 0 28px;
  border-top: 1px solid var(--border-dark);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 24px;
}
@media (min-width: 700px) {
  .footer__grid { grid-template-columns: 1fr auto; align-items: start; }
}
.footer__tag {
  margin-top: 16px;
  font-size: 0.92rem;
  color: var(--text-on-dark-muted);
  font-style: italic;
}
.footer__host {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--text-on-dark-muted);
}
.footer__host strong {
  color: var(--text-on-dark);
  font-weight: 600;
}
.footer__social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__social-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-on-dark);
  transition: color 0.25s var(--ease), gap 0.25s var(--ease);
}
.footer__social a:hover {
  color: var(--accent);
  gap: 12px;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-on-dark-muted);
  letter-spacing: 0.04em;
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: 0.05s;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01s !important;
    transition-duration: 0.01s !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============ MOBILE TUNES ============ */
@media (max-width: 600px) {
  .hero__nav { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero__nav-loc { font-size: 0.7rem; }
  .hero__title { line-height: 1.02; }
  .hero__date-bar { gap: 12px; padding: 14px 18px; }
  .hero__date-day { font-size: 2rem; }
  .hero__date-time {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    flex-basis: 100%;
    margin-top: 4px;
  }
  .hero__ctas .btn { width: 100%; }
  .btn { padding: 14px 22px; }
  .avatar { width: 140px; height: 140px; }
  .avatar__initials { font-size: 3.6rem; }
  .final-cta__buttons .btn { width: 100%; }
  .footer__bottom { justify-content: flex-start; }
}
