/* ===== Objetivos v3 (Hero only + service pages) ===== */

/* En esta versión, objetivos.html muestra SOLO video + frase + botones */
body.goals-hero-only{
  margin:0;
  background:#000;
  overflow:hidden;
}

/* HERO */
.goals-hero{
  position:relative;
  min-height:100vh;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}

.goals-hero-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1.0);
  filter: brightness(1.12) contrast(1.06) saturate(1.08);
}

.goals-hero-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 600px at 30% 30%, rgba(0,0,0,.12), rgba(0,0,0,.55)),
    linear-gradient(to bottom, rgba(0,0,0,.32), rgba(0,0,0,.55));
}

.goals-hero-content{
  position:relative;
  z-index:2;
  width:min(1100px, 92%);
  padding:64px 0;
  text-align:left;
}

.goals-hero-eyebrow{
  letter-spacing:.22em;
  font-weight:700;
  font-size:.78rem;
  color:rgba(255,255,255,.85);
  margin:0 0 14px 0;
}

.goals-hero-quote{
  margin:0 0 26px 0;
  font-size:clamp(1.15rem, 2.2vw, 2.35rem);
  line-height:1.08;
  color:#fff;
  text-shadow:0 10px 30px rgba(0,0,0,.55);
}

.goals-hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:14px;
}

.btn.btn-glow{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 18px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(12,12,12,.42);
  color:#fff;
  font-weight:800;
  text-transform:none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
  animation: nbPulse 1.05s ease-in-out infinite;
}

.btn.btn-glow:hover{
  transform: translateY(-1px);
}

@keyframes nbPulse{
  0%,100%{ box-shadow: 0 0 0 rgba(255,122,0,0), 0 14px 40px rgba(0,0,0,.45); border-color: rgba(255,122,0,.25); }
  50%{ box-shadow: 0 0 22px rgba(255,122,0,.28), 0 18px 55px rgba(0,0,0,.55); border-color: rgba(255,122,0,.55); }
}

/* Sound toggle */
.sound-toggle{
  margin-top:18px;
  background:rgba(0,0,0,.45);
  color:rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.18);
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
  font-weight:700;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* MOBILE: botones full width */
@media (max-width: 720px){
  .goals-hero-content{ padding:70px 0; text-align:left; }
  .goals-hero-actions{ flex-direction:column; }
  .btn.btn-glow{ width:100%; }
}

/* ===== Service pages (una tarjeta por pantalla) ===== */
body.service-page{
  margin:0;
  background: radial-gradient(900px 600px at 30% 20%, rgba(255,122,0,.10), rgba(0,0,0,1));
  color:#fff;
  min-height:100vh;
}

.service-wrap{
  width:min(1100px, 92%);
  margin:0 auto;
  padding:72px 0;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:100vh;
}

.service-card{
  width:min(980px, 100%);
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  background: rgba(18,18,18,.82);
  border:1px solid rgba(255,255,255,.10);
  border-radius:22px;
  overflow:hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
}

.service-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter: contrast(1.05) saturate(1.05);
}

.service-body{
  padding:28px 26px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.service-body h1{
  margin:0;
  font-size: clamp(1.4rem, 2.2vw, 2.05rem);
  line-height:1.1;
}

.service-body .muted{
  margin:0;
  color: rgba(255,255,255,.78) !important;
  font-size: 1.05rem;
  line-height:1.45;
}

/* CTA dentro de tarjeta */
.btn-cta{
  margin-top:8px;
  width: fit-content;
}

.service-links{
  margin-top:auto;
  display:flex;
  justify-content:flex-start;
}

.service-back{
  color: rgba(255,255,255,.72);
  text-decoration:none;
  font-weight:700;
}

.service-back:hover{ color:#fff; }

@media (max-width: 900px){
  .service-card{ grid-template-columns: 1fr; }
  .service-media{ max-height: 320px; }
  .service-wrap{ padding:22px 0; }
  .btn-cta{ width:100%; justify-content:center; }
}


/* Bullets en páginas de servicio */
.service-bullets{
  margin: 8px 0 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,.82);
  line-height: 1.5;
}
.service-bullets li{ margin: 6px 0; }
@media (max-width: 860px){
  .goals-hero-quote{ font-size: clamp(1.05rem, 5.2vw, 1.85rem); line-height:1.12; }
  .goals-hero-content{ padding: 56px 0; }
}


/* Back button en HERO (objetivos) */
.goals-hero-back{
  position:absolute;
  top:16px; left:16px;
  z-index:5;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.28);
  color: rgba(255,255,255,.92);
  font-weight:900;
  letter-spacing:.01em;
  text-decoration:none;
  backdrop-filter: blur(8px);
}
.goals-hero-back:hover{
  border-color: rgba(255,122,0,.65);
  background: rgba(255,122,0,.10);
  color:#fff;
}
@media (max-width: 900px){
  .goals-hero-back{ top:12px; left:12px; padding:9px 12px; }
}


