/* HYPNOREC - Estilos principales */
/* Paleta: azul marino profundo a negro, acentos teal y lavanda */

:root {
  --color-marino: #0a1628;
  --color-negro: #000000;
  --color-teal: #00d9c0;
  --color-lavanda: #b19cd9;
  --color-blanco: #ffffff;
  --color-gris-claro: #e8eef5;
  --color-gris: #6b7c93;
  --color-dorado: #d4af37;
  --radio-card: 16px;
  --sombra-card: 0 8px 24px rgba(0, 0, 0, 0.4);
  --sombra-hover: 0 12px 32px rgba(0, 217, 192, 0.3);
  --fuente-principal: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transicion: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fuente-principal);
  background: linear-gradient(180deg, var(--color-marino) 0%, var(--color-negro) 100%);
  color: var(--color-blanco);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* HEADER Y NAVEGACIÓN */
.site-header {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(0, 217, 192, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--color-blanco);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transicion);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-teal);
  transition: var(--transicion);
}

.nav-link:hover {
  color: var(--color-teal);
}

.nav-link:hover::after {
  width: 100%;
}

.lang-selector {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-blanco);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transicion);
  text-transform: uppercase;
}

.lang-btn:hover,
.lang-btn.active {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: var(--color-negro);
  transform: translateY(-2px);
}

/* HERO */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.4;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, var(--color-teal), var(--color-lavanda));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -2px;
}

.hero-claim {
  font-size: 1.5rem;
  font-weight: 300;
  max-width: 800px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 2;
  color: var(--color-gris-claro);
  line-height: 1.8;
}

/* ESPIRAL DE FONDO */
.spiral-bg {
  position: relative;
  overflow: hidden;
}

.spiral-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, transparent 20%, rgba(0, 217, 192, 0.05) 21%, rgba(0, 217, 192, 0.05) 22%, transparent 23%, transparent 27%, rgba(177, 156, 217, 0.05) 28%, rgba(177, 156, 217, 0.05) 29%, transparent 30%);
  background-size: 120px 120px;
  animation: spiral-rotate 60s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes spiral-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* BOTONES */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transicion);
  cursor: pointer;
  border: none;
  text-align: center;
  position: relative;
  z-index: 2;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-teal), var(--color-lavanda));
  color: var(--color-blanco);
  box-shadow: 0 4px 16px rgba(0, 217, 192, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 217, 192, 0.6);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--color-blanco);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
  background: #128C7E;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
}

/* BOTÓN FLOTANTE WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5);
  z-index: 999;
  cursor: pointer;
  transition: var(--transicion);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.7);
}

.whatsapp-float::before {
  content: '💬';
  font-size: 28px;
}

/* SECCIONES */
.section {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, var(--color-teal), var(--color-lavanda));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-gris-claro);
  max-width: 900px;
  margin: 0 auto 2rem;
  text-align: center;
}

/* PASOS */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 217, 192, 0.2);
  border-radius: var(--radio-card);
  padding: 2rem;
  text-align: center;
  transition: var(--transicion);
}

.step:hover {
  transform: translateY(-8px);
  border-color: var(--color-teal);
  box-shadow: var(--sombra-hover);
}

.step h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-teal);
}

.step p {
  color: var(--color-gris-claro);
  line-height: 1.7;
}

/* VIDEO */
.video-block {
  max-width: 900px;
  margin: 3rem auto;
  border-radius: var(--radio-card);
  overflow: hidden;
  box-shadow: var(--sombra-card);
  background: var(--color-negro);
}

.video-block video {
  width: 100%;
  height: auto;
  display: block;
}

/* TARJETAS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 217, 192, 0.2);
  border-radius: var(--radio-card);
  overflow: hidden;
  transition: var(--transicion);
  box-shadow: var(--sombra-card);
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--color-teal);
  box-shadow: var(--sombra-hover);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--color-marino), var(--color-negro));
}

.card-title {
  font-size: 1.4rem;
  font-weight: 600;
  padding: 1.5rem 1.5rem 0.5rem;
  color: var(--color-teal);
}

.card-text {
  padding: 0 1.5rem 1.5rem;
  color: var(--color-gris-claro);
  line-height: 1.6;
}

.card-link {
  display: inline-block;
  margin: 0 1.5rem 1.5rem;
  color: var(--color-lavanda);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transicion);
}

.card-link:hover {
  color: var(--color-teal);
  text-decoration: underline;
}

/* TABLA DE PRECIOS */
.price-table {
  max-width: 800px;
  margin: 3rem auto;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 217, 192, 0.2);
  border-radius: var(--radio-card);
  overflow: hidden;
  box-shadow: var(--sombra-card);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transicion);
}

.price-row:last-child {
  border-bottom: none;
}

