/* nebari - Zen-Tech Design System */

:root {
  --deep-slate: #2C3E50;
  --mist-grey: #F1F3F5;
  --soft-mint: #A8DADC;
  --ethereal-blue: #457B9D;
  --white: #FFFFFF;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --spacing-xxl: 8rem;

  --transition-calm: opacity 0.6s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  /* Compensa nav sticky en anclas internas */
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  color: var(--deep-slate);
  background-color: var(--mist-grey);
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--soft-mint);
  color: var(--deep-slate);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

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

/* Slide-up animations for cards */
.servicio-card,
.metodo-step {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.servicio-card.visible,
.metodo-step.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation delay */
.servicio-card:nth-child(1) { transition-delay: 0.05s; }
.servicio-card:nth-child(2) { transition-delay: 0.10s; }
.servicio-card:nth-child(3) { transition-delay: 0.15s; }
.servicio-card:nth-child(4) { transition-delay: 0.20s; }
.servicio-card:nth-child(5) { transition-delay: 0.25s; }
.servicio-card:nth-child(6) { transition-delay: 0.30s; }

.metodo-step:nth-child(1) { transition-delay: 0.1s; }
.metodo-step:nth-child(2) { transition-delay: 0.2s; }
.metodo-step:nth-child(3) { transition-delay: 0.3s; }

.section-title {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  color: var(--deep-slate);
}

/* Hero Section */
.hero {
  min-height: 100vh; /* fallback navegadores antiguos */
  min-height: 100svh; /* iOS Safari sin clipping de URL bar */
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--white) 0%, var(--mist-grey) 100%);
  padding: var(--spacing-md);
  animation: hero-enter 1.2s ease forwards;
}

@supports (min-height: 100dvh) {
  .hero { min-height: 100dvh; }
}

@keyframes hero-enter {
  from { opacity: 0.01; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero.visible {
  transform: translateY(0);
}

/* Hero Header: Logo + Language Toggle */
.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md) var(--spacing-md) 0 var(--spacing-md);
}

.hero-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.logo-icon {
  width: 60px;
  height: 60px;
  display: block;
  filter: drop-shadow(0 0 12px rgba(168, 218, 220, 0.4));
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--deep-slate);
}

/* Language Toggle: En flujo flex */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  /* color explícito ≥4.5:1 sobre mist-grey y white */
  color: #596877;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.3s ease;
}

.lang-btn:hover {
  color: var(--deep-slate);
}

.lang-btn.active {
  color: var(--deep-slate);
  font-weight: 500;
}

.lang-separator {
  font-size: 0.875rem;
  color: var(--deep-slate);
  opacity: 0.3;
}

/* Hero Content: Contenido principal */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-md);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--deep-slate);
  position: relative;
  padding-bottom: var(--spacing-md);
}

.hero-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, var(--soft-mint) 0%, var(--ethereal-blue) 100%);
  transform: scaleX(0);
  transform-origin: left;
  animation: accent-line 1.5s ease-out 0.5s forwards;
}

@keyframes accent-line {
  to {
    transform: scaleX(1);
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--ethereal-blue);
  letter-spacing: 0.03em;
}

.hero-links {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  align-items: center;
  margin-top: var(--spacing-lg);
}

.hero-link {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--deep-slate);
  opacity: 0.85;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: opacity 0.3s ease;
}

.hero-link:hover,
.hero-link:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-link:focus-visible {
  outline: 2px solid var(--ethereal-blue);
  outline-offset: 3px;
}

.hero-link-sep {
  color: var(--deep-slate);
  opacity: 0.3;
  font-size: 0.9rem;
  user-select: none;
}

@media (max-width: 600px) {
  .hero-links {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }

  .hero-link-sep {
    display: none;
  }

  .hero-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(44, 62, 80, 0.1);
  padding: var(--spacing-sm) 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .nav {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
  }
}

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

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

/* Hamburger — solo móvil */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--deep-slate);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.nav.open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav.open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav.open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--ethereal-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.nav-list a {
  text-decoration: none;
  color: var(--deep-slate);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  padding: var(--spacing-xs) var(--spacing-sm);
  transition: var(--transition-calm);
}

.nav-list a:hover {
  color: var(--ethereal-blue);
}

/* Nav dropdown (Servicios) */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  font: inherit;
  color: var(--deep-slate);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  padding: var(--spacing-xs) var(--spacing-sm);
  transition: var(--transition-calm);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
}

.nav-dropdown-toggle:hover {
  color: var(--ethereal-blue);
}

.nav-dropdown-toggle:focus {
  outline: none;
}

