/* EP Solution — marketing (mobile-first) */
:root {
  --bg-dark: #0b1220;
  --bg-darker: #070c16;
  --bg-light: #f4f7fb;
  --bg-muted: #e8eef6;
  --surface: #ffffff;
  --text: #0f172a;
  --text-soft: #334155;
  --text-on-dark: #e8eef6;
  --text-on-dark-soft: #b6c2d6;
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --accent-soft: rgba(13, 148, 136, 0.14);
  --border: rgba(15, 23, 42, 0.12);
  --border-dark: rgba(232, 238, 246, 0.12);
  --radius: 12px;
  --shadow: 0 12px 40px rgba(7, 12, 22, 0.18);
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
  --space: clamp(1rem, 3vw, 1.5rem);
  --container: 1200px;
  --tap: 48px;
  --header-h: 76px;
  --float-safe: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-light);
  padding-bottom: var(--float-safe);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  z-index: 1000;
  background: var(--accent);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 8px;
}
.skip-link:focus { top: 0.75rem; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}
.container.narrow { width: min(100% - 2rem, 720px); }

.site-header { position: sticky; top: 0; z-index: 50; }
.nav {
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-dark);
}
.nav-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text-on-dark);
  font-weight: 700;
  min-height: var(--tap);
}
.brand-text { font-family: var(--display); font-size: 1.2rem; letter-spacing: 0.01em; }
.nav-links { display: none; gap: 1.1rem; }
.nav-links a {
  color: var(--text-on-dark-soft);
  text-decoration: none;
  font-weight: 500;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-actions .nav-cta { display: inline-flex; }

.menu-btn {
  width: var(--tap);
  height: var(--tap);
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-icon::before, .menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1rem 1.25rem;
  background: var(--bg-darker);
  border-bottom: 1px solid var(--border-dark);
}
.mobile-menu:not([hidden]) { display: flex; }
.mobile-menu a {
  color: var(--text-on-dark);
  text-decoration: none;
  min-height: var(--tap);
  display: flex;
  align-items: center;
  padding: 0 0.25rem;
  font-weight: 500;
}
.mobile-menu .btn { justify-content: center; margin-top: 0.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: var(--tap);
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 40px; padding: 0.45rem 0.95rem; font-size: 0.95rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
.btn-secondary:hover { background: rgba(255,255,255,0.06); color: inherit; }
.section-light .btn-secondary, .section-muted .btn-secondary {
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: transparent;
  text-decoration: underline;
  border-radius: 0;
  padding-inline: 0.2rem;
}

.hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(13,148,136,0.22), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 20%, rgba(37,99,235,0.16), transparent 50%),
    var(--bg-dark);
  color: var(--text-on-dark);
  padding: 2rem 0 4.5rem;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(3.5rem, 8vw, 5.5rem);
  background: linear-gradient(to bottom, rgba(244, 247, 251, 0), var(--bg-light));
  pointer-events: none;
  z-index: 1;
}
.hero-grid { display: grid; gap: 2rem; position: relative; z-index: 2; }
.brand-signal {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7dd3c7;
}
.hero h1, .page-hero h1, .section-head h2, .section h2 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
}
.hero h1 {
  font-family: var(--font);
  font-size: clamp(2.25rem, 4.2vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  max-width: 21ch;
  color: #fff;
}
.hero-lead, .page-hero .hero-lead {
  margin: 0 0 1.35rem;
  color: var(--text-on-dark-soft);
  font-size: 1.1rem;
  max-width: 48ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0; }

.hero-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: end;
}
.hero-shot {
  margin: 0;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  background: #111827;
  border: 1px solid var(--border-dark);
}
.browser-frame { background: #0f172a; }
.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  background: #1e293b;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.browser-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #475569;
}
.browser-bar span:nth-child(1) { background: #f87171; }
.browser-bar span:nth-child(2) { background: #fbbf24; }
.browser-bar span:nth-child(3) { background: #34d399; }
.browser-bar em {
  margin-left: 0.5rem;
  flex: 1;
  font-style: normal;
  font-size: 0.7rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-screen {
  display: grid;
  place-items: center;
  min-height: 7.5rem;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.08), transparent 45%),
    linear-gradient(160deg, #142033, #0b1220 70%);
}
.hero-shot[data-brand="loguip"] .browser-screen {
  background: linear-gradient(145deg, #fff7ed, #ffedd5 55%, #fed7aa);
}
.hero-shot[data-brand="3c-inmobiliaria"] .browser-screen {
  background: linear-gradient(145deg, #f8fafc, #e2e8f0 60%, #cbd5e1);
}
.hero-shot[data-brand="ecafe"] .browser-screen {
  background: linear-gradient(145deg, #fffbeb, #fde68a 50%, #f59e0b);
}
.browser-screen img {
  width: min(72%, 220px);
  height: auto;
  max-height: 5.5rem;
  object-fit: contain;
}
.hero-shot-1 { grid-column: 1 / -1; }
.hero-shot-1 .browser-screen { min-height: 10rem; padding: 1.75rem; }
.hero-shot-1 .browser-screen img { max-height: 7rem; width: min(55%, 280px); }
.hero-shot figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  padding: 0.7rem 0.9rem;
  background: #0f172a;
  font-size: 0.85rem;
  color: var(--text-on-dark-soft);
}
.fig-title { color: #fff; font-weight: 600; }
.fig-type { opacity: 0.85; }
.featured-label {
  flex-basis: 100%;
  color: #7dd3c7;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.section-overlap {
  position: relative;
  z-index: 2;
  margin-top: -1.75rem;
  padding-top: 1.5rem;
}
#proyectos { border-bottom: 1px solid var(--border); }
.section h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); }
.section { scroll-margin-top: calc(var(--header-h) + 1rem); }

.section { padding: 3.25rem 0; }
.section-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section-darker { background: var(--bg-darker); color: var(--text-on-dark); }
.section-light { background: var(--bg-light); color: var(--text); }
.section-muted { background: var(--bg-muted); color: var(--text); }
.section-head { margin-bottom: 1.75rem; max-width: 40rem; }
.section-head p, .section p { color: inherit; }
.section-dark .section-head p,
.section-dark p:not(.case-type),
.section-darker p { color: var(--text-on-dark-soft); }
.section-more { margin-top: 1.75rem; }
.section-more a { font-weight: 600; }

.case-grid, .service-grid, .benefit-grid, .pricing-grid, .team-grid {
  display: grid;
  gap: 1.25rem;
}
.case-card, .service-card, .benefit-card, .price-card, .team-card, .progress-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.section-dark .case-card,
.section-dark .price-card {
  background: #111827;
  border-color: var(--border-dark);
  color: var(--text-on-dark);
}
.case-media {
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: 10rem;
  padding: 1.5rem;
  background: linear-gradient(160deg, #f8fafc, #e2e8f0);
}
.case-media[data-brand="loguip"] { background: linear-gradient(145deg, #fff7ed, #ffedd5); }
.case-media[data-brand="3c-inmobiliaria"] { background: linear-gradient(145deg, #f8fafc, #e2e8f0); }
.case-media[data-brand="ecafe"] { background: linear-gradient(145deg, #fffbeb, #fde68a); }
.case-media img {
  width: min(70%, 180px);
  height: auto;
  max-height: 5.5rem;
  object-fit: contain;
  padding: 0;
}
.case-media.large {
  min-height: 14rem;
  padding: 2rem;
}
.case-media.large img {
  width: min(60%, 280px);
  max-height: 8rem;
}
.case-body, .service-body, .benefit-card, .price-card, .team-card, .progress-card {
  padding: 1.15rem 1.2rem 1.35rem;
}
.case-card-teaser {
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.case-card-teaser .case-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.case-card-teaser .case-actions { margin-top: auto; }
.case-teaser {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-type {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.case-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}
.case-body h3, .case-body h2, .service-body h3, .benefit-card h3, .benefit-item h3, .price-card h2 {
  font-family: var(--display);
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
}
.case-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1rem; align-items: center; }
.case-actions .btn-secondary {
  border-color: var(--border);
  color: var(--text);
}
.tick-list, .plain-list { margin: 0.5rem 0 0; padding-left: 1.15rem; }
.tick-list li { margin-bottom: 0.35rem; }
.text-link { font-weight: 600; }

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
}
.service-media {
  position: relative;
  overflow: hidden;
}
.service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 18, 32, 0.35), transparent 55%);
  pointer-events: none;
}
.service-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.service-body p { margin: 0 0 0.85rem; color: var(--text-soft); }

.benefit-open {
  gap: 0;
  border-top: 1px solid var(--border);
}
.benefit-item {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
}
.benefit-item h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  max-width: 18ch;
}
.benefit-item p {
  margin: 0;
  color: var(--text-soft);
  max-width: 36ch;
}
.note { margin-top: 1.5rem; color: var(--text-soft); font-size: 0.98rem; }
.section-dark .note { color: var(--text-on-dark-soft); }

.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.process-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.process-list.compact li { padding: 0.75rem 0.9rem; }
.process-timeline {
  gap: 0;
  counter-reset: none;
}
.process-timeline li {
  background: transparent;
  border: none;
  border-radius: 0;
  border-left: 2px solid rgba(13, 148, 136, 0.35);
  padding: 0 0 1.75rem 1.25rem;
  position: relative;
}
.process-timeline li:last-child { padding-bottom: 0; }
.process-timeline .process-step {
  position: absolute;
  left: -0.85rem;
  top: 0;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-family: var(--font);
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  line-height: 1;
}
.process-step {
  font-family: var(--display);
  font-weight: 700;
  color: var(--accent);
  font-size: 1.2rem;
}
.process-list h3 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.process-list p { margin: 0; color: var(--text-soft); }

.faq-list { display: grid; gap: 0.65rem; }
.faq-item {
  background: #111827;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 0.35rem 1rem;
}
.faq-item summary {
  min-height: var(--tap);
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
}
.faq-item[open] { padding-bottom: 0.35rem; }
.faq-item p {
  margin: 0 0 1rem;
  padding-top: 0.15rem;
  color: var(--text-on-dark-soft);
  font-size: 1.02rem;
  line-height: 1.65;
}

.team-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.9rem;
  align-items: center;
}
.team-card h3 { margin: 0 0 0.2rem; font-size: 1.15rem; }
.team-card p { margin: 0; color: var(--text-soft); }
.team-links { display: flex; gap: 0.9rem; margin-top: 0.45rem !important; }
.tech-aside {
  margin-top: 1.75rem;
  padding: 0.75rem 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.tech-aside summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.tech-chips {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.tech-chips li {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--bg-muted);
  font-size: 0.92rem;
}

.contact-section {
  padding: 3.5rem 0 calc(3.5rem + 0.5rem);
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(13, 148, 136, 0.2), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(37, 99, 235, 0.12), transparent 50%),
    var(--bg-dark);
  color: var(--text);
}
.contact-grid {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}
.contact-intro {
  color: var(--text-on-dark);
  padding: 0.25rem 0 0.5rem;
}
.contact-eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7dd3c7;
}
.contact-intro h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}
.contact-lead {
  margin: 0 0 1.25rem;
  color: var(--text-on-dark-soft);
  max-width: 34ch;
  font-size: 1.08rem;
}
.btn-whatsapp {
  background: #128c7e;
  color: #fff;
  margin-bottom: 1.25rem;
}
.btn-whatsapp:hover {
  background: #0f766e;
  color: #fff;
}
.contact-phone {
  display: grid;
  gap: 0.2rem;
  margin: 0 0 1.35rem;
}
.contact-phone-label {
  font-size: 0.85rem;
  color: var(--text-on-dark-soft);
}
.contact-phone a {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}
.contact-phone a:hover { color: #7dd3c7; }
.contact-assurances {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  color: var(--text-on-dark-soft);
  font-size: 0.95rem;
}
.contact-assurances li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}
.contact-assurances li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.contact-form {
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 1.35rem 1.25rem 1.4rem;
  display: grid;
  gap: 1rem;
  box-shadow: 0 20px 50px rgba(7, 12, 22, 0.18);
}
.contact-form-head { display: grid; gap: 0.25rem; }
.contact-form-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--text);
}
.contact-form-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}
.form-row { display: grid; gap: 0.9rem; }
.field { display: grid; gap: 0.35rem; }
.field label, .contact-means legend {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}
.req-note {
  font-weight: 500;
  color: var(--text-soft);
  font-size: 0.85rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  min-height: var(--tap);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font: inherit;
  background: #f8fafc;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.field input:hover, .field select:hover, .field textarea:hover {
  border-color: rgba(13, 148, 136, 0.45);
}
.field input:focus, .field select:focus, .field textarea:focus {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}
.field textarea { min-height: 96px; resize: vertical; }
.field-error { margin: 0; color: #b91c1c; font-size: 0.9rem; }
.contact-means {
  margin: 0;
  padding: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: grid;
  gap: 0.75rem;
  background: #f8fafc;
}
.contact-means legend {
  padding: 0 0.25rem;
  float: none;
  width: auto;
}
.schedule-block {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: rgba(13, 148, 136, 0.06);
  border: 1px dashed rgba(13, 148, 136, 0.35);
}
.check-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  font-weight: 500;
  cursor: pointer;
}
.check-row input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  accent-color: var(--accent);
}
.check-row strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
}
.check-row small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.45;
}
.schedule-fields {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.15rem;
}
.schedule-fields[hidden] { display: none !important; }
.form-footer {
  display: grid;
  gap: 0.85rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
}
.form-privacy { margin: 0; font-size: 0.9rem; color: var(--text-soft); }
.form-actions { display: flex; }
.form-actions .btn { width: 100%; }
.form-status {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-weight: 600;
}
.form-status.is-success { background: #dcfce7; color: #166534; }
.form-status.is-error { background: #fee2e2; color: #991b1b; }
.form-status.is-pending { background: var(--accent-soft); color: #115e59; }

.page-hero { padding: 2rem 0 2.25rem; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
  color: var(--text-on-dark-soft);
}
.breadcrumbs a { color: #7dd3c7; text-decoration: none; }
.split, .prose-grid {
  display: grid;
  gap: 1.75rem;
}
.subhead { margin: 2.5rem 0 0.5rem; font-family: var(--display); }
.progress-grid { display: grid; gap: 0.85rem; margin-top: 1rem; }
.progress-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.85rem;
  align-items: center;
}
.progress-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #0f172a;
  border-radius: 8px;
}
.cta-band {
  text-align: center;
  display: grid;
  gap: 1rem;
  justify-items: center;
}
.callout {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}
.price { font-family: var(--display); font-size: 2.4rem; margin: 0.35rem 0; }
.price span { font-size: 1rem; font-family: var(--font); color: var(--text-soft); }
.prose h2 { font-family: var(--display); margin-top: 1.75rem; }

.footer {
  background: var(--bg-darker);
  color: var(--text-on-dark-soft);
  padding: 2.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
.footer-brand {
  font-family: var(--display);
  color: #fff;
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
}
.footer-label {
  color: #fff;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.footer-links a { color: var(--text-on-dark-soft); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-dark);
  font-size: 0.92rem;
}

.float-wa-wrap {
  position: fixed;
  right: max(0.85rem, env(safe-area-inset-right));
  bottom: max(0.85rem, env(safe-area-inset-bottom));
  z-index: 40;
}
.float-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0 1.1rem;
  border-radius: 999px;
  background: #128c7e;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.float-wa:hover { color: #fff; background: #0f766e; }
body.menu-open .float-wa-wrap,
body.keyboard-open .float-wa-wrap,
.contact-section:focus-within ~ .float-wa-wrap,
body:has(#contact-form:focus-within) .float-wa-wrap {
  opacity: 0;
  pointer-events: none;
}

/* Progressive enhancement: visible by default; animate only when JS adds class */
.enhance-in { opacity: 1; transform: none; }
html.js-ready .enhance-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
html.js-ready .enhance-in.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js-ready .enhance-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
  .mobile-menu { display: none !important; }
  .hero { padding: 4.5rem 0 5.5rem; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 3rem; }
  .case-grid-home { grid-template-columns: repeat(3, 1fr); }
  .service-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-open {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 2rem;
    border-top: none;
  }
  .benefit-item {
    border-bottom: none;
    border-top: 2px solid var(--accent);
    padding: 1.25rem 0 0;
  }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
    align-items: center;
  }
  .contact-form { padding: 1.75rem 1.6rem 1.7rem; }
  .form-row-2 { grid-template-columns: 1fr 1fr; }
  .form-actions .btn { width: auto; min-width: 12rem; }
  .form-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
  }
  .split, .prose-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .process-list:not(.process-timeline) { grid-template-columns: 1fr 1fr; }
  .process-timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
  .process-timeline li {
    border-left: none;
    border-top: 2px solid rgba(13, 148, 136, 0.35);
    padding: 1.5rem 0 0;
  }
  .process-timeline .process-step {
    left: 0;
    top: -0.7rem;
  }
  .case-card-teaser:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
  }
}

@media (min-width: 1024px) {
  .case-grid:not(.case-grid-home) { grid-template-columns: 1fr; }
  .case-grid:not(.case-grid-home) .case-card:not(.case-card-teaser) {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
  }
  .hero-showcase .hero-shot { transition: transform 0.35s ease; }
  .hero-showcase:hover .hero-shot-1 { transform: translateY(-4px); }
  .hero-showcase:hover .hero-shot-2 { transform: translate(2px, 4px); }
  .hero-showcase:hover .hero-shot-3 { transform: translate(-2px, 4px); }
}

@media (min-width: 1440px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  #servicios .service-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 430px) {
  .hero-actions .btn { width: 100%; }
  .case-actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .case-card-teaser:hover { transform: none; }
  .hero-showcase:hover .hero-shot-1,
  .hero-showcase:hover .hero-shot-2,
  .hero-showcase:hover .hero-shot-3 { transform: none; }
}
