/* ================================================
   Studio Swamp — styles.css
   Editorial premium · Dark · Space Grotesk + Inter
   ================================================ */

/* ── VARIABLES ── */
:root {
  --bg:          #07090B;
  --bg-alt:      #0C0E11;
  --surface:     #111418;
  --border:      rgba(255, 255, 255, 0.07);
  --border-med:  rgba(255, 255, 255, 0.12);
  --white:       #F0EDE8;
  --white-dim:   #A8A29E;
  --accent:      #00A86B;
  --accent-dim:  #008F5B;
  --accent-glow: rgba(0, 168, 107, 0.08);
  --font-head:   'Space Grotesk', system-ui, sans-serif;
  --font-body:   'Inter', system-ui, sans-serif;
  --ease:        cubic-bezier(.4, 0, .2, 1);
  --radius:      6px;
  --logo-filter: invert(1);
  --nav-bg:      rgba(7, 9, 11, 0.7);
  --nav-bg-solid:rgba(7, 9, 11, 0.95);
  --grain-opacity: 0.022;
  --grid-opacity:  0.18;
}

/* ── LIGHT THEME ── */
[data-theme="light"] {
  --bg:          #F5F3EF;
  --bg-alt:      #EDEAE4;
  --surface:     #E2DFD8;
  --border:      rgba(0, 0, 0, 0.08);
  --border-med:  rgba(0, 0, 0, 0.14);
  --white:       #1A1A1A;
  --white-dim:   #5C5C5C;
  --accent:      #007A4D;
  --accent-dim:  #00643F;
  --accent-glow: rgba(0, 122, 77, 0.08);
  --logo-filter: invert(0);
  --nav-bg:      rgba(245, 243, 239, 0.75);
  --nav-bg-solid:rgba(245, 243, 239, 0.97);
  --grain-opacity: 0.015;
  --grid-opacity:  0.12;
}

/* ── RESET / BASE ── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--white);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Film grain texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* Editorial grid lines */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 25% 100%;
  opacity: var(--grid-opacity);
}

body > *:not(.back-top):not(.toast-container) {
  position: relative;
  z-index: 1;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

img { max-width: 100%; display: block; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.section-heading {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 3.5rem;
}

/* ── DIVIDER ── */
.divider-h {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── NAVBAR ── */
.navbar {
  padding: 1rem 0;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.navbar.scrolled {
  background: var(--nav-bg-solid);
  border-bottom-color: var(--border);
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
}

.nav-logo {
  height: 142px;
  width: auto;
  filter: var(--logo-filter);
  transition: opacity 0.3s var(--ease), filter 0.4s var(--ease);
}

.nav-logo:hover {
  opacity: 0.8;
}

/* Custom toggler */
.navbar-toggler {
  border: none !important;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent !important;
  box-shadow: none !important;
}

.toggler-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.3s var(--ease);
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--white-dim) !important;
  letter-spacing: 0.03em;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white) !important;
}

.nav-link.active {
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: var(--accent);
}

.btn-cta {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  padding: 0.55rem 1.3rem;
  transition: background 0.3s var(--ease), transform 0.2s;
}

.btn-cta:hover {
  background: var(--accent-dim);
  color: var(--bg);
  transform: translateY(-1px);
}

/* ── BUTTONS (GLOBAL) ── */
.btn-primary-accent {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  padding: 0.85rem 2.2rem;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.2s;
}

.btn-primary-accent:hover,
.btn-primary-accent:focus-visible {
  background: var(--accent-dim);
  color: var(--bg);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--border-med);
  border-radius: var(--radius);
  padding: 0.85rem 2rem;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.2s;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* ── HERO ── */
.hero {
  padding: 5.5rem 0 3rem;
  min-height: auto;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}

/* Immersive backdrop */
.hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: backdropIn 1.8s var(--ease) 0.2s forwards;
}

@keyframes backdropIn {
  to { opacity: 1; }
}

