/* ============================================
   CORE · Escuela Atlantis — Design tokens
   ============================================ */
:root{
  --bg-dark: #100d0f;
  --bg-dark-2: #1a1418;
  --bg-cream: #f6f1e9;
  --text-cream: #f2ede4;
  --text-dark: #1c1917;
  --text-muted-dark: #8c847c;
  --text-muted-light: #c9c1b6;

  --orange: #f2762e;
  --magenta: #c62368;
  --gradient: linear-gradient(120deg, var(--orange), var(--magenta));

  --font: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

  --wrap: 1600px;
  --radius: 18px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font);
  font-weight: 300;
  color: var(--text-dark);
  background: var(--bg-cream);
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3{ margin:0; font-weight:300; line-height:1.15; letter-spacing:-0.01em; }
p{ margin:0; }

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow{
	color: var(--text-muted-dark);
   display: inline-block;
  font-size: 20px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 300;
  margin-bottom: 20px;
}
.eyebrow-word{
  position: relative;
  display: inline-block;
}
.eyebrow-word::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 2px;
  background: var(--gradient);
}
.eyebrow::after{
  content:"";
  display:block;
  width: 100%; height: 2px;
  background: var(--gradient);
  margin-top: 10px;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.btn-primary,
.btn-outline{
  position: relative;
  background: transparent;
  border: 2px solid transparent;
  color: var(--text-cream);
}
.btn-primary::before,
.btn-outline::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.btn-outline:hover{ background: rgba(255,255,255,.08); }


/* ============================================
   HEADER
   ============================================ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-dark);
}
.header-inner{
  display:flex;
  align-items:center;
  gap: 32px;
  padding-top: 18px;
  padding-bottom: 18px;
  position: relative;
}
.logo{ display:flex; flex-direction:column; line-height:1; margin-right: auto; }
.logo-word{
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-sub{
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted-light);
  margin-top: 2px;
}
.main-nav{
  display:flex;
  gap: 30px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.main-nav a{
  color: var(--text-cream);
  font-size: 14px;
  font-weight: 300;
  opacity: .85;
}
.main-nav a:hover{ opacity: 1; }

.nav-toggle{ display:none; background:none; border:none; cursor:pointer; padding:8px; }
.nav-toggle span{
  display:block; width:22px; height:2px; background:var(--text-cream); margin:4px 0;
}

/* ============================================
   HERO
   ============================================ */
.hero{
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  color: var(--text-cream);
  background-color: var(--bg-dark);
  background-image:
    linear-gradient(to right, rgba(16,13,15,.97) 0%, rgba(16,13,15,.88) 30%, rgba(16,13,15,.35) 56%, transparent 80%),
    radial-gradient(ellipse at 78% 50%, transparent 55%, rgba(16,13,15,.85) 100%),
    url('assets/hero-figura-columna.webp');
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: left top, center, 55% 20%;
  background-size: cover, cover, cover;
}

.hero-inner{ position: relative; z-index: 2; width: 100%;padding-left:32px;  }
.hero-copy{ max-width: 600px; }
.hero-copy .eyebrow{ color: var(--text-muted-light); }
.hero-copy .eyebrow::after{
  display: none;
}
.hero-copy h1{
  font-size: clamp(48px, 6.5vw, 76px);
  font-weight: 100;
  letter-spacing: -0.01em;
  margin: 4px 0 24px;
}
.hero-sub{
  font-size: 17px;
  font-weight: 300;
  color: var(--text-muted-light);
  max-width: 34ch;
  margin-bottom: 36px;
}

.hero-tags-top{
  position: absolute;
  top: 32px;
  right: 40px;
  z-index: 2;
  display:flex;
  gap: 12px;
}
.hero-tags-top .tags-bar{
  width: 2px;
  flex: none;
  background: var(--gradient);
  border-radius: 2px;
}
.hero-tags-top ul{
  list-style:none;
  margin:0; padding:0;
  text-align:left;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted-light);
  text-shadow: 0 1px 10px rgba(0,0,0,.7);
}
.hero-tags-top ul li{ margin-bottom: 6px; }
.hero-tags-top ul li:last-child{ margin-bottom: 0; }

.hero-caption{
  position: absolute;
  bottom: 32px;
  right: 40px;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  color: var(--text-muted-light);
  text-shadow: 0 1px 10px rgba(0,0,0,.7);
  max-width: 200px;
}
.caption-bar{
  display:block;
  width: 34px; height: 2px;
  background: var(--gradient);
  margin-bottom: 10px;
}

/* ============================================
   CABECERA COMÚN DE LAS PÁGINAS INTERIORES
   (Método, Libros, Podcast y Blog…)
   Cada página solo cambia --hero-img (y si hace falta --hero-pos)
   ============================================ */