.nav-dropdown-toggle:focus-visible {
  outline: 2px solid var(--ethereal-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.nav-dropdown-caret {
  font-size: 0.7em;
  transition: transform 0.3s ease;
  line-height: 1;
}

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

.nav-dropdown-menu {
  list-style: none;
  position: absolute;
  top: calc(100% + var(--spacing-xs));
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 240px;
  background-color: var(--white);
  border: 1px solid rgba(44, 62, 80, 0.08);
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(44, 62, 80, 0.08);
  padding: var(--spacing-xs) 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 100;
}

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

.nav-dropdown-menu li {
  list-style: none;
}

.nav-dropdown-menu a {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  padding: var(--spacing-xs) var(--spacing-md);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-dropdown-menu a:hover {
  background-color: var(--mist-grey);
  color: var(--ethereal-blue);
}

.nav-dropdown-menu a[aria-current="page"] {
  background-color: var(--mist-grey);
  cursor: default;
}

.nav-dropdown-menu a[aria-current="page"] .nav-dropdown-name {
  color: var(--ethereal-blue);
}

.nav-dropdown-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--deep-slate);
}

.nav-dropdown-sub {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--ethereal-blue);
  letter-spacing: 0.04em;
}

/* Manifiesto Section */
.manifiesto {
  background-color: var(--white);
}

.manifiesto-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.manifiesto-content p {
  font-size: 1.125rem;
  line-height: 1.9;
  margin-bottom: var(--spacing-md);
  font-weight: 300;
}

.manifiesto-content .lead {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ethereal-blue);
  margin-bottom: var(--spacing-lg);
}

.manifiesto-content .emphasis {
  font-size: 1.25rem;
  font-weight: 500;
  margin-top: var(--spacing-lg);
  color: var(--deep-slate);
}

/* Servicios Section */
.servicios {
  background-color: var(--mist-grey);
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.servicio-card {
  background-color: var(--white);
  padding: var(--spacing-md);
  border: 1px solid rgba(44, 62, 80, 0.08);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.8s ease;
}

@media (min-width: 769px) {
  .servicio-card { padding: var(--spacing-lg); }
}

@media (hover: hover) {
  .servicio-card:hover {
    border-color: var(--soft-mint);
    transform: translateY(-2px);
    box-shadow: 0 4px 24px rgba(44, 62, 80, 0.06);
  }

  .servicio-card:hover .servicio-cta {
    color: var(--deep-slate);
  }
}

.servicio-card:focus-visible {
  outline: 2px solid var(--ethereal-blue);
  outline-offset: 3px;
}

.servicio-icon {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--ethereal-blue);
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.05em;
}

.servicio-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
  letter-spacing: 0.03em;
  color: var(--deep-slate);
}

.servicio-tagline {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--deep-slate);
  font-weight: 300;
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
}

.servicio-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5em;
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm);
}

.servicio-price {
  font-weight: 500;
  color: var(--deep-slate);
  letter-spacing: 0.02em;
}

.servicio-meta-sep {
  color: rgba(44, 62, 80, 0.4);
}

.servicio-duration {
  font-weight: 300;
  color: var(--ethereal-blue);
  letter-spacing: 0.04em;
}

.servicio-cta {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ethereal-blue);
  border-top: 1px solid rgba(44, 62, 80, 0.08);
  padding-top: var(--spacing-sm);
  margin-top: auto;
  transition: color 0.2s ease;
}

.servicio-iva {
  margin-top: var(--spacing-lg);
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(44, 62, 80, 0.75);
  text-align: center;
  letter-spacing: 0.02em;
}

.service-iva {
  margin-top: var(--spacing-sm);
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(44, 62, 80, 0.75);
  letter-spacing: 0.02em;
}

/* Audiencia Section */
.audiencia {
  background-color: var(--white);
}

.audiencia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.audiencia-grid::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background-color: var(--deep-slate);
  opacity: 0.1;
}

.audiencia-col-title {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
}

.audiencia-fit .audiencia-col-title {
  color: var(--ethereal-blue);
}

.audiencia-nofit .audiencia-col-title {
  color: var(--deep-slate);
  opacity: 0.7;
}

.audiencia-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.audiencia-list li {
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.6;
  font-size: 1rem;
  font-weight: 300;
}

.audiencia-fit .audiencia-list li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--soft-mint);
  font-weight: 500;
}

.audiencia-nofit .audiencia-list li::before {
  content: '−';
  position: absolute;
  left: 0;
  color: var(--deep-slate);
  opacity: 0.4;
  font-weight: 500;
}