.hero-mesh {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Orb float animation */
.orb {
  animation: orbDrift 12s ease-in-out infinite;
}

.orb-2 {
  animation-delay: -4s;
  animation-duration: 15s;
}

.orb-3 {
  animation-delay: -8s;
  animation-duration: 10s;
}

@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0); }
  33%      { transform: translate(20px, -15px); }
  66%      { transform: translate(-15px, 10px); }
}

/* Pulse rings */
.pulse-ring {
  animation: pulseRing 4s ease-in-out infinite;
}

.pulse-ring-2 {
  animation-delay: -1.3s;
}

.pulse-ring-3 {
  animation-delay: -2.6s;
}

@keyframes pulseRing {
  0%, 100% { r: 14; opacity: 0.08; }
  50%      { r: 22; opacity: 0.02; }
}

/* Hero stagger entrance */
.hero-anim {
  opacity: 0;
  transform: translateY(18px);
  animation: heroFadeUp 0.7s var(--ease) forwards;
}

.hero-anim-1 { animation-delay: 0.15s; }
.hero-anim-2 { animation-delay: 0.35s; }
.hero-anim-3 { animation-delay: 0.55s; }
.hero-anim-4 { animation-delay: 0.75s; }
.hero-anim-5 { animation-delay: 0.95s; }

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SVG neural draw-in */
.neural-lines line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: lineDraw 2.5s var(--ease) forwards;
}

.neural-lines line:nth-child(odd)  { animation-delay: 0.6s; }
.neural-lines line:nth-child(even) { animation-delay: 0.9s; }
.neural-lines line:nth-child(3n)   { animation-delay: 1.2s; }

@keyframes lineDraw {
  to { stroke-dashoffset: 0; }
}

/* Nodes fade-in */
.neural-nodes circle {
  opacity: 0;
  animation: nodeFade 0.6s var(--ease) forwards;
}

.neural-nodes circle:nth-child(odd)  { animation-delay: 1.4s; }
.neural-nodes circle:nth-child(even) { animation-delay: 1.7s; }
.neural-nodes circle:nth-child(3n)   { animation-delay: 2.0s; }

@keyframes nodeFade {
  to { opacity: var(--node-opacity, 0.5); }
}

.hero-h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  line-height: 1.05;
}

.accent-line {
  color: var(--accent);
  font-weight: 600;
  opacity: 0.85;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  color: var(--white-dim);
  margin-bottom: 2.2rem;
  max-width: 480px;
  line-height: 1.8;
}

.hero-bullets {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 3rem;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--white);
}

.hero-bullets .sep {
  color: var(--accent);
  opacity: 0.5;
  font-size: 0.8rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Manifesto sidebar */
.hero-manifesto {
  border-left: 1px solid var(--border-med);
  padding-left: 1.8rem;
  margin-top: 6rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease) 0.4s, transform 0.6s var(--ease) 0.4s;
}

.hero-manifesto.revealed {
  opacity: 0.75;
  transform: translateY(0);
}

.hero-manifesto p {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--white-dim);
  line-height: 1.75;
  margin-bottom: 1.8rem;
  font-style: italic;
  letter-spacing: 0.01em;
}

/* ── SERVICIOS ── */
.servicios {
  padding: 5rem 0;
}

.servicio-item {
  padding: 3rem 0;
}

.servicio-num {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 700;
  color: var(--accent);
  opacity: 0.1;
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}

@media (min-width: 992px) {
  .servicio-num {
    position: sticky;
    top: 120px;
  }
}

.servicio-title {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.servicio-question {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0.8;
}

.servicio-desc {
  color: var(--white-dim);
  margin-bottom: 2rem;
  max-width: 540px;
  font-size: 0.92rem;
  line-height: 1.75;
}

.servicio-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

.servicio-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.servicio-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--white);
  line-height: 1.65;
}

.servicio-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.servicio-result {
  font-size: 0.85rem;
  color: var(--white-dim);
  border-left: 1px solid var(--accent);
  padding-left: 1rem;
  font-style: italic;
  opacity: 0.85;
}

