/* shared.css — estilos comunes para páginas de servicios */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #0d0d0d;
  --white: #fafaf8;
  --gray-100: #f4f3f0;
  --gray-200: #e8e6e1;
  --gray-400: #9e9b94;
  --gray-600: #5a5852;
  --accent: #6B2FEE;
  --accent-light: #ede8fd;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --error: #ff6b6b;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100vw;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 64px;
  background: rgba(250, 250, 248, 0.5);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--black);
  text-decoration: none;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--gray-600);
  text-decoration: none;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active,
.nav-links span.active {
  color: var(--black);
}

.nav-links span.active {
  font-size: 0.875rem;
  cursor: default;
}

.nav-cta {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  background: var(--black);
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  text-decoration: none;
  transition: background var(--transition);
}

.nav-cta:hover {
  background: var(--accent);
}

/* Hamburger mobile */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.mobile-menu.open {
  clip-path: inset(0 0 0% 0);
  pointer-events: auto;
}

.mobile-menu a {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--black);
  text-decoration: none;
  transition: color var(--transition);
}

.mobile-menu a:hover {
  color: var(--accent);
}

.mobile-menu span.active {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--accent);
  cursor: default;
}

.mobile-menu .mobile-cta {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  background: var(--black);
  padding: 0.8rem 2.5rem;
  border-radius: 2rem;
  margin-top: 1rem;
  width: 80%;
  text-align: center;
}

.mobile-menu .mobile-cta:hover {
  background: var(--accent);
  color: var(--white);
}

/* FOOTER */
footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.5);
  padding: 2.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--white);
}

.footer-logo span {
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color var(--transition);
}

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

.footer-copy {
  font-size: 0.75rem;
}

/* FADE IN */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* RESPONSIVE */
@media (max-width: 900px) {
  nav {
    padding: 0 1.5rem;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  footer {
    padding: 2rem 1.5rem;
  }

  .footer-links {
    display: none;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-buttons .btn-primary,
  .cta-buttons .btn-ghost {
    width: 100%;
    text-align: center;
  }
}


/* validaciones del FORM */
.error,
.error:focus {
  border-color: var(--error) !important;
}

.error-message {
  color: var(--error);
  font-size: 14px;
  display: none;
}

.error-message.show {
  display: block;
  width: 100%;
}

.character-counter {
  font-size: 14px;
  color: var(--tp-grey-2);
  text-align: right;
  width: 100%;
}

.character-counter.warning {
  color: var(----error);
}

.form-submit {
  transition: background-color 0.3s ease;
}

.form-submit:disabled {
  background-color: #ccc;
  cursor: default;
}

.ajax-response {
  margin-top: 15px;
  padding: 10px;
  border-radius: 5px;
  display: none;
}

.ajax-response.success {
  background-color: #d4edda;
  color: var(--tp-success);
  border: 1px solid #c3e6cb;
  display: block;
}

.ajax-response.error {
  background-color: #f8d7da;
  color: var(--error);
  border: 1px solid #f5c6cb;
  display: block;
  text-align: center;
}


/* ── SERVICE PAGES: ESTILOS COMUNES ── */

/* Utilidades de logo */
.logo-nav {
  height: 40px;
}

.logo-footer {
  height: 36px;
  opacity: 0.85;
}

/* Sección base */
section {
  padding: 6rem 3rem;
}

/* Tipografía */
.section-tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 1.5rem;
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

.section-body {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.85;
  font-weight: 300;
}

/* Nav — logo swap compartido */
.logoNav {
  height: 50px;
  margin-top: 5px;
  transition: opacity 0.3s ease;
}

.logo-nav-scrolled {
  display: none;
}

nav.scrolled .logo-nav {
  display: none;
}

nav.scrolled .logo-nav-scrolled {
  display: block;
}

nav.menu-open .logo-nav {
  display: none;
}

nav.menu-open .logo-nav-scrolled {
  display: block;
}

.nav-links a {
  font-size: 1rem;
  color: var(--black);
  text-decoration: none;
  font-weight: 400;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* Hero de página de servicio */
.page-hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 3rem 5rem;
  padding-top: 64px;
  background: var(--black);
  position: relative;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slides::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.2) 40%);
  z-index: 1;
}

.page-hero::before {
  content: '';
  position: absolute;
  right: 3rem;
  bottom: 3rem;
  font-family: var(--serif);
  font-size: 20vw;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.hero-messages {
  margin-bottom: 2.5rem;
  min-height: 180px;
  position: relative;
  overflow: visible;
}

.hero-message {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.hero-message.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.hero-message.leaving {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4.5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9), 0px 0px 6px rgba(0, 0, 0, 0.7);
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.form-field select.is-placeholder {
  color: var(--gray-400);
}

.page-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4.5vw, 3.5rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9), 0px 0px 6px rgba(0, 0, 0, 0.7);
}

.page-title em {
  font-style: italic;
  color: var(--accent);
}

.page-sub {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 560px;
  font-weight: 300;
  position: relative;
  z-index: 2;
}

.slide-indicators {
  position: absolute;
  bottom: 2rem;
  left: 3rem;
  z-index: 3;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.slide-dot {
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
}

.slide-dot.active {
  background: var(--accent);
  width: 40px;
}

/* Intro */
.intro {
  background: var(--white);
}

.intro-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.intro-text p {
  margin-bottom: 1rem;
}

/* Botones */
.btn-primary {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  background: var(--black);
  padding: 0.8rem 2rem;
  border-radius: 2rem;
  text-decoration: none;
  transition: background var(--transition);
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-ghost {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
  padding: 0.8rem 2rem;
  border-radius: 2rem;
  text-decoration: none;
  transition: all var(--transition);
}

.btn-ghost:hover {
  color: var(--black);
  border-color: var(--black);
}

/* CTA section */
.cta-section {
  padding: 6rem 3rem;
  text-align: center;
}

.cta-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.cta-title em {
  font-style: italic;
  color: var(--accent);
}

.cta-sub {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Otros servicios */
.other-services {
  background: var(--gray-100);
  padding: 4rem 3rem;
}

.other-services h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--black);
  margin-bottom: 2rem;
}

.other-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.other-card {
  padding: 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all var(--transition);
}

.other-card-num {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.other-card-name {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--black);
}

@media (max-width: 900px) {
  section {
    padding: 4rem 1.5rem;
  }

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

  .slide-indicators {
    left: 1.5rem;
    bottom: 1.5rem;
  }

  .intro-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .other-services {
    padding: 3rem 1.5rem;
  }
}

.step-num {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.step-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.step-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  font-weight: 300;
}

ul.step-desc {
  padding-left: 12px;
}

.linear-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.linear-step {
  padding: 2rem 1.5rem 2rem 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.linear-step:last-child {
  border-right: none;
  padding-right: 0;
  padding-left: 1.5rem;
}

.linear-step:not(:first-child) {
  padding-left: 1.5rem;
}

.wide-layers {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2.5rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  overflow: hidden;
}

.wide-layer {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding: 1.75rem 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  align-items: start;
  transition: background var(--transition);
}

.wide-layer:last-child {
  border-bottom: none;
}

.wide-layer:hover {
  background: var(--gray-200);
}

.wide-layer-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.2rem;
}

.single-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-200);
}

.badge-type {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}

.card-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--black);
  margin-bottom: 0.75rem;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.7;
  font-weight: 300;
}