@media (max-width: 768px) {
  .audiencia-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .audiencia-grid::before {
    left: 10%;
    right: 10%;
    top: 50%;
    bottom: auto;
    width: auto;
    height: 1px;
  }
}

/* Método Section */
.metodo {
  background-color: var(--white);
}

.metodo-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
}

.metodo-step {
  text-align: center;
}

.step-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
}

.step-symbol {
  font-size: 3rem;
  color: var(--ethereal-blue);
}

.step-label {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ethereal-blue);
}

.step-title {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: var(--spacing-sm);
  letter-spacing: 0.03em;
  color: var(--deep-slate);
}

.step-description {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--deep-slate);
  font-weight: 300;
}

/* Contacto Section */
.contacto {
  background-color: var(--mist-grey);
}

.contacto-intro {
  text-align: center;
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
  color: var(--ethereal-blue);
  font-weight: 400;
}

.contacto-response {
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: var(--spacing-lg);
  color: rgba(44, 62, 80, 0.75);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.contacto-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-xs);
  color: var(--deep-slate);
}

.form-input {
  width: 100%;
  padding: var(--spacing-sm);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: var(--deep-slate);
  background-color: var(--white);
  border: 1px solid rgba(44, 62, 80, 0.2);
  transition: var(--transition-calm);
  letter-spacing: 0.02em;
}

.form-input:focus {
  outline: none;
  border-color: var(--ethereal-blue);
  box-shadow: 0 0 0 2px rgba(69, 123, 157, 0.18);
}

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

.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23457B9D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right var(--spacing-sm) center;
  background-size: 1em;
  padding-right: calc(var(--spacing-md) + 1em);
  cursor: pointer;
}

.form-select:invalid,
.form-select option[value=""] {
  /* 0.65 → ≥4.5:1 sobre white */
  color: rgba(44, 62, 80, 0.65);
}

.form-select option {
  color: var(--deep-slate);
}

.form-submit {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--white);
  background-color: var(--ethereal-blue);
  border: none;
  cursor: pointer;
  transition: var(--transition-calm);
  margin-top: var(--spacing-sm);
}

.form-submit:hover {
  background-color: var(--deep-slate);
}

.form-submit:active {
  transform: translateY(1px);
}

/* Form error messages */
.form-error {
  display: none;
  font-size: 0.875rem;
  font-weight: 400;
  /* color distinto del azul informativo, ≥4.5:1 sobre mist-grey */
  color: #B23A2F;
  margin-top: var(--spacing-xs);
  opacity: 0;
  transition: var(--transition-calm);
  position: relative;
  padding-left: 1.25rem;
}

.form-error::before {
  content: '⚠';
  position: absolute;
  left: 0;
  font-size: 0.875rem;
  color: #B23A2F;
}

.form-error.visible {
  display: block;
  opacity: 1;
}

.form-input.error {
  border-color: #B23A2F;
}

/* Privacy checkbox */
.form-privacy {
  margin-bottom: var(--spacing-md);
}

.form-privacy-label {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.6;
  min-height: 44px;
}

.form-checkbox {
  margin-top: 0.25rem;
  cursor: pointer;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.form-privacy-text {
  font-weight: 300;
  color: var(--deep-slate);
  letter-spacing: 0.02em;
}

.form-privacy-link {
  color: var(--ethereal-blue);
  text-decoration: underline;
  transition: var(--transition-calm);
}

.form-privacy-link:hover {
  color: var(--soft-mint);
}

.form-privacy-error {
  display: none;
  font-size: 0.875rem;
  font-weight: 400;
  color: #B23A2F;
  margin-top: var(--spacing-xs);
  margin-left: calc(20px + var(--spacing-xs));
  opacity: 0;
  transition: var(--transition-calm);
  position: relative;
  padding-left: 1.25rem;
}

.form-privacy-error::before {
  content: '⚠';
  position: absolute;
  left: 0;
  font-size: 0.875rem;
  color: #B23A2F;
}

.form-privacy-error.visible {
  display: block;
  opacity: 1;
}

/* Privacy Page */
.privacy-header {
  background-color: var(--white);
  border-bottom: 1px solid rgba(44, 62, 80, 0.1);
  padding: var(--spacing-md) 0;
}

.privacy-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.privacy-back {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  text-decoration: none;
  color: var(--deep-slate);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: var(--transition-calm);
  min-height: 44px;
}

.privacy-back:hover {
  color: var(--ethereal-blue);
}

.privacy-back-arrow {
  font-size: 1.25rem;
}

.privacy-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.logo-icon-small {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 8px rgba(168, 218, 220, 0.3));
}

.privacy-main {
  min-height: 60vh;
  background-color: var(--mist-grey);
  padding: var(--spacing-xl) 0;
}

