:root {
  --navy: #1c2541;
  --navy-light: #3a4368;
  --muted: #6b7184;
  --sage: #7c9885;
  --sage-soft: #e7eee8;
  --cream: #f7f6f2;
  --line: #e9e8e3;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--navy); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.badge-demo {
  position: fixed; bottom: 18px; right: 18px; background: var(--navy); color: #fff;
  font-size: 12px; padding: 7px 14px; border-radius: 30px; z-index: 50; opacity: 0.9;
}

.bg-decor { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-blob { position: absolute; border-radius: 50%; filter: blur(80px); }
.bg-blob.b1 { width: 460px; height: 460px; background: var(--sage); opacity: .18; top: -150px; right: -130px; animation: floatBlob 24s ease-in-out infinite; }
.bg-blob.b2 { width: 360px; height: 360px; background: var(--navy); opacity: .07; top: 45%; left: -150px; animation: floatBlob 28s ease-in-out infinite -7s; }
.bg-blob.b3 { width: 300px; height: 300px; background: var(--sage); opacity: .14; bottom: -110px; right: 22%; animation: floatBlob 32s ease-in-out infinite -14s; }
@keyframes floatBlob {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(28px,-34px) scale(1.07); }
  66% { transform: translate(-24px,22px) scale(.95); }
}
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.logo { font-weight: 800; font-size: 19px; letter-spacing: -0.01em; text-decoration: none; }
.logo span { color: var(--sage); }
nav ul { list-style: none; display: flex; gap: 32px; }
nav a { text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--muted); }
nav a:hover { color: var(--navy); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; padding: 13px 22px;
  border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14.5px; transition: opacity .2s;
}
.btn:hover { opacity: .85; }
.arrow { font-size: 15px; }

