@charset "utf-8";
/* ============================================================
   CENTRO MÉDICO CASTELLI — Rediseño 2026
   ------------------------------------------------------------
   Referencia de estilo: Clinicom (Inter, teal, curvas, botones
   píldora), adaptada al petróleo de la marca Castelli.

   Parte A — componentes de las páginas nuevas (index / staff),
             todos con prefijo .c-
   Parte B — piel para el marcado heredado (sistema de turnos,
             recetas, calendario). Solo aspecto: no depende de
             ni modifica ningún id, name o script.

   Backups: _backup_rediseno_2026/  y  _backup_css_2026/
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;600;700&family=Inter:wght@400;500;600&display=swap');

/* ------------------------------------------------------------
   0. TOKENS
   ------------------------------------------------------------ */
:root {
    --petrol: #3E7880;        /* color de marca (banner original) */
    --petrol-deep: #2A5258;   /* footer */
    --teal: #0FB3B0;          /* acentos: íconos, checks, curvas */
    --teal-ink: #0A7F7D;      /* botones y links (AA con blanco) */
    --teal-soft: #E3F4F3;
    --ink: #173A40;           /* títulos */
    --text: #56676C;          /* párrafos */
    --muted: #7F8F93;
    --mist: #F3F7F8;          /* secciones alternadas */
    --line: #DCE6E8;
    --white: #FFFFFF;
    --wa: #25D366;

    --danger: #C2412D;
    --danger-soft: #FBECE9;
    --warn: #A86B00;
    --warn-soft: #FDF4E2;

    --f-display: 'Inter Tight', 'Inter', 'Segoe UI', sans-serif;
    --f-body: 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;

    --r-pill: 999px;
    --r-lg: 22px;
    --r-md: 12px;
    --r-sm: 8px;

    --wrap: 1180px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ------------------------------------------------------------
   1. BASE  (prefijo html body para ganarle a Bootstrap 3,
   que en el sistema de turnos se carga después de esta hoja)
   ------------------------------------------------------------ */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

html body {
    margin: 0;
    background: var(--white);
    border-top: 0;
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    text-align: left;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html body h1, html body h2, html body h3,
html body h4, html body h5, html body h6 {
    font-family: var(--f-display);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.015em;
    text-transform: none;
    text-shadow: none;
    margin: 0 0 .6em;
}
html body h1 { font-size: clamp(38px, 6vw, 64px); }
html body h2 { font-size: clamp(28px, 3.6vw, 40px); }
html body h3 { font-size: 22px; }
html body h4 { font-size: 19px; }
html body h5 { font-size: 17px; }

html body p { color: var(--text); margin: 0 0 1em; }
html body strong, html body b { font-weight: 600; color: var(--ink); }
html body a { color: var(--teal-ink); text-decoration: none; transition: color .2s; }
html body a:hover { color: var(--ink); text-decoration: none; }

html body img { max-width: 100%; height: auto; }
html body hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

::selection { background: var(--teal); color: #fff; }

html body :focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 3px;
    border-radius: 4px;
}

.c-sr {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

.c-wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* ============================================================
   PARTE A — PÁGINAS NUEVAS
   ============================================================ */

/* ---------- Botones ---------- */
.c-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: var(--r-pill);
    border: 2px solid transparent;
    font-family: var(--f-body);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.c-btn .fa { font-size: 18px; }
html body .c-btn--solid { background: var(--teal-ink); color: #fff; }
html body .c-btn--solid:hover { background: var(--ink); color: #fff; }
html body .c-btn--white { background: #fff; color: var(--teal-ink); }
html body .c-btn--white:hover { background: var(--teal-soft); color: var(--ink); }
html body .c-btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
html body .c-btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }
html body .c-btn--line { border-color: var(--teal); color: var(--teal-ink) !important; padding: 11px 22px; font-size: 14px; }
html body .c-btn--line:hover { background: var(--teal-ink); border-color: var(--teal-ink); color: #fff !important; }
.c-btn:active { transform: translateY(1px); }

/* ---------- Franja superior ---------- */
.c-top {
    background: #fff;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.c-top .c-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
}
.c-top__info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 28px;
    margin: 0; padding: 0; list-style: none;
    color: var(--text);
}
.c-top__info li { display: flex; align-items: center; gap: 9px; }
.c-top__info .fa, .c-top__info .zmdi { color: var(--teal); font-size: 16px; }
html body .c-top__info a { color: var(--text) !important; }
html body .c-top__info a:hover { color: var(--teal-ink) !important; }

/* ---------- Navegación ---------- */
.c-nav {
    background: var(--petrol);
    position: sticky;
    top: 0;
    z-index: 50;
}
.c-nav .c-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 76px;
}
.c-brand {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
    color: #fff;
}
html body a.c-brand, html body a.c-brand:hover { color: #fff !important; }
.c-brand__small {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: 13px;
    letter-spacing: .16em;
    text-transform: uppercase;    /* replica el logotipo original */
    opacity: .85;
    margin-bottom: 5px;
}
.c-brand__big {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 26px;
    letter-spacing: .02em;
}
.c-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0; padding: 0; list-style: none;
}
html body .c-menu a {
    display: block;
    padding: 10px 16px;
    border-radius: var(--r-pill);
    color: rgba(255,255,255,.88) !important;
    font-size: 15px;
    font-weight: 500;
}
html body .c-menu a:hover { color: #fff !important; background: rgba(255,255,255,.1); }
html body .c-menu a[aria-current="page"] { color: var(--petrol) !important; background: #fff; }
html body .c-menu .c-menu__wa {
    display: inline-flex; align-items: center; gap: 8px;
    margin-left: 8px;
    background: var(--wa);
    color: #0B3D22 !important;
    font-weight: 600;
}
html body .c-menu .c-menu__wa:hover { background: #fff; color: #0B3D22 !important; }
.c-menu__wa .fa, .c-menu__wa .zmdi { font-size: 18px; }

/* ---------- Hero ---------- */
.c-hero {
    position: relative;
    background: var(--petrol);
    color: #fff;
    padding: 72px 0 150px;
    overflow: hidden;
}
.c-hero::before {               /* luz suave detrás del texto */
    content: "";
    position: absolute;
    inset: -30% auto auto -15%;
    width: 70%;
    aspect-ratio: 1;
    background: radial-gradient(closest-side, rgba(15,179,176,.35), transparent);
    pointer-events: none;
}
.c-hero .c-wrap {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
}
html body .c-hero h1 {
    color: #fff;
    font-size: clamp(44px, 6.2vw, 84px);
    line-height: .98;
    letter-spacing: -0.03em;
    margin-bottom: 26px;
}
.c-hero h1 .c-light { display: block; font-weight: 300; white-space: nowrap; }
.c-hero h1 .c-bold { display: block; font-weight: 700; }
html body .c-hero__lead {
    color: rgba(255,255,255,.86);
    font-size: 19px;
    line-height: 1.6;
    max-width: 30em;
    margin-bottom: 30px;
}
.c-hero__facts {
    display: grid;
    gap: 12px;
    margin: 0 0 36px; padding: 0; list-style: none;
}
.c-hero__facts li {
    display: flex; align-items: center; gap: 14px;
    font-size: 16px;
    color: #fff;
}
.c-hero__facts .fa {
    flex: none;
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #9FE7E3;
    font-size: 16px;
}
html body .c-hero__facts a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.35); }
html body .c-hero__facts a:hover { border-color: #fff; color: #fff; }
.c-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.c-hero__photo {
    position: relative;
    margin: 0;
}
.c-hero__photo img {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    object-position: 60% 50%;
    border-radius: 200px 200px var(--r-lg) var(--r-lg);
    box-shadow: 0 30px 60px -25px rgba(10, 40, 45, .55);
}
.c-hero__note {
    position: absolute;
    left: -28px;
    bottom: 34px;
    max-width: 250px;
    padding: 18px 20px;
    background: #fff;
    border-radius: var(--r-md);
    box-shadow: 0 18px 40px -18px rgba(10, 40, 45, .45);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}
.c-hero__note strong { display: block; font-family: var(--f-display); font-size: 17px; margin-bottom: 4px; }

.c-curve {                      /* corte curvo hacia la sección siguiente */
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    width: 100%;
    height: 90px;
    display: block;
}
.c-curve path { fill: var(--white); }
.c-curve--mist path { fill: var(--mist); }

/* Entrada única del hero */
@media (prefers-reduced-motion: no-preference) {
    .c-hero__text > * { animation: c-rise .8s var(--ease) both; }
    .c-hero__text > *:nth-child(2) { animation-delay: .08s; }
    .c-hero__text > *:nth-child(3) { animation-delay: .16s; }
    .c-hero__text > *:nth-child(4) { animation-delay: .24s; }
    .c-hero__photo img { animation: c-reveal 1.1s var(--ease) .15s both; }
    .c-hero__note { animation: c-rise .8s var(--ease) .7s both; }
}
@keyframes c-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes c-reveal { from { opacity: 0; clip-path: inset(18% 0 0 0 round 200px 200px 22px 22px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 200px 200px 22px 22px); } }

/* ---------- Secciones ---------- */
.c-section { padding: 96px 0; position: relative; }
.c-section--mist { background: var(--mist); }
.c-section__head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
html body .c-section__head p { font-size: 18px; margin: 0; }

/* Sobre el centro */
.c-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
html body .c-about h2 { margin-bottom: 22px; }
html body .c-about__text p { font-size: 17px; max-width: 34em; }
.c-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    margin: 30px 0 0; padding: 26px 0 0;
    border-top: 1px dashed var(--line);
    list-style: none;
}
.c-checks li { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; font-size: 15px; }
.c-checks .fa { color: var(--teal); font-size: 17px; }

.c-paths { display: grid; gap: 22px; }
.c-path {
    position: relative;
    padding: 30px 30px 30px 102px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: #fff;
}
.c-path__icon {
    position: absolute;
    left: 28px; top: 30px;
    width: 52px; height: 52px;
    display: grid; place-items: center;
    border-radius: 16px;
    background: var(--teal-soft);
    color: var(--teal-ink);
    font-size: 23px;
}
html body .c-path h3 { font-size: 21px; margin-bottom: 8px; }
html body .c-path p { margin-bottom: 18px; }
.c-path--accent { background: var(--petrol); border-color: var(--petrol); }
html body .c-path--accent h3 { color: #fff; }
html body .c-path--accent p { color: rgba(255,255,255,.85); }
.c-path--accent .c-path__icon { background: rgba(255,255,255,.14); color: #fff; }
html body .c-path--accent .c-big-phone { color: #fff; }
html body .c-big-phone {
    font-family: var(--f-display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Índice de especialidades (home) */
.c-specs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0; padding: 0; list-style: none;
}
.c-spec a {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 132px;
    height: 100%;
    box-sizing: border-box;
    padding: 22px 22px 20px;
    background: #fff;
    border-radius: var(--r-md);
    border: 1px solid transparent;
    transition: border-color .2s, transform .2s var(--ease);
}
.c-spec a:hover { border-color: var(--teal); transform: translateY(-2px); }
.c-spec__name {
    font-family: var(--f-display);
    font-size: 21px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
}
.c-spec__count { font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.c-spec__count .fa { color: var(--teal); font-size: 15px; }
.c-spec--cta a {
    background: var(--petrol);
}
.c-spec--cta .c-spec__name { color: #fff; font-size: 18px; font-weight: 400; }
.c-spec--cta .c-spec__count { color: #fff; font-family: var(--f-display); font-size: 22px; font-weight: 700; }
.c-spec--cta a:hover { border-color: var(--petrol); background: var(--petrol-deep); }

/* Dónde estamos */
.c-place {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 56px;
    align-items: center;
}
.c-place__list { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.c-place__list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.c-place__list .fa {
    width: 44px; height: 44px; display: grid; place-items: center;
    border-radius: 50%; background: var(--teal-soft); color: var(--teal-ink); font-size: 18px;
}
.c-place__list strong { display: block; font-size: 15px; }
.c-place__list span { font-size: 15px; color: var(--text); }
.c-map {
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    line-height: 0;
}
.c-map iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- Staff ---------- */
.c-hero--page { padding: 64px 0 130px; }
.c-hero--page .c-wrap { display: block; }
html body .c-hero--page h1 { font-size: clamp(42px, 6vw, 76px); margin-bottom: 18px; }
html body .c-hero--page .c-hero__lead { margin-bottom: 0; }

.c-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 56px; padding: 0; list-style: none;
}
html body .c-jump a {
    display: inline-block;
    padding: 9px 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    background: #fff;
}
html body .c-jump a:hover { border-color: var(--teal); color: var(--teal-ink); }

.c-staff {
    column-count: 3;
    column-gap: 40px;
}
.c-dept {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin: 0 0 40px;
    padding-top: 20px;
    border-top: 3px solid var(--teal);
    scroll-margin-top: 100px;
}
.c-dept__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
html body .c-dept h2 { font-size: 26px; margin: 0; }
.c-dept__count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.c-docs { margin: 0; padding: 0; list-style: none; }
.c-docs li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.c-docs li:last-child { border-bottom: 0; }
.c-docs strong { display: block; font-size: 16px; color: var(--ink); }
.c-docs span { display: block; font-size: 14px; color: var(--text); line-height: 1.45; margin-top: 2px; }

.c-band {
    margin-top: 24px;
    padding: 40px 44px;
    border-radius: var(--r-lg);
    background: var(--petrol);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
html body .c-band h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin: 0 0 6px; }
html body .c-band p { color: rgba(255,255,255,.85); margin: 0; }
.c-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer nuevo ---------- */
.c-foot {
    background: var(--petrol-deep);
    color: rgba(255,255,255,.75);
    padding: 72px 0 0;
    font-size: 15px;
}
.c-foot__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
}
html body .c-foot h3 { color: #fff; font-size: 17px; margin-bottom: 16px; }
html body .c-foot p { color: rgba(255,255,255,.75); }
.c-foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
html body .c-foot a { color: #fff !important; }
html body .c-foot a:hover { color: #9FE7E3 !important; }
.c-foot .fa, .c-foot .zmdi { width: 20px; color: #9FE7E3; text-align: center; margin-right: 4px; }
div.container ~ .c-foot { margin-top: 80px; }   /* sistema de turnos */
.c-nav ~ div.container { padding-top: 56px; }   /* sistema de turnos */
.c-foot__about { margin-top: 18px; max-width: 28em; }
.c-foot__bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 22px 0;
    font-size: 13px;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
}
html body .c-foot__bottom p { margin: 0; color: rgba(255,255,255,.6); }

/* ---------- Responsive páginas nuevas ---------- */
@media (max-width: 980px) {
    .c-hero .c-wrap, .c-about, .c-place { grid-template-columns: 1fr; gap: 44px; }
    .c-hero__photo { max-width: 560px; }
    .c-hero__note { left: 16px; }
    .c-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .c-staff { column-count: 2; }
    .c-foot__grid { grid-template-columns: 1fr 1fr; }
    .c-top__info li:nth-child(1) { display: none; }
}
@media (max-width: 640px) {
    .c-wrap { padding: 0 16px; }
    .c-top .c-wrap { min-height: 52px; }
    .c-top__info li:nth-child(3) { display: none; }
    .c-top .c-btn--line { padding: 9px 16px; font-size: 13px; }
    .c-nav { position: static; }
    .c-nav .c-wrap { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 16px; padding-bottom: 14px; }
    .c-menu { flex-wrap: wrap; gap: 4px; margin-left: -12px; }
    html body .c-menu a { padding: 8px 12px; font-size: 14px; }
    html body .c-menu .c-menu__wa { margin-left: 0; }
    .c-hero { padding: 48px 0 110px; }
    html body .c-hero__lead { font-size: 17px; }
    .c-hero__actions .c-btn { width: 100%; justify-content: center; }
    .c-hero__photo img { border-radius: 140px 140px var(--r-lg) var(--r-lg); }
    .c-hero__note { position: static; max-width: none; margin-top: -40px; margin-left: 16px; margin-right: 16px; position: relative; }
    .c-curve { height: 50px; }
    .c-section { padding: 64px 0; }
    .c-checks { grid-template-columns: 1fr; }
    .c-path { padding: 26px 22px; }
    .c-path__icon { position: static; margin-bottom: 16px; }
    .c-specs { grid-template-columns: 1fr 1fr; gap: 10px; }
    .c-spec a { min-height: 112px; padding: 16px; }
    .c-spec__name { font-size: 18px; }
    .c-staff { column-count: 1; }
    .c-map iframe { height: 320px; }
    .c-band { padding: 30px 24px; }
    .c-foot__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   PARTE B — PIEL DEL MARCADO HEREDADO
   (sistema de turnos /turnos, formulario-recetas.php,
   calendario z_*, páginas antiguas). Solo apariencia.
   ============================================================ */

/* ---------- Contenedor y grilla Bootstrap 2 ---------- */
div.container {
    width: auto;
    max-width: var(--wrap);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}
.row:has(> [class*="span"]) {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-left: 0;
}
.row:has(> [class*="span"])::before,
.row:has(> [class*="span"])::after { content: none; }
.row:has(> [class*="span"]) > [class*="span"] { float: none; margin-left: 0; width: auto; min-width: 0; }
.row:has(> [class*="span"]) > .span12 { flex: 1 1 100%; }
.row:has(> [class*="span"]) > .span8 { flex: 2 1 420px; }
.row:has(> [class*="span"]) > .span6 { flex: 1 1 320px; }
.row:has(> [class*="span"]) > .span4 { flex: 1 1 260px; }
.row:has(> [class*="span"]) > .span1 { display: none; }

/* ---------- Header heredado → barra petróleo ---------- */
.header.row {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin: 0 0 56px;
    padding: 18px 0;
    background: var(--petrol);
    /* la barra ocupa todo el ancho aunque el marcado esté dentro de .container */
    box-shadow: 0 0 0 100vmax var(--petrol);
    clip-path: inset(0 -100vmax);
}
.header.row::before, .header.row::after { content: none; display: none; }
.header.row > [class*="span"],
.header.row > [class*="col-"] { float: none; width: auto; margin: 0; padding: 0; min-height: 0; }
html body .logo h2 { margin: 0; padding: 0; font-size: 0; line-height: 1; }
html body .logo h2 a {
    display: inline-block;
    font-family: var(--f-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .01em;
    color: #fff !important;
    background: none;
    text-indent: 0;
    width: auto; height: auto;
}
html body .logo h2 a:hover { color: #fff !important; opacity: .85; }

html body .tel-skype { text-align: right; }
html body .tel-skype p {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-size: 0;           /* oculta los &nbsp; separadores */
    color: transparent;
}
html body .tel-skype p b,
html body .tel-skype p em { font-style: normal; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
html body .tel-skype p a {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: var(--r-pill);
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,.9) !important;
    background: transparent;
}
html body .tel-skype p a:hover { background: rgba(255,255,255,.12); color: #fff !important; }
html body .tel-skype p .active a,
html body .tel-skype p b.active a { background: #fff; color: var(--petrol) !important; }
html body .tel-skype p em em { display: contents; }
html body .tel-skype a.whatsapp {
    position: static;
    width: 42px; height: 42px;
    padding: 0;
    justify-content: center;
    background: var(--wa);
    color: #0B3D22 !important;
    border-radius: 50%;
    font-size: 20px;
    box-shadow: none;
    margin-left: 6px;
}
html body .tel-skype a.whatsapp:hover { background: #fff; }
.tel-skype a.whatsapp .whatsapp-icon { margin-top: 0; }

/* Banner antiguo del home (si una página vieja aún lo usa) */
img[alt="bahia medicos"] { display: block; width: 100%; border-radius: var(--r-lg); }

/* ---------- Bloques de texto (.about-us_2) ---------- */
.about-us_2 { margin: 0 0 30px; }
html body .about-us_2 h3,
html body .about-us_2 h5 {
    font-size: 21px;
    margin: 0 0 10px;
    padding-left: 16px;
    border-left: 3px solid var(--teal);
    line-height: 1.25;
}
.about-us_2 h5::before, .about-us_2 h5::after { content: none; }
html body .about-us_2 p { font-size: 15px; line-height: 1.7; }
.about-us_2 br + br { display: none; }
.about-us_2 h5 + br { display: none; }
.about-us_2 span { font-size: 14px; color: var(--text); }

.margen { margin: 0; line-height: 1.6; }
.margen img { display: block; border-radius: var(--r-md); }
.margen a { display: inline-block; }

/* Panel principal de turnos / recetas */
.contact-us > .margen,
.span12.contact-us {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--teal);
    border-radius: var(--r-lg);
    padding: 34px 36px;
    box-sizing: border-box;
}
html body .contact-us h2 {
    font-size: clamp(28px, 3.4vw, 38px);
    margin: 0 0 22px;
}
html body .contact-us h2::after { content: none; }

/* Features / mapa en páginas viejas */
.features_2, .features_3 { margin-top: 40px; }
.features_2 .feature-icon i, .features_3 .feature-icon i { color: var(--teal); font-size: 26px; }
html body .feature-text h4 { font-size: 20px; margin: 10px 0 8px; }
iframe[src*="google.com/maps"] { border-radius: var(--r-lg); display: block; }

/* ---------- Botones (Bootstrap 2 y 3) ---------- */
html body a.btn, html body button.btn, html body input.btn, html body .btn.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--teal-ink);
    background-image: none;
    color: #fff !important;
    font-family: var(--f-body);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.1;
    text-shadow: none;
    box-shadow: none;
    transition: background .2s, transform .2s var(--ease);
    height: auto;
    vertical-align: middle;
}
html body .btn.btn:hover, html body .btn.btn:focus { background: var(--ink); color: #fff !important; }
html body .btn.btn:active { transform: translateY(1px); box-shadow: none; }
html body .btn.btn[disabled], html body .btn.btn.disabled { opacity: .55; cursor: not-allowed; }
html body .btn.btn-success { background: var(--teal-ink); }
html body .btn.btn-primary, html body .btn.btn-info { background: var(--petrol); }
html body .btn.btn-warning {
    background: #fff;
    color: var(--ink) !important;
    box-shadow: inset 0 0 0 1px var(--line);
}
html body .btn.btn-warning:hover { background: var(--mist); color: var(--ink) !important; }
html body .btn.btn-danger { background: var(--danger); }
html body .btn.btn-danger:hover { background: #8F2A1B; }
html body .btn.btn-lg { padding: 18px 30px; font-size: 18px !important; }
html body .btn.btn-xs { padding: 7px 12px; font-size: 13px; }
html body .btn.btn-block { display: flex; width: 100%; }

/* Botón del formulario de recetas antiguo */
html body .contact-us form button:not(.btn) {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 34px; margin-top: 10px;
    border: 0; border-radius: var(--r-pill);
    background: var(--teal-ink); color: #fff;
    font-family: var(--f-body); font-size: 15px; font-weight: 600;
    cursor: pointer;
}
html body .contact-us form button:not(.btn):hover { background: var(--ink); }

/* ---------- Formularios ---------- */
html body legend {
    font-family: var(--f-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    border: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
    margin: 28px 0 20px;
    width: 100%;
}
html body form label {
    display: inline-block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}
html body input.form-control,
html body select.form-control,
html body textarea.form-control,
html body .contact-us form input[type="text"],
html body .contact-us form input[type="tel"],
html body .contact-us form input[type="number"],
html body .contact-us form input[type="email"],
html body .contact-us form select,
html body .contact-us form textarea,
html body form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: auto;
    min-height: 50px;
    padding: 12px 16px;
    margin: 0 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--mist);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.4;
    box-shadow: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
html body form textarea { min-height: 130px; resize: vertical; }
html body input.form-control:focus,
html body select.form-control:focus,
html body textarea.form-control:focus,
html body .contact-us form input:focus,
html body .contact-us form select:focus,
html body form textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(15,179,176,.18);
}
html body ::placeholder { color: #9AA8AC; opacity: 1; }
html body .form-group { margin-bottom: 16px; }
html body .form-group .form-control { margin-bottom: 0; }

/* Campo DNI del sistema de turnos (tiene ancho inline: lo respetamos en escritorio) */
html body #dni-form .form-group { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
html body #dni-form .form-group > br { display: none; }
html body #dni-form .form-group > label { flex: 1 1 100%; margin: 0; }
html body #dni-form input#dni {
    height: 54px !important;
    width: 240px !important;
    max-width: 100%;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: .04em;
}
html body #dni-form .btn { margin: 0 !important; min-height: 54px; }

html body input[type="checkbox"], html body input[type="radio"] {
    width: 18px; height: 18px; min-height: 0;
    accent-color: var(--teal-ink);
    margin: 4px 8px 10px 0;
    box-shadow: none;
}

/* ---------- Tablas ---------- */
html body table.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: var(--r-md);
    overflow: hidden;
    margin-bottom: 20px;
}
html body .table.table > thead > tr > th {
    background: var(--mist);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid var(--line);
    border-top: 0;
    padding: 13px 16px;
}
html body .table.table > tbody > tr > td {
    padding: 13px 16px;
    vertical-align: middle;
    border-top: 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-size: 15px;
}
html body .table.table > tbody > tr:last-child > td { border-bottom: 0; }
html body .table-bordered.table-bordered { border: 1px solid var(--line); }
html body .table-bordered.table-bordered > thead > tr > th,
html body .table-bordered.table-bordered > tbody > tr > td { border-left: 0; border-right: 0; }
html body .table-hover.table-hover > tbody > tr:hover { background: var(--teal-soft); }
html body #table-horarios td { cursor: pointer; font-weight: 600; color: var(--teal-ink); text-align: center; }
html body #table-horarios td:hover { background: var(--teal-soft); }

/* ---------- Alertas, wells, listas, etiquetas ---------- */
html body .alert.alert {
    border: 0;
    border-left: 4px solid currentColor;
    border-radius: var(--r-md);
    padding: 16px 20px;
    font-size: 15px;
    text-shadow: none;
    box-shadow: none;
}
html body .alert.alert-info { background: var(--teal-soft); color: var(--teal-ink); }
html body .alert.alert-info strong { color: var(--ink); }
html body .alert.alert-success { background: #E6F6EC; color: #1F7A43; }
html body .alert.alert-warning { background: var(--warn-soft); color: var(--warn); }
html body .alert.alert-danger, html body .alert.alert-error { background: var(--danger-soft); color: var(--danger); }

html body div.well {
    background: var(--mist);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: none;
    padding: 26px;
}
html body div.well div.well { background: #fff; border-radius: var(--r-md); }
html body .list-group .list-group-item {
    border-color: var(--line);
    padding: 14px 18px;
    color: var(--text);
}
html body .list-group .list-group-item:first-child { border-radius: var(--r-md) var(--r-md) 0 0; }
html body .list-group .list-group-item:last-child { border-radius: 0 0 var(--r-md) var(--r-md); }
html body .label.label {
    display: inline-block;
    padding: 5px 12px;
    border-radius: var(--r-pill);
    font-size: 13px;
    font-weight: 600;
    text-shadow: none;
}
html body .label.label-info { background: var(--teal-soft); color: var(--teal-ink); }
html body .label.label-success { background: #E6F6EC; color: #1F7A43; }
html body .label.label-warning { background: var(--warn-soft); color: var(--warn); }
html body .label.label-danger, html body .label.label-important { background: var(--danger-soft); color: var(--danger); }

/* ---------- Datepicker (eonasdan) del sistema de turnos ---------- */
html body .date-picker-inline .bootstrap-datetimepicker-widget,
html body .date-picker-inline {
    background: #fff;
    border-radius: var(--r-lg);
}
html body .date-picker-inline { border: 1px solid var(--line); padding: 10px; }
html body .bootstrap-datetimepicker-widget table th.picker-switch {
    font-family: var(--f-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
}
html body .bootstrap-datetimepicker-widget table th.dow {
    font-size: 12px; font-weight: 600; color: var(--muted);
}
html body .bootstrap-datetimepicker-widget table td.day {
    height: 40px; width: 40px; line-height: 40px;
    border-radius: 50%;
    font-weight: 600; color: var(--ink);
}
html body .bootstrap-datetimepicker-widget table td.day:hover { background: var(--teal-soft); }
html body .bootstrap-datetimepicker-widget table td.disabled,
html body .bootstrap-datetimepicker-widget table td.disabled:hover { color: #B8C3C6; font-weight: 400; background: none; }
html body .bootstrap-datetimepicker-widget table td.active.active,
html body .bootstrap-datetimepicker-widget table td.active.active:hover { background: var(--teal-ink); color: #fff; text-shadow: none; }
html body .bootstrap-datetimepicker-widget table td.today.today::before { border-bottom-color: var(--teal); }
html body .bootstrap-datetimepicker-widget table th.prev:hover,
html body .bootstrap-datetimepicker-widget table th.next:hover,
html body .bootstrap-datetimepicker-widget table th.picker-switch:hover { background: var(--mist); border-radius: var(--r-sm); }

html body a.solicitar_turno-btn {
    display: inline;
    font-weight: 600;
    color: var(--teal-ink) !important;
    border-bottom: 2px solid var(--teal);
}

/* ---------- SweetAlert2 ---------- */
html body .swal2-modal { border-radius: var(--r-lg) !important; font-family: var(--f-body) !important; }
html body .swal2-modal .swal2-title { font-family: var(--f-display); color: var(--ink); }
html body .swal2-modal .swal2-confirm { border-radius: var(--r-pill) !important; background-color: var(--teal-ink) !important; }
html body .swal2-modal .swal2-cancel { border-radius: var(--r-pill) !important; }

/* ---------- Calendario heredado (z_calendario / recetas) ---------- */
.tit { font-weight: 600; background: var(--petrol); color: #fff; }
.dia_elige { background: var(--teal-ink); color: #fff; font-weight: 700; text-align: center; border-radius: 50%; }
.dia_normal { text-decoration: line-through; color: #B8C3C6; text-align: center; }
.dia_atencion { font-weight: 700; color: var(--teal-ink); text-align: center; cursor: pointer; border-radius: 50%; }
.dia_atencion:hover { background: var(--teal-soft); }
.titulos { font-family: var(--f-display); font-weight: 600; color: var(--ink); }
.especial, .especial_2, .especial_3 { color: var(--teal-ink); font-weight: 500; }
.error { color: var(--danger); font-weight: 500; }
.boton_php {
    display: inline-block; padding: 10px 20px; border: 0; border-radius: var(--r-pill);
    background: var(--teal-ink); color: #fff; font-weight: 600; cursor: pointer;
}
.boton_php:hover { background: var(--ink); }

/* ---------- Botón flotante de WhatsApp ---------- */
a.whatsapp:not(.tel-skype a):not(:has(> img)) {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100;
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--wa);
    color: #0B3D22 !important;
    font-size: 30px;
    box-shadow: 0 12px 28px -8px rgba(10, 60, 35, .55);
    transition: transform .2s var(--ease);
}
a.whatsapp:not(.tel-skype a):not(:has(> img)):hover { transform: scale(1.06); }
.whatsapp-icon { margin-top: 0; line-height: 1; }

/* ---------- Footer heredado ---------- */
html body footer:not(.c-foot) {
    margin-top: 80px;
    padding: 40px 0 30px;
    background: var(--petrol-deep);
    color: rgba(255,255,255,.75);
    border: 0;
    text-align: center;
}
html body footer:not(.c-foot) p { color: rgba(255,255,255,.72); margin: 0; font-size: 14px; }
html body footer:not(.c-foot) b, html body footer:not(.c-foot) strong { color: #fff; }
html body footer:not(.c-foot) a { color: #fff !important; }
html body footer:not(.c-foot) a:hover { color: #9FE7E3 !important; }
.social-links { display: flex; justify-content: center; gap: 10px; margin-bottom: 22px; }
html body .social-links a {
    width: 42px; height: 42px; margin: 0;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.1) !important;
    font: normal 18px/1 FontAwesome;
    text-decoration: none;
}
html body .social-links a:hover { background: rgba(255,255,255,.2) !important; }
.social-links a.email::before { content: "\f0e0"; }
.social-links a.facebook::before { content: "\f09a"; }
/* Se ocultan Google+ (ya no existe), Facebook (apunta a "#"), YouTube y Doctoralia */
.social-links a.googleplus,
.social-links a.youtube,
.social-links a.doctoralia,
.social-links a[href="#"] { display: none; }
.copyright { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }

/* ---------- Responsive heredado ---------- */
@media (max-width: 767px) {
    div.container { padding-left: 16px; padding-right: 16px; }
    .header.row { flex-direction: column; align-items: flex-start; margin-bottom: 36px; }
    html body .tel-skype p { justify-content: flex-start; margin-left: -14px; }
    .contact-us > .margen, .span12.contact-us { padding: 26px 20px; margin-top: 28px; }
    html body #dni-form input#dni { width: 100% !important; }
    html body #dni-form .btn { width: 100% !important; }
    html body .contact-us table.table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
    html body .btn.btn-lg { font-size: 16px !important; white-space: normal; }
    a.whatsapp:not(.tel-skype a):not(:has(> img)) { right: 16px; bottom: 16px; width: 54px; height: 54px; font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
