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

:root {
  --navy: #1a2b4a;
  --navy-light: #253a5f;
  --accent: #e07b3a;
  --accent-dark: #c96a28;
  --gray-50: #f8f9fa;
  --gray-300: #dee2e6;
  --gray-600: #6c757d;
  --white: #ffffff;
  --text: #2c3e50;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-logo {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  text-decoration: none;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--white);
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 6rem 2rem 5rem;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  background: rgba(224,123,58,0.2);
  color: var(--accent);
  border: 1px solid rgba(224,123,58,0.4);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

/* ── BUTTON ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-primary svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

/* ── SECTIONS ── */
section {
  padding: 5rem 2rem;
}

.container {
  max-width: 1060px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray-600);
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ── SERVICES ── */
#servicios {
  background: var(--gray-50);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 0.75rem;
  padding: 2rem 1.75rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.service-card:hover {
  box-shadow: 0 4px 20px rgba(26,43,74,0.1);
  border-color: var(--accent);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(224,123,58,0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--accent);
  fill: none;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ── WHY US ── */
#nosotros {
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.why-item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.why-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.why-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.why-item p {
  font-size: 0.88rem;
  color: var(--gray-600);
}

/* ── HOW IT WORKS ── */
#como-funciona {
  background: var(--gray-50);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.step h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.88rem;
  color: var(--gray-600);
}

/* ── CONTACT ── */
#contacto {
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

#contacto .section-title {
  color: var(--white);
}

#contacto .section-subtitle {
  color: rgba(255,255,255,0.7);
  margin-left: auto;
  margin-right: auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
}

.contact-info span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-info svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  fill: none;
}

/* ── FOOTER ── */
footer {
  background: #111d30;
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.82rem;
}

/* ── WHATSAPP FLOTANTE ── */
.wa-float {
  position: fixed;
  bottom: 3.5rem;
  right: 3.5rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}

.wa-float svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 4rem 1.5rem 3.5rem;
  }

  section {
    padding: 3.5rem 1.5rem;
  }
}