.hero { padding: 80px 0 70px; }
.hero-inner { display: flex; align-items: center; gap: 60px; flex-wrap: wrap; }
.hero-text { flex: 1 1 480px; }
.eyebrow { color: var(--sage); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.hero-text h1 { font-size: 48px; line-height: 1.15; margin: 18px 0 22px; color: var(--navy); }
.hero-text p { color: var(--muted); font-size: 17.5px; max-width: 460px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-outline { background: transparent; border: 1px solid #d6d3ca; color: var(--navy); }

.hero-image { flex: 1 1 420px; border-radius: 20px; overflow: hidden; aspect-ratio: 4/3; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

.modalidades { background: var(--cream); padding: 60px 0; }
.modal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.modal-card { background: #fff; border-radius: 14px; padding: 26px; border: 1px solid var(--line); }
.modal-card .icon { font-size: 22px; margin-bottom: 10px; }
.modal-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.modal-card p { color: var(--muted); font-size: 14px; }

.enfoque-inner { display: flex; gap: 60px; flex-wrap: wrap; align-items: flex-start; }
.enfoque-text { flex: 1 1 360px; }
.enfoque-text h2 { font-size: 32px; margin: 12px 0 16px; }
.enfoque-text p { color: var(--muted); font-size: 16px; max-width: 420px; }
.enfoque-pillars { flex: 1 1 420px; display: flex; flex-direction: column; gap: 24px; }
.pillar { display: flex; gap: 18px; align-items: flex-start; }
.pillar-num { font-weight: 800; color: var(--sage); font-size: 14px; padding-top: 3px; }
.pillar h3 { font-size: 16.5px; margin-bottom: 4px; }
.pillar p { color: var(--muted); font-size: 14px; }

.ubicacion-inner { display: flex; gap: 56px; align-items: center; flex-wrap: wrap; }
.map-placeholder { flex: 1 1 380px; min-height: 280px; border-radius: 18px; background: var(--sage-soft); display: flex; align-items: center; justify-content: center; }
.map-pin { font-size: 46px; }
.ubicacion-text { flex: 1 1 380px; }
.ubicacion-text h2 { font-size: 30px; margin: 10px 0 14px; }
.ubicacion-text .addr { font-weight: 700; margin-bottom: 10px; }
.ubicacion-text p { color: var(--muted); font-size: 15px; margin-bottom: 22px; max-width: 380px; }

.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--cream); border-radius: 14px; padding: 6px 24px; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 15.5px; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--sage); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); font-size: 14.5px; padding-bottom: 20px; }

section { padding: 100px 0; }
.section-head { max-width: 600px; margin-bottom: 56px; }
.section-head h2 { font-size: 34px; margin-top: 10px; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 16px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.team-card { display: block; text-decoration: none; transition: opacity .2s; }
.team-card:hover { opacity: .85; }
.team-photo { border-radius: 16px; overflow: hidden; aspect-ratio: 1/1; margin-bottom: 16px; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 17px; margin-bottom: 3px; }
.team-card .role { color: var(--sage); font-weight: 600; font-size: 13.5px; margin-bottom: 8px; }
.team-card p { color: var(--muted); font-size: 14px; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.service-cell { display: block; background: #fff; padding: 32px 26px; text-decoration: none; transition: background .2s; }
.service-cell:hover { background: var(--cream); }
.service-cell h3 { font-size: 17px; margin-bottom: 8px; }
.service-cell p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.service-cell .link { font-weight: 600; font-size: 13.5px; color: var(--navy); text-decoration: none; }

.resources { background: var(--cream); }
.resources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.resource-card { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.resource-tag { background: var(--sage-soft); color: var(--sage); font-weight: 700; font-size: 12px; padding: 18px 22px 0; text-transform: uppercase; letter-spacing: .04em; }
.resource-card .body { padding: 10px 22px 22px; }
.resource-card h3 { font-size: 16px; margin-bottom: 8px; }
.resource-card p { color: var(--muted); font-size: 13.5px; }

.testimonial { text-align: center; }
.testimonial-inner { max-width: 720px; margin: 0 auto; }
.testimonial img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto 20px; }
.testimonial blockquote { font-size: 26px; line-height: 1.45; color: var(--navy); margin-bottom: 16px; }
.testimonial cite { color: var(--muted); font-size: 14px; }

.cta-band { background: var(--navy); color: #fff; padding: 90px 0; text-align: center; }
.cta-band h2 { font-size: 36px; margin-bottom: 14px; }
.cta-band p { color: #c4c8d6; margin-bottom: 30px; font-size: 16.5px; }
.cta-band .btn { background: #fff; color: var(--navy); }

footer { padding: 50px 0; border-top: 1px solid var(--line); }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-grid .col { font-size: 14px; color: var(--muted); }
.footer-grid .col strong { display: block; color: var(--navy); margin-bottom: 10px; font-size: 14.5px; }

/* Paginas de detalle (servicio / equipo) */
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; color: var(--muted); text-decoration: none; margin-bottom: 22px; }
.back-link:hover { color: var(--navy); }
.detail-hero { padding: 50px 0 60px; }
.detail-hero-inner { display: flex; gap: 50px; align-items: center; flex-wrap: wrap; }
.detail-photo { flex: 1 1 300px; border-radius: 18px; overflow: hidden; aspect-ratio: 1/1; }
.detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.detail-text { flex: 2 1 420px; }
.detail-text h1 { font-size: 38px; margin: 14px 0 14px; color: var(--navy); }
.detail-text .role { color: var(--sage); font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.detail-text p { color: var(--muted); font-size: 16.5px; max-width: 560px; }

.tag-list { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.tag { background: var(--sage-soft); color: var(--sage); font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 100px; }

.include-list { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.include-item { display: flex; gap: 12px; align-items: flex-start; background: var(--cream); border-radius: 14px; padding: 16px 20px; }
.include-item .check { color: var(--sage); font-weight: 800; }
.include-item p { font-size: 15px; }

@media (max-width: 760px) {
  nav ul { display: none; }
  .hero-text h1 { font-size: 32px; }
  .modal-grid, .team-grid, .services-grid, .resources-grid { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .detail-text h1 { font-size: 28px; }
}
