@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --dark: #2A1B3D;
  --purple-mid: #6A0DAD;
  --purple-light: #9c27b0;
  --lavender: #D4C5ED;
  --lavender-bg: #F8F6FC;
  --white: #FFFFFF;
  --white-warm: #F5F0EB;
  --gold: #C6A961;
  --gold-hover: #D4BA78;
  --text-dark: #2A1B3D;
  --text-soft: #6B6180;
  --text-on-dark: #F5F0EB;
  /* Encabezados principales (Método / Servicios / Formación / Sobre mí / Contacto) */
  --nav-hero-padding-top: 170px;
  --nav-hero-padding-bottom: 100px;
  --nav-hero-padding-top-mobile: 150px;
  --nav-hero-padding-bottom-mobile: 90px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--lavender-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.25; font-weight: 600; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(42, 27, 61, .95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(198, 169, 97, .15);
  width: 100%;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; height: 80px;
}
.nav-logo img { height: 75px; width: auto; margin-top: 6px; }
.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  font-size: 14px; font-weight: 500; letter-spacing: .5px;
  text-transform: uppercase; color: var(--white-warm); transition: color .3s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); }
.nav-cta {
  background: var(--gold); color: var(--dark) !important;
  padding: 8px 20px; border-radius: 6px; font-weight: 600; transition: background .3s;
}
.nav-cta:hover { background: var(--gold-hover); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white-warm); margin: 5px 0; }

@media (max-width: 1200px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 13px; }
  .nav-cta { padding: 8px 14px; }
}

/* SECTIONS */
section { padding: 100px 0; }
.section-dark { background: var(--dark); color: var(--text-on-dark); }
.section-night { background: #352647; color: var(--text-on-dark); }
.section-metodo-home { padding-top: 90px; padding-bottom: 28px; }
.section-light { background: var(--lavender-bg); color: var(--text-dark); }
.section-white { background: var(--white); color: var(--text-dark); }

/* HERO */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding-top: 80px;
  background: var(--dark) url('../assets/logo2_Transparente.png') center bottom / 75% auto no-repeat;
  position: relative;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(42, 27, 61, 0.55);
}
.hero-content { position: relative; z-index: 1; max-width: 750px; padding: 0 24px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--white-warm); margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p { font-size: 1.15rem; color: rgba(245,240,235,.75); margin-bottom: 40px; line-height: 1.8; }

/* BUTTONS */
.btn {
  display: inline-block; padding: 14px 36px; border-radius: 6px;
  font-size: 15px; font-weight: 600; letter-spacing: .5px;
  transition: all .3s; border: none; cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: var(--gold-hover); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(198,169,97,.3); }
.btn-outline { background: transparent; color: var(--gold); border: 2px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--dark); }
.btn-purple { background: var(--gold); color: var(--dark); }
.btn-purple:hover { background: var(--gold-hover); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(198,169,97,.3); }

/* SECTION TITLES */
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 20px; }
.section-subtitle { font-size: 1.05rem; color: var(--text-soft); max-width: 600px; margin: 0 auto 50px; line-height: 1.8; }
.section-dark .section-subtitle, .section-night .section-subtitle { color: rgba(245,240,235,.65); }
.text-gold { color: var(--gold); }
.text-center { text-align: center; }

/* Sobre mí — cabecera con foto a la izquierda y texto a la derecha */
.sobre-header-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 920px;
  margin: 0 auto;
}
.sobre-header-text {
  text-align: left;
}
.sobre-header-text .section-title {
  margin-bottom: 0;
}
.sobre-header-text .section-subtitle {
  /* Evita el margen inferior estándar de .section-subtitle (50px), que alarga el bloque oscuro */
  margin: 8px 0 0 !important;
  max-width: 620px;
}
.sobre-avatar {
  width: auto;
  max-width: 210px;
  max-height: 200px;
  height: auto;
  border-radius: 16px;
  clip-path: none;
  object-fit: contain;
  object-position: center center;
  filter: none;
  border: 0;
  box-shadow: none;
  background: transparent;
  display: block;
}