.price-row:hover {
  background: rgba(0, 217, 192, 0.1);
}

.price-row strong {
  color: var(--color-teal);
  font-size: 1.2rem;
}

.price-destacado {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
  border: 2px solid var(--color-dorado);
  position: relative;
}

.price-destacado::before {
  content: '⭐ Más popular';
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--color-dorado);
  color: var(--color-negro);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* STAFF */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.staff-card {
  text-align: center;
  transition: var(--transicion);
}

.staff-card:hover {
  transform: translateY(-8px);
}

.staff-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--color-teal);
  box-shadow: 0 8px 24px rgba(0, 217, 192, 0.4);
  background: linear-gradient(135deg, var(--color-marino), var(--color-negro));
}

.staff-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--color-teal);
}

.staff-card p {
  color: var(--color-gris-claro);
  line-height: 1.6;
}

/* FAQ */
.faq {
  max-width: 900px;
  margin: 3rem auto;
}

.faq-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 217, 192, 0.2);
  border-radius: var(--radio-card);
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: var(--transicion);
}

.faq-item:hover {
  border-color: var(--color-teal);
  box-shadow: var(--sombra-hover);
}

.faq-item h3 {
  color: var(--color-teal);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.faq-item p {
  color: var(--color-gris-claro);
  line-height: 1.7;
}

/* FORMULARIO */
.form-field {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-teal);
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(0, 217, 192, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-blanco);
  font-size: 1rem;
  transition: var(--transicion);
  font-family: var(--fuente-principal);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(0, 217, 192, 0.2);
}

.form-input::placeholder {
  color: var(--color-gris);
}

select.form-input {
  cursor: pointer;
}

textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-check input[type="checkbox"] {
  margin-top: 0.3rem;
  cursor: pointer;
}

.form-check label {
  color: var(--color-gris-claro);
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
}

.form-check a {
  color: var(--color-teal);
  text-decoration: underline;
}

/* FOOTER */
.site-footer {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 217, 192, 0.2);
  padding: 3rem 2rem 1.5rem;
  margin-top: 5rem;
}

.footer-legal {
  max-width: 1400px;
  margin: 0 auto 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-gris-claro);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-legal h3 {
  color: var(--color-teal);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-legal ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

.footer-legal li {
  margin-bottom: 0.3rem;
}

.footer-links {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-gris);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transicion);
}

.footer-links a:hover {
  color: var(--color-teal);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-claim {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .nav-list {
    gap: 1rem;
    font-size: 0.85rem;
  }
  
  .site-header {
    padding: 1rem;
  }
  
  .section {
    padding: 3rem 1rem;
  }
  
  .cards,
  .steps,
  .staff-grid {
    grid-template-columns: 1fr;
  }
  
  .price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-float::before {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-claim {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* ===== PARCHE 1 (6 ago) - desplegables legibles y ajuste movil ===== */
select.form-input option, select option { background-color: #0a192f !important; color: #ffffff !important; }
html, body { max-width: 100%; overflow-x: hidden; }
img, video, iframe { max-width: 100%; height: auto; }
.steps, .cards { max-width: 100%; }
.step img, .step video, .card-img { width: 100%; height: auto; display: block; border-radius: 14px; }
@media (max-width: 768px) {
  .steps, .cards, .staff-grid { grid-template-columns: 1fr !important; display: grid !important; gap: 20px; }
  .hero { min-height: 70vh; }
  .hero-title { font-size: clamp(1.8rem, 9vw, 3rem); word-break: break-word; }
  .section { padding-left: 16px; padding-right: 16px; }
  .nav-list { flex-wrap: wrap; }
}

/* ===== PARCHE 2 (6 ago) - tarjetas de pasos y ajuste movil fino ===== */
.steps { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
.step { display: flex; flex-direction: column; overflow: hidden; }
.step img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-bottom: 1.25rem; }
.step h3 { font-size: 1.35rem; }
.card-img { aspect-ratio: 16 / 9; object-fit: cover; }
.price-table { display: block; width: 100%; overflow-x: auto; }
@media (max-width: 768px) {
  .steps, .cards { gap: 1.25rem; }
  .step { padding: 1.25rem; }
  .section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .video-block { margin: 2rem 0; }
  .hero-claim { font-size: 1rem; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr !important; }
  .step h3 { font-size: 1.2rem; }
}

/* ===== PARCHE 3b (6 ago) - titulo de cabecera legible en movil ===== */
@media (max-width: 768px) {
  .hero-title { font-size: clamp(1.5rem, 8vw, 2.4rem) !important; letter-spacing: -0.5px !important; word-break: normal !important; overflow-wrap: normal !important; white-space: nowrap; }
  .hero-claim { font-size: 1rem !important; line-height: 1.6; }
}
