:root {
  --bg: #f5f6fb;
  --bg-soft: #ffffff;
  --text-main: #111827;
  --text-soft: #6b7280;
  --primary: #151b3c;
  --accent: #ff5a3c;
  --border-soft: #e5e7eb;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #eef0ff 0, #f9fafb 40%, #f5f6fb 100%);
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrapper {
  width: 100%;
  max-width: 1120px;
  padding: 1.5rem 1.5rem 4rem;
  margin: 0 auto;
}

/* HEADER */

header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(245, 246, 251, 0.9);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 40px;
  border-radius: 999px;
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-soft);
}

nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.9rem;
  align-items: center;
}

nav a {
  color: var(--text-soft);
  position: relative;
  padding-bottom: 0.2rem;
  transition: color 0.2s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.2s ease;
}

nav a:hover {
  color: var(--primary);
}

nav a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.7);
}

.nav-cta span.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

/* BOTÓN HAMBURGUESA (ESCRITORIO: OCULTO) */
.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(255, 255, 255, 0.9);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  transition: transform 0.18s ease, opacity 0.18s ease, width 0.18s ease;
}

/* Animación a "X" cuando el menú está abierto */
header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

main {
  flex: 1;
}

.hero {
  display: grid;
  grid-template-columns: 3fr 2.5fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 2.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.74rem;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.pill span.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}

.hero-title {
  font-size: clamp(2.1rem, 3.2vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--primary);
}

.hero-title span.highlight {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 0.98rem;
  max-width: 34rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.btn {
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  border: none;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff7b53);
  color: #fff;
  box-shadow: 0 18px 40px rgba(248, 113, 113, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 50px rgba(248, 113, 113, 0.42);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.8);
  color: var(--primary);
}

.btn-outline:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(148, 163, 184, 0.26);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.74rem;
  color: var(--text-soft);
}

.hero-badge {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px dashed rgba(148, 163, 184, 0.8);
}

.hero-card {
  background: rgba(10, 17, 46, 0.98);
  border-radius: var(--radius-xl);
  padding: 1.6rem 1.7rem;
  color: #e5e7eb;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top right, rgba(248, 250, 252, 0.1), transparent 55%);
  pointer-events: none;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
}

.hero-card-title {
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-card-pill {
  font-size: 0.72rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.6);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.4rem;
  position: relative;
  z-index: 1;
}

.metric {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.55);
}

.metric-value {
  font-weight: 600;
  font-size: 1.1rem;
  color: #f9fafb;
  margin-bottom: 0.1rem;
}

.metric-label {
  font-size: 0.74rem;
  color: #9ca3af;
}

.hero-card-list {
  font-size: 0.8rem;
  color: #d1d5db;
  display: grid;
  gap: 0.35rem;
  position: relative;
  z-index: 1;
}

.hero-card-list span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-card-list span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

section {
  margin-top: 4rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.section-subtitle {
  font-size: 0.92rem;
  color: var(--text-soft);
  max-width: 28rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.card {
  background: var(--bg-soft);
  border-radius: 1.4rem;
  padding: 1.4rem 1.4rem 1.3rem;
  border: 1px solid var(--border-soft);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.card-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}

.card-text {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.card-footer {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.card-footer span.icon {
  font-size: 1rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 0.5rem;
  right: 0.5rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.8), rgba(148, 163, 184, 0.1));
  z-index: 0;
}

.step {
  position: relative;
  padding-top: 1.6rem;
}

.step-badge {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-4px);
  background: #ffffff;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.8);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 1;
}

.step-badge span.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}

.step-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--primary);
}

.step-text {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.trust {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
  align-items: center;
}

.trust-box {
  background: #0b102c;
  border-radius: var(--radius-xl);
  padding: 1.8rem 1.7rem;
  color: #e5e7eb;
  box-shadow: var(--shadow-soft);
}

.trust-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.trust-text {
  font-size: 0.9rem;
  color: #d1d5db;
  line-height: 1.6;
  margin-bottom: 1.1rem;
}

.trust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.trust-tag {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.trust-list {
  font-size: 0.85rem;
  color: var(--text-soft);
  display: grid;
  gap: 0.35rem;
}

.trust-list strong {
  color: var(--primary);
}

.contact {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 3fr 2.2fr;
  gap: 1.8rem;
  align-items: flex-start;
}

.contact-card {
  background: var(--bg-soft);
  border-radius: var(--radius-xl);
  padding: 1.7rem 1.6rem 1.5rem;
  border: 1px solid var(--border-soft);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.04);
}

.contact-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--primary);
}

