/* Equipo Quirón · Gestión en Salud · V2
   Logo y firma de marca conservados sin modificaciones. */
:root {
  --ink: #071625;
  --ink-soft: #31495c;
  --paper: #f7fafb;
  --soft: #f1f6f7;
  --white: #ffffff;
  --line: #d6e1e7;
  --line-strong: #bfcfd8;
  --accent: #087a7d;
  --accent-deep: #075d61;
  --accent-2: #79c8b9;
  --dark: #06131f;
  --dark-2: #0b2233;
  --radius: 24px;
  --shadow: 0 18px 55px rgba(7, 22, 37, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
svg { max-width: 100%; display: block; }
button { font: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 108px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--dark); color: var(--white); }

.skip-link {
  position: fixed; left: 14px; top: -60px; z-index: 1000;
  background: var(--white); color: var(--ink); padding: 10px 14px; border-radius: 10px;
  transition: top .2s ease;
}
.skip-link:focus { top: 14px; }

.dev-badge {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  background: rgba(6,19,31,.94); color: white; border: 1px solid rgba(255,255,255,.14);
  padding: 8px 12px; border-radius: 999px; font-size: .82rem; backdrop-filter: blur(10px);
}

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.95); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(7,22,37,.08);
}
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 42px; height: 42px; color: var(--accent); }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-family: "Manrope", sans-serif; font-size: 1.05rem; }
.brand-copy small { margin-top: 5px; color: #526b7d; font-size: .78rem; letter-spacing: .04em; }

.main-nav { display: flex; align-items: center; gap: 22px; font-size: .93rem; font-weight: 700; }
.main-nav a { color: #263f53; }
.main-nav a:hover { color: var(--accent); }
.nav-cta { padding: 11px 17px; background: var(--dark); color: white !important; border-radius: 999px; }
.menu-toggle { display: none; background: transparent; border: 0; padding: 8px; }
.menu-toggle span { width: 25px; height: 2px; background: var(--ink); display: block; margin: 5px 0; }

.hero {
  background:
    radial-gradient(circle at 82% 10%, rgba(121,200,185,.26), transparent 28%),
    linear-gradient(180deg, #fbfdfd 0%, #eef5f6 100%);
  padding: 100px 0 90px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.16fr .84fr; gap: 72px; align-items: center; }
.eyebrow {
  margin: 0 0 18px; color: var(--accent-deep); font-weight: 800;
  letter-spacing: .14em; font-size: .77rem;
}
.hero h1, .section-heading h2, .difference h2, .about-copy h2, .cta-box h2 {
  font-family: "Manrope", sans-serif; letter-spacing: -.046em; line-height: 1.04; margin: 0;
}
.hero h1 { font-size: clamp(3rem, 5.6vw, 5.55rem); max-width: 900px; }
.hero h1 span { color: var(--accent); }
.hero-lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 720px; margin: 28px 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 0 22px; border-radius: 14px; font-weight: 800; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary { background: var(--dark); color: white; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { border-color: var(--line-strong); background: rgba(255,255,255,.72); color: var(--ink); }
.btn-ghost:hover { background: white; }
.btn-light { background: white; color: var(--dark); border: 0; }
.hero-proof { display: flex; gap: 14px 22px; flex-wrap: wrap; margin-top: 32px; color: #405a6d; font-size: .91rem; font-weight: 600; }
.hero-proof span::before { content: "✓"; color: var(--accent); font-weight: 900; margin-right: 7px; }

.hero-panel {
  background: linear-gradient(155deg, var(--dark) 0%, var(--dark-2) 100%);
  color: white; border-radius: 30px; padding: 28px; box-shadow: 0 26px 70px rgba(7,19,31,.24);
}
.panel-top { display: flex; justify-content: space-between; align-items: center; color: #c3d0d8; font-size: .84rem; }
.status-dot { display: inline-block; width: 9px; height: 9px; background: var(--accent-2); border-radius: 50%; margin-right: 7px; box-shadow: 0 0 0 5px rgba(121,200,185,.12); }
.panel-tag { font-weight: 800; letter-spacing: .14em; }
.metric { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.11); border-radius: 20px; padding: 20px; }
.metric-main { margin-top: 22px; padding: 26px; }
.metric small { color: #a7b9c5; text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; }
.metric strong { display: block; font-family: "Manrope", sans-serif; font-size: 1.3rem; line-height: 1.2; margin: 8px 0; }
.metric-main strong { font-size: 2.08rem; }
.metric p { color: #c0ced7; margin-bottom: 0; }
.signal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.signal { border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 15px; background: rgba(255,255,255,.045); }
.signal span { color: var(--accent-2); font-weight: 800; font-size: .72rem; }
.signal strong { display: block; margin: 4px 0 1px; font-family: "Manrope", sans-serif; }
.signal small { color: #a9bbc7; line-height: 1.3; }
.flow { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 20px; color: #bdcbd4; font-size: .78rem; }
.flow b { color: var(--accent-2); }

.trust-strip { border-block: 1px solid var(--line); background: white; }
.trust-grid { min-height: 98px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.trust-grid p { margin: 0; font-weight: 800; color: #1e394d; }
.trust-items { display: flex; gap: 20px; color: #4c6476; flex-wrap: wrap; font-weight: 600; }

.section-heading { max-width: 810px; margin-bottom: 48px; }
.section-heading h2, .difference h2, .about-copy h2, .cta-box h2 { font-size: clamp(2.3rem, 4.5vw, 4.2rem); }
.section-heading > p:last-child, .difference > p, .about-copy p { color: #40596c; font-size: 1.05rem; }
.section-dark .section-heading > p:last-child { color: #c1ced7; }

.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.problem-card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 27px;
  min-height: 270px; box-shadow: 0 8px 28px rgba(7,22,37,.035);
}
.problem-icon {
  display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center;
  border-radius: 12px; background: #e3f2f0; color: var(--accent-deep); font-weight: 900; font-size: .78rem;
}
.problem-card h3 { font-family: "Manrope", sans-serif; font-size: 1.28rem; margin: 24px 0 10px; }
.problem-card p { margin: 0; color: #425b6d; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  position: relative; min-height: 310px; padding: 28px; border: 1px solid var(--line);
  border-radius: var(--radius); background: white;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #aac0cb; }
.service-no { font-weight: 900; color: var(--accent); }
.service-card h3 { font-family: "Manrope", sans-serif; font-size: 1.36rem; margin: 28px 0 12px; }
.service-card p { color: #40596b; margin-bottom: 28px; }
.service-card a { font-weight: 800; color: var(--accent-deep); }

.engagement-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.engagement {
  background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
}
.engagement.featured { background: var(--dark); color: white; border-color: var(--dark); box-shadow: var(--shadow); }
.engagement-tag { display: inline-block; color: var(--accent-deep); font-weight: 900; font-size: .72rem; letter-spacing: .13em; }
.engagement.featured .engagement-tag { color: var(--accent-2); }
.engagement h3 { font-family: "Manrope", sans-serif; font-size: 1.48rem; margin: 22px 0 12px; }
.engagement p { color: #40596b; }
.engagement.featured p, .engagement.featured li { color: #c4d0d8; }
.engagement ul { list-style: none; margin: 22px 0 0; padding: 0; }
.engagement li { position: relative; padding: 10px 0 10px 24px; border-top: 1px solid var(--line); color: #40596b; }
.engagement.featured li { border-color: rgba(255,255,255,.12); }
.engagement li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }
.engagement.featured li::before { color: var(--accent-2); }

.method-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 60px 1fr; gap: 18px; padding: 23px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.steps li > span { color: var(--accent-2); font-weight: 900; }
.steps h3 { margin: 0 0 7px; font-family: "Manrope", sans-serif; font-size: 1.25rem; }
.steps p { margin: 0; color: #c2cfd7; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-split { align-items: start; }
.about-lead { font-size: 1.2rem !important; color: #263f53 !important; font-weight: 600; }
.about-copy p { max-width: 650px; }

.expertise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.expertise-grid article {
  border: 1px solid var(--line); border-radius: 20px; padding: 23px; background: var(--paper);
}
.expertise-grid span { color: var(--accent-deep); font-weight: 900; font-size: .7rem; letter-spacing: .14em; }
.expertise-grid strong { display: block; font-family: "Manrope", sans-serif; font-size: 1.08rem; margin: 10px 0 7px; }
.expertise-grid p { margin: 0; color: #445d6f; font-size: .94rem; }

.principle-section { padding-top: 20px; }
.quote-card { padding: 42px; border-radius: 30px; background: #eaf4f4; border: 1px solid #d3e5e4; }
.quote-mark { font-family: Georgia, serif; font-size: 5rem; line-height: .7; color: var(--accent); margin: 0 0 16px; }
blockquote { margin: 0; font-family: "Manrope", sans-serif; font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.23; letter-spacing: -.035em; }
.quote-foot { color: #40596b; margin: 24px 0 0; }
.check-list { list-style: none; padding: 0; margin: 28px 0 0; }
.check-list li { padding: 12px 0 12px 30px; position: relative; border-bottom: 1px solid var(--line); color: #263f53; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }

.cta-section { background: var(--dark); color: white; padding: 92px 0; }
.cta-box { display: grid; grid-template-columns: 1fr auto; gap: 45px; align-items: end; }
.cta-box p { color: #c2cfd8; max-width: 800px; }
.contact-note {
  margin-top: 26px; padding: 18px 20px; border-radius: 16px; background: rgba(255,255,255,.08);
  color: #e0e8ed; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.contact-note[hidden] { display: none; }
.contact-note p { margin: 4px 0 0; color: #c5d1d9; }
.preview-pill { white-space: nowrap; padding: 7px 10px; border-radius: 999px; background: rgba(121,200,185,.13); color: var(--accent-2); font-weight: 900; font-size: .7rem; letter-spacing: .1em; }

.site-footer { background: #03101a; color: #c0cbd3; border-top: 1px solid rgba(255,255,255,.08); padding: 34px 0; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 35px; align-items: center; }
.brand-footer .brand-copy small { color: #9bb0be; }
.copyright { text-align: right; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .10s; }
.delay-2 { transition-delay: .20s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 1040px) {
  .main-nav { gap: 16px; font-size: .9rem; }
}

@media (max-width: 980px) {
  .hero-grid, .method-grid, .split { grid-template-columns: 1fr; }
  .hero-grid, .method-grid, .split { gap: 42px; }
  .services-grid, .problem-grid, .engagement-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-box { grid-template-columns: 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1fr; }
  .copyright { text-align: left; }
  .main-nav {
    position: absolute; left: 20px; right: 20px; top: 72px; display: none; flex-direction: column;
    align-items: stretch; gap: 5px; background: white; border: 1px solid var(--line);
    border-radius: 18px; padding: 12px; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px; border-radius: 10px; }
  .menu-toggle { display: block; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1160px); }
  .section { padding: 78px 0; }
  .hero { padding: 70px 0 60px; }
  .hero h1 { font-size: clamp(2.5rem, 12.5vw, 4rem); }
  .hero-lead { font-size: 1.05rem; }
  .hero-actions, .hero-actions .btn { width: 100%; }
  .signal-grid, .services-grid, .problem-grid, .engagement-grid, .expertise-grid { grid-template-columns: 1fr; }
  .trust-grid { align-items: flex-start; flex-direction: column; padding-block: 22px; }
  .trust-items { gap: 10px 16px; }
  .hero-panel { padding: 20px; }
  .metric-main strong { font-size: 1.72rem; }
  .quote-card { padding: 28px; }
  .contact-note { align-items: flex-start; flex-direction: column; }
  .dev-badge { right: 10px; bottom: 10px; }
}


/* V3: logo institucional integrado */
.logo-image-wrap { width: 74px; height: 74px; display: inline-flex; align-items: center; justify-content: center; }
.brand-logo { width: 100%; height: 100%; object-fit: contain; display: block; }
.site-header .brand-copy strong { font-size: 1.12rem; }
.site-header .brand-copy small { font-size: .8rem; }
.brand-footer .footer-logo { width: 84px; height: 84px; }
@media (max-width: 680px) { .logo-image-wrap { width: 62px; height: 62px; } .brand-footer .footer-logo { width: 72px; height: 72px; } }


/* V4: sección Por qué Quirón */
.why-split { align-items: start; }
.why-quiron-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.why-quiron-cards article {
  border: 1px solid var(--line); border-radius: 22px; padding: 24px; background: white;
  box-shadow: 0 10px 28px rgba(7,22,37,.035);
}
.why-quiron-cards span {
  color: var(--accent-deep); font-weight: 900; font-size: .72rem; letter-spacing: .13em;
}
.why-quiron-cards strong {
  display: block; margin: 10px 0 8px; font-family: "Manrope", sans-serif; font-size: 1.08rem;
}
.why-quiron-cards p { margin: 0; color: #425b6d; }
@media (max-width: 680px) {
  .why-quiron-cards { grid-template-columns: 1fr; }
}


/* V5: bloque de dirección */
.director-section { padding-top: 32px; }
.director-card {
  border: 1px solid var(--line); border-radius: 30px; padding: 42px;
  background: linear-gradient(135deg, #ffffff 0%, #f3f8f8 100%);
  box-shadow: 0 18px 55px rgba(7,22,37,.07);
}
.director-kicker { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 24px; }
.director-kicker .eyebrow { margin: 0; }
.director-role { color: var(--accent-deep); font-weight: 800; font-size: .9rem; }
.director-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 56px; align-items: start; }
.director-name-block h2 {
  margin: 0; font-family: "Manrope", sans-serif; letter-spacing: -.04em; line-height: 1.05;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
}
.director-title { color: #334d60; font-weight: 700; font-size: 1.02rem; margin: 18px 0 24px; }
.director-pillars { display: flex; flex-wrap: wrap; gap: 9px; }
.director-pillars span {
  padding: 8px 11px; border-radius: 999px; background: #e5f2f1; color: var(--accent-deep);
  font-size: .78rem; font-weight: 800; border: 1px solid #cfe4e2;
}
.director-copy p { color: #354f61; margin: 0 0 17px; font-size: 1.02rem; }
.director-copy .director-lead { font-size: 1.15rem; color: #18364a; font-weight: 600; }
.director-copy .director-closing {
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-strong); color: #17394b;
}
@media (max-width: 900px) {
  .director-grid { grid-template-columns: 1fr; gap: 30px; }
  .director-kicker { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 680px) {
  .director-card { padding: 28px; }
}


/* V6: directora con foto */
.director-portrait-wrap {
  width: 220px; aspect-ratio: 1 / 1; border-radius: 32px; overflow: hidden;
  margin-bottom: 24px; border: 1px solid var(--line); background: #ffffff;
  box-shadow: 0 18px 42px rgba(7,22,37,.10);
}
.director-portrait { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
  .director-portrait-wrap { width: min(240px, 72vw); }
}


/* V8: contacto oficial + formulario */
.contact-section { padding: 100px 0; }
.contact-layout {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 56px;
  align-items: start;
}
.contact-intro h2 {
  font-family: "Manrope", sans-serif;
  letter-spacing: -.045em;
  line-height: 1.06;
  font-size: clamp(2.4rem, 4vw, 4rem);
  margin: 0;
}
.contact-intro > p { color: #c2cfd8; }
.contact-channels {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}
.contact-channel {
  display: block;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.06);
  border-radius: 18px;
  padding: 17px 18px;
  transition: transform .18s ease, background .18s ease;
}
.contact-channel:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.10);
}
.contact-label {
  display: block;
  color: var(--accent-2);
  font-size: .72rem;
  letter-spacing: .12em;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-channel strong {
  color: white;
  font-size: 1.04rem;
}
.contact-small {
  margin-top: 22px;
  color: #8fa6b5 !important;
  font-size: .88rem;
}

.contact-form {
  background: white;
  color: var(--ink);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 24px 65px rgba(0,0,0,.18);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.contact-form label > span:first-child {
  display: block;
  font-size: .83rem;
  font-weight: 800;
  color: #294457;
  margin-bottom: 7px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
  color: var(--ink);
  background: #fbfdfd;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.contact-form textarea {
  resize: vertical;
  min-height: 145px;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(8,122,125,.10);
}
.form-full { grid-column: 1 / -1; }
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.form-consent input {
  width: auto;
  margin-top: 4px;
}
.form-consent span {
  margin: 0 !important;
  font-weight: 500 !important;
  color: #526a7b !important;
  line-height: 1.45;
}
.form-submit {
  margin-top: 18px;
  background: var(--dark);
  color: white;
}
.form-note {
  color: #607687;
  font-size: .82rem;
  margin: 13px 0 0;
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .contact-form { padding: 22px; border-radius: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-full { grid-column: auto; }
}