.privacy-content {
  opacity: 1;
  transform: none;
}

.privacy-title {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: var(--spacing-xl);
  color: var(--deep-slate);
}

.privacy-section {
  margin-bottom: var(--spacing-lg);
}

.privacy-section h2 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: var(--spacing-sm);
  color: var(--deep-slate);
}

.privacy-section p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: var(--spacing-sm);
  color: var(--deep-slate);
}

.privacy-section ul {
  list-style: none;
  padding-left: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.privacy-section li {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: var(--spacing-xs);
  color: var(--deep-slate);
  position: relative;
  padding-left: var(--spacing-sm);
}

.privacy-section li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--soft-mint);
}

.privacy-footer {
  text-align: center;
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(44, 62, 80, 0.1);
}

.privacy-cta {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--white);
  background-color: var(--ethereal-blue);
  text-decoration: none;
  transition: var(--transition-calm);
}

.privacy-cta:hover {
  background-color: var(--deep-slate);
}

.legal-divider {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-align: center;
  color: var(--deep-slate);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(44, 62, 80, 0.1);
}

.footer-nif {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  /* mist-grey 60% sobre deep-slate ≈ 4.7:1 */
  color: rgba(241, 243, 245, 0.6);
  margin-top: var(--spacing-xs);
}

/* Service detail pages */
.page-header {
  background-color: var(--white);
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid rgba(44, 62, 80, 0.06);
}

.page-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-header .hero-logo {
  text-decoration: none;
  color: inherit;
  min-height: 44px;
}

.service-intro {
  text-align: center;
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
}

.service-eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ethereal-blue);
  margin-bottom: var(--spacing-sm);
}

.service-name {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  color: var(--deep-slate);
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.service-tagline-lead {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--deep-slate);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto;
}

.service-block {
  padding: var(--spacing-lg) 0;
}

.service-block + .service-block {
  border-top: 1px solid rgba(44, 62, 80, 0.06);
}

.service-section-title {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ethereal-blue);
  margin-bottom: var(--spacing-md);
}

.service-body {
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--deep-slate);
  font-weight: 300;
}

.service-cta-block {
  text-align: center;
  background-color: var(--mist-grey);
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}

.service-cta-btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-xl);
  background-color: var(--deep-slate);
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  border: 1px solid var(--deep-slate);
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.service-cta-btn:hover {
  background-color: var(--ethereal-blue);
  border-color: var(--ethereal-blue);
  transform: translateY(-2px);
}

.service-cta-btn:focus-visible {
  outline: 2px solid var(--ethereal-blue);
  outline-offset: 3px;
}

/* Companion tiers */
.companion-tiers {
  margin-top: var(--spacing-md);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.companion-tier {
  background-color: var(--white);
  border: 1px solid rgba(44, 62, 80, 0.08);
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

@media (hover: hover) {
  .companion-tier:hover {
    border-color: var(--soft-mint);
    transform: translateY(-2px);
  }
}

.companion-tier-name {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ethereal-blue);
  margin-bottom: var(--spacing-sm);
}

.companion-tier-price {
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--deep-slate);
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.02em;
}

.companion-tier-hours,
.companion-tier-channel {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--deep-slate);
  line-height: 1.6;
  margin-bottom: var(--spacing-xs);
}

.companion-tier-channel {
  color: var(--ethereal-blue);
}

.companion-tiers-block {
  padding: var(--spacing-lg) 0;
  border-top: 1px solid rgba(44, 62, 80, 0.06);
  background-color: var(--mist-grey);
}

@media (max-width: 768px) {
  .companion-tiers {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .privacy-header .container {
    flex-wrap: wrap;
    gap: var(--spacing-sm);
  }

  .privacy-back {
    order: 2;
    width: 100%;
    justify-content: center;
  }

  .privacy-brand {
    order: 1;
  }

  .lang-toggle {
    order: 3;
  }

  .privacy-title {
    font-size: 2rem;
  }
}

/* Footer */
.footer {
  background-color: var(--deep-slate);
  color: var(--mist-grey);
  padding: var(--spacing-xl) 0 calc(var(--spacing-lg) + env(safe-area-inset-bottom, 0px)) 0;
  position: relative;
}

.footer-divider {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, var(--soft-mint) 0%, var(--ethereal-blue) 100%);
  margin: 0 auto var(--spacing-md) auto;
  opacity: 0.5;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  text-align: center;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--soft-mint);
  margin: 0;
}

.footer-text {
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  opacity: 0.8;
  margin: 0;
}

.footer-copyright {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  opacity: 0.7;
  margin: 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-md);
}

