/* ============================================
   PRIMERO Y PUNTO — CSS Global
   Se carga en TODAS las páginas
   ============================================ */

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

:root {
  --dark: #121214;
  --dark-soft: #1C1C1F;
  --light: #F4F4F5;
  --white: #FFFFFF;
  --text-dark: #18181B;
  --text-light: #D4D4D8;
  --text-muted: #A1A1AA;
  --accent: #E4E4E7;
  --accent-glow: rgba(228, 228, 231, 0.15);
  --accent-soft: rgba(228, 228, 231, 0.05);
  --red: #D92D2D;
  --red-glow: rgba(217, 45, 45, 0.25);
  --cta-color: #FAFAFA;
  --cta-hover: #E4E4E7;
  --cta-glow: rgba(250, 250, 250, 0.2);
  --border-subtle: #27272A;
  --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --transition: 0.3s ease;

  /* Glass system — Apple visionOS style */
  --glass-bg: rgba(28, 28, 31, 0.65);
  --glass-bg-strong: rgba(9, 9, 11, 0.80);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-border-hover: rgba(255, 255, 255, 0.14);
  --glass-blur: blur(20px) saturate(180%);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.05);
  --glass-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.08);
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text-light);
  overflow-x: hidden;
  line-height: 1.6;
}

body.scroll-locked {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
}

a {
  color: inherit;
}

/* --- Secciones --- */
.acto--fullscreen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

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

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

/* ============================================
   HEADER (páginas internas)
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #09090B;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--transition);
}

.site-header.scrolled {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom-color: var(--glass-border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 4px 24px rgba(0,0,0,0.3);
}

.header__logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.header__logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.header__link:hover,
.header__link--active {
  color: var(--white);
}

/* Dropdown servicios */
.header__dropdown {
  position: relative;
}

.header__dropdown-toggle {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.header__dropdown-toggle:hover {
  color: var(--white);
}

.header__dropdown-toggle svg {
  width: 12px;
  height: 12px;
  transition: transform var(--transition);
}

.header__dropdown:hover .header__dropdown-toggle svg {
  transform: rotate(180deg);
}

.header__dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: -1rem;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.06);
}

.header__dropdown:hover .header__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header__dropdown-item {
  display: block;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.header__dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.header__cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  background: var(--white);
  padding: 0.55rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all var(--transition);
}

.header__cta:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
}

/* Mobile hamburger */
.header__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--white);
}

.header__hamburger svg {
  width: 24px;
  height: 24px;
}

/* Header spacer para páginas internas */
.header-spacer {
  height: 64px;
}

@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    border-left: 1px solid var(--border-subtle);
  }

  .header__nav.open {
    right: 0;
  }

  .header__hamburger {
    display: block;
    z-index: 1001;
  }

  .header__dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.25rem 0 0 1rem;
    min-width: auto;
  }

  .header__dropdown-toggle svg {
    display: none;
  }

  .header__cta {
    margin-top: 1rem;
  }
}

/* ============================================
   CTA BUTTON (global)
   ============================================ */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--cta-color);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  padding: 1.1rem 2.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  margin-top: 2.5rem;
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(15px);
}

.cta-button:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--cta-glow);
}

/* Variante visible (para páginas internas sin animación GSAP) */
.cta-button--visible {
  opacity: 1;
  transform: none;
}

.cta-button--visible:hover {
  transform: translateY(-2px);
}

/* Variante dark (fondo oscuro sobre página clara) */
.cta-button--dark {
  background: var(--dark);
  color: var(--white);
}

.cta-button--dark:hover {
  background: var(--dark-soft);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* ============================================
   PAGE LAYOUT (páginas internas)
   ============================================ */
.page-hero {
  padding: 6rem 2rem 4rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.page-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.page-hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.page-section {
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================
   FORMULARIOS (global)
   ============================================ */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}

.form__input,
.form__select,
.form__textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  background: var(--dark-soft);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--white);
  transition: border-color var(--transition);
  outline: none;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: rgba(250, 250, 250, 0.3);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: #52525B;
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23A1A1AA' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form__submit {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 1rem 2rem;
  background: var(--white);
  color: var(--dark);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 0.5rem;
}

.form__submit:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
}

/* ============================================
   CAL.COM EMBED
   ============================================ */
.cal-section {
  padding: 4rem 2rem;
  text-align: center;
}

