﻿/* =========================
   Variables y Base Global
   ========================= */
:root {
  --color-navy-900: #122b27;
  --color-navy-700: #1f4a42;
  --color-slate-500: #5e6763;
  --color-slate-300: #c8d0cc;
  --color-gold-500: #b86a45;
  --color-gold-300: #d9a189;
  --color-surface: #f5f2ed;
  --color-surface-2: #ebe6dd;
  --color-white: #ffffff;
  --color-ink: #1e2725;
  --color-success: #2a7a59;
  --color-danger: #a44747;
  --shadow-soft: 0 16px 34px rgba(23, 39, 35, 0.11);
  --shadow-strong: 0 22px 56px rgba(16, 29, 26, 0.22);
  --radius-lg: 1.1rem;
  --radius-md: 0.8rem;
  --radius-sm: 0.45rem;
  --font-display: "Sora", sans-serif;
  --font-body: "Manrope", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: linear-gradient(168deg, #f8f5f0 0%, #f2ede4 55%, #ebe6dd 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 100%;
  opacity: 0.2;
  pointer-events: none;
}

body::before {
  width: 32rem;
  height: 32rem;
  top: -10rem;
  right: -8rem;
  background: radial-gradient(circle, rgba(184, 106, 69, 0.42), rgba(184, 106, 69, 0));
}

body::after {
  width: 30rem;
  height: 30rem;
  bottom: -14rem;
  left: -10rem;
  background: radial-gradient(circle, rgba(31, 74, 66, 0.34), rgba(31, 74, 66, 0));
}

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

ul {
  list-style: none;
}

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

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.eyebrow {
  margin-bottom: 0.55rem;
  color: var(--color-navy-700);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: 0.77rem;
  font-weight: 700;
}

.section-heading h2 {
  max-width: 42rem;
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 4vw, 3rem);
  line-height: 1.08;
  color: var(--color-navy-900);
}

.section-heading {
  margin-bottom: 2rem;
}

/* =========================
   Demo Banner y Header
   ========================= */
.demo-banner {
  background: var(--color-navy-900);
  color: #e9f4f1;
  text-align: center;
  padding: 0.45rem 1rem;
  font-size: 0.79rem;
  letter-spacing: 0.03em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 241, 235, 0.9);
  border-bottom: 1px solid rgba(31, 74, 66, 0.12);
  backdrop-filter: blur(8px);
  transition: background-color 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 26px rgba(20, 43, 39, 0.13);
  border-color: rgba(31, 74, 66, 0.2);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  color: var(--color-navy-900);
  font-size: 1rem;
}

.brand-mark {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--color-gold-300), var(--color-gold-500));
  color: var(--color-navy-900);
  font-weight: 800;
}

.brand-text {
  max-width: 11.5rem;
  font-size: 0.93rem;
  line-height: 1.2;
}

.nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(31, 74, 66, 0.23);
  border-radius: var(--radius-sm);
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.27rem;
  padding: 0.45rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 100%;
  height: 2px;
  background: var(--color-navy-900);
  border-radius: 4px;
}

.site-nav {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  left: 0;
  background: var(--color-white);
  border: 1px solid rgba(31, 74, 66, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 280ms ease, opacity 220ms ease;
}

.site-header.nav-open .site-nav {
  max-height: 31rem;
  opacity: 1;
}

.site-nav ul {
  padding: 1rem;
  display: grid;
  gap: 0.35rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.3rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--color-navy-900);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(31, 74, 66, 0.11);
}

.nav-cta {
  margin: 0 1rem 1rem;
  width: calc(100% - 2rem);
}

/* =========================
   Botones y Estados
   ========================= */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.76rem 1.3rem;
  font-size: 0.94rem;
  transition: transform 200ms ease, background-color 200ms ease, border-color 200ms ease,
    box-shadow 220ms ease, color 200ms ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(130deg, #ddb09b 0%, #b96843 100%);
  color: var(--color-navy-900);
  box-shadow: 0 11px 24px rgba(184, 106, 69, 0.34);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 14px 30px rgba(159, 87, 56, 0.45);
}