/* CARDS */
.cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 30px; margin-top: 40px; justify-content: center; }
.cards-grid.cards-3 { grid-template-columns: repeat(3, minmax(0, 320px)); }
.card {
  background: var(--white); padding: 40px 32px; border-radius: 16px;
  border: 1px solid var(--lavender); transition: all .3s;
  text-align: center;
  display: flex; flex-direction: column;
}
.card-icon {
  width: 48px; height: 48px; background: var(--lavender-bg); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  margin: 0 auto 20px;
}
.card-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}
/* Inicio — tres niveles: más contraste (dorado claro sobre lavanda casi no se lee) */
.section-home-servicios .card-icon {
  width: 52px;
  height: 52px;
  background: var(--white);
  border: 1px solid rgba(212, 197, 237, 0.9);
  box-shadow: 0 1px 3px rgba(42, 27, 61, 0.06);
}
.section-home-servicios .card-icon-img {
  width: 40px;
  height: 40px;
}
/* Birrete: el SVG trae mucho aire en el viewBox; escala para alinearlo con lupa/proceso */
.section-home-servicios .card-icon-img--formacion {
  width: 40px;
  height: 40px;
  transform: scale(1.52);
  transform-origin: center center;
}
.section-home-servicios .card-icon {
  overflow: visible;
}
.card-icon-img--numero {
  width: 36px;
  height: 36px;
}
/* Método — consciente.svg: viewBox amplio; tamaño moderado para no llenar el recuadro lavanda */
.card-icon-img--consciente {
  width: 36px;
  height: 36px;
  max-width: none;
  transform: scale(1);
  transform-origin: center center;
  filter: drop-shadow(0 0 1.5px rgba(106, 85, 40, 0.45))
    drop-shadow(0 0 2.5px rgba(198, 169, 97, 0.35))
    contrast(1.12) brightness(0.94);
}
.card:has(.card-icon-img--consciente) .card-icon {
  width: 48px;
  height: 48px;
  overflow: hidden;
}
.card p:first-of-type { flex: 1; }
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(42,27,61,.1); border-color: var(--lavender); }
.card h3 { font-size: 1.35rem; margin-bottom: 12px; color: var(--dark); }
.card p { color: var(--text-soft); margin-bottom: 20px; font-size: .95rem; }
.card-link { font-size: 14px; font-weight: 600; color: var(--purple-mid); letter-spacing: .3px; transition: color .3s; }
.card-link:hover { color: var(--gold); }

/* METODO GRID (páginas internas) */
.metodo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-top: 50px; }
.metodo-item { text-align: center; padding: 30px 20px; }
.metodo-item .number { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--gold); margin-bottom: 12px; }
.metodo-item h3 { font-size: 1.1rem; color: var(--white-warm); margin-bottom: 8px; }
.metodo-item p { font-size: .9rem; color: rgba(245,240,235,.55); }

/* METODO HOME — intro + órbita (avatar centrado, 01–04 en cruz) */
.metodo-radial { margin-top: -12px; margin-bottom: -8px; }
.metodo-radial-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.metodo-radial-intro .section-title { margin-bottom: 0; }
.metodo-radial-intro .section-subtitle {
  margin: 6px auto 0;
  color: rgba(245,240,235,.65);
  line-height: 1.6;
}
.metodo-orbit {
  position: relative;
  width: min(100%, 680px);
  margin: -52px auto 0;
  aspect-ratio: 1;
  --orbit-r: clamp(108px, 27vmin, 198px);
}
.metodo-orbit-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: min(48%, 230px);
}
.metodo-orbit-avatar img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 24px rgba(106, 13, 173, .15));
}
.metodo-orbit-ring {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.metodo-orbit-item.metodo-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(158px, 38vw);
  max-width: 175px;
  padding: 4px 2px;
  pointer-events: auto;
}
.metodo-orbit-item .number { margin-bottom: 6px; font-size: clamp(1.65rem, 4.2vmin, 2.35rem); }
.metodo-orbit-item h3 {
  font-size: clamp(.82rem, 2.6vmin, 1.05rem);
  line-height: 1.2;
  margin-bottom: 4px;
}
.metodo-orbit-item p { font-size: clamp(.72rem, 2.1vmin, .85rem); line-height: 1.35; }
.metodo-orbit-item--n { transform: translate(-50%, -50%) translateY(calc(-1 * var(--orbit-r))); }
.metodo-orbit-item--e { transform: translate(-50%, -50%) translateX(var(--orbit-r)); }
.metodo-orbit-item--s { transform: translate(-50%, -50%) translateY(var(--orbit-r)); }
.metodo-orbit-item--w { transform: translate(-50%, -50%) translateX(calc(-1 * var(--orbit-r))); }

