/* Traducciones Legales Ecuador — hoja de estilos (HTML + CSS puro) */
:root {
  --navy: #10233f;
  --navy-soft: #1b3560;
  --red: #c8102e;
  --paper: #f6f3ed;
  --bg: #ffffff;
  --text: #1c2430;
  --muted: #5c6779;
  --border: #e3ded4;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, blockquote {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.15;
  margin: 0;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }

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

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

ul { margin: 0; padding: 0; list-style: none; }

.shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  font-family: Inter, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.muted { color: var(--muted); }
.lead { font-size: 1.08rem; color: var(--muted); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.7rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--navy); }
.btn-outline { border: 1px solid rgba(16, 35, 63, 0.2); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--paper); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 80px;
}

.logo img{ height: 90px; width: auto; filter: brightness(0) invert(1); }

.nav-desktop { display: none; align-items: center; gap: 1.75rem; }
.nav-desktop a { color: var(--muted); }
.nav-desktop a:hover, .nav-desktop a.active { color: var(--bg); }
.nav-desktop .btn { color: var(--white); background: var(--navy); }
.nav-desktop .btn:hover { background: var(--red); }

.nav-toggle {
  background: none;
  border: 0;
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.nav-mobile { display: none; border-top: 1px solid var(--border); background: var(--white); }
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 0.9rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: 0; }

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ---------- Secciones ---------- */
.section { padding: 4.5rem 0; }
.bg-paper { background: var(--paper); }
.bg-navy { background: var(--navy); color: rgba(255, 255, 255, 0.85); }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy blockquote { color: var(--white); }
.border-top { border-top: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }
.narrow { max-width: 760px; }

.hero {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
}
.hero-tag {
  display: inline-block;
  border-left: 2px solid var(--red);
  padding-left: 0.75rem;
  color: var(--red);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.2rem; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-top: 2.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.hero-badges span::before { content: "✓"; color: var(--red); margin-right: 0.4rem; }
.hero-media { position: relative; }
.hero-media img { box-shadow: 0 25px 50px -12px rgba(16, 35, 63, 0.35); }
.hero-quote {
  margin-top: 1.5rem;
  background: var(--white);
  border-left: 2px solid var(--red);
  padding: 1.5rem;
  box-shadow: 0 12px 30px -12px rgba(16, 35, 63, 0.25);
}
.hero-quote p:first-child {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  color: var(--navy);
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: 1fr 1fr; padding: 5.5rem 0; }
  .hero-quote { position: absolute; bottom: -2.5rem; left: -2.5rem; max-width: 20rem; margin-top: 0; }
}

/* ---------- Grillas de tarjetas ---------- */
.grid-cards {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 3rem;
}
.grid-cards .card { background: var(--bg); padding: 2rem; }
.card h2, .card h3 { margin-top: 1.25rem; }
.card p { margin-top: 0.75rem; font-size: 0.92rem; color: var(--muted); }
.card ul { margin-top: 1.2rem; display: grid; gap: 0.7rem; }
.card li { position: relative; padding-left: 1rem; font-size: 0.92rem; color: var(--muted); }
.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--red);
}
.icon { color: var(--red); font-size: 1.35rem; line-height: 1; }

@media (min-width: 768px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-cards.cols-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Split (tiempos de entrega) ---------- */
.split { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1.1fr; } }

.rows { border-top: 1px solid rgba(255, 255, 255, 0.15); border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.rows .row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.92rem;
}
.rows .row:last-child { border-bottom: 0; }
.rows .row strong { font-weight: 600; color: var(--white); }
@media (min-width: 768px) {
  .rows .row { flex-direction: row; justify-content: space-between; gap: 2rem; }
}

/* ---------- Pasos ---------- */
.steps { display: grid; gap: 2.5rem; margin-top: 3rem; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step-number {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.4rem;
  color: rgba(200, 16, 46, 0.28);
}

/* ---------- CTA ---------- */
.cta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .cta { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Formulario ---------- */
.form-grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 640px) { .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.field { display: block; }
.field > span { display: block; color: var(--muted); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.55rem 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  resize: none;
}
.field input:focus, .field textarea:focus { border-color: var(--red); }
.check { display: flex; align-items: center; gap: 0.7rem; font-size: 0.92rem; color: var(--muted); }
.check input { accent-color: var(--red); width: 1rem; height: 1rem; }
.form-note { font-size: 0.78rem; color: var(--muted); }
.form-success {
  margin-top: 2rem;
  border-left: 2px solid var(--red);
  background: var(--paper);
  padding: 1.5rem;
  font-size: 0.95rem;
  color: var(--navy);
}
.hidden { display: none; }

.contact-grid { display: grid; gap: 4rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.1fr 1fr; } }
.contact-list { margin-top: 2rem; display: grid; gap: 1.1rem; font-size: 0.95rem; color: var(--muted); }
.urgent {
  margin-top: 2rem;
  border: 1px solid rgba(200, 16, 46, 0.25);
  background: rgba(200, 16, 46, 0.05);
  padding: 1.35rem;
  border-radius: 6px;
}
.process { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--border); display: grid; gap: 2rem; }