.btn-secondary {
  border-color: rgba(31, 74, 66, 0.32);
  color: var(--color-navy-900);
  background: rgba(255, 255, 255, 0.65);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(31, 74, 66, 0.09);
}

.btn-block {
  width: 100%;
}

input,
textarea,
button,
a {
  font: inherit;
}

input:focus,
textarea:focus,
button:focus,
a:focus {
  outline: 3px solid rgba(184, 106, 69, 0.35);
  outline-offset: 2px;
}

/* =========================
   Estilos Hero
   ========================= */
.hero {
  padding-top: 3.8rem;
}

.hero-grid {
  display: grid;
  gap: 1.8rem;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 7.8vw, 4rem);
  line-height: 0.97;
  color: var(--color-navy-900);
  max-width: 16ch;
  margin-bottom: 1rem;
}

.hero-subtitle {
  color: var(--color-slate-500);
  max-width: 58ch;
  margin-bottom: 1.3rem;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.trust-badges {
  display: grid;
  gap: 0.55rem;
}

.trust-badges li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--color-navy-700);
  font-size: 0.95rem;
}

.trust-badges li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.53rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-gold-500);
}

.hero-card {
  background: var(--color-white);
  border: 1px solid rgba(31, 74, 66, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

.hero-card img {
  width: 100%;
  min-height: 13rem;
  object-fit: cover;
}

.hero-card-content {
  padding: 1.25rem;
}

.hero-card-label {
  color: var(--color-navy-700);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.hero-card h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.05;
  color: var(--color-navy-900);
  margin-bottom: 0.65rem;
}

.hero-card p {
  color: var(--color-slate-500);
  margin-bottom: 0.75rem;
}

.hero-card-list {
  display: grid;
  gap: 0.45rem;
}

.hero-card-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--color-navy-700);
  font-size: 0.93rem;
}

.hero-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58rem;
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 50%;
  background: var(--color-gold-500);
}

/* =========================
   Estilos Confianza
   ========================= */
.trust {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.2));
}

.metrics-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.metric-card {
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid rgba(31, 74, 66, 0.1);
  padding: 1.1rem;
  box-shadow: var(--shadow-soft);
}

.metric-card h3 {
  font-family: var(--font-display);
  color: var(--color-navy-900);
  font-size: 2.1rem;
  margin-bottom: 0.2rem;
}

.metric-card p {
  color: var(--color-slate-500);
}

.logos-wrap {
  margin-bottom: 2rem;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #f9f6f1, #f1ebdf);
  border: 1px solid rgba(31, 74, 66, 0.12);
  padding: 1rem;
}

.logos-title {
  margin-bottom: 0.95rem;
  color: var(--color-navy-700);
  font-weight: 600;
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.logos-grid img {
  width: 100%;
  border-radius: 0.6rem;
  border: 1px solid rgba(31, 74, 66, 0.11);
  filter: saturate(0.2);
  transition: filter 230ms ease, transform 230ms ease;
}

.logos-grid img:hover {
  filter: saturate(0.95);
  transform: translateY(-2px);
}

.testimonials-grid {
  display: grid;
  gap: 1rem;
}

.testimonial-card {
  padding: 1.15rem;
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid rgba(31, 74, 66, 0.1);
  box-shadow: var(--shadow-soft);
}

.testimonial-avatar {
  width: 3.45rem;
  height: 3.45rem;
  border-radius: 50%;
  margin-bottom: 0.75rem;
  border: 2px solid rgba(194, 162, 98, 0.45);
}

.testimonial-card blockquote {
  color: var(--color-navy-900);
  font-size: 1.01rem;
  margin-bottom: 0.7rem;
}

.testimonial-name {
  color: var(--color-slate-500);
  font-weight: 600;
  font-size: 0.94rem;
}

/* =========================
   Estilos Servicios
   ========================= */
.services-grid {
  display: grid;
  gap: 1rem;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 74, 66, 0.1);
  padding: 1.2rem;
  box-shadow: var(--shadow-soft);
}

.service-card h3 {
  font-family: var(--font-display);
  color: var(--color-navy-900);
  font-size: 1.65rem;
  line-height: 1.08;
  margin-bottom: 0.55rem;
}

.service-card p {
  color: var(--color-slate-500);
  margin-bottom: 0.75rem;
}