/* LEAD FORM */
.lead-form { max-width: 460px; margin: 30px auto 0; display: flex; gap: 12px; }
.lead-form input {
  flex: 1; padding: 14px 20px; border-radius: 6px;
  border: 2px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1);
  color: var(--white-warm); font-size: 15px; font-family: 'Inter', sans-serif; outline: none;
}
.lead-form input::placeholder { color: rgba(245,240,235,.4); }
.lead-form input:focus { border-color: var(--gold); }
.lead-form button {
  padding: 14px 28px; border-radius: 6px; background: var(--gold); color: var(--dark);
  font-weight: 600; font-size: 15px; border: none; cursor: pointer; white-space: nowrap;
}
.lead-form button:hover { background: var(--gold-hover); }

/* FORM CONSENT */
.form-consent {
  display: flex; align-items: flex-start; gap: 8px;
  max-width: 460px; margin: 14px auto 0; font-size: .84rem;
  color: var(--text-soft); line-height: 1.4; cursor: pointer;
  justify-content: center;
}
.form-consent input[type="checkbox"] {
  margin-top: 2px; accent-color: var(--gold); flex-shrink: 0;
}
.form-consent a { color: var(--purple-mid); text-decoration: underline; }
.form-consent a:hover { color: var(--gold); }
.form-consent--dark { color: rgba(245,240,235,.5); }
.form-consent--dark a { color: var(--gold); }

/* LEGAL PAGES */
.legal-content h3 { margin-top: 28px; margin-bottom: 10px; font-size: 1.15rem; }
.legal-content h4 { margin-top: 18px; margin-bottom: 8px; font-size: 1rem; color: var(--text-dark); }
.legal-content ul { margin: 10px 0 16px 20px; color: var(--text-soft); line-height: 1.8; }
.legal-content p { margin-bottom: 14px; text-align: justify; }

/* BOOKING FORM */
.booking-form-wrap {
  max-width: 600px;
  margin: 0 auto;
}
.booking-form {
  background: var(--white);
  padding: 36px 32px;
  border-radius: 16px;
  border: 1px solid var(--lavender);
  text-align: left;
  box-shadow: 0 12px 40px rgba(42, 27, 61, 0.06);
}
.booking-form h3 {
  text-align: center;
  color: var(--dark);
  font-family: 'Playfair Display', serif;
}
.booking-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.booking-field {
  display: flex;
  flex-direction: column;
}
.booking-field--full {
  grid-column: 1 / -1;
}
.booking-field label {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 6px;
}
.booking-field input,
.booking-field textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--lavender);
  border-radius: 8px;
  font-size: .95rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--lavender-bg);
  transition: border-color .3s;
  outline: none;
}
.booking-field input:focus,
.booking-field textarea:focus {
  border-color: var(--gold);
}
.booking-field input::placeholder,
.booking-field textarea::placeholder {
  color: rgba(107, 97, 128, 0.5);
}
.booking-field textarea {
  resize: vertical;
  min-height: 72px;
}
.booking-form .btn {
  display: block;
  width: 100%;
  text-align: center;
}
.booking-form .form-consent {
  justify-content: flex-start;
  max-width: none;
  margin-left: 0;
}
@media (max-width: 480px) {
  .booking-form-grid { grid-template-columns: 1fr; }
  .booking-form { padding: 28px 20px; }
}

/* FOOTER LEGAL LINKS */
.footer-legal { display: flex; justify-content: center; gap: 24px; margin-bottom: 20px; list-style: none; margin-top: -8px; }
.footer-legal a { color: rgba(245,240,235,.4); font-size: 12px; letter-spacing: .3px; }
.footer-legal a:hover { color: var(--gold); }

/* QUOTE */
.quote-block { max-width: 700px; margin: 0 auto; text-align: center; }
.quote-block blockquote { font-family: 'Playfair Display', serif; font-size: clamp(1.4rem,3vw,2rem); font-style: italic; line-height: 1.5; margin-bottom: 20px; }
.quote-block .dash { width: 50px; height: 2px; background: var(--gold); margin: 30px auto; }

/* NAV — héroes con padding unificado */
.nav-hero {
  position: relative;
  padding-top: var(--nav-hero-padding-top) !important;
  padding-bottom: var(--nav-hero-padding-bottom) !important;
  overflow: hidden;
}

