:root {
  --navy: #062f6f;
  --navy-deep: #031d46;
  --blue: #1765a4;
  --cyan: #08aeca;
  --ice: #eff8fb;
  --mist: #f6f9fc;
  --ink: #172b4d;
  --muted: #5f7088;
  --line: #dce7ef;
  --white: #fff;
  --shadow: 0 24px 70px rgba(7, 47, 104, .12);
  --soft-shadow: 0 12px 32px rgba(12, 49, 91, .08);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font: 16px/1.65 "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.site-header { height: 90px; padding: 0 max(5vw, 28px); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(220,231,239,.8); background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }
.brand { width: 174px; height: 76px; display: flex; align-items: center; flex: none; text-decoration: none; }
.brand img { width: 174px; max-width: 100%; height: auto; transform: none; }
.main-nav { display: flex; gap: 22px; align-items: center; }
.main-nav > a { position: relative; color: #40516a; font-size: 14px; font-weight: 700; text-decoration: none; }
.main-nav > a:not(.button)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -10px; height: 2px; background: var(--cyan); transition: right .25s ease; }
.main-nav > a:not(.button):hover, .main-nav > a.active { color: var(--navy); }
.main-nav > a:not(.button):hover::after, .main-nav > a.active::after { right: 0; }
.menu-button { display: none; padding: 8px; border: 0; background: none; }
.menu-button span { width: 25px; height: 2px; display: block; margin: 5px 0; background: var(--navy); }

.button { min-height: 48px; padding: 0 23px; border: 0; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; color: var(--white); background: linear-gradient(135deg, var(--navy), var(--blue)); box-shadow: 0 10px 24px rgba(6,47,111,.18); font: 700 14px "DM Sans", sans-serif; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(6,47,111,.25); }
.button-small { min-height: 42px; padding: 0 18px; color: var(--white) !important; }
.button-outline { color: var(--navy); background: rgba(255,255,255,.75); border: 1px solid rgba(6,47,111,.16); box-shadow: none; }
.button-light { color: var(--navy); background: var(--white); box-shadow: none; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 700; text-decoration: none; }
.text-link span { color: var(--cyan); font-size: 19px; transition: transform .2s; }
.text-link:hover span { transform: translateX(4px); }
.eyebrow { margin: 0 0 15px; color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: 2.3px; }

.hero { min-height: 600px; position: relative; display: flex; align-items: center; overflow: hidden; background: #f5fbfe url("../img/cihemed-banner-clean.png") center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.97) 31%, rgba(255,255,255,.62) 43%, rgba(255,255,255,0) 57%); }
.hero::after { content: ""; width: 360px; height: 180px; position: absolute; top: 105px; right: 25%; z-index: 2; display: block; background: #fff url("../img/cihemed-logo-horizontal.jpeg") center/cover no-repeat; filter: saturate(1.15) contrast(1.05); }
.hero-divider { width: 2px; height: 92px; position: absolute; top: 150px; right: calc(7% + 225px); z-index: 2; display: block; background: #5c6b82; }
.hero-intelligence { width: 215px; height: 88px; position: absolute; top: 152px; right: 7%; z-index: 2; display: block; background: #fff url("../img/cihemed-banner.jpeg") -1046px -218px / 1350px 540px no-repeat; }
.hero-copy { width: min(580px, 45vw); margin-left: max(5vw, 28px); padding: 60px 0 68px; position: relative; z-index: 2; }
.hero h1, .page-hero h1, .contact-copy h1 { margin: 0; color: var(--navy-deep); font: 800 clamp(43px, 5vw, 72px)/1.07 Manrope, sans-serif; letter-spacing: -2.7px; }
.hero h1 em { color: var(--blue); font-style: normal; }
.lead { max-width: 610px; margin: 26px 0 34px; color: #52647e; font-size: 19px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.trust-row { padding: 21px max(5vw, 28px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--navy-deep); color: var(--white); }
.trust-item { padding: 5px 26px; display: flex; align-items: center; justify-content: center; gap: 13px; border-right: 1px solid rgba(255,255,255,.16); text-align: left; }
.trust-item:last-child { border: 0; }
.trust-item strong { display: block; font: 700 16px Manrope, sans-serif; }
.trust-item small { display: block; color: #b9cbe2; }
.trust-icon { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(8,174,202,.16); color: #5ee7f6; font-size: 18px; }

.section { padding: 105px max(5vw, 28px); }
.section-soft { background: var(--mist); }
.section-heading { max-width: 760px; margin-bottom: 48px; }
.section-heading.split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 35px; }
.section-heading.split > div { max-width: 720px; }
.section h2, .confidence h2, .appointment-form h2 { margin: 0; color: var(--navy-deep); font: 800 clamp(31px, 3.6vw, 50px)/1.15 Manrope, sans-serif; letter-spacing: -1.7px; }
.section-heading > p:last-child { max-width: 650px; margin: 18px 0 0; color: var(--muted); font-size: 17px; }
.intro { display: grid; grid-template-columns: .85fr 1.15fr; gap: 8vw; align-items: center; }
.intro-card { padding: 40px; border-radius: var(--radius); background: linear-gradient(145deg, var(--navy-deep), var(--blue)); color: var(--white); box-shadow: var(--shadow); }
.intro-card .metric { display: flex; align-items: baseline; gap: 10px; margin-bottom: 24px; }
.intro-card .metric strong { font: 800 60px Manrope, sans-serif; }
.intro-card .metric span { color: #c7e5ef; }
.intro-card p { margin: 0; color: #d7e5f3; }
.intro-copy > p:not(.eyebrow) { margin: 24px 0; color: var(--muted); font-size: 18px; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-grid article { min-height: 274px; padding: 30px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--white); transition: transform .25s, box-shadow .25s, border-color .25s; }
.service-grid article::before { content: ""; position: absolute; width: 120px; height: 120px; right: -60px; top: -60px; border-radius: 50%; background: var(--ice); transition: transform .3s; }
.service-grid article:hover { transform: translateY(-6px); border-color: #b6d8e5; box-shadow: var(--soft-shadow); }
.service-grid article:hover::before { transform: scale(1.35); }
.service-number { color: var(--cyan); font: 800 12px Manrope, sans-serif; letter-spacing: 1px; }
.service-icon { width: 46px; height: 46px; margin: 22px 0; display: grid; place-items: center; border-radius: 14px; background: var(--ice); color: var(--blue); font-size: 22px; }
.service-grid h3 { margin: 0 0 10px; color: var(--navy); font: 700 20px/1.3 Manrope, sans-serif; }
.service-grid p { margin: 0; color: var(--muted); font-size: 14px; }

/* Fotografías de apoyo para presentar los servicios con mayor cercanía visual. */
.service-grid .service-card { min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; color: var(--white); border: 0; background: #073f70 center/cover no-repeat; box-shadow: 0 10px 30px rgba(7,47,104,.12); }
.service-grid .service-card::before { width: auto; height: auto; inset: 0; right: 0; top: 0; border-radius: 0; background: linear-gradient(180deg, rgba(3,29,70,.06) 14%, rgba(3,29,70,.9) 100%); transform: none; z-index: -1; }
.service-grid .service-card:hover::before { transform: none; }
.service-grid .service-card h3 { color: var(--white); }
.service-grid .service-card p { color: #e4f2fa; }
.service-grid .service-card .service-number { width: max-content; margin-bottom: auto; padding: 6px 10px; border-radius: 8px; color: var(--white); background: rgba(3,29,70,.55); }
.service-grid .service-card-1 { background-image: url("../img/servicio-1.png"); }
.service-grid .service-card-2 { background-image: url("../img/servicio-2.png"); }
.service-grid .service-card-3 { background-image: url("../img/servicio-3.png"); }
.service-grid .service-card-4 { background-image: url("../img/servicio-4.png"); }
.service-grid .service-card-5 { background-image: url("../img/servicio-5.png"); }
.service-grid .service-card-6 { background-image: url("../img/servicio-6.png"); }

.intelligence-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: end; }
.intelligence-intro > p { margin: 0; color: var(--muted); font-size: 18px; }

.ib-hero { min-height: 430px; padding: 76px max(7vw, 28px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr); gap: 7vw; align-items: center; position: relative; overflow: hidden; background: linear-gradient(105deg, #fff 5%, #eef7f9 47%, #91bdca 100%); }
.ib-hero::after { content: ""; width: 480px; height: 480px; position: absolute; right: -210px; bottom: -330px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.08), 0 0 0 110px rgba(255,255,255,.06); }
.ib-hero-copy { max-width: 820px; position: relative; z-index: 1; }
.ib-hero h1 { max-width: 850px; margin: 0; color: var(--navy-deep); font: 800 clamp(42px, 4.8vw, 66px)/1.08 Manrope, sans-serif; letter-spacing: -2.4px; }
.ib-hero-logo { width: min(100%, 320px); justify-self: center; position: relative; z-index: 1; }
.ib-hero-logo img { width: 100%; }
.ib-about { display: grid; grid-template-columns: .7fr 1.3fr; gap: 9vw; align-items: start; }
.ib-about-copy p, .ib-origin-copy p, .ib-help-intro p { margin: 0 0 18px; color: var(--muted); font-size: 17px; }
.ib-beliefs { margin-top: 50px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ib-belief { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 9px 30px rgba(7,47,104,.05); }
.ib-belief span, .ib-method span { width: 40px; height: 40px; margin-bottom: 18px; display: grid; place-items: center; border-radius: 12px; color: var(--white); background: linear-gradient(135deg, var(--navy), var(--cyan)); font: 800 12px Manrope, sans-serif; }
.ib-belief h3, .ib-method h3 { margin: 0 0 9px; color: var(--navy); font: 700 19px/1.3 Manrope, sans-serif; }
.ib-belief p, .ib-method p { margin: 0; color: var(--muted); font-size: 14px; }
.ib-origin { display: grid; grid-template-columns: .75fr 1.25fr; gap: 8vw; align-items: start; background: linear-gradient(135deg, #f6f9fc, #eaf6f9); }
.ib-goals { margin: 35px 0 0; padding: 28px; border: 1px solid rgba(8,174,202,.18); border-radius: 18px; background: rgba(255,255,255,.8); }
.ib-goals h3 { margin: 0 0 16px; color: var(--navy-deep); font: 800 22px Manrope, sans-serif; }
.ib-goals ul { margin: 0; padding: 0; display: grid; gap: 11px; list-style: none; }
.ib-goals li { padding-left: 24px; position: relative; color: var(--ink); }
.ib-goals li::before { content: ""; width: 9px; height: 9px; position: absolute; left: 0; top: .58em; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(8,174,202,.1); }
.ib-help-intro { max-width: 850px; margin-bottom: 46px; }
.ib-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ib-method { padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.ib-community { padding: 80px max(7vw, 28px); display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; color: var(--white); background: linear-gradient(125deg, var(--navy-deep), var(--navy) 62%, #087f99); }
.ib-community h2 { margin: 0; color: var(--white); font: 800 clamp(32px, 4vw, 48px)/1.15 Manrope, sans-serif; letter-spacing: -1.5px; }
.ib-community p { max-width: 790px; margin: 18px 0 0; color: #d3e3ef; }
.social-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.social-actions .button { min-width: 130px; }

.confidence { padding: 78px max(5vw, 28px); position: relative; overflow: hidden; display: grid; grid-template-columns: 1.25fr .9fr auto; gap: 50px; align-items: center; color: var(--white); background: linear-gradient(125deg, var(--navy-deep), var(--navy) 64%, #075783); }
.confidence::after { content: "+"; position: absolute; right: 8%; top: -90px; color: rgba(255,255,255,.05); font: 800 300px/1 Manrope, sans-serif; }
.confidence h2 { color: var(--white); font-size: 38px; }
.confidence > p { margin: 0; color: #c9d9eb; }
.confidence > * { position: relative; z-index: 1; }
.compact { grid-template-columns: 1fr auto; }

.page-hero { min-height: 390px; padding: 90px max(8vw, 28px); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; background: radial-gradient(circle at 85% 35%, rgba(8,174,202,.15), transparent 24%), linear-gradient(125deg, #f7fbfd, #e8f5f9); }
.page-hero::after { content: ""; width: 420px; height: 420px; position: absolute; right: -130px; bottom: -260px; border: 55px solid rgba(23,101,164,.08); border-radius: 50%; }
.page-hero h1 { max-width: 900px; font-size: clamp(42px, 5.3vw, 70px); }
.page-hero > p:last-child { max-width: 680px; margin: 24px 0 0; color: var(--muted); font-size: 18px; }
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service-list article { min-height: 290px; overflow: hidden; display: flex; flex-direction: row; align-items: flex-start; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 8px 28px rgba(7,47,104,.05); transition: transform .25s, box-shadow .25s; }
.service-list article:hover { transform: translateY(-5px); box-shadow: var(--soft-shadow); }
.service-media { width: 40%; max-width: 300px; height: auto; aspect-ratio: 1; flex: 0 0 40%; position: relative; align-self: flex-start; background-color: #eaf3f7; background-image: url("../img/servicios-atlas.webp"); background-size: 500% auto; background-repeat: no-repeat; }
.service-media::after { content: ""; position: absolute; inset: 0; border-right: 1px solid rgba(3,29,70,.08); background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(3,29,70,.08)); }
.service-media.s1 { background-position: 0% 0%; }
.service-media.s2 { background-position: 25% 0%; }
.service-media.s3 { background-position: 50% 0%; }
.service-media.s4 { background-position: 75% 0%; }
.service-media.s5 { background-position: 100% 0%; }
.service-media.s6 { background-position: 0% 100%; }
.service-media.s7 { background-position: 25% 100%; }
.service-media.s8 { background-position: 50% 100%; }
.service-media.s9 { background-position: 75% 100%; }
.service-media.s10 { background-position: 100% 100%; }
.service-body { min-width: 0; flex: 1; padding: 28px 28px 30px; position: relative; }
.service-body > span { width: 43px; height: 43px; margin: 0 0 20px; position: relative; z-index: 2; display: grid; place-items: center; border-radius: 13px; color: var(--white); background: linear-gradient(135deg, var(--navy), var(--cyan)); font: 800 12px Manrope, sans-serif; }
.service-list article:nth-child(n+9) { grid-column: 1 / -1; min-height: 350px; }
.service-list article:nth-child(n+9) .service-media { width: 32%; max-width: 380px; flex-basis: 32%; }
.service-list article > span { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; color: var(--cyan); background: var(--ice); font: 800 12px Manrope, sans-serif; }
.service-list h2 { font-size: 22px; letter-spacing: -.6px; }
.service-list p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.service-list ul { margin: 17px 0 0; padding-left: 19px; color: var(--muted); font-size: 14px; }
.service-list li { margin: 5px 0; }

.experience-content { background: var(--mist); }
.map-section { max-width: 1280px; margin: auto; padding: 80px max(5vw, 28px); }
.regional-map { width: 100%; aspect-ratio: 16 / 9; position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: #fff url("../img/mapa-latinoamerica-limpio-v2.png") center / 100% 100% no-repeat; box-shadow: var(--soft-shadow); }
.map-instruction { margin: 0 0 18px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.map-instruction span { width: 12px; height: 12px; display: inline-block; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 6px rgba(8,174,202,.12); }
.map-hotspot { width: 24px; height: 24px; padding: 0; position: absolute; z-index: 4; transform: translate(-50%,-50%); border: 4px solid #fff; border-radius: 50%; background: var(--cyan); box-shadow: 0 6px 18px rgba(6,47,111,.32), 0 0 0 7px rgba(8,174,202,.18); cursor: pointer; transition: transform .2s, box-shadow .2s; }
.map-hotspot::after { content: ""; position: absolute; inset: -10px; border: 1px solid rgba(8,174,202,.55); border-radius: 50%; animation: hotspotPulse 2.2s ease-out infinite; }
.map-hotspot:hover, .map-hotspot:focus-visible { z-index: 8; transform: translate(-50%,-50%) scale(1.16); outline: none; box-shadow: 0 8px 24px rgba(6,47,111,.4), 0 0 0 9px rgba(8,174,202,.2); }
.map-popup { width: 280px; padding: 17px; position: absolute; left: 50%; bottom: calc(100% + 16px); visibility: hidden; opacity: 0; transform: translate(-50%,8px) scale(.96); border: 1px solid rgba(255,255,255,.75); border-radius: 15px; color: var(--ink); background: rgba(255,255,255,.97); box-shadow: 0 18px 45px rgba(3,29,70,.2); text-align: left; pointer-events: none; transition: opacity .18s, transform .18s, visibility .18s; backdrop-filter: blur(12px); }
.map-popup::after { content: ""; width: 12px; height: 12px; position: absolute; left: calc(50% - 6px); bottom: -7px; transform: rotate(45deg); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.map-hotspot:hover .map-popup, .map-hotspot:focus .map-popup, .map-hotspot.open .map-popup { visibility: visible; opacity: 1; transform: translate(-50%,0) scale(1); pointer-events: auto; }
.map-popup strong { display: block; margin-bottom: 8px; color: var(--navy); font: 800 15px Manrope,sans-serif; }
.map-popup span { display: block; padding: 7px 0; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.35; }
.map-popup span:first-of-type { border-top: 0; }
.map-popup small { display: block; color: var(--muted); }
.map-hotspot.popup-right .map-popup { left: auto; right: -18px; transform: translate(0,8px) scale(.96); }
.map-hotspot.popup-right:hover .map-popup, .map-hotspot.popup-right:focus .map-popup, .map-hotspot.popup-right.open .map-popup { transform: translate(0,0) scale(1); }
.map-hotspot.popup-right .map-popup::after { left: auto; right: 22px; }
@keyframes hotspotPulse { 0% { transform: scale(.7); opacity: .9; } 75%,100% { transform: scale(1.55); opacity: 0; } }
.hospital-dialog { width: min(560px,calc(100% - 30px)); padding: 0; border: 0; border-radius: 20px; box-shadow: var(--shadow); }
.hospital-dialog::backdrop { background: rgba(3,29,70,.62); backdrop-filter: blur(4px); }
.dialog-content { padding: 34px; }
.dialog-close { width: 38px; height: 38px; float: right; border: 0; border-radius: 50%; color: var(--navy); background: var(--ice); font-size: 20px; cursor: pointer; }
.dialog-content h2 { margin: 12px 0 5px; color: var(--navy-deep); font: 800 28px/1.2 Manrope,sans-serif; }
.dialog-city { color: var(--cyan); font-weight: 700; }
.dialog-note { margin: 22px 0 0; padding: 16px; border-radius: 12px; color: var(--muted); background: var(--mist); font-size: 14px; }
.disclaimer { margin: 20px 4px 0; color: var(--muted); font-size: 13px; }
.team { display: grid; grid-template-columns: .8fr 1.2fr; gap: 9vw; align-items: center; }
.team-points { display: grid; gap: 15px; }
.team-point { padding: 20px 22px; display: flex; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: 0 8px 24px rgba(7,47,104,.04); }
.team-point span { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; color: var(--cyan); background: var(--ice); font-weight: 800; }
.team-point strong { color: var(--navy); }

.contact-layout { padding: 90px max(7vw, 28px); display: grid; grid-template-columns: 1fr minmax(420px, 520px); gap: 8vw; align-items: start; background: radial-gradient(circle at 100% 0, rgba(8,174,202,.12), transparent 26%), var(--mist); }
.contact-copy { position: sticky; top: 145px; }
.contact-copy h1 { font-size: clamp(43px, 5vw, 68px); }
.contact-copy > p:not(.eyebrow) { max-width: 550px; margin: 25px 0; color: var(--muted); font-size: 18px; }
.contact-options { margin-top: 42px; display: grid; gap: 13px; }
.contact-options a { padding: 15px; display: flex; align-items: center; gap: 15px; border: 1px solid transparent; border-radius: 15px; color: var(--navy); text-decoration: none; transition: background .2s, border-color .2s; }
.contact-options a:hover { border-color: var(--line); background: var(--white); }
.contact-options > a > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: var(--white); background: linear-gradient(135deg, var(--navy), var(--blue)); }
.contact-options strong, .contact-options small { display: block; }
.contact-options small { color: var(--muted); }
.appointment-form { padding: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.appointment-form h2 { font-size: 30px; }
.appointment-form > p { margin: 8px 0 24px; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.appointment-form label { display: block; margin: 14px 0; color: var(--ink); font-size: 13px; font-weight: 700; }
.appointment-form input, .appointment-form select, .appointment-form textarea { width: 100%; margin-top: 7px; padding: 13px 14px; border: 1px solid #ccd9e5; border-radius: 10px; color: var(--ink); background: #fbfdfe; font: 14px "DM Sans", sans-serif; transition: border .2s, box-shadow .2s; }
.appointment-form textarea { resize: vertical; }
.appointment-form input:focus, .appointment-form select:focus, .appointment-form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(8,174,202,.1); }
.appointment-form .button { width: 100%; margin-top: 10px; }
.form-note { padding: 12px; border-radius: 10px; font-size: 13px; }
.form-note.enviado { color: #176c41; background: #e5f8ed; }
.form-note.error, .form-note.incompleto { color: #a53b28; background: #fff1ee; }

.site-footer { padding: 58px max(5vw, 28px) 28px; color: #cad8e9; background: var(--navy-deep); }
.footer-main { display: grid; grid-template-columns: 1.1fr .7fr .8fr; gap: 60px; padding-bottom: 42px; }
.footer-brand { max-width: 310px; }
.footer-logo { width: 235px; height: 94px; padding: 10px 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--white); }
.footer-logo img { width: 210px; max-width: 100%; height: 74px; object-fit: cover; object-position: center; transform: none; }
.footer-brand p { margin: 15px 0 0; color: #9fb4cc; font-size: 14px; }
.site-footer h3 { margin: 0 0 15px; color: var(--white); font: 700 15px Manrope, sans-serif; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: #b8c8da; font-size: 14px; text-decoration: none; }
.footer-links a:hover { color: #63e1ee; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.1); color: #829ab6; font-size: 12px; }
.whatsapp-float { width: 56px; height: 56px; position: fixed; right: 24px; bottom: 24px; z-index: 45; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: #22c767; box-shadow: 0 12px 28px rgba(2,84,39,.3); text-decoration: none; font-size: 12px; font-weight: 800; letter-spacing: -.5px; transition: transform .2s; }
.whatsapp-float:hover { transform: scale(1.06); }

@media (max-width: 1440px) {
  .hero-copy { width: min(570px, 45vw); padding-top: 48px; padding-bottom: 56px; }
  .hero h1 { font-size: clamp(48px, 4.2vw, 56px); }
  .hero::after { width: 330px; height: 165px; right: 24%; }
  .hero-divider { height: 84px; right: calc(5% + 198px); }
  .hero-intelligence { width: 190px; height: 78px; right: 5%; background-size: 1200px 480px; background-position: -930px -194px; }
}

@media (max-width: 980px) {
  .main-nav { gap: 18px; }
  .main-nav > a { font-size: 13px; }
  .hero { min-height: 570px; background-position: 62% center; }
  .hero-copy { width: min(490px, 53%); }
  .hero::after, .hero-intelligence, .hero-divider { display: none; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .confidence { grid-template-columns: 1fr auto; }
  .confidence > p { grid-column: 1 / -1; grid-row: 2; }
  .contact-layout { grid-template-columns: .85fr 1.15fr; gap: 5vw; }
  .ib-hero { grid-template-columns: 1.25fr .75fr; gap: 4vw; }
  .ib-beliefs { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .site-header { height: 78px; }
  .brand { width: 180px; height: 67px; }
  .brand img { width: 180px; transform: translateY(-7px); }
  .menu-button { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 78px; padding: 24px max(5vw, 28px) 30px; align-items: stretch; flex-direction: column; gap: 20px; border-bottom: 1px solid var(--line); background: var(--white); box-shadow: var(--soft-shadow); }
  .main-nav.open { display: flex; }
  .main-nav > a:not(.button)::after { display: none; }
  .hero { min-height: auto; padding-top: 330px; background-position: 72% top; background-size: auto 390px; background-color: var(--white); }
  .hero::before { background: linear-gradient(180deg, rgba(255,255,255,0) 0, rgba(255,255,255,.15) 280px, #fff 375px); }
  .hero::after, .hero-intelligence, .hero-divider { display: none; }
  .hero-copy { width: auto; margin: 0; padding: 56px max(5vw, 28px) 74px; }
  .hero h1, .page-hero h1, .contact-copy h1 { font-size: clamp(38px, 11vw, 54px); letter-spacing: -1.8px; }
  .trust-row { grid-template-columns: 1fr; padding-top: 13px; padding-bottom: 13px; }
  .trust-item { justify-content: flex-start; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .trust-item:last-child { border-bottom: 0; }
  .section { padding-top: 78px; padding-bottom: 78px; }
  .intro, .team, .contact-layout { grid-template-columns: 1fr; }
  .intelligence-intro { grid-template-columns: 1fr; gap: 24px; }
  .ib-hero { min-height: auto; padding-top: 65px; padding-bottom: 65px; grid-template-columns: 1fr; }
  .ib-hero-logo { width: min(72%, 300px); }
  .ib-about, .ib-origin { grid-template-columns: 1fr; gap: 30px; }
  .ib-beliefs, .ib-methods { grid-template-columns: 1fr; }
  .ib-community { grid-template-columns: 1fr; gap: 32px; }
  .intro-card { order: 2; }
  .service-grid, .service-list { grid-template-columns: 1fr; }
  .service-list article, .service-list article:nth-child(n+9) { min-height: 0; grid-column: auto; flex-direction: column; }
  .service-media, .service-list article:nth-child(n+9) .service-media { width: 100%; max-width: none; flex-basis: auto; aspect-ratio: 1; }
  .regional-map { aspect-ratio: 16 / 9; background-size: 100% 100%; background-position: center; }
  .map-popup { width: 235px; }
  .section-heading.split { align-items: flex-start; flex-direction: column; }
  .confidence, .compact { grid-template-columns: 1fr; gap: 24px; }
  .confidence > p { grid-column: auto; grid-row: auto; }
  .page-hero { min-height: 350px; padding-top: 72px; padding-bottom: 72px; }
  .map-section { padding-top: 55px; padding-bottom: 55px; }
  .contact-layout { padding-top: 72px; padding-bottom: 72px; }
  .contact-copy { position: static; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 460px) {
  .hero { padding-top: 270px; background-size: auto 320px; }
  .hero-copy { padding-top: 45px; }
  .actions { align-items: stretch; flex-direction: column; }
  .actions .button { width: 100%; }
  .intro-card, .appointment-form { padding: 28px; }
  .service-grid article { min-height: auto; }
  .service-media { height: auto; }
  .service-body { padding: 25px 22px 28px; }
  .regional-map { aspect-ratio: 16 / 9; background-size: 100% 100%; background-position: center; }
  .map-hotspot { width: 18px; height: 18px; border-width: 3px; }
  .map-popup { width: 210px; padding: 13px; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}
.ib-help-intro h2 { margin-bottom: 22px; }