.footer-link {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--mist-grey);
  text-decoration: none;
  opacity: 0.6;
  transition: var(--transition-calm);
  border-bottom: 1px solid transparent;
}

.footer-link:hover {
  opacity: 1;
  border-bottom-color: var(--soft-mint);
}

/* Mobile Optimizations - Thumb-Friendly */
@media (max-width: 768px) {
  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
  }

  html {
    /* Nav hamburger colapsado = ~60px */
    scroll-padding-top: 80px;
  }

  .hero {
    min-height: 90vh;
    min-height: 90svh;
    padding: var(--spacing-sm);
  }

  .hero-header {
    padding: var(--spacing-sm) var(--spacing-sm) 0 var(--spacing-sm);
  }

  .hero-content {
    padding: var(--spacing-lg) var(--spacing-sm);
  }

  .logo-icon {
    width: 50px;
    height: 50px;
  }

  .logo-text {
    font-size: 1.25rem;
  }

  .lang-toggle {
    gap: 0.35rem;
  }

  .lang-btn {
    font-size: 0.75rem;
    padding: 0 0.5rem;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .lang-separator {
    font-size: 0.75rem;
  }

  .section-title {
    font-size: 2rem;
  }

  /* Nav móvil — drawer hamburger */
  .nav .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, margin-top 0.35s ease;
    margin-top: 0;
  }

  .nav.open .nav-list {
    /* Suficiente para servicios expandido + items principales; con scroll si excede viewport */
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    margin-top: var(--spacing-sm);
    -webkit-overflow-scrolling: touch;
  }

  .nav-list a,
  .nav-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.95rem;
    text-align: left;
    width: 100%;
    min-height: 44px;
  }

  .nav-dropdown {
    width: 100%;
  }

  /* Nav dropdown: in-flow accordion en mobile */
  .nav-dropdown {
    flex-direction: column;
    align-items: center;
  }

  .nav-dropdown-menu {
    position: static;
    left: auto;
    transform: none;
    margin-top: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    border: 0 solid transparent;
    box-shadow: none;
    transition: max-height 0.35s ease-in-out, margin-top 0.3s ease, border-width 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    transform: none;
    max-height: 560px;
    margin-top: var(--spacing-xs);
    padding: var(--spacing-xs) 0;
    border-width: 1px;
    border-color: rgba(44, 62, 80, 0.08);
  }

  .nav-dropdown-menu a {
    align-items: flex-start;
    justify-content: center;
    min-height: 44px;
    padding: var(--spacing-xs) var(--spacing-md);
  }

  .servicios-grid,
  .metodo-steps {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .manifiesto-content p {
    font-size: 1rem;
  }

  .manifiesto-content .lead {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .container,
  .container-narrow {
    padding-left: max(var(--spacing-sm), env(safe-area-inset-left, 0px));
    padding-right: max(var(--spacing-sm), env(safe-area-inset-right, 0px));
  }

  .hero {
    padding: var(--spacing-xs);
  }

  .hero-header {
    padding: var(--spacing-xs) var(--spacing-xs) 0 var(--spacing-xs);
  }

  .hero-content {
    padding: var(--spacing-md) var(--spacing-xs);
  }

  .logo-icon {
    width: 40px;
    height: 40px;
  }

  .logo-text {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
  }

  .section {
    padding: var(--spacing-lg) 0;
  }
}

/* Mobile: Reduce slide-up distance */
@media (max-width: 768px) {
  .servicio-card,
  .metodo-step {
    transform: translateY(20px);
  }
}

/* Galaxy Fold y dispositivos plegables — sin breakpoint propio antes */
@media (max-width: 360px) {
  .hero-header {
    flex-wrap: wrap;
    gap: var(--spacing-sm);
  }

  .logo-text {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero,
  .nav,
  .section,
  .servicio-card,
  .metodo-step {
    transform: none !important;
    opacity: 1 !important;
  }

  /* Logo glow disabled — battery + motion */
  .logo-icon {
    animation: none !important;
    will-change: auto !important;
  }
}

/* Fallback: si JS no carga, secciones siempre visibles */
.no-js .section,
.no-js .servicio-card,
.no-js .metodo-step {
  opacity: 1;
  transform: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .nav {
    border-bottom-width: 2px;
  }

  .form-input {
    border-width: 2px;
  }

  .servicio-card {
    border-width: 2px;
  }
}

/* Print styles */
@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: auto;
    page-break-after: always;
  }

  .section {
    opacity: 1 !important;
    page-break-inside: avoid;
  }

  .footer {
    background-color: transparent !important;
    color: #000 !important;
  }
}