/* Método — hero con foto3 de fondo */
.metodo-hero {
  position: relative;
  padding-top: var(--nav-hero-padding-top) !important;
  padding-bottom: var(--nav-hero-padding-bottom) !important;
  overflow: hidden;
  background: var(--dark) url('../assets/foto3.png') center / cover no-repeat;
}
.metodo-hero .container {
  position: relative;
  z-index: 1;
}
.metodo-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(42, 27, 61, 0.62);
  pointer-events: none;
  z-index: 0;
}
/* Lectura Codex — hero con foto4 */
.lectura-hero {
  position: relative;
  padding-top: var(--nav-hero-padding-top) !important;
  padding-bottom: var(--nav-hero-padding-bottom) !important;
  overflow: hidden;
  background: var(--dark) url('../assets/foto4.jpg') center / cover no-repeat;
}
.lectura-hero .container {
  position: relative;
  z-index: 1;
}
.lectura-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(42, 27, 61, 0.6);
  pointer-events: none;
  z-index: 0;
}
/* Proceso Codex — hero con imagen de fondo */
.proceso-hero {
  position: relative;
  padding-top: var(--nav-hero-padding-top) !important;
  padding-bottom: var(--nav-hero-padding-bottom) !important;
  overflow: hidden;
  /* Misma integración que el resto de héroes (p. ej. Método): cover + overlay */
  background: var(--dark) url('../assets/procesocodex.png') center / cover no-repeat;
}
.proceso-hero .container {
  position: relative;
  z-index: 1;
}
.proceso-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(42, 27, 61, 0.62);
  pointer-events: none;
  z-index: 0;
}
/* Lectura Codex + Tu Patrón — iconos de tarjeta (tamaño estándar) */
.page-lectura .card-icon,
.page-patron-codex .card-icon,
.page-proceso .card-icon {
  width: 56px;
  height: 56px;
}
.page-lectura .card-icon-img,
.page-patron-codex .card-icon-img,
.page-proceso .card-icon-img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 1px 1px rgba(42, 27, 61, 0.1));
}
/* Sesión de seguimiento: mismo cuadro 56px que las otras; solo el .svg se escala */
.page-lectura .card:has(.card-icon-img--lectura-seguimiento) .card-icon,
.page-patron-codex .card:has(.card-icon-img--lectura-seguimiento) .card-icon,
.page-proceso .card:has(.card-icon-img--lectura-seguimiento) .card-icon {
  overflow: visible;
}
.page-lectura .card-icon-img--lectura-seguimiento,
.page-patron-codex .card-icon-img--lectura-seguimiento,
.page-proceso .card-icon-img--lectura-seguimiento {
  width: 40px;
  height: 40px;
  transform: scale(1.95);
  transform-origin: center center;
}
/* Patrones emocionales: avatar dorado, mismo marco 40×40 que el resto */
.page-lectura .card:has(.card-icon-img--lectura-patrones) .card-icon,
.page-patron-codex .card:has(.card-icon-img--lectura-patrones) .card-icon {
  overflow: visible;
}
.page-lectura .card-icon-img--lectura-patrones,
.page-patron-codex .card-icon-img--lectura-patrones {
  width: 40px;
  height: 40px;
  object-fit: contain;
  object-position: center center;
}

/* Lectura Codex — bloque de precios/pago premium */
.page-lectura .card-service {
  padding-top: 34px;
}
.page-lectura .service-duration {
  font-size: .85rem;
  color: var(--purple-mid);
  font-weight: 600;
  margin-bottom: 8px;
}
.page-lectura .service-price {
  font-size: 1.05rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .4px;
  margin-bottom: 18px;
}
.page-patron-codex .service-price {
  font-size: 1.05rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .4px;
  margin-bottom: 18px;
}
.page-lectura .service-actions {
  display: grid;
  gap: 10px;
}
.page-lectura .btn-paypal,
.page-lectura .btn-booking {
  width: 100%;
  text-align: center;
}
.page-lectura .btn-booking {
  border-color: rgba(42, 27, 61, 0.22);
  color: var(--purple-deep);
}
.page-lectura .btn-booking:hover {
  border-color: var(--purple-deep);
  color: var(--white-warm);
  background: var(--purple-deep);
}
.page-lectura .service-flow-note {
  max-width: 920px;
  margin: 24px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(30, 15, 60, 0.12);
}
.page-lectura .service-flow-note p {
  margin: 0;
  color: var(--text-soft);
  font-size: .93rem;
}
.page-lectura .service-flow-note a {
  color: var(--purple-mid);
  text-decoration: none;
}
.page-lectura .service-flow-note a:hover {
  text-decoration: underline;
}