.cal-section__title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.cal-section__text {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.cal-placeholder {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
  border: 2px dashed var(--border-subtle);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 1rem;
}

.cal-embed iframe {
  width: 100%;
  min-height: 500px;
  border: none;
  border-radius: 12px;
}

/* ============================================
   CONTACTO INFO
   ============================================ */
.contact-info {
  padding: 3rem 2rem;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.contact-info__item {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.contact-info__item a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color var(--transition);
}

.contact-info__item a:hover {
  border-color: var(--white);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #050505;
  padding: 4rem 2rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 3rem;
}

.footer__brand strong {
  font-size: 1.1rem;
  color: var(--white);
}

.footer__brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.footer__links {
  display: flex;
  gap: 4rem;
}

.footer__col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.footer__col a {
  display: block;
  font-size: 0.9rem;
  color: #999;
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.footer__col a:hover {
  color: var(--white);
}

.footer__bottom {
  max-width: 1100px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: #555;
}

/* ============================================
   RESPONSIVE GLOBAL
   ============================================ */
@media (max-width: 768px) {
  .footer__container {
    flex-direction: column;
  }

  .footer__links {
    flex-direction: column;
    gap: 2rem;
  }

  .cta-button {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
    padding: 1rem 2rem;
  }

  .page-hero {
    padding: 4rem 1.5rem 3rem;
  }
}

/* ============================================
   LANDING PAGES (servicios)
   ============================================ */
.landing__section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

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

.landing__intro-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.landing__text-blocks p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  color: var(--text-muted);
}

.landing__text-blocks--dark p {
  color: #52525B;
}

/* Problem items */
.landing__problems {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.landing__problem-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.landing__problem-icon {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  padding-top: 0.2rem;
  min-width: 90px;
}

.landing__problem-item p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.landing__problem-total {
  font-size: 1.15rem;
  color: var(--white);
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Steps */
.landing__steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.landing__step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.landing__step-number {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.landing__step-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.landing__step-content p {
  font-size: 1rem;
  color: #52525B;
  line-height: 1.6;
  margin-bottom: 0.4rem;
}

.landing__step-detail {
  font-size: 0.8rem;
  color: #A1A1AA;
  font-family: var(--font-mono);
}

/* Results */
.landing__results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2.5rem 0;
}

.landing__result {
  text-align: center;
}

.landing__result-number {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.landing__result p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.landing__result-note {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 1rem;
  font-style: italic;
}

/* For who */
.landing__for-who {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.landing__for-who-item {
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid #E4E4E7;
}

.landing__for-who-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

.landing__for-who-item p {
  font-size: 0.95rem;
  color: #52525B;
  line-height: 1.6;
}

/* CTA text */
.landing__cta-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Other services */
.landing__other-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.landing__other-service {
  display: block;
  padding: 2rem;
  border: 1px solid #E4E4E7;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-dark);
  transition: all var(--transition);
}

.landing__other-service:hover {
  border-color: var(--dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.landing__other-service h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.landing__other-service p {
  font-size: 0.95rem;
  color: #52525B;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.landing__other-service span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Service blocks (SEO) */
.landing__service-blocks {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.landing__service-block h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.landing__feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.landing__feature-list li {
  font-size: 1rem;
  color: #52525B;
  line-height: 1.5;
  padding-left: 1.5rem;
  position: relative;
}

.landing__feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  background: var(--dark);
  border-radius: 50%;
}

.landing__service-block-note {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 600;
  margin-top: 1rem;
  font-style: italic;
}

/* Comparison (SEO) */
.landing__comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.landing__comparison-col {
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.landing__comparison-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-subtle);
}

.landing__comparison-title--bad {
  color: #71717A;
}

.landing__comparison-title--good {
  color: var(--white);
}

.landing__comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.landing__comparison-list li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Formats (Formación) */
.landing__formats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.landing__format {
  padding: 2rem;
  border: 1px solid #E4E4E7;
  border-radius: 12px;
}

.landing__format--featured {
  border-color: var(--dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.landing__format-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.landing__format-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.landing__format-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #52525B;
  background: #F4F4F5;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.landing__format-result {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #E4E4E7;
}

/* ============================================
   RESPONSIVE LANDINGS
   ============================================ */
@media (max-width: 768px) {
  .landing__results {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .landing__comparison {
    grid-template-columns: 1fr;
  }

  .landing__problem-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .landing__step {
    flex-direction: column;
    gap: 0.8rem;
  }
}

/* ============================================
   GLASS CARDS (utility — usable en cualquier página)
   ============================================ */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: var(--glass-shadow);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-3px);
}

/* ============================================
   SCROLL REVEAL (global — todas las páginas)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Variante fade (sin movimiento vertical) */
.reveal--fade {
  opacity: 0;
  transform: none;
  transition: opacity 0.7s ease;
}

.reveal--fade.reveal--visible {
  opacity: 1;
}

/* Delays escalonados para grupos */
.reveal--d1 { transition-delay: 0.08s; }
.reveal--d2 { transition-delay: 0.16s; }
.reveal--d3 { transition-delay: 0.24s; }
.reveal--d4 { transition-delay: 0.32s; }
.reveal--d5 { transition-delay: 0.40s; }

/* ============================================
   UTILITY
   ============================================ */
/* .hidden se define en home.css (display:none) para la home.
   En páginas internas que NO cargan home.css, se usa esta versión suave. */
.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Override: si home.css está cargado, su !important gana. */
