/* ======================================================
   VARIABLES
====================================================== */
:root {
  --primary: #0b3c5d;
  --primary-dark: #082c44;
  --bg: #f6f8fb;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
}

/* ======================================================
   RESET & BASE
====================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ======================================================
   LAYOUT
====================================================== */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 1.25rem;
}

/* ======================================================
   HEADER
====================================================== */
.header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header-content {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav a {
  margin-left: 1.25rem;
  font-size: 0.95rem;
}

/* ======================================================
   HERO
====================================================== */
.hero {
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 4.5rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-content {
  max-width: 620px;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1rem;
  color: #e5e7eb;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-aside {
  display: flex;
  justify-content: center;
}

.hero-meta {
  border-left: 2px solid rgba(255, 255, 255, 0.25);
  padding-left: 2rem;
  font-size: 0.95rem;
  color: #e5e7eb;
}

/* ======================================================
   BUTTONS
====================================================== */
.btn {
  padding: 0.75rem 1.6rem;
  border-radius: 6px;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn.primary {
  background: #fff;
  color: var(--primary);
}

.btn.primary:hover {
  background: #f0f4f8;
}

.btn.secondary {
  border: 1px solid #fff;
  color: #fff;
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn.outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn.outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ======================================================
   TRUST
====================================================== */
.trust {
  background: #fff;
  padding: 3rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

/* ======================================================
   SERVICES (CARDS)
====================================================== */
.services {
  padding: 4rem 0;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.25rem;
  margin-bottom: 2.5rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.service-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
}

.service-card ul {
  margin: 1.2rem 0;
  padding-left: 1.2rem;
}

.service-card li {
  margin-bottom: 0.5rem;
}

.service-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

/* ======================================================
   SERVICES DETAIL
====================================================== */
.service-detail {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}

.service-detail.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.service-detail.reverse .service-text {
  order: 2;
}

.service-text p {
  max-width: 520px;
}

.service-visual {
  display: flex;
  justify-content: center;
}

.icon-box {
  width: 140px;
  height: 140px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #fff;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* ======================================================
   PQRS BLOCK
====================================================== */
.pqrs-block {
  background: var(--primary);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.pqrs-block p {
  max-width: 650px;
  margin: 1rem auto 2rem;
}

/* ======================================================
   FOOTER
====================================================== */
.footer {
  background: #111;
  color: #ddd;
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer small {
  display: block;
  text-align: center;
  margin-top: 2rem;
  color: #999;
}

/* ======================================================
   RESPONSIVE
====================================================== */
/* ================= HERO TABLET & MOBILE FIX ================= */
@media (max-width: 900px) {
  .hero {
    padding: 3.5rem 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* 🔥 CLAVE: limitar el ancho visual del hero */
  .hero::before {
    content: "";
    display: block;
  }

  .hero .container {
    max-width: 100%;
  }

  .hero-content {
    max-width: 100%;
  }
}

/* ================= HERO MOBILE CENTERING ================= */
@media (max-width: 768px) {
  .hero {
    text-align: left;
  }

  .hero-grid {
    align-items: flex-start;
  }
}