/* Formación — hero con foto5 (tonalidad púrpura vía CSS) */
.formacion-hero {
  position: relative;
  padding-top: var(--nav-hero-padding-top) !important;
  padding-bottom: var(--nav-hero-padding-bottom) !important;
  overflow: hidden;
  background: var(--dark) url('../assets/foto5.jpg') center / cover no-repeat;
}
.formacion-hero .container {
  position: relative;
  z-index: 1;
}
.formacion-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(42, 27, 61, 0.55);
  pointer-events: none;
  z-index: 0;
}
/* Contacto — hero con foto6 */
.contacto-hero {
  position: relative;
  padding-top: var(--nav-hero-padding-top) !important;
  padding-bottom: var(--nav-hero-padding-bottom) !important;
  overflow: hidden;
  background: var(--dark) url('../assets/foto6.png') center / cover no-repeat;
}
.contacto-hero .container {
  position: relative;
  z-index: 1;
}
.contacto-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(42, 27, 61, 0.6);
  pointer-events: none;
  z-index: 0;
}
/* FOOTER */
.footer { background: #1E1230; color: rgba(245,240,235,.5); padding: 50px 0 30px; text-align: center; font-size: 14px; border-top: 1px solid rgba(198,169,97,.25); }
.footer-logo { width: 180px; height: auto; margin: 0 auto 20px; display: block; }
.footer a { color: var(--gold); }
.footer a:hover { opacity: .7; }
.footer-links { display: flex; justify-content: center; gap: 30px; margin-bottom: 30px; list-style: none; }
.footer-links a { color: rgba(245,240,235,.5); font-size: 13px; letter-spacing: .5px; text-transform: uppercase; }
.footer-links a:hover { color: var(--gold); }
.footer-social {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.footer-social a {
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
}
.footer-social a:hover { opacity: .7; }
.footer-social svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}
.footer-copy { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; margin-top: 10px; }

/* SHOWCASE IMAGES */
.showcase-img {
  margin-top: 50px; max-width: 380px; margin-left: auto; margin-right: auto;
  opacity: .35; transition: opacity .4s;
}
.showcase-img:hover { opacity: .6; }
.showcase-img img { width: 100%; display: block; border-radius: 12px; }
.showcase-img.showcase-blend {
  opacity: 1; max-width: 420px; margin-top: 28px;
}

/* CONTACT FORM */
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.contact-field { display: flex; flex-direction: column; gap: 6px; }
.contact-field label {
  font-size: .85rem; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; color: var(--dark);
}
.contact-field input,
.contact-field textarea {
  width: 100%; padding: 14px 16px; font-size: 1rem; font-family: 'Inter', sans-serif;
  border: 1px solid var(--lavender); border-radius: 10px;
  background: var(--white); color: var(--dark);
  transition: border-color .3s, box-shadow .3s;
  box-sizing: border-box;
}
.contact-field input:focus,
.contact-field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,150,12,.15);
}
.contact-field textarea { resize: vertical; min-height: 140px; }

/* CONTACT MODAL */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.6); align-items: center; justify-content: center;
  padding: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: var(--white); border-radius: 16px; padding: 40px 32px;
  width: 90%; max-width: 500px; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-close {
  position: absolute; top: 14px; right: 18px; background: none; border: none;
  font-size: 1.6rem; color: var(--text-soft); cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--dark); }
.modal-box h3 {
  font-family: 'Playfair Display', serif; font-size: 1.4rem;
  color: var(--dark); margin-bottom: 24px; text-align: center;
}

/* COOKIE BANNER */
.cookie-banner {
  display: none; position: fixed; bottom: 24px; right: 24px; z-index: 3000;
  background: var(--white); border-radius: 14px; padding: 24px 28px;
  max-width: 380px; width: calc(100% - 48px);
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
  border: 1px solid var(--lavender);
}
.cookie-banner.visible { display: block; }
.cookie-banner p {
  font-size: .9rem; color: var(--text-soft); line-height: 1.6; margin-bottom: 16px;
}
.cookie-banner p a { color: var(--purple-mid); text-decoration: underline; }
.cookie-banner-buttons { display: flex; gap: 10px; }
.cookie-banner-buttons button {
  flex: 1; padding: 10px 16px; border-radius: 8px; font-size: .85rem;
  font-weight: 600; cursor: pointer; border: none; transition: all .3s;
}
.cookie-accept {
  background: var(--gold); color: var(--white);
}
.cookie-accept:hover { opacity: .85; }
.cookie-reject {
  background: transparent; color: var(--text-soft);
  border: 1px solid var(--lavender) !important;
}
.cookie-reject:hover { border-color: var(--gold) !important; color: var(--dark); }