.page-hero{
  position: relative;
  min-height: 680px;
  padding: 72px 0;
  display: flex;
  align-items: center;
  color: var(--text-cream);
  background-color: var(--bg-dark);
  background-image:
    linear-gradient(to right, rgba(16,13,15,.97) 0%, rgba(16,13,15,.88) 30%, rgba(16,13,15,.35) 56%, transparent 80%),
    radial-gradient(ellipse at 78% 50%, transparent 55%, rgba(16,13,15,.85) 100%),
    var(--hero-img, none);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: left top, center, var(--hero-pos, right center);
  background-size: cover, cover, var(--hero-size, cover);
}
.page-hero-inner{ position: relative; z-index: 2; width: 100%; padding-left: 32px; }
.page-hero-copy{ max-width: 680px; }
.page-hero .eyebrow{ color: var(--text-muted-light); }
.page-hero .eyebrow-word::after{ width: min(100%, 9em); }
.page-hero .eyebrow::after{ display: none; }
.page-hero h1{
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 100;
  letter-spacing: -0.01em;
  margin: 4px 0 24px;
}
.page-hero-sub{
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-muted-light);
  max-width: 46ch;
  margin-bottom: 36px;
}
.page-hero-sub:last-child{ margin-bottom: 0; }
.page-hero-btns{ display: flex; flex-wrap: wrap; gap: 14px; }
/* Texto en la esquina inferior izquierda (mismo sitio que el caption de la home, pero a la izquierda) */
.page-hero-foot{
  position: absolute;
  left: 0; right: 0; bottom: 32px;
  z-index: 2;
}
.page-hero.has-foot{ padding-bottom: 104px; }
.page-hero-foot .eyebrow{ margin: 0; }
.page-hero-foot .eyebrow::after{ display: block; width: 60px; }

/* Enlace activo del menú (igual en todas las páginas) */
.main-nav a.is-current,
.main-nav a.is-active{
  opacity: 1;
  box-shadow: 0 2px 0 0 var(--orange);
  padding-bottom: 4px;
}

/* ============================================
   CONTACTO FLOTANTE (lo crea script.js en todas las páginas)
   Botón redondo abajo a la derecha que abre WhatsApp / correo
   ============================================ */
