/*
 * MEDCOR S.A.C. — Hoja de estilos global.
 * Cada bloque identifica la sección PHP que modifica.
 * Imágenes originales: no se transforman físicamente; solo se ajustan con CSS.
 * Requisitos: navegadores modernos con soporte CSS Grid, Flexbox y variables.
 * Desarrollado por www.softwes.com
 */

/* =========================================================
   00. VARIABLES GLOBALES Y BASE
   Colores, tipografía, ancho de contenido y reglas comunes.
   ========================================================= */
:root {
    --red: #a71930;
    --red-deep: #861328;
    --red-bright: #c51e3a;
    --ink: #20282e;
    --ink-soft: #354149;
    --muted: #66737b;
    --line: #dce2e4;
    --paper: #ffffff;
    --mist: #f2f5f5;
    --mist-2: #e8eeee;
    --green: #168875;
    --green-dark: #116c60;
    --container: 1240px;
    --radius: 2px;
    --shadow: 0 24px 70px rgba(20, 34, 39, .12);
    --font-body: "DM Sans", Arial, sans-serif;
    --font-display: "Manrope", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(var(--container), calc(100% - 64px)); margin-inline: auto; }
.section-anchor { scroll-margin-top: 84px; }
.skip-link { position: absolute; top: -60px; left: 16px; z-index: 1000; padding: 10px 14px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 22px; color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: .16em; line-height: 1.4; }
.eyebrow-mark { display: inline-block; width: 25px; height: 2px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); }
h1, h2 { letter-spacing: -.055em; }
h2 { max-width: 760px; margin-bottom: 0; font-size: clamp(38px, 4.5vw, 62px); font-weight: 700; line-height: 1.08; }
h1 em, h2 em { color: var(--red); font-style: normal; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 54px; padding: 0 22px; border: 1px solid transparent; font-size: 13px; font-weight: 700; transition: background .2s ease, color .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-red { color: #fff; background: var(--red); }
.button-red:hover { background: var(--red-deep); }
.text-link, .inline-link { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-size: 13px; font-weight: 700; }
.text-link span, .inline-link span { color: var(--red); font-size: 19px; }
.section-heading { margin-bottom: 48px; }
.section-heading-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(240px, .55fr); align-items: end; gap: 60px; }
.heading-aside { max-width: 380px; margin: 0 0 5px; color: var(--muted); font-size: 15px; line-height: 1.8; }

/* =========================================================
   01. HEADER — secciones/header.php
   Logotipo horizontal original; el alto se limita con CSS
   y se conserva la proporción original 2048:682.
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(32,40,46,.08); backdrop-filter: blur(14px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 36px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-light { width: 190px; }
.brand img { width: 100%; height: auto; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 34px); }
.main-nav a { color: #46525a; font-size: 12px; font-weight: 600; transition: color .2s ease; }
.main-nav a:hover { color: var(--red); }
.main-nav .nav-contact { display: inline-flex; align-items: center; gap: 18px; padding: 13px 17px; color: #fff; background: var(--red); }
.main-nav .nav-contact:hover { color: #fff; background: var(--red-deep); }
.menu-toggle { display: none; }

/* =========================================================
   02. INICIO — secciones/inicio.php
   representante.png es cuadrada. Se presenta dentro de un
   marco 1:1 sin recorte ni deformación; object-fit: contain.
   ========================================================= */
.hero { position: relative; overflow: hidden; padding: 78px 0 25px; background: var(--mist); }
.hero::before { position: absolute; top: 0; right: 0; width: 38%; height: 100%; background: var(--red); content: ""; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(420px, 1fr); align-items: center; gap: clamp(50px, 8vw, 110px); }
.hero-copy { position: relative; z-index: 1; padding: 28px 0 48px; }
.hero h1 { max-width: 640px; margin: 0 0 26px; font-size: clamp(46px, 5.5vw, 76px); font-weight: 800; line-height: 1.02; }
.hero-lead { max-width: 510px; margin-bottom: 32px; color: #58666e; font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.hero-proof { display: flex; align-items: center; gap: 17px; margin-top: 62px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.proof-number { color: var(--red); font-family: var(--font-display); font-size: 29px; font-weight: 800; }
.hero-visual { position: relative; min-width: 0; padding: 18px 22px 40px 0; }
.hero-image-frame { position: relative; z-index: 1; width: min(100%, 570px); aspect-ratio: 1 / 1; margin-left: auto; padding: 12px; background: #fff; box-shadow: var(--shadow); }
.hero-image-frame img { width: 100%; height: 100%; object-fit: contain; object-position: center; background: #f7f7f7; }
.hero-stamp { position: absolute; z-index: 2; left: -28px; bottom: 8px; display: flex; align-items: center; gap: 18px; min-width: 245px; padding: 20px 24px; color: #fff; background: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.55; box-shadow: 0 12px 35px rgba(0,0,0,.16); }
.stamp-cross { color: #fff; font-size: 36px; font-weight: 400; }
.hero-index { position: absolute; right: -24px; bottom: 2px; color: rgba(255,255,255,.8); font-size: 10px; font-weight: 700; letter-spacing: .15em; writing-mode: vertical-rl; }
.hero-bottom { display: flex; align-items: center; gap: 22px; margin-top: 58px; color: #78858b; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.hero-bottom-line { flex: 1; height: 1px; background: #d5dcde; }

/* =========================================================
   03. NOSOTROS — secciones/nosotros.php
   supervisora.png es vertical (2:3): se usa en una columna
   vertical, con altura natural limitada y sin deformación.
   ========================================================= */
.about { padding: 116px 0 126px; }
.about-layout { display: grid; grid-template-columns: minmax(300px, .76fr) minmax(0, 1fr); align-items: start; gap: clamp(55px, 8vw, 120px); }
.about-photo-wrap { position: relative; max-width: 430px; background: var(--mist); }
.about-photo-wrap img { width: 100%; height: auto; max-height: 650px; object-fit: contain; object-position: top center; }
.photo-caption { display: flex; justify-content: space-between; gap: 10px; padding: 14px 17px; color: #fff; background: var(--green); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.about-content { padding-top: 10px; color: #5c6870; font-size: 15px; line-height: 1.9; }
.about-content p { margin-bottom: 21px; }
.about-content .about-intro { color: var(--ink); font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.55; }
.company-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 44px; padding-top: 25px; border-top: 1px solid var(--line); }
.company-facts div { display: flex; flex-direction: column; gap: 7px; }
.company-facts span { color: #849097; font-size: 10px; }
.company-facts strong { color: var(--ink); font-size: 13px; }

/* =========================================================
   04. SOLUCIONES — secciones/soluciones.php
   vendedor(1).png es vertical. No se estira a formato apaisado;
   se mantiene como fotografía vertical con object-fit: cover.
   ========================================================= */
.solutions { padding: 112px 0 118px; background: var(--mist); }
.solutions-layout { display: grid; grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr); gap: 18px; align-items: stretch; }
.solutions-photo { position: relative; min-height: 610px; overflow: hidden; background: #dce3e4; }
.solutions-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.solutions-photo::after { position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(16,25,29,.72)); content: ""; }
.solutions-photo-label { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; display: flex; align-items: center; gap: 16px; padding: 22px 25px; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.solutions-photo-label span:first-child { color: #ffbdc8; font-size: 21px; }
.solution-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.solution-item { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 245px; padding: 27px 28px; background: #fff; }
.solution-number { color: #8b989e; font-size: 11px; font-weight: 700; }
.solution-item h3 { margin: 0 0 12px; font-size: clamp(18px, 1.8vw, 24px); letter-spacing: -.035em; line-height: 1.2; }
.solution-item p { max-width: 340px; margin: 0; color: #69757b; font-size: 13px; line-height: 1.7; }
.solution-symbol { position: absolute; top: 20px; right: 24px; color: var(--red); font-size: 25px; font-weight: 400; }
.solution-item-green { color: #fff; background: var(--green); }
.solution-item-green .solution-number, .solution-item-green p { color: rgba(255,255,255,.78); }
.solution-item-green .solution-symbol { color: #fff; }
.solution-item-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 35px 1fr auto; align-items: center; gap: 18px; min-height: 150px; background: var(--mist-2); }
.solution-item-wide h3 { margin-bottom: 7px; }
.solution-item-wide p { max-width: 490px; }
.solution-item-wide .solution-number { align-self: start; }
.catalog-note { display: flex; align-items: center; gap: 18px; margin-top: 20px; padding: 20px 24px; border: 1px solid #d9e1e1; background: rgba(255,255,255,.65); }
.catalog-note-icon { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-family: Georgia, serif; font-style: italic; }
.catalog-note p { flex: 1; margin: 0; color: #657179; font-size: 12px; line-height: 1.6; }
.catalog-note a { color: var(--red); font-size: 12px; font-weight: 700; white-space: nowrap; }

/* =========================================================
   05. CLIENTES — secciones/clientes.php
   Bloque oscuro institucional, sin fotografías para evitar
   repetir recursos y reforzar el mensaje a públicos diversos.
   ========================================================= */
.audiences { position: relative; overflow: hidden; padding: 112px 0; color: #fff; background: var(--ink); }
.audiences::after { position: absolute; right: -130px; bottom: -260px; width: 560px; height: 560px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.025), 0 0 0 90px rgba(255,255,255,.02); content: ""; }
.audiences-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: clamp(55px, 8vw, 115px); }
.eyebrow-light { color: #e8a5b0; }
.audiences-intro h2 { margin-bottom: 25px; color: #fff; }
.audiences-intro h2 em { color: #e56b7e; }
.audiences-intro > p:not(.eyebrow) { max-width: 430px; margin-bottom: 33px; color: #b6c0c4; font-size: 14px; line-height: 1.85; }
.button-white { color: var(--ink); background: #fff; }
.button-white:hover { color: #fff; background: var(--green); }
.audience-cards { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.18); border-left: 1px solid rgba(255,255,255,.18); }
.audience-card { min-height: 205px; padding: 25px 27px; border-right: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.audience-card span { color: #e6a1ac; font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.audience-card h3 { margin: 23px 0 9px; color: #fff; font-size: 20px; line-height: 1.25; }
.audience-card p { margin: 0; color: #aeb9be; font-size: 12px; line-height: 1.7; }

/* =========================================================
   06. DISTRIBUCIÓN — secciones/distribucion.php
   conductor(2).png es horizontal (16:9 aprox.). Se usa en
   un contenedor panorámico; object-fit: cover conserva escala.
   ========================================================= */
.distribution { padding: 116px 0 112px; }
.distribution-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .52fr); align-items: end; gap: 70px; margin-bottom: 42px; }
.distribution-top > p { max-width: 390px; margin: 0 0 6px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.distribution-visual { position: relative; min-height: 360px; overflow: hidden; background: #dce2e3; }
.distribution-visual img { width: 100%; height: clamp(320px, 42vw, 520px); object-fit: cover; object-position: center 46%; }
.distribution-visual::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,29,34,.72), rgba(20,29,34,.08) 70%); content: ""; }
.distribution-overlay { position: absolute; z-index: 1; top: 50%; left: clamp(25px, 6vw, 75px); display: flex; flex-direction: column; gap: 13px; color: #fff; transform: translateY(-50%); }
.distribution-kicker { color: #f0b5bf; font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.distribution-overlay strong { font-family: var(--font-display); font-size: clamp(34px, 4vw, 52px); letter-spacing: -.045em; line-height: 1.08; }
.distribution-overlay > span:last-child { color: rgba(255,255,255,.8); font-size: 12px; }
.distribution-bottom { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 25px; }
.distribution-bottom p { max-width: 590px; margin: 0; color: #657179; font-size: 13px; line-height: 1.8; }
.distribution-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.distribution-tags span { padding: 8px 12px; color: var(--green-dark); background: #e8f3f0; font-size: 10px; font-weight: 700; }

/* =========================================================
   07. CONTACTO — secciones/contacto.php
   Formulario, datos y mapa. Ajustar el mapa cuando se conozca
   la dirección definitiva de la empresa.
   ========================================================= */
.contact { padding: 112px 0 120px; background: var(--mist); }
.contact-layout { display: grid; grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr); gap: clamp(45px, 7vw, 95px); }
.contact-details { display: flex; flex-direction: column; gap: 22px; }
.contact-detail { display: flex; flex-direction: column; gap: 5px; padding-bottom: 17px; border-bottom: 1px solid #d9e0e1; }
.contact-detail span { color: #879299; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.contact-detail a, .contact-detail strong { color: var(--ink); font-size: 14px; font-weight: 600; }
.contact-detail a:hover { color: var(--red); }
.map-frame { height: 220px; overflow: hidden; background: #dce3e4; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.temporary-note { margin: -10px 0 0; color: #89949a; font-size: 10px; }
.contact-form { padding: clamp(25px, 4vw, 43px); background: #fff; box-shadow: 0 14px 45px rgba(28,43,48,.06); }
.form-heading { margin-bottom: 27px; }
.form-heading > span { color: var(--red); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.form-heading h3 { margin: 9px 0 0; font-size: 27px; letter-spacing: -.04em; }
.contact-form label { display: flex; flex-direction: column; gap: 7px; color: #56636a; font-size: 11px; font-weight: 600; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.contact-form input:not([type="checkbox"]), .contact-form select, .contact-form textarea { width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid #dce2e3; border-radius: 0; outline: none; color: var(--ink); background: #fff; font-size: 13px; transition: border-color .2s ease, box-shadow .2s ease; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,136,117,.1); }
.contact-form > label { margin-top: 17px; }
.contact-form textarea { min-height: 120px; resize: vertical; }
.privacy-check { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 10px !important; margin: 18px 0; color: #77838a !important; font-weight: 400 !important; line-height: 1.5; }
.privacy-check input { margin: 2px 0 0; accent-color: var(--red); }
.form-submit { width: 100%; border: 0; cursor: pointer; }
.form-privacy { margin: 12px 0 0; color: #929da2; font-size: 10px; text-align: center; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================
   08. FOOTER — secciones/footer.php
   Fondo grafito oscuro y logotipo original para fondo negro.
   ========================================================= */
.site-footer { padding: 70px 0 22px; color: #fff; background: #171e23; }
.footer-main { display: grid; grid-template-columns: minmax(230px, 1.3fr) repeat(3, minmax(130px, .7fr)); gap: 55px; padding-bottom: 58px; }
.brand-dark { width: 225px; }
.brand-dark img { width: 100%; height: auto; object-fit: contain; }
.footer-brand-block p { max-width: 260px; margin: 22px 0 0; color: #aab4b9; font-size: 12px; line-height: 1.7; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-column > span { margin-bottom: 8px; color: #d68a98; font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.footer-column a, .footer-column p { margin: 0; color: #c2cbd0; font-size: 11px; line-height: 1.6; }
.footer-column a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.13); color: #8d9aa0; font-size: 10px; }
.footer-bottom a { color: #fff; }

/* =========================================================
   09. TABLET — ajustes de distribución entre 901 y 1100 px.
   ========================================================= */
@media (max-width: 1100px) {
    .hero-grid { gap: 45px; grid-template-columns: minmax(0, .95fr) minmax(360px, 1fr); }
    .hero h1 { font-size: clamp(44px, 5vw, 62px); }
    .solutions-layout { grid-template-columns: minmax(250px, .75fr) minmax(0, 1.25fr); }
    .solution-item { padding: 23px; }
    .footer-main { gap: 30px; }
}

/* =========================================================
   10. TABLET VERTICAL Y MÓVIL — navegación y columnas.
   ========================================================= */
@media (max-width: 900px) {
    .container { width: min(100% - 44px, var(--container)); }
    .header-inner { min-height: 76px; }
    .brand-light { width: 165px; }
    .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 9px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
    .menu-toggle span { display: block; width: 100%; height: 2px; background: var(--ink); }
    .main-nav { position: fixed; top: 76px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 22px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(20,30,35,.08); }
    .main-nav.is-open { display: flex; }
    .main-nav a { padding: 13px 5px; border-bottom: 1px solid #edf0f1; }
    .main-nav .nav-contact { justify-content: space-between; margin-top: 12px; padding: 14px 16px; }
    .hero { padding-top: 55px; }
    .hero::before { width: 31%; }
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .hero-copy { padding: 15px 0 30px; }
    .hero h1 { font-size: clamp(39px, 5.5vw, 54px); }
    .hero-lead { font-size: 14px; }
    .hero-proof { margin-top: 38px; }
    .hero-stamp { left: -15px; min-width: 205px; padding: 15px 18px; }
    .section-heading-split, .distribution-top { grid-template-columns: 1fr; gap: 20px; }
    .heading-aside { max-width: 600px; }
    .about-layout { grid-template-columns: minmax(220px, .75fr) minmax(0, 1fr); gap: 38px; }
    .company-facts { grid-template-columns: 1fr; gap: 13px; }
    .solutions-layout { grid-template-columns: 1fr 1.3fr; }
    .solutions-photo { min-height: 560px; }
    .solution-list { grid-template-columns: 1fr; }
    .solution-item { min-height: 170px; }
    .solution-item-wide { grid-column: auto; display: flex; align-items: flex-start; }
    .solution-item-wide .inline-link { margin-top: 10px; }
    .audiences-grid { grid-template-columns: 1fr; gap: 45px; }
    .audiences-intro { max-width: 680px; }
    .contact-layout { grid-template-columns: 1fr 1.2fr; gap: 35px; }
    .footer-main { grid-template-columns: 1.2fr 1fr 1fr; }
    .footer-brand-block { grid-column: 1 / -1; }
}
.medcor-page-refresh { display: none !important; }

@media (max-width: 620px) {
    .container { width: calc(100% - 36px); }
    h2 { font-size: clamp(35px, 10vw, 46px); }
    .hero { padding: 42px 0 22px; }
    .hero::before { top: auto; bottom: 0; width: 100%; height: 33%; }
    .hero-grid { grid-template-columns: 1fr; gap: 22px; }
    .hero-copy { padding: 0; }
    .eyebrow { margin-bottom: 17px; font-size: 9px; }
    .hero h1 { max-width: 520px; font-size: clamp(43px, 12vw, 58px); }
    .hero-lead { max-width: 500px; font-size: 14px; }
    .hero-actions { align-items: flex-start; gap: 17px; }
    .hero-proof { margin-top: 28px; }
    .hero-visual { padding: 0 7px 35px 25px; }
    .hero-image-frame { width: min(100%, 440px); margin-inline: auto; padding: 8px; }
    .hero-stamp { left: 0; bottom: 0; min-width: 205px; padding: 12px 16px; font-size: 10px; }
    .hero-index { right: -4px; bottom: 3px; font-size: 8px; }
    .hero-bottom { gap: 10px; margin-top: 35px; font-size: 7px; letter-spacing: .08em; }
    .hero-bottom span:last-child { text-align: right; }
    .about, .solutions, .distribution, .contact { padding: 78px 0; }
    .section-heading { margin-bottom: 32px; }
    .section-heading-split { gap: 17px; }
    .about-layout { grid-template-columns: 1fr; gap: 30px; }
    .about-photo-wrap { width: min(100%, 410px); margin-inline: auto; }
    .about-photo-wrap img { max-height: none; }
    .about-content { font-size: 14px; }
    .about-content .about-intro { font-size: 19px; }
    .company-facts { grid-template-columns: 1fr 1fr; }
    .company-facts div:last-child { grid-column: 1 / -1; }
    .solutions-layout { grid-template-columns: 1fr; }
    .solutions-photo { min-height: 0; aspect-ratio: 4 / 5; }
    .solution-list { grid-template-columns: 1fr 1fr; gap: 8px; }
    .solution-item { min-height: 210px; padding: 18px 16px; }
    .solution-item h3 { margin-top: 22px; font-size: 17px; }
    .solution-item p { font-size: 11px; }
    .solution-symbol { top: 13px; right: 15px; }
    .solution-item-wide { grid-column: 1 / -1; min-height: 180px; }
    .solution-item-wide h3 { margin-top: 0; }
    .catalog-note { align-items: flex-start; flex-wrap: wrap; gap: 12px; padding: 17px; }
    .catalog-note p { flex-basis: calc(100% - 44px); }
    .catalog-note a { margin-left: 40px; }
    .audiences { padding: 78px 0; }
    .audience-cards { grid-template-columns: 1fr; }
    .audience-card { min-height: 160px; padding: 22px; }
    .audience-card h3 { margin-top: 15px; }
    .distribution-top { gap: 15px; margin-bottom: 28px; }
    .distribution-visual { min-height: 0; }
    .distribution-visual img { height: 300px; object-position: 54% center; }
    .distribution-overlay { left: 22px; }
    .distribution-overlay strong { font-size: 35px; }
    .distribution-bottom { align-items: flex-start; flex-direction: column; gap: 18px; }
    .contact-layout { grid-template-columns: 1fr; gap: 35px; }
    .contact-form { padding: 23px 18px; }
    .form-row { grid-template-columns: 1fr; gap: 15px; }
    /* Footer móvil: composición institucional centrada. */
    .site-footer { padding: 42px 0 34px; }
    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 30px 20px;
        padding-bottom: 30px;
    }
    .footer-brand-block {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .brand-dark { display: block; width: 190px; max-width: 72%; margin-inline: auto; }
    .footer-brand-block p {
        width: 100%;
        max-width: none;
        margin: 13px 0 0;
        color: #c2cbd0;
        font-size: clamp(10px, 2.9vw, 12px);
        line-height: 1.5;
        white-space: nowrap;
        text-align: center;
    }
    .footer-column { min-width: 0; gap: 12px; }
    .footer-column > span { margin-bottom: 5px; font-size: 9px; letter-spacing: .15em; }
    .footer-column a,
    .footer-column p { font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
    .footer-social-column {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(3, max-content) minmax(112px, 1fr);
        align-items: center;
        justify-content: space-between;
        column-gap: 12px;
        row-gap: 12px;
    }
    .footer-social-column > span { grid-column: 1 / -1; }
    .footer-social-column a { white-space: nowrap; font-size: 11px; }
    .medcor-page-refresh {
        display: inline-flex !important;
        min-height: 48px;
        padding: 0 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid rgba(0, 220, 218, .45);
        border-radius: 4px;
        color: #fff;
        background: linear-gradient(135deg, #087f82, #075d66);
        box-shadow: 0 7px 18px rgba(0, 0, 0, .18);
        font: inherit;
        font-size: 11px;
        font-weight: 700;
        white-space: nowrap;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    }
    .medcor-page-refresh svg { width: 17px; height: 17px; fill: currentColor; flex: 0 0 auto; }
    .medcor-page-refresh:active { transform: scale(.97); }
    .medcor-page-refresh:focus-visible { outline: 2px solid #20d8d2; outline-offset: 3px; }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 9px;
        padding-top: 18px;
        text-align: center;
        font-size: 10px;
        line-height: 1.55;
    }
    .footer-bottom > span { display: block; width: 100%; text-align: center; }
    .footer-bottom > span:last-child { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* =========================================================
   11. BOTÓN FLOTANTE DE WHATSAPP — acceso permanente.
   ========================================================= */
.whatsapp-float {
    position: fixed;
    right: max(24px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 1000;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 50%;
    color: #fff;
    background: #25D366;
    box-shadow: 0 5px 18px rgba(15,45,31,.25), 0 2px 5px rgba(0,0,0,.12);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
    -webkit-tap-highlight-color: transparent;
}
.whatsapp-float svg { display: block; width: 32px; height: 32px; }
.whatsapp-float:hover {
    transform: translateY(-3px);
    background: #20BD5A;
    box-shadow: 0 8px 22px rgba(15,45,31,.3), 0 3px 7px rgba(0,0,0,.13);
}
.whatsapp-float:focus-visible { outline: 3px solid #20282E; outline-offset: 4px; }
@media (max-width: 900px) {
    .whatsapp-float { right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); width: 54px; height: 54px; }
    .whatsapp-float svg { width: 30px; height: 30px; }
}
@media (max-width: 620px) {
    .whatsapp-float { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: 52px; height: 52px; }
    .whatsapp-float svg { width: 29px; height: 29px; }
}
@media (prefers-reduced-motion: reduce) {
    .whatsapp-float { transition: none; }
}



/* MEDCOR: controles flotantes inferiores */
.medcor-floating-call,
.medcor-scroll-top {
    position: fixed;
    z-index: 999;
    bottom: 26px;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 18px rgba(20, 30, 36, .22);
    transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease;
    cursor: pointer;
}
.medcor-floating-call {
    left: 26px;
    display: none;
    background: #168875;
    color: #fff;
    text-decoration: none;
}
.medcor-scroll-top {
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: #20282E;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.medcor-floating-call svg,
.medcor-scroll-top svg {
    width: 27px;
    height: 27px;
    fill: currentColor;
}
.medcor-floating-call:hover,
.medcor-scroll-top:hover {
    box-shadow: 0 7px 22px rgba(20, 30, 36, .3);
}
.medcor-scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
@media (max-width: 767px) {
    .medcor-floating-call,
    .medcor-scroll-top {
        bottom: 18px;
        width: 52px;
        height: 52px;
    }
    .medcor-floating-call { display: flex; left: 16px; }
    .medcor-scroll-top { width: 50px; height: 50px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .medcor-scroll-top { width: 54px; height: 54px; bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .medcor-floating-call, .medcor-scroll-top { transition: none; }
}



/* MEDCOR: botón de correo electrónico, solo móvil */
.medcor-floating-email {
    display: none;
}
@media (max-width: 767px) {
    .medcor-floating-email {
        position: fixed;
        z-index: 999;
        left: 16px;
        bottom: 82px;
        width: 52px;
        height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #20282E;
        color: #fff;
        text-decoration: none;
        box-shadow: 0 5px 18px rgba(20, 30, 36, .22);
        transition: box-shadow .25s ease, transform .25s ease;
    }
    .medcor-floating-email svg {
        width: 26px;
        height: 26px;
        fill: currentColor;
    }
    .medcor-floating-email:hover {
        box-shadow: 0 7px 22px rgba(20, 30, 36, .3);
    }
}



/* MEDCOR: preloader ligero con fondo corporativo claro */
.medcor-preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(ellipse at 50% 42%, rgba(255,255,255,.98) 0%, rgba(246,248,248,.97) 48%, rgba(232,237,237,.96) 100%);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 1;
    visibility: visible;
    transition: opacity .38s ease, visibility .38s ease;
}
.medcor-preloader__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 34px 42px;
    border: 1px solid rgba(32,40,46,.07);
    border-radius: 18px;
    background: rgba(255,255,255,.72);
    box-shadow: 0 16px 48px rgba(32,40,46,.08);
}
.medcor-preloader__logo {
    display: block;
    width: min(220px, 58vw);
    max-height: 110px;
    object-fit: contain;
    animation: medcor-preloader-pulse 1.25s ease-in-out infinite;
}
.medcor-preloader__loader {
    display: block;
    width: 46px;
    height: 3px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(22,136,117,.16);
    position: relative;
}
.medcor-preloader__loader::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 42%;
    border-radius: inherit;
    background: #168875;
    animation: medcor-preloader-progress .95s ease-in-out infinite;
}
.medcor-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
@keyframes medcor-preloader-pulse {
    0%, 100% { opacity: .72; transform: scale(.99); }
    50% { opacity: 1; transform: scale(1); }
}
@keyframes medcor-preloader-progress {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(245%); }
}
@media (max-width: 480px) {
    .medcor-preloader__panel { padding: 28px 32px; gap: 20px; }
    .medcor-preloader__logo { width: min(190px, 62vw); }
}
@media (prefers-reduced-motion: reduce) {
    .medcor-preloader,
    .medcor-preloader__logo,
    .medcor-preloader__loader::after { animation: none; transition: opacity .2s ease; }
}

@media (max-width: 390px) {
    .footer-social-column {
        grid-template-columns: repeat(3, max-content);
        justify-content: space-between;
        column-gap: 7px;
    }
    .footer-social-column .medcor-page-refresh {
        grid-column: 1 / -1;
        justify-self: end;
        min-width: 150px;
    }
    .footer-brand-block p { font-size: 10px; letter-spacing: -.025em; }
}