/* GOLD LINE */
.gold-line { width: 60px; height: 2px; background: var(--gold); margin: 0 auto 30px; }

@media (max-width: 1024px) {
  .nav-inner {
    height: 72px;
    padding: 0 16px;
    justify-content: space-between;
  }
  .nav-logo {
    display: inline-flex;
    align-items: center;
    max-width: calc(100% - 56px);
  }
  .nav-logo img {
    height: clamp(46px, 8vw, 58px);
    width: auto;
    margin-top: 0;
  }
  .nav-links {
    display: none;
    margin-left: 0;
  }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    right: 0;
    left: auto;
    width: min(82vw, 340px);
    background: var(--dark);
    padding: 20px 16px calc(32px + env(safe-area-inset-bottom, 0px));
    gap: 16px;
    border-bottom: 1px solid rgba(198,169,97,.15);
    border-left: 1px solid rgba(198,169,97,.15);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links a { font-size: 13px; }
  .nav-cta { width: fit-content; }
}

@media (max-width: 900px) {
  .cards-grid.cards-3 { grid-template-columns: repeat(2, minmax(0, 320px)); }
}

@media (max-width: 1024px) {
  /* Si hay número impar de tarjetas en rejilla de 2 columnas, centra la última */
  .cards-grid > *:last-child:nth-child(odd),
  .cards-grid.cards-3 > *:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 320px);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-inner {
    height: 72px;
    padding: 0 16px;
    justify-content: space-between;
  }
  .nav-logo {
    display: inline-flex;
    align-items: center;
    max-width: calc(100% - 56px);
  }
  .nav-logo img {
    height: clamp(46px, 10vw, 58px);
    width: auto;
    margin-top: 0;
  }
  .nav-links { display: none; margin-left: 0; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed;
    top: 72px; right: 0; left: auto; background: var(--dark);
    width: min(82vw, 340px);
    padding: 20px 16px calc(32px + env(safe-area-inset-bottom, 0px)); gap: 16px;
    border-bottom: 1px solid rgba(198,169,97,.15);
    border-left: 1px solid rgba(198,169,97,.15);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links a { font-size: 13px; }
  .nav-cta { width: fit-content; }
  section { padding: 70px 0; }
  .section-metodo-home { padding-top: 60px; padding-bottom: 24px; }
  .hero {
    min-height: 90vh;
    align-items: flex-start;
    padding-top: 210px;
    background: var(--dark) url('../assets/logo2_Transparente.png') center 94px / 178% auto no-repeat;
  }
  .hero::before {
    background: rgba(42, 27, 61, 0.38);
  }
  .lead-form { flex-direction: column; }
  .cards-grid, .cards-grid.cards-3 { grid-template-columns: minmax(0, 1fr); }
  /* En móvil, no reducir la última tarjeta impar: todas al mismo ancho */
  .cards-grid > *:last-child:nth-child(odd),
  .cards-grid.cards-3 > *:last-child:nth-child(odd) {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
  }
  /* Tarjetas iguales en móvil para Formación/Lectura/Tu Patrón */
  .cards-grid.cards-equal-mobile > .card {
    min-height: 410px;
    display: flex;
    flex-direction: column;
  }
  .cards-grid.cards-equal-mobile > .card .card-link,
  .cards-grid.cards-equal-mobile > .card .service-actions,
  .cards-grid.cards-equal-mobile > .card > .btn {
    margin-top: auto;
  }
  .metodo-radial { margin-top: 0; margin-bottom: 0; }
  .metodo-grid { grid-template-columns: repeat(2, 1fr); }
  .section-dark.metodo-hero.nav-hero,
  .section-dark.lectura-hero.nav-hero,
  .section-dark.proceso-hero.nav-hero,
  .section-dark.formacion-hero.nav-hero,
  .section-dark.contacto-hero.nav-hero {
    padding-top: var(--nav-hero-padding-top-mobile) !important;
    padding-bottom: var(--nav-hero-padding-bottom-mobile) !important;
  }
  .sobre-header-layout {
    gap: 36px;
  }
  .sobre-avatar {
    max-width: 190px;
    max-height: 185px;
    width: auto;
    height: auto;
  }
  .footer {
    padding: 36px 0 24px;
  }
  .footer-links,
  .footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 10px;
    column-gap: 16px;
    padding: 0 12px;
    margin-left: 0;
    margin-right: 0;
  }
  .footer-links li,
  .footer-legal li {
    flex: 0 1 auto;
  }
  .footer-links a,
  .footer-legal a {
    white-space: nowrap;
  }
}

