/********** Dr. Nelson Rodríguez — Cirugía Endoscópica — Template CSS **********/
:root {
    /* Paleta gris oxford (mismo criterio cromático que centrobariatrico) */
    --ce-oxford: #3E434C;
    --ce-oxford-2: #363A41;
    --ce-oxford-deep: #2E323A;
    --ce-oxford-soft: #545963;
    --ce-accent: #908F97;
    --ce-accent-dark: #74737B;
    --ce-accent-soft: #B7B6BC;
    --ce-text: #303030;
    --ce-text-soft: #4A4E57;
    --ce-muted: #8A8E96;
    --ce-bg: #FFFFFF;
    --ce-bg-soft: #F7F7F8;
    --ce-bg-warm: #EEEFF1;
    --ce-border: #E4E4E6;
    --ce-border-dark: #4B505A;
    --ce-font-heading: 'Lora', Georgia, serif;
    --ce-font-display: 'Montserrat', sans-serif;
    --ce-font-body: 'Inter', sans-serif;
}

html,
body {
    /* Evita el scroll horizontal que generan los elementos AOS (data-aos)
       mientras están en su posición inicial (fuera de pantalla) antes de animarse. */
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--ce-font-body);
    color: var(--ce-text);
    background: var(--ce-bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--ce-font-heading);
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

.ce-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Tipografía compartida de secciones */
.ce-kicker {
    font-family: var(--ce-font-body);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ce-accent-dark);
    margin-bottom: 14px;
}

.ce-title {
    font-family: var(--ce-font-heading);
    font-size: 34px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--ce-oxford);
    margin: 0 0 20px;
}

.ce-title-sm {
    font-size: 28px;
}

.ce-lead {
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--ce-text-soft);
    margin: 0 0 18px;
}

.ce-section {
    padding: 3em 0;
}

.ce-section-soft {
    background: var(--ce-bg-soft);
}

.ce-section-warm {
    background: var(--ce-bg-warm);
}

.ce-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.ce-section-head .ce-title {
    margin-bottom: 14px;
}

/* Botones */
.ce-btn {
    font-family: var(--ce-font-display);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 14.5px;
    font-weight: 600;
    padding: 14px 26px;
    border-radius: 8px;
    border: 1.5px solid transparent;
    white-space: nowrap;
    transition: .25s;
    cursor: pointer;
}

.ce-btn-primary {
    background: var(--ce-oxford);
    color: #fff;
}

.ce-btn-primary:hover {
    background: var(--ce-oxford-deep);
    color: #fff;
}

.ce-btn-outline {
    background: transparent;
    border-color: var(--ce-border);
    color: var(--ce-oxford);
}

.ce-btn-outline:hover {
    border-color: var(--ce-oxford);
    background: #fff;
    color: var(--ce-oxford);
}

.ce-btn-light {
    background: #fff;
    color: var(--ce-oxford);
}

.ce-btn-light:hover {
    background: var(--ce-bg-warm);
    color: var(--ce-oxford);
}

.ce-btn-ghost-light {
    background: transparent;
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}

.ce-btn-ghost-light:hover {
    border-color: #fff;
    color: #fff;
}

/* Navbar */
.ce-navbar {
    background: rgba(255, 255, 255, .97);
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 1px solid var(--ce-border);
    padding-top: 1em;
    padding-bottom: 1em;
}

.ce-navbar-inner {
    max-width: 1240px;
}

.ce-logo {
    height: 40px;
    width: auto;
    max-width: none;
}

.ce-navbar .nav-link {
    font-family: var(--ce-font-body);
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ce-text);
    padding: 10px 13px !important;
}

.ce-navbar .nav-link:hover,
.ce-navbar .nav-link.active {
    color: var(--ce-accent-dark);
}

.ce-navbar-actions {
    gap: 10px;
}

.ce-lang {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--ce-border);
    border-radius: 8px;
    padding: 7px 13px;
    font-family: var(--ce-font-display);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
}

.ce-lang a {
    color: var(--ce-muted);
}

.ce-lang a:hover,
.ce-lang a.is-active {
    color: var(--ce-oxford);
}

.ce-lang span {
    color: var(--ce-border);
}

.ce-btn-cta {
    font-family: var(--ce-font-display);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ce-oxford);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 11px 18px;
    border-radius: 8px;
    white-space: nowrap;
}

.ce-btn-cta:hover {
    background: var(--ce-oxford-deep);
    color: #fff;
}

@media (max-width: 991.98px) {
    .ce-navbar-actions {
        margin-top: 14px;
        flex-wrap: wrap;
    }

    .ce-navbar .nav-link {
        border-bottom: 1px solid var(--ce-border);
    }
}

/* Footer */
.ce-footer {
    background: var(--ce-oxford-2);
    color: #c2c4c8;
    font-family: var(--ce-font-body);
    padding: 30px 0;
    border-top: 1px solid #555;
}

.ce-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 28px;
}

.ce-footer-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.ce-footer-logo {
    height: 38px;
    width: auto;
    max-width: none;
    opacity: .92;
    filter: brightness(0) invert(1);
}

.ce-social {
    display: flex;
    gap: 9px;
}

.ce-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--ce-border-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d3d5d8;
    font-size: 14px;
    transition: .25s;
}

.ce-social a:hover {
    background: var(--ce-accent);
    border-color: var(--ce-accent);
    color: #fff;
}

.ce-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    font-size: 12.5px;
    color: #9a9da3;
}

.ce-footer-legal a {
    color: #c2c4c8;
}

.ce-footer-legal a:hover {
    color: #fff;
}

.ce-footer-copy {
    font-size: 12.5px;
    color: #8d9096;
}

