@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap');

/* ==========================================================
CLÍNICA DENTAL CENTRO
VARIABLES
========================================================== */
:root {
    --dental-blue: #204362;
    --dental-teal: #16879E;
    --dental-mint-light: #97E5DB;
    --dental-mint: #5FD1B8;
    --dental-gray: #5C5C60;
    --dental-light: #CACACA;
    --dental-white: #FFFFFF;
    --dental-soft: #F6FAFA;
    --dental-soft-blue: #F2F7F9;
    --dental-transition: all .3s ease;
    --dental-shadow: 0 18px 55px rgba(32, 67, 98, .10);
}

/* ==========================================================
BASE
========================================================== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    padding: 0 0 72px;
    overflow-x: hidden;
    font-family: "Google Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--dental-gray);
    background: var(--dental-white);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--dental-teal);
    text-decoration: none;
    transition: var(--dental-transition);
}

a:hover {
    color: var(--dental-blue);
}

section {
    position: relative;
}

::selection {
    color: var(--dental-blue);
    background: var(--dental-mint-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--dental-blue);
    font-family: "Google Sans", sans-serif;
    font-weight: 700;
    line-height: 1.12;
}

h1 {
    margin-bottom: 26px;
    font-size: clamp(2.75rem, 5vw, 4.65rem);
    letter-spacing: -2.4px;
}

h2 {
    margin-bottom: 20px;
    font-size: clamp(2.15rem, 3.6vw, 3.35rem);
    letter-spacing: -1.5px;
}

h3 {
    margin-bottom: 14px;
    font-size: 1.35rem;
    letter-spacing: -.35px;
}

p {
    margin-top: 0;
    margin-bottom: 20px;
}

.section-space {
    padding: 110px 0;
}

.section-label {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--dental-teal);
    font-size: .83rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.section-heading {
    max-width: 760px;
}

.section-heading > p {
    max-width: 650px;
    margin-right: auto;
    margin-left: auto;
    font-size: 1.08rem;
}

/* ==========================================================
BOTONES
========================================================== */
.btn {
    border-radius: 10px;
    font-weight: 700;
    transition: var(--dental-transition);
}

.btn-lg {
    padding: 14px 24px;
    font-size: 1rem;
}

.btn-primary {
    --bs-btn-color: #FFFFFF;
    --bs-btn-bg: var(--dental-teal);
    --bs-btn-border-color: var(--dental-teal);
    --bs-btn-hover-color: #FFFFFF;
    --bs-btn-hover-bg: var(--dental-blue);
    --bs-btn-hover-border-color: var(--dental-blue);
    --bs-btn-active-color: #FFFFFF;
    --bs-btn-active-bg: var(--dental-blue);
    --bs-btn-active-border-color: var(--dental-blue);
    --bs-btn-focus-shadow-rgb: 22, 135, 158;
}

.btn-outline-primary {
    --bs-btn-color: var(--dental-blue);
    --bs-btn-border-color: var(--dental-blue);
    --bs-btn-hover-color: #FFFFFF;
    --bs-btn-hover-bg: var(--dental-blue);
    --bs-btn-hover-border-color: var(--dental-blue);
    --bs-btn-active-color: #FFFFFF;
    --bs-btn-active-bg: var(--dental-blue);
    --bs-btn-active-border-color: var(--dental-blue);
}

.btn i {
    margin-left: 6px;
    font-size: 1.25em;
    vertical-align: -.08em;
}

/* ==========================================================
HERO
========================================================== */
.hero-section {
    isolation: isolate;
    overflow: hidden;
    padding-top: 0;
    background-color: var(--dental-soft-blue);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, .99) 0%,
        rgba(255, 255, 255, .97) 28%,
        rgba(255, 255, 255, .86) 42%,
        rgba(255, 255, 255, .38) 56%,
        rgba(255, 255, 255, .04) 69%,
        rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section .min-vh-100 {
    min-height: 780px !important;
}

.hero-content {
    max-width: 720px;
}

.hero-logo {
    width: 230px;
    margin-bottom: 34px;
}

.hero-section h1 {
    max-width: 720px;
}

.hero-text {
    max-width: 650px;
    margin-bottom: 34px;
    color: var(--dental-gray);
    font-size: 1.18rem;
    line-height: 1.75;
}

.hero-actions {
    position: relative;
    z-index: 2;
}