.contacto{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.contacto-btn{
  border: none;
  border-radius: 999px;
  padding: 14px 20px 14px 16px;
  background: var(--gradient);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 28px rgba(16,13,15,.35);
  transition: transform .2s ease;
}
.contacto-btn:hover{ transform: translateY(-2px); }
.contacto-btn svg{ width: 24px; height: 24px; display: block; }
.contacto-btn .ico-cerrar,
.contacto.is-open .contacto-btn .ico-abrir{ display: none; }
.contacto.is-open .contacto-btn .ico-cerrar{ display: block; }

.contacto-panel{
  width: 300px;
  max-width: calc(100vw - 32px);
  background: var(--bg-dark);
  color: var(--text-cream);
  border-radius: var(--radius);
  padding: 22px 18px 14px;
  box-shadow: 0 18px 40px rgba(16,13,15,.4);
  border: 1px solid rgba(255,255,255,.1);
  border-top: 3px solid var(--orange);
}
.contacto-panel[hidden]{ display: none; }
.contacto-titulo{
  font-size: 15px;
  font-weight: 400;
  margin: 0 4px 14px;
}
.contacto-opcion{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 12px;
  transition: background .2s ease;
}
.contacto-opcion:hover{ background: rgba(255,255,255,.06); }
.contacto-opcion svg{ width: 24px; height: 24px; flex: none; color: var(--orange); }
.contacto-opcion strong{ display: block; font-size: 15px; font-weight: 500; }
.contacto-opcion small{ display: block; font-size: 12px; color: var(--text-muted-light); margin-top: 2px; }

/* ============================================
   NUESTRA ESENCIA
   ============================================ */
.essence{ padding: 96px 0; }
.essence-inner{
  display:grid;
  grid-template-columns: 1fr 1.8fr 1fr;
  gap: 48px;
  align-items:start;
}
.essence-approach{ text-align: right; }
.essence-text .eyebrow{ font-size: 20px; }
.essence-text h2{
  font-size: clamp(28px, 3vw, 36px);
  margin-bottom: 20px;
}
.essence-text p:not(.eyebrow){
  color: var(--text-muted-dark);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* diagram */
.essence-diagram{
  position: relative;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  min-height: 340px;
}
.diagram-frame{
  position: relative;
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
}
.diagram-cta{
  margin-top: 30px;
}
.diagram-btn{
  color: var(--text-dark);
}
.diagram-img{
  width: 100%;
  max-width: 800px;
  height: auto;
}
.diagram-circle{
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid #e4dccf;
  display:grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.diagram-circle::before,
.diagram-circle::after{
  content:"";
  position:absolute;
  background: #e4dccf;
}
.diagram-circle::before{ left:0; right:0; top:50%; height:1px; }
.diagram-circle::after{ top:0; bottom:0; left:50%; width:1px; }

.quadrant{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 6px;
  padding: 18px;
}
.quadrant svg{ width: 26px; height: 26px; }
.quadrant span{
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align:center;
  text-transform: uppercase;
  color:#fff;
}
.quadrant-fisico{
  background: radial-gradient(circle at 30% 30%, #f2903e, #e8632b);
  border-radius: 100% 0 0 0;
  color:#fff;
}
.quadrant-quimico{
  background: radial-gradient(circle at 70% 30%, #e8632b, #c62368);
  border-radius: 0 100% 0 0;
}
.quadrant-energetico{
  background: radial-gradient(circle at 30% 70%, #b32a67, #7d1f5c);
  border-radius: 0 0 0 100%;
}
.quadrant-emocional{
  background: radial-gradient(circle at 70% 70%, #7d1f5c, #5a1450);
  border-radius: 0 0 100% 0;
}
.center-brain{
  position:absolute;
  top:50%; left:50%;
  transform: translate(-50%,-50%);
  width: 66px; height: 66px;
  background: var(--bg-cream);
  border: 1px solid #e4dccf;
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
}
.center-brain svg{ width: 30px; height: 30px; color: var(--text-dark); }

.diagram-label{
  position:absolute;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--text-muted-dark);
}
.label-top-left{ top: 10%; left: 0; text-align:left; }
.label-top-right{ top: 10%; right: 0; text-align:right; }
.label-bottom-left{ bottom: 10%; left: 0; text-align:left; }
.label-bottom-right{ bottom: 10%; right: 0; text-align:right; }

/* approach list */
.approach-item{
  display:flex;
	flex-direction: row-reverse;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e4dccf;
}
.approach-item:last-child{ border-bottom:none; }
.approach-icon{
  flex: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--orange);
  display:flex; align-items:center; justify-content:center;
}
.approach-item > div{ text-align: right; }
.approach-icon svg{ width: 15px; height: 15px; color: var(--orange); }
.approach-item h3{ font-size: 15px; margin-bottom: 4x; }
.approach-item p{ font-size: 10.5px; color: var(--text-muted-dark); line-height: 1.5; }

/* ============================================
   AREAS / DESTACADAS — shared card styles
   ============================================ */
.areas{ padding-bottom: 96px; }
.destacadas-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.areas-tagline{
  font-size: 16px;
  font-weight: 300;
  color: var(---muted-dark));
  margin-top: 8px;
  max-width: 640px;
}
.areas-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}
.areas-grid a.area-formaciones{ order: 1; }
.areas-grid a.area-libros{ order: 2; }
.areas-grid a.area-podcast{ order: 3; grid-column: 1 / -1; aspect-ratio: 21 / 2; }
.area-card, .destacada-card{
  position:relative;
  display:block;
  border-radius: 0;
  overflow:hidden;
  background: var(--bg-dark);
}
.areas-grid .area-card{ aspect-ratio: 21 / 10; }
.area-card img, .destacada-card img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit: cover;
  opacity: .8;
  transition: transform .4s ease, opacity .4s ease;
}
.area-card:hover img, .destacada-card:hover img{
  transform: scale(1.04);
  opacity: .95;
}
.area-card-body, .destacada-body{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding: 26px;
  color: var(--text-cream);
  background: linear-gradient(0deg, rgba(16,13,15,.85) 0%, rgba(16,13,15,.15) 55%, transparent 100%);
}
.area-card-body h3, .destacada-body h3{ font-size: 44px; margin-bottom: 6px; font-weight: 100; letter-spacing: -0.01em; }
.area-card-body p, .destacada-body p{
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted-light);
  margin-bottom: 18px;
}
.areas-grid a.area-podcast .card-arrow{
  position: absolute;
  right: 26px;
  bottom: 50px;
  width:60px;
  height: 60px;
  font-size: 30px;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box, var(--gradient) border-box;
}
.card-arrow{
  width: 38px; height: 38px;
  flex-shrink: 0;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box, var(--gradient) border-box;
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  font-size: 16px;
}

/* destacadas */
.destacadas{ padding-bottom: 110px; }
.destacadas-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  flex-wrap:wrap;
  gap: 12px;
}
.destacadas-head .eyebrow{ margin-bottom: 0; }
.link-arrow{ font-size: 13px; font-weight: 500; }
.destacada-card{ aspect-ratio: 4 / 5.6; }