/* Back to top + WhatsApp flotante */
.back-to-top {
    position: fixed;
    display: none;
    left: 30px;
    bottom: 30px;
    z-index: 99;
    width: 46px;
    height: 46px;
    padding: 0;
    line-height: 46px;
    text-align: center;
    background: var(--ce-oxford) !important;
    border-color: var(--ce-oxford) !important;
}

.back-to-top:hover {
    background: var(--ce-accent) !important;
    border-color: var(--ce-accent) !important;
}

.float {
    position: fixed;
    width: 56px;
    height: 56px;
    bottom: 28px;
    right: 28px;
    background: #25D366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, .25);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.float:hover {
    color: #fff;
    background: #1EBE5B;
}

.my-float {
    margin-top: 0;
}

/* Páginas de contenido simple (aviso de privacidad, gracias, 404) */
.ce-page {
    padding: 70px 0 90px;
}

.ce-page h1 {
    font-size: 34px;
    color: var(--ce-oxford);
    margin-bottom: 8px;
}

.ce-page h2 {
    font-size: 21px;
    color: var(--ce-oxford);
    margin: 34px 0 12px;
}

.ce-page p,
.ce-page li {
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--ce-text-soft);
}

.ce-page ul {
    padding-left: 20px;
}

.ce-page-narrow {
    max-width: 860px;
}

.ce-page-center {
    text-align: center;
    max-width: 640px;
    padding: 100px 24px 120px;
}

@media (max-width: 767.98px) {
    .ce-section {
        padding: 60px 0;
    }

    .ce-title {
        font-size: 27px;
    }

    .ce-title-sm {
        font-size: 23px;
    }

    .ce-footer-inner {
        justify-content: flex-start;
    }
}

/********** Bloques compartidos entre secciones **********/
.ce-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.ce-points {
    display: grid;
    gap: 14px;
    margin-top: 26px;
}

.ce-point {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--ce-text);
}

.ce-point i {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--ce-accent);
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- CONTACTO ---------- */
/*.ce-contact {
    background: var(--ce-oxford-2);
    padding: 84px 0;
}

.ce-contact-inner {
    display: grid;
    grid-template-columns: minmax(0, .6fr) minmax(0, 1.05fr);
    gap: 56px;
    align-items: center;
}

.ce-contact .ce-kicker {
    color: var(--ce-accent-soft);
}

.ce-contact h2 {
    font-size: 32px;
    color: #fff;
    margin: 0 0 18px;
}

.ce-contact-sub {
    font-size: 15.5px;
    line-height: 1.7;
    color: #C4C6CB;
    margin: 0 0 32px;
    max-width: 34em;
}

.ce-contact-list {
    display: grid;
    gap: 18px;
}

.ce-contact-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ce-contact-row i {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--ce-oxford);
    color: var(--ce-accent-soft);
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ce-contact-row small {
    display: block;
    font-size: 12.5px;
    color: #9DA1A9;
}

.ce-contact-row a,
.ce-contact-row strong {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    word-break: break-word;
}

.ce-contact-row a:hover {
    color: var(--ce-accent-soft);
}

.ce-contact-card {
    background: var(--ce-oxford);
    border: 1px solid var(--ce-border-dark);
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
}

.ce-contact-card img {
    width: 40%;
    display: inline-block;
    margin: 0;
}

.ce-contact-card div{
    display: inline-block;
    width: 55%;
    padding: 4%;
    vertical-align: middle;
}

.ce-contact-card h3 {
    font-size: 20px;
    color: #fff;
    margin: 0 0 8px;
}

.ce-contact-card p {
    font-size: 14.5px;
    line-height: 1.6;
    color: #B9BCC2;
    margin: 0 0 24px;
}

.ce-contact-card .ce-btn {
    width: 100%;
}*/

/* ===== CONTACTO ===== */

.cb-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 30px;
}

.cb-contact {
    padding: 78px 0;
    background: var(--ce-oxford-2);
    color: #fff;
}

.cb-contact-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 48px;
    align-items: start;
}

.cb-hero-hosp{
    font-size: 29px;
    margin: 0 0 16px;
    font-family: var(--ce-font-heading);
}

.cb-contact-sub {
    font-family: var(--cb-font-body);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--cb-text-soft);
    margin: 1em 0 0;
    max-width: 26em;
}

.cb-contact-list {
    margin-top: 1em;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.cb-contact-row {
    font-family: var(--cb-font-body);
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--cb-text);
}

.cb-contact-row.cb-contact-row-top {
    align-items: flex-start;
}

.cb-contact-row img {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    filter: brightness(0) invert(1);
}

.cb-contact-row .cb-contact-strong {
    font-family: var(--cb-font-heading);
    font-size: 17px;
    font-weight: 600;
}

.cb-contact-row p {
    font-size: 15.5px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    color: var(--cb-text);
}

.cb-map-link {
    font-family: var(--cb-font-heading);
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-top: 6px;
    color: var(--cb-gold);
}

.cb-map-link:hover {
    color: var(--cb-gold-dark);
}

.cb-map {
    border-radius: 20px;
    overflow: hidden;
    min-height: 390px;
    border: 1px solid var(--ce-border-dark);
    background: var(--ce-oxford-deep);
}

.cb-map iframe {
    width: 100%;
    height: 100%;
    min-height: 390px;
    border: 0;
    filter: invert(90%) hue-rotate(180deg) grayscale(10%) contrast(90%);
}


@media (max-width: 575.98px) {
    .ce-hero-ctas .ce-btn {
        flex: 1 1 100%;
    }

    /*.ce-contact-row a,
    .ce-contact-row strong {
        font-size: 15px;
    }

    .ce-contact-card img{
        width: 100%;
    }
    .ce-contact-card div{
        width: 100%;
    }*/
}

@media (max-width: 400px) {
    .ce-logo, .ce-footer-logo {
        height: 33px;
    }
}