/* ==========================================================
ACCESOS A SERVICIOS
========================================================== */
.services-shortcuts {
    background: var(--dental-soft);
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 34px 30px;
    color: var(--dental-gray);
    background: var(--dental-white);
    border: 1px solid rgba(202, 202, 202, .5);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(32, 67, 98, .04);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.service-card:hover {
    color: var(--dental-gray);
    border-color: rgba(22, 135, 158, .35);
    box-shadow: var(--dental-shadow);
    transform: translateY(-7px);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 27px;
    color: var(--dental-blue);
    background: var(--dental-mint-light);
    border-radius: 14px;
    font-size: 1.65rem;
}

.service-card h3 {
    min-height: 48px;
}

.service-card p {
    flex-grow: 1;
    margin-bottom: 24px;
    font-size: .96rem;
    line-height: 1.65;
}

.service-link {
    color: var(--dental-teal);
    font-size: .92rem;
    font-weight: 700;
}

.service-link i {
    margin-left: 5px;
}

.service-card-emergency {
    border-color: rgba(22, 135, 158, .26);
}

.service-card-emergency .service-icon {
    color: var(--dental-white);
    background: var(--dental-teal);
}

/* ==========================================================
DETALLE DE SERVICIOS
========================================================== */
.services-detail {
    background: var(--dental-white);
}

.service-detail-row {
    padding: 35px 0 95px;
    scroll-margin-top: 100px;
}

.service-detail-row + .service-detail-row {
    padding-top: 95px;
    border-top: 1px solid rgba(202, 202, 202, .42);
}

.service-detail-row:last-child {
    padding-bottom: 15px;
}

.service-detail-row p {
    max-width: 690px;
    font-size: 1.08rem;
}

.service-detail-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--dental-soft-blue);
    border-radius: 22px;
    box-shadow: var(--dental-shadow);
}

.service-detail-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.service-number {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 34px;
    padding: 0 12px;
    color: var(--dental-white);
    background: rgba(32, 67, 98, .86);
    border-radius: 20px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    backdrop-filter: blur(4px);
}

.text-link {
    display: inline-flex;
    align-items: center;
    color: var(--dental-teal);
    font-weight: 700;
}

.text-link:hover {
    color: var(--dental-blue);
}

.text-link i {
    margin-left: 7px;
    transition: transform .25s ease;
}

.text-link:hover i {
    transform: translateX(4px);
}

/* ==========================================================
URGENCIAS
========================================================== */
.emergency-section {
    overflow: hidden;
    color: rgba(255, 255, 255, .82);
    background: var(--dental-blue);
}

.emergency-section::before {
    content: "";
    position: absolute;
    top: -170px;
    right: -80px;
    width: 430px;
    height: 430px;
    border: 80px solid rgba(95, 209, 184, .09);
    border-radius: 50%;
}

.emergency-section .container {
    position: relative;
    z-index: 2;
}

.emergency-section .section-label {
    color: var(--dental-mint);
}

.emergency-section h2 {
    color: var(--dental-white);
}

.emergency-section p {
    max-width: 780px;
    margin-bottom: 0;
    font-size: 1.1rem;
}

.emergency-section .btn-light {
    color: var(--dental-blue);
    background: var(--dental-mint);
    border-color: var(--dental-mint);
}

.emergency-section .btn-light:hover {
    color: var(--dental-blue);
    background: var(--dental-mint-light);
    border-color: var(--dental-mint-light);
}

/* ==========================================================
PROCESO DE ATENCIÓN
========================================================== */
.process-section {
    background: var(--dental-soft-blue);
}

.process-card {
    position: relative;
    height: 100%;
    padding: 38px 32px;
    background: var(--dental-white);
    border: 1px solid rgba(202, 202, 202, .45);
    border-radius: 16px;
}

.process-card > span {
    position: absolute;
    top: 25px;
    right: 28px;
    color: rgba(32, 67, 98, .28);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.process-card > i {
    display: block;
    margin-bottom: 25px;
    color: var(--dental-teal);
    font-size: 2.2rem;
}

.process-card p {
    margin-bottom: 0;
}

/* ==========================================================
CONTACTO
========================================================== */
.contact-section {
    background: var(--dental-white);
}

.contact-section .col-lg-5 > p {
    max-width: 540px;
    font-size: 1.05rem;
}

.contact-data-grid {
    margin-top: 38px;
}

.contact-data-card {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 104px;
    height: 100%;
    padding: 18px;
    color: var(--dental-white);
    background: var(--dental-blue);
    border: 1px solid rgba(151, 229, 219, .20);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(32, 67, 98, .12);
}

.contact-data-card:hover,
.contact-data-card:focus {
    color: var(--dental-white);
    background: var(--dental-teal);
    transform: translateY(-2px);
}

.contact-data-icon {
    flex: 0 0 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    color: var(--dental-mint);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .06);
}

.contact-data-icon i {
    font-size: 1.55rem;
    line-height: 1;
}

.contact-data-content {
    min-width: 0;
    line-height: 1.35;
}

.contact-data-content strong {
    display: block;
    margin-bottom: 5px;
    color: var(--dental-white);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-data-content span {
    display: block;
    color: var(--dental-mint-light);
    font-size: .98rem;
    overflow-wrap: anywhere;
}

.contact-data-card:hover .contact-data-content span,
.contact-data-card:focus .contact-data-content span,
.contact-data-card:hover .contact-data-icon,
.contact-data-card:focus .contact-data-icon {
    color: var(--dental-white);
}

.contact-form-wrap {
    padding: 42px;
    background: var(--dental-white);
    border: 1px solid rgba(202, 202, 202, .52);
    border-radius: 18px;
    box-shadow: var(--dental-shadow);
}

.form-label {
    margin-bottom: 7px;
    color: var(--dental-blue);
    font-size: .9rem;
    font-weight: 700;
}

.form-control,
.form-select {
    min-height: 52px;
    padding: 11px 14px;
    color: var(--dental-gray);
    background-color: var(--dental-white);
    border: 1px solid var(--dental-light);
    border-radius: 8px;
    box-shadow: none !important;
}

textarea.form-control {
    min-height: 145px;
    resize: vertical;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--dental-teal);
    box-shadow: 0 0 0 .2rem rgba(22, 135, 158, .1) !important;
}