/* Pilates, Neurociencia y Control postural — texto propio sobre el fondo claro de la foto */
.destacada-pilates .destacada-body,
.destacada-neurociencia .destacada-body,
.destacada-postural .destacada-body{
  justify-content: flex-start;
  align-items: flex-start;
  background: none;
  padding: 34px 30px;
}
.destacada-pilates .destacada-body .eyebrow,
.destacada-neurociencia .destacada-body .eyebrow,
.destacada-postural .destacada-body .eyebrow{
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}
.destacada-pilates .destacada-body .eyebrow::after,
.destacada-neurociencia .destacada-body .eyebrow::after,
.destacada-postural .destacada-body .eyebrow::after{ display: none; }
.destacada-pilates .destacada-body h3,
.destacada-neurociencia .destacada-body h3,
.destacada-postural .destacada-body h3{
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(26px, 3.3vw, 44px);
  font-weight: 600;
  margin-bottom: 0;
}
.destacada-pilates .pilates-sub,
.destacada-neurociencia .pilates-sub,
.destacada-postural .pilates-sub{
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.destacada-pilates .pilates-bar,
.destacada-neurociencia .pilates-bar,
.destacada-postural .pilates-bar{
  display: block;
  width: 140px; height: 2px;
  background: var(--gradient);
  margin-bottom: 10px;
}
.destacada-pilates .pilates-desc,
.destacada-neurociencia .pilates-desc,
.destacada-postural .pilates-desc{
  font-size: 13.5px;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-muted-dark);
  margin-bottom: 10px;
}
.destacada-pilates .btn-outline,
.destacada-neurociencia .btn-outline,
.destacada-postural .btn-outline{
  color: var(--text-dark);
  font-size: 13px;
  padding: 10px 20px;
}
.destacada-pilates img,
.destacada-neurociencia img,
.destacada-postural img{ opacity: 1; }
.destacada-pilates:hover img,
.destacada-neurociencia:hover img,
.destacada-postural:hover img{ opacity: 1; }
.destacada-pilates .card-arrow,
.destacada-neurociencia .card-arrow,
.destacada-postural .card-arrow{ display: none; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer{
  background: var(--bg-dark);
  color: var(--text-muted-light);
  padding: 36px 0;
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap: 20px;
}
.logo-word-footer{ opacity: .5; -webkit-text-fill-color: var(--text-muted-light); background:none; }
.footer-nav{ display:flex; gap: 26px; font-size: 13px; }
.footer-social{ display:flex; gap: 16px; font-size: 12px; }

/* ============================================
   RESPONSIVE
   ============================================ */
/* Escalado automático en pantallas de ordenador más pequeñas */
@media (max-width: 1920px){
  body{ zoom: .9; }
}
@media (max-width: 1600px){
  body{ zoom: .8; }
}
@media (max-width: 1440px){
  body{ zoom: .75; }
}
@media (max-width: 980px){
  body{ zoom: 1; }
}

@media (max-width: 980px){
	.header-inner{ gap: 12px; }
.logo-sub{
  font-size: 7.5px;
  letter-spacing: 0.04em;
  white-space: normal;
  max-width: 140px;
}
  .main-nav{
    display:none;
    position: absolute;
    top: 100%; left:0; right:0;
	transform: none;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 12px 32px 24px;
    gap: 16px;
  }
  .main-nav.is-open{ display:flex; }
  .nav-toggle{ display:block; }
  .hero{ flex-direction: column; height: auto; min-height: 520px; align-items: flex-end; padding-bottom: 32px; }
  .hero-tags-top, .hero-caption{ display:none; }
  .hero-inner{ padding: 0 32px; }
  .hero-copy{ max-width: none; }
  .page-hero{
    min-height: 0; padding: 300px 0 40px;
    background-image:
      linear-gradient(to bottom, transparent 0, transparent 170px, var(--bg-dark) 380px),
      none,
      var(--hero-img, none);
    background-position: left top, center, var(--hero-pos, 70% top);
    background-size: cover, cover, auto 380px;
  }
  .page-hero-inner{ padding: 0 32px; }
  .page-hero-copy{ max-width: none; }
  .page-hero{ flex-direction: column; justify-content: flex-end; align-items: stretch; }
  .page-hero-foot{ position: static; margin-top: 48px; }
  .page-hero.has-foot{ padding-bottom: 24px; }
  .eyebrow::after,
  .eyebrow-word::after{ display: none; }
  .page-hero-foot .eyebrow::after{ display: block; }
  .contacto{ right: 16px; bottom: 16px; }
  .contacto-btn{ padding: 14px; }
  .contacto-txt{ display: none; }
  .essence-inner{ grid-template-columns: 1fr; }
  .essence-diagram{ order: -1; }
.diagram-cta .btn{ white-space: normal; font-size: 14px; }
  .areas-grid, .destacadas-grid{ grid-template-columns: 1fr; }
  .footer-nav{ flex-wrap: wrap; gap: 12px 20px; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; scroll-behavior:auto !important; }
}
