/* 
  Paleta de colores John Agelvis 
  - Azul (#0c1328)
  - Dorado (#d19e51)
  - Negro (#0d0d0d)
  - Blanco (#ffffff)
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=DM+Serif+Display&display=swap');

:root {
  /* Colors */
  --c-black: #0d0d0d;
  --c-white: #ffffff;
  --c-blue: #0c1328;
  --c-gold: #d19e51;
  --c-gold-hover: #b8863c;

  /* Backgrounds & Text */
  --bg-primary: var(--c-white);
  --bg-secondary: #f8f9fa;
  --bg-dark: var(--c-black);
  --bg-accent: var(--c-blue);

  --text-primary: var(--c-black);
  --text-secondary: #4a4a4a;
  --text-light: var(--c-white);
  --text-gold: var(--c-gold);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Plus Jakarta Sans', sans-serif;

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;

  /* Transitions */
  --transition: all 0.3s ease;
}

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* evita scroll horizontal por blobs decorativos */
}

/* Typography Base */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.title-dark {
  color: var(--text-light);
}

.text-gold {
  color: var(--text-gold);
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  max-width: 70ch;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 4px;
  border-radius: 4px;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
  position: relative;
}

.section-dark p {
  color: #a0a0a0;
}

.section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(209, 158, 81, 0.35), transparent);
}

.section-blue {
  background-color: var(--bg-accent);
  color: var(--text-light);
  position: relative;
}

.section-blue::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 100px; /* píldora — estilo Tony Robbins */
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--c-gold);
  color: var(--c-white);
}

.btn-primary:hover {
  background-color: var(--c-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(209, 158, 81, 0.3);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--c-gold);
  color: var(--c-gold);
}

.btn-outline:hover {
  background-color: var(--c-gold);
  color: var(--c-white);
}

@media (max-width: 768px) {
  .btn-full-mobile {
    display: flex;
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
}

/* Service Cards */
.service-card {
  background-color: var(--bg-secondary);
  padding: 3rem 2rem;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-icon {
  transition: transform 0.35s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.12) rotate(6deg);
}

/* Video Placeholder Hover */
.video-placeholder {
  transition: var(--transition);
  cursor: pointer;
}

.video-placeholder:hover i {
  transform: scale(1.1);
  color: #fff !important;
  transition: var(--transition);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--c-black);
  z-index: 1000;
  border-bottom: none;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--c-white);
  letter-spacing: 0px;
}

.logo span {
  color: var(--c-gold);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
}

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

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

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

/* ── Dropdown Nav ── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}

.nav-dropdown-arrow {
  font-size: 0.65rem;
  transition: transform 0.25s ease;
  margin-top: 1px;
}

.nav-dropdown:hover .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background-color: #151515;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0.4rem 0;
  min-width: 230px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 1100;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 0.6rem 1.3rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s, background-color 0.2s;
  white-space: nowrap;
}

.nav-dropdown-item:hover {
  color: var(--c-gold);
  background-color: rgba(255,255,255,0.04);
}

.nav-dropdown-item.active {
  color: var(--c-gold);
}

/* Trigger activo cuando un hijo está activo */
.nav-dropdown.has-active .nav-dropdown-trigger {
  color: var(--c-white);
}

.nav-dropdown.has-active .nav-dropdown-trigger::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--c-gold);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--c-white);
  position: relative;
  transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--c-white);
  transition: var(--transition);
  left: 0;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

/* Mobile Nav & Utilities */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--c-black);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: var(--transition);
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-link {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
  }

  .menu-toggle {
    display: block;
  }

  /* Mobile Dropdowns */
  .nav-dropdown {
    width: 100%;
    text-align: center;
  }

  .nav-dropdown-trigger {
    justify-content: center;
    font-size: 1.25rem;
    color: rgba(255,255,255,0.85);
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 200px;
  }

  .nav-dropdown.open .nav-dropdown-arrow {
    transform: rotate(180deg);
  }

  .nav-dropdown-item {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    padding: 0.45rem 1rem;
    text-align: center;
  }

  .nav-dropdown.has-active .nav-dropdown-trigger::after {
    display: none;
  }

  .menu-toggle.active .hamburger {
    background-color: transparent;
  }

  .menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
  }

  .menu-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
  }
}

/* Footer */
.footer {
  background-color: var(--c-black);
  color: var(--c-white);
  padding: 4rem 0 2rem;
}

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

.footer-brand h3 {
  color: var(--c-white);
  margin-bottom: 1rem;
}