.servicio-cols {
  margin-top: 1.5rem;
}

/* Cierre servicios */
.servicios-cierre {
  text-align: center;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.cierre-copy {
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  color: var(--white-dim);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* ── PROCESO ── */
.proceso {
  padding: 5rem 0;
  background: var(--bg-alt);
}

.proceso-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 1rem;
}

@media (max-width: 767.98px) {
  .proceso-grid {
    grid-template-columns: 1fr;
  }
}

.proceso-step {
  padding: 2.8rem 2.2rem;
  border-left: 1px solid var(--border-med);
}

.proceso-step:first-child {
  border-left: none;
}

@media (max-width: 767.98px) {
  .proceso-step {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 2rem 0;
  }
  .proceso-step:first-child {
    border-top: none;
  }
}

.proceso-num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.12;
  display: block;
  margin-bottom: 1.5rem;
  line-height: 1;
}

.proceso-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.7rem;
}

.proceso-body p {
  font-size: 0.82rem;
  color: var(--white-dim);
  margin: 0;
  line-height: 1.7;
}

/* ── AGENTES ── */
.agentes {
  padding: 5rem 0;
}

.agentes-intro {
  font-size: 1.05rem;
  color: var(--white-dim);
  margin-top: -1.5rem;
  margin-bottom: 3rem;
}

.agentes-grid {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.agente-block {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
}

.agente-block:last-child {
  border-right: none;
}

@media (max-width: 767.98px) {
  .agente-block {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
  }
  .agente-block:last-child {
    border-bottom: none;
  }
}

.agente-block h3 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.agente-block p {
  font-size: 0.82rem;
  color: var(--white-dim);
  margin: 0;
  line-height: 1.7;
}

.agentes-nota {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--white-dim);
  margin-top: 2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}

/* ── CONTACTO ── */
.contacto {
  padding: 5rem 0;
  background: var(--bg-alt);
}

.contacto-micro {
  font-size: 0.88rem;
  color: var(--white-dim);
  margin-top: -2rem;
  margin-bottom: 3rem;
  line-height: 1.7;
  opacity: 0.7;
}

.contacto-form {
  margin-top: 1rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.contacto-form .form-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 0.4rem;
}

.contacto-form .form-control {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--white);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  font-family: var(--font-body);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.contacto-form .form-control::placeholder {
  color: var(--white-dim);
  opacity: 0.4;
}

.contacto-form .form-control:focus {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  color: var(--white);
}

.contacto-form .form-control.is-invalid {
  border-color: #c0392b;
}

.form-note {
  font-size: 0.78rem;
  color: var(--white-dim);
  margin-top: 1rem;
  text-align: center;
}

/* ── TOAST ── */
#formToast {
  background: var(--surface);
  border: 1px solid rgba(0,201,123,0.2);
  border-radius: var(--radius);
  color: var(--white);
}

/* ── FOOTER ── */
.site-footer {
  padding: 0 0 3rem;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--white-dim);
  margin: 0;
}

.footer-link {
  font-size: 0.82rem;
  color: var(--white-dim);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.footer-link:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 1.2rem;
}

.footer-social a {
  color: var(--white-dim);
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.footer-social a:hover {
  color: var(--accent);
}

/* ── BACK TO TOP ── */
.back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease), transform 0.35s var(--ease), background 0.3s var(--ease);
  z-index: 1050;
}

.back-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger for multi-column blocks */
.servicio-item:nth-child(2) { transition-delay: 0.04s; }
.servicio-item:nth-child(3) { transition-delay: 0.08s; }
.servicio-item:nth-child(4) { transition-delay: 0.12s; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

/* ── MOBILE NAV COLLAPSE ── */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    margin-top: 0.75rem;
  }

  .btn-cta {
    margin-top: 0.5rem;
    width: 100%;
    text-align: center;
  }
}

/* ── THEME TOGGLE ── */
.theme-toggle {
  position: relative;
  width: 42px;
  height: 24px;
  background: var(--surface);
  border: 1px solid var(--border-med);
  border-radius: 100px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  flex-shrink: 0;
}

