/* =========================================================
   Capstone — hoja de estilos compartida
   ========================================================= */

:root {
  --navy-900: #0a2240;
  --navy-800: #0d2b4e;
  --navy-700: #123a68;
  --navy-600: #1a4a82;
  --accent: #2f79c4;
  --accent-dark: #205a97;
  --bg: #f5f7fa;
  --bg-alt: #eef2f7;
  --white: #ffffff;
  --text: #1f2937;
  --text-muted: #5b6472;
  --border: #e1e6ed;
  --shadow: 0 10px 30px rgba(10, 34, 64, 0.08);
  --radius: 10px;
  --max-width: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy-900);
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  max-width: 680px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-header p {
  margin: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-navy {
  background: transparent;
  border-color: var(--navy-700);
  color: var(--navy-800);
}

.btn-outline-navy:hover {
  background: var(--navy-800);
  color: var(--white);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.logo:hover {
  color: var(--white);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--navy-600));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.main-nav ul {
  display: flex;
  gap: 8px;
  align-items: center;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: block;
}

.main-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.main-nav a.active {
  color: var(--white);
  background: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  padding: 96px 0;
}

.hero .container {
  max-width: 760px;
  text-align: center;
}

.hero .eyebrow {
  color: #9ec3ec;
}

.hero h1 {
  color: var(--white);
}

.hero p.lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-hero {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 10px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
}

.page-hero.page-hero-detail {
  padding: 40px 0 56px;
}

.page-hero.page-hero-detail .container {
  max-width: 760px;
  margin: 0 auto;
}

.page-hero-detail .hero-actions {
  margin-top: 22px;
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
}

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

.breadcrumb .current {
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumb .sep {
  color: rgba(255, 255, 255, 0.35);
}

/* ---------- Service detail columns ---------- */

.detail-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.detail-col {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow);
}

.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 0.95rem;
}

.checklist li:last-child {
  margin-bottom: 0;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.15;
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- FAQ ---------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.faq-item summary {
  font-weight: 700;
  color: var(--navy-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin: 14px 0 0;
  font-size: 0.92rem;
}

/* ---------- Related services ---------- */

.related-grid .card p {
  font-size: 0.9rem;
}

/* ---------- Cards / Grids ---------- */

.grid {
  display: grid;
  gap: 26px;
}

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

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.icon-badge svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Service blocks (Servicios page) ---------- */

.service-block {
  scroll-margin-top: 96px;
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child {
  border-bottom: none;
}

.service-block-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.service-block-header .icon-badge {
  margin-bottom: 0;
  flex-shrink: 0;
}

.service-block-header h2 {
  margin: 0;
}

.service-block-intro {
  max-width: 760px;
  margin: 0 0 28px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 32px;
}

.service-list li {
  position: relative;
  padding-left: 26px;
  color: var(--text);
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

.service-list li h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--navy-900);
}

.service-list li h4 a {
  color: inherit;
  text-decoration: none;
}

.service-list li h4 a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.service-list li p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Values grid ---------- */

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.value-card {
  text-align: center;
  padding: 26px 16px;
}

.value-card .icon-badge {
  margin: 0 auto 16px;
}

.value-card h3 {
  font-size: 1rem;
}

.value-card p {
  font-size: 0.88rem;
  margin: 0;
}

/* ---------- Highlights bar ---------- */

.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.highlight {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.highlight .icon-badge {
  margin-bottom: 0;
  flex-shrink: 0;
}

.highlight h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.highlight p {
  margin: 0;
  font-size: 0.92rem;
}

/* ---------- Mission / Vision ---------- */

.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.mv-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow);
}

/* ---------- Founder ---------- */

.founder-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow);
}

.founder-credentials {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 12px;
  margin-bottom: 20px;
}

.founder-bio {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding-top: 32px;
}

.founder-bio p:last-child {
  margin-bottom: 0;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  background: var(--navy-900);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 10px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 26px;
}

/* ---------- Why us list ---------- */

.reasons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.reason {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.reason .icon-badge {
  margin-bottom: 0;
}

.reason h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.reason p {
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- Contact page ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--navy-900);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 6px;
  background: #e6f4ea;
  color: #1e6b34;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-success.visible {
  display: block;
}

.contact-info-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  margin-bottom: 20px;
}

.contact-info-card h3 {
  color: var(--white);
  margin-bottom: 20px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item .icon-badge {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  margin-bottom: 0;
}

.contact-info-item h4 {
  margin: 0 0 2px;
  font-size: 0.9rem;
  color: var(--white);
}

.contact-info-item p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.social-links a svg {
  width: 18px;
  height: 18px;
}

.social-links a:hover {
  background: var(--accent);
  color: var(--white);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 24px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .logo {
  margin-bottom: 14px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  max-width: 320px;
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.site-footer ul li {
  margin-bottom: 10px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .mv-grid {
    grid-template-columns: 1fr;
  }

  .reasons {
    grid-template-columns: 1fr;
  }

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

  .highlights {
    grid-template-columns: 1fr;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .detail-columns {
    grid-template-columns: 1fr;
  }

  .page-hero.page-hero-detail .container {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--navy-900);
    display: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }

  .main-nav a {
    padding: 14px 10px;
  }

  .nav-toggle {
    display: flex;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 52px 0;
  }

  .hero {
    padding: 64px 0;
  }
}