/* ===== Música (Objetivos): botón premium ===== */
.sound-toggle{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-top:22px;
  padding:12px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.20);
  background: rgba(0,0,0,.42);
  color: rgba(255,255,255,.94);
  font-weight:900;
  letter-spacing:.02em;
  cursor:pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
  transition: transform .18s ease, border-color .18s ease, filter .18s ease;
}
.sound-toggle:hover{ transform: translateY(-1px); border-color: rgba(255,122,0,.55); }
.sound-toggle:active{ transform: translateY(0); }

/* ON: brillo + pulso suave */
.sound-toggle.is-on{
  border-color: rgba(255,122,0,.78);
  box-shadow: 0 0 22px rgba(255,122,0,.28), 0 18px 55px rgba(0,0,0,.55);
  animation: nbSoundPulse 1.15s ease-in-out infinite;
}
@keyframes nbSoundPulse{
  0%,100%{ filter: brightness(1); }
  50%{ filter: brightness(1.12); }
}




/* ✅ Fix mobile: el video/overlay NO deben bloquear toques (botones/back) */
.goals-hero-video,
.goals-hero-overlay{
  pointer-events: none;
}


/* === FIX MOBILE: que el video/overlay NO tapen los botones === */
.goals-hero-video,
.goals-hero-overlay{
  pointer-events: none !important;
}

.goals-hero-back,
.goals-hero-actions a,
#soundToggle{
  position: relative;
  z-index: 10;
  pointer-events: auto !important;
}


/* ============================
   HERO QUOTE 2 TIEMPOS + SHINE
   ============================ */

.goals-quote-2step{
  max-width: 720px;
  font-weight: 900;
  letter-spacing:-0.02em;
  line-height:1.05;
}

.goals-quote-2step .q1,
.goals-quote-2step .q2{
  display:block;
  opacity:0;
  transform: translateY(12px);
  filter: blur(6px);
}

@keyframes quoteIn{
  to{ opacity:1; transform:translateY(0); filter:blur(0); }
}
.goals-quote-2step .q1{ animation: quoteIn .6s ease-out .15s forwards; }
.goals-quote-2step .q2{ animation: quoteIn .6s ease-out 1s forwards; }

.goals-quote-2step em{
  font-style:normal;
  color:#ff7a00;
}

.goals-quote-2step .q2 strong{
  background: linear-gradient(120deg,#ffffff 0%,#ffffff 35%,#ff7a00 50%,#ffffff 65%,#ffffff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  color: transparent;
  animation: shineText 3.2s linear infinite;
}

@keyframes shineText{
  from{ background-position:200% 0; }
  to{ background-position:-200% 0; }
}

/* =====================================================
   OBJETIVOS: LAYOUT FIX (PC + MOBILE) — NO amontonado
   Pegarlo al final (override)
   ===================================================== */

/* 1) Volver: fijo arriba-izquierda SIEMPRE (PC y mobile) */
.goals-hero-back{
  position: fixed !important;
  top: 16px !important;
  left: 16px !important;
  z-index: 99999 !important;
}

/* 2) Contenedor: alineación a la izquierda y ancho controlado */
.goals-hero-content{
  width: min(980px, 92vw) !important;
  margin: 0 auto !important;
  padding-top: 92px !important;     /* deja aire bajo el Volver */
  padding-bottom: 64px !important;
  text-align: left !important;
}

/* 3) Frase: que respire y no quede pegada a los botones */
.goals-quote-2step{
  display: block !important;
  margin: 14px 0 28px 0 !important;
  max-width: 760px !important;
}

/* La “placa” no tan grande en desktop */
.goals-quote-2step{
  padding: 14px 16px 16px !important;
  border-radius: 18px !important;
}

/* 4) Botones: separación clara */
.goals-hero-actions{
  margin-top: 18px !important;
  gap: 14px !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
}

/* Botón música: debajo, alineado */
#soundToggle{
  margin-top: 16px !important;
}

/* =====================================================
   MOBILE
   ===================================================== */