.footer-brand p {
  color: #a0a0a0;
  font-size: 0.95rem;
}

.footer-links h4 {
  color: var(--c-gold);
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
  font-size: 1.1rem;
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #a0a0a0;
}

.footer-links a:hover {
  color: var(--c-white);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--c-white);
}

.social-link:hover {
  background-color: var(--c-gold);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #a0a0a0;
  font-size: 0.9rem;
}

/* =============================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================= */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
}

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

/* =============================================
   OVERLAY MENÚ MÓVIL
   ============================================= */

.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* =============================================
   SERVICE CARDS – TABLET FIX (< 900px)
   ============================================= */

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr !important;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* =============================================
   MEJORAS MÓVIL – RESPONSIVE EXHAUSTIVO
   ============================================= */

@media (max-width: 768px) {

  /* -- HERO MÓVIL: foto ocupa la pantalla, texto anclado abajo (estilo Tony Robbins) -- */
  .hero {
    padding-top: var(--header-height) !important;
    min-height: 85vh !important;
    background-image: url('../assets/images/foto-hero.jpg') !important; /* foto retrato para móvil */
    background-position: center 12% !important;
    align-items: flex-end !important;
    padding-bottom: 40px !important;
    border-radius: 0 0 28px 28px !important; /* bordes redondeados abajo — estilo Tony */
    overflow: hidden !important;
  }

  /* Overlay móvil: John aparece desde arriba, texto en zona negra abajo */
  .hero-overlay-side {
    background: linear-gradient(to bottom,
      rgba(0,0,0,0.15) 0%,   /* muy transparente arriba — John visible */
      rgba(0,0,0,0.05) 35%,  /* zona central de John: casi sin overlay */
      rgba(0,0,0,0.80) 62%,  /* transición al negro */
      rgba(0,0,0,1)   100%) !important;
  }

  /* El overlay lateral no es necesario en móvil */
  .hero-overlay-bottom {
    display: none !important;
  }

  /* Subtítulo oculto en móvil */
  .hero-subtitle {
    display: none !important;
  }

  /* Texto izquierda en móvil — más natural para leer */
  .hero-content {
    text-align: left !important;
    max-width: 100% !important;
  }

  .hero-btns {
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.6rem !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
  }

  /* -- BOTÓN CONTACTAR en menú móvil: ancho generoso y fácil de tocar -- */
  .nav-links .btn {
    width: 80%;
    max-width: 280px;
    min-height: 52px;
    justify-content: center;
  }

  /* -- JERARQUÍA VISUAL HERO EN MÓVIL – TÍTULO DOMINANTE -- */

  /* Badge "Escalando negocios" — mínimo, centrado en móvil */
  .hero-content > span {
    margin-bottom: 0.85rem !important;
    font-size: 0.6rem !important;
    letter-spacing: 1.5px !important;
    opacity: 0.75;
    display: inline-block !important;
  }

  /* Título: más compacto en móvil */
  .hero-content h1 {
    font-size: clamp(1.7rem, 7.5vw, 2.2rem) !important;
    line-height: 1.1 !important;
    margin-bottom: 1.25rem !important;
    font-weight: 800 !important;
    text-align: left !important;
  }

  /* Subtítulo: claramente secundario — pequeño, tenue, separado */
  .hero-content p {
    font-size: 0.82rem !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
    font-weight: 300 !important;
    opacity: 0.7;
  }

  /* Botones del hero: compactos tipo "Save My Seat" — NO full-width */
  .hero-btns .btn-primary,
  .hero-btns .btn-outline {
    font-size: 0.78rem !important;
    padding: 0.55rem 1.2rem !important;
    width: auto !important;
    min-height: unset !important;
    max-width: fit-content !important;
  }

  .hero-btns .btn-outline {
    opacity: 0.85;
  }

  /* -- TIPOGRAFÍA: izquierda en móvil para lectura fluida -- */
  h1, h2 {
    text-align: left !important;
  }

  /* Ocultar <br> manuales en títulos: que el texto fluya solo */
  h1 br, h2 br {
    display: none;
  }

  /* -- HERO -- */
  .hero-content {
    text-align: left !important;
    max-width: 100% !important;
  }

  .hero-btns {
    flex-direction: row !important;
    align-items: center !important;
  }

  .hero-btns .btn {
    width: auto !important;
    justify-content: center;
    text-align: center;
  }

  /* -- ENCABEZADOS DE SERVICIO Y TESTIMONIOS -- */
  .service-header {
    text-align: left !important;
    padding: 90px 0 30px !important;
  }

  .testimonials-header {
    text-align: left !important;
    padding: 90px 0 30px !important;
  }

  /* -- SECCIONES OSCURAS Y AZULES -- */
  .section-blue,
  .section-dark {
    text-align: left !important;
  }

  .section-blue p,
  .section-dark p {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
  }

  /* -- INTRO DE SECCIÓN (centrado en desktop) -- */
  .section-intro {
    text-align: left !important;
  }

  .section-intro p {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
  }

  /* -- GRID "SOBRE MÍ": una columna en móvil -- */
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* -- TESTIMONIOS FLEX ROW → COLUMNA -- */
  .testimonials-row {
    flex-direction: column !important;
    align-items: center !important;
  }

  .testimonial-item {
    width: 100% !important;
    min-width: unset !important;
    max-width: 380px !important;
    flex: none !important;
  }

  /* -- CTA BOX (testimonios y otras páginas) -- */
  .cta-box {
    padding: 2.5rem 1.5rem !important;
    text-align: left !important;
    margin-top: 3rem !important;
  }

  .cta-box p {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
  }

  .cta-box .btn {
    width: 100%;
  }

  /* -- PRICING CARD -- */
  .pricing-card {
    padding: 2rem 1.25rem;
    margin: 2rem 0;
    max-width: 100%;
  }

  /* -- VIDEO PRINCIPAL (Vimeo) -- */
  .video-main-wrap {
    max-width: 100% !important;
  }

  /* -- FOOTER -- */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* -- GRID DE TESTIMONIOS 3 COLUMNAS → 1 EN MÓVIL -- */
  .testimonials-grid-3 {
    grid-template-columns: 1fr !important;
    max-width: 380px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* -- H1: tamaño legible en móvil (subpáginas) -- */
  h1 {
    font-size: clamp(1.9rem, 7vw, 2.5rem) !important;
    line-height: 1.15 !important;
  }

  /* -- LISTAS CON BORDE IZQUIERDO: menos padding -- */
  .service-list {
    padding-left: 1rem !important;
  }

  /* -- ESPACIADO VERTICAL: reducir excesos -- */
  .section-blue h2,
  .section-dark h2 {
    margin-bottom: 1.5rem !important;
  }

  .section-blue .testimonials-row,
  .section-blue .testimonials-grid-3 {
    margin-bottom: 2rem !important;
  }

  /* -- FOTO JOHN: ocultar borde dorado offset -- */
  .photo-border-offset {
    display: none !important;
  }

  /* -- WHATSAPP FLOAT: ajuste móvil -- */
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }

  /* -- GENERAL -- */
  p {
    max-width: 100%;
  }

  /* Back to top: ajuste posición en móvil */
  .back-to-top {
    bottom: 80px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}

/* =============================================
   DESKTOP UX IMPROVEMENTS
   ============================================= */

/* Hero desktop: bordes redondeados abajo — estilo Tony Robbins */
.hero {
  border-radius: 0 0 36px 36px;
  overflow: hidden;
}

/* 9. "Saber más" links en cards de servicio — hover con feedback claro */
.service-card a.text-gold {
  transition: gap 0.2s ease, color 0.2s ease;
}

.service-card a.text-gold:hover {
  color: var(--c-gold-hover);
  gap: 14px;
}

/* 7. Videos testimonios — menos altos en desktop (aspect ratio 4:3) */
@media (min-width: 769px) {
  .video-wrapper {
    padding-bottom: 133% !important; /* 3:4 — más manejable que 9:16 en desktop */
  }
}

/* Header siempre negro — las reglas de transparencia ya no son necesarias */

/* 2. Botón volver arriba */
.back-to-top {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 44px;
  height: 44px;
  background-color: var(--c-blue);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-white);
  font-size: 0.95rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.3s ease;
  z-index: 997;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--c-gold);
  transform: translateY(-2px);
}

/* 3. Social cards – CSS hover puro */
.social-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.social-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1) !important;
  color: inherit !important;
}

/* 8. Pricing card CTA – pulso sutil */
@keyframes pulse-cta {
  0%, 100% { box-shadow: 0 8px 25px rgba(209, 158, 81, 0.3); }
  50%       { box-shadow: 0 8px 35px rgba(209, 158, 81, 0.55); }
}

.btn-pulse {
  animation: pulse-cta 2.5s ease-in-out infinite;
}

/* 10. Footer links hover mejorado */
.footer-links a:hover {
  color: var(--c-gold) !important;
  padding-left: 8px;
}