.theme-toggle .icon-light,
.theme-toggle .icon-dark {
  position: absolute;
  font-size: 0.7rem;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

/* Dark mode (default): show sun icon on left, moon hidden */
.theme-toggle .icon-light {
  color: var(--accent);
  transform: translateX(-6px);
  opacity: 1;
}

.theme-toggle .icon-dark {
  color: var(--white-dim);
  transform: translateX(6px);
  opacity: 0.3;
}

/* Light mode: show moon icon on right, sun hidden */
[data-theme="light"] .theme-toggle .icon-light {
  opacity: 0.3;
  transform: translateX(-6px);
}

[data-theme="light"] .theme-toggle .icon-dark {
  color: var(--accent);
  opacity: 1;
  transform: translateX(6px);
}

.theme-toggle::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  left: 2px;
  transition: transform 0.35s var(--ease);
}

[data-theme="light"] .theme-toggle::before {
  transform: translateX(18px);
}

.theme-toggle:hover {
  border-color: var(--accent);
}

/* ── LANGUAGE SWITCHER ── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 5px;
}

.lang-btn {
  background: none;
  border: 2px solid transparent;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  opacity: .4;
  transition: opacity .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lang-btn .fi {
  font-size: 26px;
  border-radius: 50%;
}

.lang-btn.active {
  opacity: 1;
  border-color: var(--accent);
}

.lang-btn:hover {
  opacity: .8;
  transform: scale(1.1);
}

/* Footer logo light theme */
.footer-logo {
  height: 30px;
  width: auto;
  filter: var(--logo-filter);
  opacity: 0.6;
  transition: filter 0.4s var(--ease);
}

/* ── SMALL SCREENS ── */
@media (max-width: 767.98px) {
  .hero {
    padding: 5rem 0 2rem;
    min-height: auto;
  }

  .hero-h1 {
    font-size: 2rem;
  }

  .servicios,
  .proceso,
  .agentes,
  .contacto {
    padding: 3.5rem 0;
  }

  .servicio-item {
    padding: 2rem 0;
  }

  .servicios-cierre {
    padding: 2rem 0 1.5rem;
  }

  .servicio-num {
    font-size: 3rem;
    margin-bottom: 0.5rem;
  }

  .agente-block {
    padding: 1.5rem 0;
  }

  .hero-manifesto {
    display: none;
  }
}

/* ═══════════════════════════════════════════
   SUCCESS / ERROR MODAL
   ═══════════════════════════════════════════ */
.ss-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.ss-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ss-modal {
  position: relative;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 3rem 2.5rem 2.5rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.ss-modal-overlay.active .ss-modal {
  transform: scale(1) translateY(0);
}

.ss-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.ss-modal-close:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
}

.ss-modal-icon {
  margin-bottom: 1.5rem;
}

.ss-modal-circle {
  stroke-dasharray: 190;
  stroke-dashoffset: 190;
  animation: none;
}

.ss-modal-check {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: none;
}

.ss-modal-overlay.active .ss-modal-circle {
  animation: modalCircleDraw 0.6s 0.2s ease forwards;
}

.ss-modal-overlay.active .ss-modal-check {
  animation: modalCheckDraw 0.4s 0.7s ease forwards;
}

@keyframes modalCircleDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes modalCheckDraw {
  to { stroke-dashoffset: 0; }
}

/* Error state */
.ss-modal-overlay.is-error .ss-modal-circle {
  stroke: #e74c3c;
}

.ss-modal-overlay.is-error .ss-modal-check {
  display: none;
}

.ss-modal-overlay.is-error .ss-modal-icon svg::after {
  content: '';
}

.ss-modal-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.ss-modal-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.ss-modal-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.85rem 2.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.ss-modal-btn:hover {
  background: var(--accent-hover, #008f5a);
  transform: translateY(-1px);
}

.ss-modal-btn:active {
  transform: translateY(0);
}