@media (max-width: 768px){
  .goals-hero-content{
    width: min(560px, 92vw) !important;
    padding-top: 86px !important;
    padding-bottom: 54px !important;
  }

  /* Frase más compacta y arriba (no centro amontonado) */
  .goals-quote-2step{
    font-size: 1.35rem !important;
    line-height: 1.08 !important;
    margin: 12px 0 22px 0 !important;
    max-width: 92vw !important;
    padding: 12px 14px 14px !important;
  }

  /* Eyebrow separado */
  .goals-hero-eyebrow{
    margin-top: 6px !important;
    margin-bottom: 10px !important;
  }

  /* Botones en columna, con buen aire */
  .goals-hero-actions{
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    margin-top: 14px !important;
  }
  .goals-hero-actions a{
    width: 100% !important;
  }

  /* Música abajo pero sin invadir */
  #soundToggle{
    align-self: flex-start !important;
    margin-top: 14px !important;
  }
}
/* ============================
   OBJETIVOS: subir texto / bajar botones
   ============================ */

/* Subimos la frase */
.goals-hero-content{
  padding-top: 120px !important;   /* antes ~86 */
}

/* La frase más cerca del eyebrow */
.goals-quote-2step{
  margin-top: 6px !important;
  margin-bottom: 34px !important;  /* separa más de botones */
}

/* Bajamos los botones */
.goals-hero-actions{
  margin-top: 40px !important;
}

/* Mobile ajuste fino */
@media (max-width: 768px){
  .goals-hero-content{
    padding-top: 110px !important;
  }
  .goals-hero-actions{
    margin-top: 44px !important;
  }
}
/* ============================
   OBJETIVOS: texto más arriba
   ============================ */

/* Desktop */
.goals-hero-content{
  padding-top: 150px !important;
}

.goals-quote-2step{
  margin-top: 4px !important;
  margin-bottom: 44px !important;
}

.goals-hero-actions{
  margin-top: 55px !important;
}

/* Mobile */
@media (max-width: 768px){
  .goals-hero-content{
    padding-top: 135px !important;
  }
  .goals-hero-actions{
    margin-top: 52px !important;
  }
}
/* ==================================
   OBJETIVOS MOBILE: frase arriba fuerte
   ================================== */
@media (max-width: 768px){

  /* sube fuerte todo el bloque superior */
  .goals-hero-content{
    padding-top: 170px !important;
    padding-bottom: 60px !important;
  }

  /* la frase queda bien arriba */
  .goals-quote-2step{
    margin-top: 0 !important;
    margin-bottom: 56px !important;   /* separa de los botones */
  }

  /* botones claramente abajo */
  .goals-hero-actions{
    margin-top: 70px !important;
    gap: 14px !important;
  }

}
/* ==================================
   OBJETIVOS MOBILE: frase bajo "Volver"
   ================================== */
@media (max-width: 768px){

  /* el contenedor empieza justo debajo del botón volver */
  .goals-hero-content{
    padding-top: 95px !important;
  }

  /* la frase queda pegada al eyebrow, no centrada */
  .goals-quote-2step{
    margin-top: 6px !important;
    margin-bottom: 40px !important;
  }

  /* botones mucho más separados */
  .goals-hero-actions{
    margin-top: 36px !important;
    gap: 18px !important;   /* separación clara entre botones */
  }

  .goals-hero-actions a{
    padding: 16px 18px !important;   /* más aire visual */
  }

  /* botón música con aire abajo */
  #soundToggle{
    margin-top: 22px !important;
  }

}
/* ==================================
   OBJETIVOS MOBILE: botones más separados
   ================================== */
@media (max-width: 768px){

  .goals-hero-actions{
    margin-top: 48px !important;   /* baja un poco todo el bloque */
    gap: 26px !important;          /* separación grande entre botones */
  }

  .goals-hero-actions a{
    padding: 18px 20px !important; /* botones más altos (mejor UX táctil) */
  }

}

/* =========================
   OBJETIVOS: Back link debajo del header (unificado)
   ========================= */
.page-objetivos .nb-page-head{
  width: min(1100px, 92%);
  margin: 82px auto 0; /* deja espacio para la topbar fija */
  padding: 14px 18px;
  border-radius: 22px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  z-index: 9;
}
.page-objetivos .nb-page-head .backlink{
  font-weight: 900;
  letter-spacing: .01em;
}
@media (max-width: 720px){
  .page-objetivos .nb-page-head{ margin-top: 76px; padding: 12px 14px; }
}