.form-control::placeholder {
    color: #9A9A9D;
}

#maps iframe {
    width: 100%;
    height: 550px;
}

/* ==========================================================
FOOTER
========================================================== */
.site-footer {
    padding: 64px 0 58px;
    color: var(--dental-gray);
    background: var(--dental-teal);
    border-top: 1px solid rgba(202, 202, 202, .45);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    width: 190px;
    height: auto;
    margin-bottom: 22px;
}

.footer-copyright {
    margin-bottom: 20px;
    color: var(--dental-mint-light);
    font-size: .92rem;
    line-height: 1.55;
}

.footer-modico {
    width: auto;
    height: 30px;
    filter: brightness(0);
}


/* ==========================================================
BARRA FIJA DE CONTACTO
========================================================== */
.contact-actions {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 72px;
    background: var(--dental-white);
    border-top: 1px solid rgba(202, 202, 202, .55);
    box-shadow: 0 -10px 30px rgba(32, 67, 98, .12);
}

.contact-action {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    padding: 12px 16px;
    color: var(--dental-blue);
    background: var(--dental-white);
    font-size: .98rem;
    font-weight: 700;
    line-height: 1;
}

.contact-action + .contact-action {
    border-left: 1px solid rgba(202, 202, 202, .48);
}

.contact-action i {
    color: var(--dental-teal);
    font-size: 1.35rem;
    line-height: 1;
}

.contact-action:hover,
.contact-action:focus {
    color: var(--dental-teal);
    background: var(--dental-soft-blue);
}

.contact-action-reserve {
    color: var(--dental-blue);
    background: var(--dental-mint);
}

.contact-action-reserve i {
    color: var(--dental-blue);
}

.contact-action-reserve:hover,
.contact-action-reserve:focus {
    color: var(--dental-blue);
    background: var(--dental-mint-light);
}

/* ==========================================================
RESPONSIVE
========================================================== */
@media (max-width: 1199.98px) {
    .hero-section .min-vh-100 {
        min-height: 720px !important;
    }

    }

@media (max-width: 991.98px) {
    html {
        scroll-padding-top: 18px;
    }

    body {
        padding-bottom: 68px;
    }

    .section-space {
        padding: 82px 0;
    }

    .hero-section .min-vh-100 {
        min-height: auto !important;
        padding-top: 82px;
        padding-bottom: 90px;
    }

    .hero-section {
        background-position: 62% center;
    }

    .hero-section::before {
        background: linear-gradient(90deg,
            rgba(255, 255, 255, .98) 0%,
            rgba(255, 255, 255, .95) 48%,
            rgba(255, 255, 255, .72) 68%,
            rgba(255, 255, 255, .42) 100%);
    }

    .hero-content {
        max-width: 680px;
    }

    .service-detail-row,
    .service-detail-row + .service-detail-row {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .service-detail-row:first-child {
        padding-top: 0;
    }

    .service-detail-row:last-child {
        padding-bottom: 0;
    }

    .emergency-section .btn {
        margin-top: 15px;
    }

    .contact-form-wrap {
        padding: 34px;
    }

    .contact-actions {
        min-height: 68px;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: 64px;
    }

    .section-space {
        padding: 70px 0;
    }

    h1 {
        letter-spacing: -1.5px;
    }

    h2 {
        letter-spacing: -1px;
    }

    .hero-text {
        font-size: 1.06rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .service-card {
        padding: 30px 26px;
    }

    .service-card h3 {
        min-height: auto;
    }

    .contact-form-wrap {
        padding: 28px 24px;
    }

    .site-footer {
        padding: 52px 0 48px;
    }

    .footer-logo {
        width: 175px;
    }

    .contact-actions {
        min-height: 64px;
    }

    .contact-action {
        flex-direction: column;
        gap: 5px;
        min-height: 64px;
        padding: 7px 4px 6px;
        font-size: .77rem;
    }

    .contact-action i {
        font-size: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 15.5px;
    }

    .hero-section .min-vh-100 {
        padding-top: 64px;
        padding-bottom: 70px;
    }

    .hero-section {
        background-position: 66% center;
    }

    .hero-section::before {
        background: rgba(255, 255, 255, .86);
    }

    .hero-logo {
        width: 190px;
        margin-bottom: 26px;
    }

    .service-detail-image {
        border-radius: 16px;
    }

    .process-card,
    .service-card {
        border-radius: 12px;
    }

    .contact-form-wrap {
        border-radius: 14px;
    }

    .footer-logo {
        width: 160px;
    }

    .footer-modico {
        height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