.contact-card p {
  margin: 0 0 1.3rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

form {
  display: grid;
  gap: 0.85rem;
}

label {
  font-size: 0.8rem;
  color: var(--text-soft);
  display: block;
  margin-bottom: 0.25rem;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 0.7rem 0.95rem;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  background: #f9fafb;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

textarea {
  border-radius: 1.2rem;
  min-height: 120px;
  resize: vertical;
  padding-top: 0.8rem;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.25);
  background: #ffffff;
}

.contact-side {
  font-size: 0.88rem;
  color: var(--text-soft);
  display: grid;
  gap: 1rem;
}

.contact-side-block {
  padding: 1.1rem 1.2rem;
  border-radius: 1.3rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-soft);
}

.contact-side-block strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--primary);
}

.contact-side-block a.link {
  color: var(--accent);
  font-weight: 500;
}

footer {
  padding: 1.5rem 1.5rem 2.5rem;
  border-top: 1px solid rgba(229, 231, 235, 0.9);
  margin-top: 3rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.footer-links a {
  color: var(--text-soft);
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .wrapper {
    padding-inline: 1.25rem;
  }

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

  .hero-card {
    order: -1;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  /* NAV MÓVIL (OCULTO POR DEFECTO) */
  nav {
    display: none;
    position: absolute;
    top: 56px;
    right: 1.5rem;
    background: #ffffff;
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    z-index: 50;
  }

  /* Cuando el header tiene la clase nav-open, mostramos el menú */
  header.nav-open nav {
    display: flex;
  }

  /* Mostramos el botón hamburguesa solo en móvil */
  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .timeline {
    grid-template-columns: 1fr;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    justify-content: center;
  }
}

/* BOTÓN FLOTANTE DE WHATSAPP – ESTILO PASTILLA */
.whatsapp-pill {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: #25D366;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.22);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.whatsapp-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.32);
  background: #22c15f;
}

.whatsapp-pill .wa-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #e0f2fe;
  display: inline-block;
  background-image: url('whatsapp-icon.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px 15px;
}

.whatsapp-pill .wa-text {
  line-height: 1;
}
/* Campo honeypot anti-spam (solo lo ven los bots) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* --------------------------------------- */
/*   ESTILOS PARA ÍNDICE DE SECCIONES      */
/* --------------------------------------- */

.services-index ul {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.services-index ul li {
  margin: 0.4rem 0;
}

.services-index ul li a {
  text-decoration: none;
  color: var(--text-color, #333);
  font-weight: 600;
  transition: color 0.25s ease, padding-left 0.25s ease;
  cursor: pointer;
}

/* HOVER EFECTO – CAMBIO A NARANJA DORADO */
.services-index ul li a:hover {
  color: var(--hl-gold, #F5B400);
  padding-left: 6px;
}

/* OPCIONAL: SUBRAYADO ANIMADO */
.services-index ul li a {
  position: relative;
}

.services-index ul li a::after {
  content: "";
  width: 0;
  height: 2px;
  background: var(--hl-gold, #F5B400);
  position: absolute;
  bottom: -2px;
  left: 0;
  transition: width 0.25s ease;
}

.services-index ul li a:hover::after {
  width: 100%;
}
/* ------------------------------ */
/* ÍNDICE DE SERVICIOS – ESTILOS  */
/* ------------------------------ */

.services-area-index {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f7f7f9;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

.services-area-index h4 {
  margin-bottom: 1rem;
  font-weight: 700;
}

.services-area-index ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-area-index li {
  margin: 0.6rem 0;
}

/* ENLACES DEL ÍNDICE */
.services-area-index a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  padding-left: 0;
  transition: all 0.25s ease;
}

/* HOVER EN NARANJA */
.services-area-index a:hover {
  color: var(--hl-gold, #F5B400);
  padding-left: 6px;
}

/* SUBRAYADO ANIMADO */
.services-area-index a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: var(--hl-gold, #F5B400);
  transition: width 0.25s ease-in-out;
}

.services-area-index a:hover::after {
  width: 100%;
}
/* Color corporativo naranja JURIDICA */
:root {
  --juridica-orange: #F5B400;
}

/* Sección del índice */
.services-index {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f7f7f9;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

.services-index strong {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--juridica-orange);
}

.services-index ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

@media (min-width: 768px) {
  .services-index ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.6rem 1.5rem;
  }
}

.services-index a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  padding-left: 0;
  transition: all 0.2s ease;
}

/* Hover en naranja JURIDICA */
.services-index a:hover {
  color: var(--juridica-orange);
  padding-left: 4px;
}

/* Línea animada debajo del enlace */
.services-index a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--juridica-orange);
  transition: width 0.2s ease-in-out;
}

.services-index a:hover::after {
  width: 100%;
}