@import "https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap";

/* ------------------------------------------------------------------ */
/* Variables y reset básico                                             */
/* ------------------------------------------------------------------ */

:root {
  --text-dim: #d9d9d9;
  --text: #f5f5f5;
  --text-bright: #ffffff;
  --bg: #0b1a3a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  width: 100%;
  overflow-x: hidden;
}

.site-root {
  width: 100%;
}

/* ------------------------------------------------------------------ */
/* Fondo compartido por las 3 secciones: grano (dither) + viñeta.       */
/* Una sola capa fija al viewport (no una por sección): se ve igual     */
/* sea cual sea la sección por la que se esté pasando el scroll.        */
/* ------------------------------------------------------------------ */

.dither-overlay {
  position: fixed;
  top: -60px;
  left: -60px;
  right: -60px;
  bottom: -60px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.42;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n' x='0%25' y='0%25' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.525' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 230px 230px;
  animation: drift 8s linear infinite;
}

@keyframes drift {
  0% {
    transform: translate(0);
  }
  25% {
    transform: translate(-55px, 28px);
  }
  50% {
    transform: translate(28px, -44px);
  }
  75% {
    transform: translate(-28px, 55px);
  }
  to {
    transform: translate(0);
  }
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle farthest-side at center, transparent 40%, rgba(0, 0, 0, 0.85) 100%);
}

/* ------------------------------------------------------------------ */
/* Menú de navegación                                                    */
/* ------------------------------------------------------------------ */

.nav-menu {
  position: fixed;
  top: clamp(1rem, 2.5vw, 1.8rem);
  right: clamp(1rem, 2.5vw, 2rem);
  z-index: 1000;
}

.nav-burger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}

.nav-burger span {
  display: block;
  height: 1.5px;
  background: var(--text-dim);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-burger span:nth-child(1) {
  width: 26px;
}

.nav-burger span:nth-child(2) {
  width: 18px;
}

.nav-burger span:nth-child(3) {
  width: 26px;
}

.nav-burger:hover span {
  background: var(--text);
}

.nav-burger--open span:nth-child(1) {
  width: 24px;
  transform: translateY(6.5px) rotate(45deg);
  background: var(--text);
}

.nav-burger--open span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.nav-burger--open span:nth-child(3) {
  width: 24px;
  transform: translateY(-6.5px) rotate(-45deg);
  background: var(--text);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.8rem);
  right: 0;
  background: #0b1a3af2;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.nav-dropdown--open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.nav-item {
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  padding: 0.9rem 1.4rem;
  text-align: left;
  transition: color 0.2s ease, background 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-item:last-child {
  border-bottom: none;
}

.nav-item:hover {
  color: var(--text);
  background: #ffffff0d;
}

/* ------------------------------------------------------------------ */
/* Cabecera (logo y contacto)                                           */
/* ------------------------------------------------------------------ */

.logo-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1rem, 3vw, 2.5rem) 2rem 0;
  z-index: 10;
}

.logo-img {
  width: clamp(260px, 55vw, 600px);
  max-width: 90%;
  height: auto;
  opacity: 0.92;
  /* Este brillo se deja dorado a propósito: es la imagen del logo, no texto. */
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.2));
}

.logo-subtext {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2em;
  margin-top: 0.4rem;
}

.logo-subtext span,
.logo-subtext a {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-decoration: none;
}

.contact-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.mail-icon-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-dim);
  transition: color 0.3s ease, filter 0.3s ease;
}

.mail-icon-link:hover {
  color: var(--text);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
}

/* ------------------------------------------------------------------ */
/* Frase A: marca animada (Contrología = Pilates)                       */
/* ------------------------------------------------------------------ */

.center-stage {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -6vh;
}

.phrase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.4rem, 2vw, 1.5rem);
  flex-wrap: nowrap;
}

.glitch-word,
.symbol-word {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.05em;
  will-change: transform, filter, opacity;
  white-space: nowrap;
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}

.glitch-word {
  font-size: clamp(2.4rem, 7vw, 7rem);
  display: inline-block;
}

.symbol-word {
  font-size: clamp(2.8rem, 8vw, 8rem);
  font-weight: 400;
  color: var(--text-bright);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 60px rgba(255, 255, 255, 0.2);
}

/* ------------------------------------------------------------------ */
/* Frase B: máquina de escribir (pie del hero)                          */
/* ------------------------------------------------------------------ */

.typewriter-footer {
  position: absolute;
  bottom: 28%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 2rem;
  z-index: 10;
}

.typewriter-line {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-align: center;
  min-height: 1.6em;
}

.typewriter-mark {
  color: var(--text);
  font-style: normal;
}

/* ------------------------------------------------------------------ */
/* Sección "inicio" (hero): estructura y capa de fondo                   */
/* ------------------------------------------------------------------ */

.landing-root {
  position: relative;
  width: 100vw;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ------------------------------------------------------------------ */
/* Flecha de scroll                                                      */
/* ------------------------------------------------------------------ */

.scroll-arrow {
  position: absolute;
  bottom: clamp(1.2rem, 3vw, 2rem);
  left: 50%;
  transform: translate(-50%);
  z-index: 20;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  animation: arrow-pulse 2.4s ease-in-out infinite;
}

.scroll-arrow:hover {
  color: var(--text);
  border-color: #ffffff99;
  box-shadow: 0 0 16px #ffffff33;
  animation: none;
}

@keyframes arrow-pulse {
  0%,
  to {
    transform: translate(-50%) translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%) translateY(6px);
    opacity: 1;
  }
}

/* ------------------------------------------------------------------ */
/* Secciones de contenido (La Contrología / Clases y precios)           */
/* ------------------------------------------------------------------ */

.content-section {
  width: 100%;
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.section-inner {
  max-width: 820px;
  width: 100%;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;
  font-size: clamp(2.2rem, 6vw, 5rem);
  color: var(--text);
  letter-spacing: 0.08em;
  text-align: center;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
}

.section-title:after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--text-dim), transparent);
  margin: 1.2rem auto 0;
}

.section-body {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  width: 100%;
  max-width: 620px;
  text-align: center;
}

.section-paragraph {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.tachado {
  text-decoration: line-through;
  opacity: 0.5;
  color: var(--text-dim);
}

.resaltado {
  color: var(--text);
  font-weight: 600;
  font-size: 1.15em;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.3);
}

/* ------------------------------------------------------------------ */
/* Responsive                                                            */
/* ------------------------------------------------------------------ */

@media (max-width: 480px) {
  .phrase {
    gap: 0.3rem;
  }

  .glitch-word {
    font-size: clamp(1.5rem, 8.5vw, 3rem);
  }

  .symbol-word {
    font-size: clamp(1.8rem, 10vw, 3.5rem);
  }

  .nav-dropdown {
    min-width: 170px;
  }
}