.service-card ul {
  display: grid;
  gap: 0.45rem;
}

.service-card li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--color-navy-700);
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--color-gold-500);
}

/* =========================
   Estilos Diferenciación
   ========================= */
.differentiation {
  background: linear-gradient(180deg, rgba(234, 238, 233, 0.95), rgba(240, 234, 226, 0.45));
}

.differentiation-grid {
  display: grid;
  gap: 1.2rem;
}

.section-heading-left {
  margin-bottom: 1.3rem;
}

.reason-list {
  display: grid;
  gap: 0.8rem;
}

.reason-item {
  border-left: 3px solid var(--color-gold-500);
  padding-left: 0.9rem;
}

.reason-item h3 {
  color: var(--color-navy-900);
  margin-bottom: 0.2rem;
}

.reason-item p {
  color: var(--color-slate-500);
}

.case-card {
  background: var(--color-navy-900);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  color: #edf4f1;
  box-shadow: var(--shadow-strong);
}

.case-label {
  color: var(--color-gold-300);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.75rem;
  margin-bottom: 0.4rem;
}

.case-card h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.03;
  margin-bottom: 0.65rem;
}

.case-card > p {
  color: #d3e3de;
  margin-bottom: 0.8rem;
}

.case-list {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.case-list li {
  position: relative;
  padding-left: 1.05rem;
}

.case-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--color-gold-300);
}

.case-note {
  color: #b9cdc7;
  font-size: 0.85rem;
}

/* =========================
   Estilos CTA Final + Form
   ========================= */
.final-cta {
  background: linear-gradient(170deg, #122b27 0%, #1f4a42 100%);
  color: #eef6f3;
}

.cta-grid {
  display: grid;
  gap: 1.3rem;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.02;
  margin-bottom: 0.8rem;
  max-width: 14ch;
}

.cta-content p {
  color: #d3e2dd;
  margin-bottom: 0.95rem;
}

.urgency-list {
  display: grid;
  gap: 0.55rem;
}

.urgency-list li {
  position: relative;
  padding-left: 1.1rem;
  color: #e7f2ed;
}

.urgency-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.56rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--color-gold-300);
}

.contact-form {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.98);
  color: var(--color-ink);
  padding: 1.25rem;
  box-shadow: var(--shadow-strong);
}

.contact-form h3 {
  margin-bottom: 0.85rem;
  color: var(--color-navy-900);
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}

.form-row label {
  font-weight: 600;
  color: var(--color-navy-900);
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(94, 103, 99, 0.38);
  border-radius: 0.65rem;
  background: #fdfdfd;
  padding: 0.7rem 0.8rem;
  transition: border-color 180ms ease, box-shadow 200ms ease;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: rgba(184, 106, 69, 0.9);
  box-shadow: 0 0 0 4px rgba(184, 106, 69, 0.18);
  outline: none;
}

.form-message {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  min-height: 1.5rem;
}

.form-message.is-error {
  color: var(--color-danger);
}

.form-message.is-success {
  color: var(--color-success);
}

/* =========================
   Estilos Footer
   ========================= */
.site-footer {
  background: #0f231f;
  color: #d6e4df;
  text-align: center;
  padding: 1.2rem 0;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

/* =========================
   Animaciones de Aparición
   ========================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 520ms ease, transform 520ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Media Queries
   ========================= */
@media (min-width: 48rem) {
  .section {
    padding: 5.4rem 0;
  }

  .brand-text {
    max-width: none;
    font-size: 1rem;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-height: none;
    opacity: 1;
    border: none;
    box-shadow: none;
    background: transparent;
    overflow: visible;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0;
  }

  .site-nav a {
    padding: 0.45rem 0.65rem;
  }

  .nav-cta {
    margin: 0;
    width: auto;
  }

  .hero-grid,
  .cta-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 2rem;
  }

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

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

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

  .differentiation-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.8rem;
    align-items: start;
  }
}

@media (min-width: 70rem) {
  .hero-content h1 {
    font-size: clamp(3rem, 6vw, 4.6rem);
  }

  .hero-card-content {
    padding: 1.45rem;
  }

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

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

  .contact-form {
    padding: 1.45rem;
  }
}