@media (orientation: landscape) and (max-width: 1024px) {
  /* Evita desbordes en secciones de pasos/tarjetas por contenido largo */
  .metodo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card {
    padding: 28px 20px;
  }
  .metodo-item {
    padding: 22px 14px;
  }
  .card h3 {
    font-size: 1.22rem;
  }
  .card p,
  .metodo-item p {
    font-size: .9rem;
    line-height: 1.55;
  }
  .metodo-item h3,
  .metodo-item p,
  .card h3,
  .card p {
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .modal-overlay {
    align-items: flex-start;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .modal-box {
    width: min(96vw, 640px);
    max-height: calc(100dvh - 20px);
    padding: 22px 16px;
    border-radius: 12px;
  }
  .modal-box h3 {
    font-size: 1.2rem;
    margin-bottom: 14px;
  }
  .contact-form {
    gap: 14px;
  }
  .contact-field input,
  .contact-field textarea {
    padding: 12px 14px;
    font-size: .95rem;
  }
  .contact-field textarea {
    min-height: 100px;
  }
}

@media (max-width: 932px) and (orientation: landscape) and (max-height: 500px) {
  .nav-inner {
    height: 60px;
  }
  .nav-logo img {
    height: 42px;
  }
  .nav-links.open {
    top: 60px;
    max-height: calc(100dvh - 60px);
    padding-top: 14px;
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    gap: 12px;
  }
  .section-dark.metodo-hero.nav-hero,
  .section-dark.lectura-hero.nav-hero,
  .section-dark.proceso-hero.nav-hero,
  .section-dark.formacion-hero.nav-hero,
  .section-dark.contacto-hero.nav-hero {
    padding-top: 110px !important;
    padding-bottom: 70px !important;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .nav-links { display: none; margin-left: 0; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: fixed;
    right: 0;
    left: auto;
    width: min(82vw, 340px);
    border-left: 1px solid rgba(198,169,97,.15);
  }
}
/* Órbita compacta en móvil: conserva los números alrededor del avatar */
@media (max-width: 640px) {
  .metodo-orbit {
    aspect-ratio: 1;
    width: min(100%, 430px);
    margin-top: 8px;
    --orbit-r: clamp(112px, 32vw, 148px);
  }
  .metodo-orbit-hub {
    position: absolute;
    transform: translate(-50%, -50%);
    width: min(42%, 178px);
    margin: 0;
  }
  .metodo-orbit-ring {
    position: absolute;
    display: block;
    inset: 0;
  }
  .metodo-orbit-item.metodo-item {
    position: absolute;
    width: min(118px, 31vw);
    max-width: 128px;
    padding: 2px 0;
  }
  .metodo-orbit-item .number { font-size: clamp(1.35rem, 6vw, 1.75rem); margin-bottom: 4px; }
  .metodo-orbit-item h3 { font-size: clamp(.72rem, 3.2vw, .92rem); margin-bottom: 3px; }
  .metodo-orbit-item p { font-size: clamp(.62rem, 2.7vw, .78rem); line-height: 1.25; }
}
@media (max-width: 480px) {
  .metodo-grid { grid-template-columns: 1fr; }
  .modal-box {
    width: 100%;
    max-width: none;
    padding: 26px 18px;
    border-radius: 12px;
  }
  .sobre-header-layout {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }
  .sobre-header-text {
    text-align: center;
  }
  .sobre-header-text .section-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .sobre-avatar {
    max-width: 170px;
    max-height: 175px;
    width: auto;
    height: auto;
  }
  .footer-links {
    column-gap: 12px;
  }
  .footer-links a {
    font-size: 12px;
    letter-spacing: .3px;
  }
  .footer-legal {
    column-gap: 12px;
    margin-top: 0;
  }
}
