/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #2563eb;
  --blue-dark:  #1d4ed8;
  --blue-light: #dbeafe;
  --navy:       #0d1b2a;
  --navy-mid:   #112233;
  --gray-50:    #eff6ff;
  --gray-100:   #dbeafe;
  --gray-300:   #93c5fd;
  --gray-500:   #3b6fa8;
  --gray-700:   #1e3a5f;
  --gray-900:   #0c1a35;
  --white:      #f8fbff;
  --radius:     12px;
  --shadow:     0 4px 24px rgba(37,99,235,.10);
  --transition: .2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--gray-700);
  background: #eff6ff;
  line-height: 1.6;
}

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

/* ===== CONTAINER ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,.5);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,.1); }

.btn-full { width: 100%; text-align: center; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(59,130,246,.2);
  box-shadow: 0 2px 16px rgba(0,0,0,.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  color: var(--white);
}
.logo-icon { font-size: 1.5rem; color: var(--blue); }
.logo-text strong { color: var(--blue); }
.logo-img { height: 120px; width: auto; object-fit: contain; }

nav { display: flex; align-items: center; gap: 28px; }
nav a { font-size: .95rem; color: rgba(255,255,255,.7); font-weight: 500; transition: color var(--transition); }
nav a:hover { color: var(--blue); }

.btn-nav {
  background: var(--blue);
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 8px;
  font-weight: 600;
  transition: background var(--transition) !important;
}
.btn-nav:hover { background: var(--blue-dark) !important; }

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  border-radius: 6px;
  transition: background var(--transition);
}
.hamburger:hover { background: rgba(255,255,255,.1); }
.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

/* Animación al abrir */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil desplegable */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--navy);
  border-top: 1px solid rgba(59,130,246,.2);
  padding: 12px 24px 20px;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  font-weight: 500;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: color var(--transition);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--white); }
.mobile-menu .btn-nav {
  margin-top: 8px;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  border-bottom: none !important;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: url('fondo.jpeg') center center / cover no-repeat;
  color: var(--white);
  padding: 100px 24px 0;
  text-align: center;
}

/* Overlay para legibilidad del texto */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 18, 40, 0.52) 0%,
    rgba(10, 22, 48, 0.48) 60%,
    rgba(8, 18, 40, 0.70) 100%
  );
  z-index: 0;
}

.hero-content,
.hero-badges {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 760px;
  margin: 0 auto;
}

.hero-text { text-align: center; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
}

.hero p {
  font-size: 1.1rem;
  opacity: .92;
  margin-bottom: 36px;
  line-height: 1.75;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 60px; }

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  background: rgba(0,0,0,.15);
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.badge {
  padding: 16px 32px;
  font-size: .95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  border-right: 1px solid rgba(255,255,255,.15);
}
.badge:last-child { border-right: none; }
.badge span { color: #7dd3fc; font-size: 1.1rem; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; background: #eff6ff; }
.section-alt { background: #dbeafe; }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--gray-500);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* ===== SERVICE CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(37,99,235,.15); }

.card-icon { font-size: 2.2rem; margin-bottom: 16px; }
.card h3 { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
.card p { font-size: .95rem; color: var(--gray-500); line-height: 1.65; }

/* ===== STEPS ===== */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.step {
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  box-shadow: var(--shadow);
}

.step-num {
  width: 48px;
  height: 48px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.step h3 { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.step p  { font-size: .88rem; color: var(--gray-500); line-height: 1.6; }

.step-arrow {
  font-size: 1.8rem;
  color: var(--blue);
  align-self: center;
  padding: 0 4px;
  font-weight: 300;
}

/* ===== TIPS ===== */
.tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.tip {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 12px rgba(37,99,235,.07);
}

.tip-icon { font-size: 1.8rem; flex-shrink: 0; }
.tip strong { font-size: .98rem; color: var(--gray-900); display: block; margin-bottom: 4px; }
.tip p { font-size: .88rem; color: var(--gray-500); line-height: 1.6; }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 24px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.contact-item strong { display: block; color: var(--gray-900); font-size: .95rem; margin-bottom: 2px; }
.contact-item p { color: var(--gray-500); font-size: .93rem; }

/* FORM */
.contact-form {
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .88rem; font-weight: 600; color: var(--gray-700); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--gray-700);
  background: var(--gray-50);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(14,165,233,.15);
  background: var(--white);
}

.form-group textarea { resize: vertical; }

/* ===== FOOTER ===== */
.footer {
  background: #0c1a35;
  color: #93c5fd;
  padding: 40px 24px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer .logo { color: var(--white); }
.footer .logo-text strong { color: var(--blue); }
.footer .logo-img { height: 120px; }
.footer p { font-size: .9rem; }
.footer-sub { color: var(--gray-500); font-size: .82rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav { display: none; }
  .hamburger { display: flex; }

  .hero-badges { flex-direction: column; border-radius: 0; }
  .badge { border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); justify-content: center; }
  .badge:last-child { border-bottom: none; }

  .step-arrow { display: none; }
  .steps { flex-direction: column; align-items: center; }
  .step { max-width: 100%; width: 100%; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
}