blockquote {
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-style: italic;
  line-height: 1.35;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.75); }
.footer-grid { display: grid; gap: 3rem; padding: 4rem 0; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer img { height: 90px; width: auto; filter: brightness(0) invert(1); }
.site-footer h2 { font-family: Inter, sans-serif; color: rgba(255, 255, 255, 0.5); }
.site-footer ul { margin-top: 1.2rem; display: grid; gap: 0.8rem; font-size: 0.92rem; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer-bottom div {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.4rem 0;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
@media (min-width: 768px) {
  .footer-bottom div { flex-direction: row; justify-content: space-between; }
}

/* ---------- WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }


/* ---------- Carrusel ---------- */
.carousel { position: relative; overflow: hidden; background: var(--navy); }
.carousel-track { display: flex; transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.carousel-slide { position: relative; flex: 0 0 100%; height: clamp(340px, 52vw, 560px); }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 35, 63, 0.9) 0%, rgba(16, 35, 63, 0.65) 45%, rgba(16, 35, 63, 0.15) 100%);
}
.carousel-caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}
.carousel-caption .shell { max-width: 1180px; }
.carousel-caption .inner { max-width: 34rem; color: var(--white); }
.carousel-caption h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 3rem); }
.carousel-caption p { margin-top: 1rem; color: rgba(255, 255, 255, 0.82); font-size: 1rem; }
.carousel-caption .eyebrow { color: #ff8095; display: inline-block; border-left: 2px solid var(--red); padding-left: 0.75rem; }
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(16, 35, 63, 0.35);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}
.carousel-arrow:hover { background: var(--red); border-color: var(--red); }
.carousel-arrow.prev { left: 1rem; }
.carousel-arrow.next { right: 1rem; }
.carousel-dots { position: absolute; bottom: 1.4rem; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 0.6rem; }
.carousel-dots button {
  width: 30px;
  height: 3px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background-color 0.2s;
}
.carousel-dots button.active { background: var(--red); }
/* ---------- valores ---------- */

.values-list {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.value-item {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.value-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.value-item strong {
  display: block;
  color: var(--navy);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.value-item p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}


/* =========================================
   RESPALDO PROFESIONAL
   ========================================= */

.section-heading {
  max-width: 780px;
  margin-bottom: 3rem;
}

.professional-network {
  margin-top: 0;
}

.professional-network .card {
  height: 100%;
}

.professional-network .card h3 {
  margin-top: 0.5rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.professional-network .card p {
  margin-top: 1rem;
}


/* =========================================
   ACREDITACIÓN FUNCIÓN JUDICIAL
   ========================================= */

.professional-accreditation {
  overflow: hidden;
}

.professional-accreditation .split {
  align-items: center;
}

.professional-accreditation h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
}


/* Tarjeta de certificación */

.accreditation-card {
  background: #fff;
  color: var(--navy);
  border-radius: 4px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.accreditation-header {
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.accreditation-header .eyebrow {
  color: var(--red);
}

.accreditation-header h3 {
  margin-top: 0.5rem;
  font-size: 1.35rem;
  line-height: 1.3;
}

.accreditation-data {
  margin-top: 1rem;
}

.accreditation-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  font-size: 0.9rem;
}

.accreditation-row span {
  color: var(--muted);
}

.accreditation-row strong {
  text-align: right;
}

.accreditation-footer {
  display: flex;
  flex-direction: column;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 2px solid var(--red);
}

.accreditation-footer strong {
  font-size: 0.95rem;
}

.accreditation-footer span {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}


/* =========================================
   POR QUÉ CONFIAR EN NOSOTROS
   ========================================= */

.trust-grid {
  margin-top: 0;
}

.trust-card {
  height: 100%;
}

.trust-card h3 {
  margin-top: 0.5rem;
  font-size: 1.15rem;
}

.trust-highlight {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--navy);
}

.trust-card p:not(.trust-highlight) {
  margin-top: 0.5rem;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 768px) {

  .accreditation-card {
    margin-top: 2rem;
    padding: 1.4rem;
  }

  .accreditation-row {
    flex-direction: column;
    gap: 0.25rem;
  }

  .accreditation-row strong {
    text-align: left;
  }

  .professional-accreditation h2 {
    font-size: 2rem;
  }

}

