/* ==========================================================================
   Clínica Odontológica Dra. Carolina Varela - Estilos Principales
   Paleta oficial y diseño fiel a carolinavarela.com.uy
   ========================================================================== */

:root {
    --primary-color: #00a0f0;
    --primary-hover: #47b4eb;
    --header-blue: #307ab0;
    --dark-text: #2f3231;
    --muted-text: #666666;
    --card-bg: #f1f5f7;
    --section-bg-light: #fafafa;
    --whatsapp-green: #25d366;
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: #444444;
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ==========================================
   Header & Barra de Navegación
   ========================================== */
.site-header {
    background-color: var(--header-blue);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.site-navbar {
    min-height: 70px;
    padding: 0;
}

/* Contenedor del Logo colgante sobre el header */
.logo-container {
    background-color: #ffffff;
    padding: 18px 28px 24px 28px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 1040;
    margin-bottom: -52px; /* Efecto colgante sobre el hero */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.logo-img {
    height: 96px;
    max-height: 100px;
    width: auto;
    object-fit: contain;
}

.nav-link {
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 13.5px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 24px 16px !important;
    position: relative;
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #cfebf9 !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 16px;
    right: 16px;
    height: 2px;
    background-color: #ffffff;
}

/* Teléfono en Header */
.header-phone {
    display: flex;
    align-items: center;
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: opacity 0.2s ease;
    padding: 8px 0;
}

.header-phone:hover {
    color: #cfebf9;
}

.header-phone i {
    font-size: 20px;
    margin-right: 8px;
    color: #2f3231; /* Icono gris oscuro como en la web original */
    background: #ffffff;
    padding: 6px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   Sección Hero (Banner Principal)
   ========================================== */
.hero-section {
    position: relative;
    min-height: 580px;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(30, 80, 115, 0.45) 0%, rgba(30, 80, 115, 0.15) 60%, rgba(0, 0, 0, 0) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0 60px 0;
    max-width: 680px;
}

.hero-badge {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 300;
    letter-spacing: 9px;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(34px, 5.5vw, 62px);
    font-weight: 700;
    color: #cfebf9;
    line-height: 1.15;
    margin-bottom: 28px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.btn-consulta {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff !important;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    padding: 13px 36px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 160, 240, 0.35);
    transition: all 0.3s ease;
}

.btn-consulta:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 160, 240, 0.5);
}

/* ==========================================
   Secciones Comunes
   ========================================== */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 34px;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}

/* ==========================================
   Sección Quiénes Somos
   ========================================== */
.about-section {
    background-color: var(--section-bg-light);
}

.about-text {
    font-size: 16px;
    color: #555555;
    line-height: 1.8;
}

.about-img {
    border-radius: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.about-img:hover {
    transform: scale(1.01);
}

/* ==========================================
   Sección Servicios (Grid 3x3)
   ========================================== */
.services-section {
    background-color: #ffffff;
}

.service-card {
    background-color: var(--card-bg);
    border-radius: 6px;
    padding: 24px 20px;
    height: 100%;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 160, 240, 0.12);
}

.service-icon-wrapper {
    flex-shrink: 0;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-img {
    width: 54px;
    height: auto;
    object-fit: contain;
}

.service-content {
    flex: 1;
}

.service-title {
    font-size: 17.5px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 6px;
    line-height: 1.3;
}

.service-desc {
    font-size: 13.5px;
    color: #666666;
    margin-bottom: 0;
    line-height: 1.55;
}

/* ==========================================
   Sección Convenios / Alianzas
   ========================================== */
.alliances-section {
    background-color: #ffffff;
    border-top: 1px solid #f0f0f0;
}

.alliances-title {
    font-size: 26px;
    font-weight: 400;
    color: var(--primary-color);
    line-height: 1.4;
}

.alliances-img {
    max-height: 110px;
    width: auto;
    object-fit: contain;
}

/* ==========================================
   Sección Contacto
   ========================================== */
.contact-section {
    background-color: #ffffff;
    border-top: 1px solid #f0f0f0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.contact-icon {
    font-size: 34px;
    color: var(--primary-color);
    flex-shrink: 0;
    line-height: 1;
}

.contact-text-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 2px;
}

.contact-text-subtitle {
    font-size: 14px;
    color: #888888;
    margin-bottom: 0;
}

.contact-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 15px;
    margin-bottom: 30px;
}

.social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1e73be;
    font-size: 28px;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.social-icon-btn:hover {
    color: #000000;
    transform: translateY(-2px);
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

/* ==========================================
   Footer
   ========================================== */
.site-footer {
    background-color: #ffffff;
    border-top: 1px solid #eaeaea;
    padding: 22px 0;
    text-align: center;
}

.footer-credits {
    font-size: 13px;
    color: #888888;
    margin-bottom: 0;
}

.footer-credits a {
    color: #888888;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-credits a:hover {
    color: var(--primary-color);
}

/* ==========================================
   Botón Flotante de WhatsApp
   ========================================== */
.whatsapp-float-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 62px;
    height: 62px;
    background-color: var(--whatsapp-green);
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    z-index: 1050;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.6);
}

.whatsapp-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #ff0000;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 2px solid #ffffff;
}

/* ==========================================
   Botón Back to Top
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 95px;
    right: 28px;
    width: 44px;
    height: 44px;
    background-color: rgba(48, 122, 176, 0.85);
    color: #ffffff !important;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 1040;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.25s ease;
    text-decoration: none;
}

.back-to-top:hover {
    background-color: var(--header-blue);
    transform: translateY(-3px);
}

/* ==========================================
   Responsive Media Queries
   ========================================== */
@media (max-width: 991.98px) {
    .site-navbar {
        padding: 10px 0;
    }

    .logo-container {
        margin-bottom: 0;
        padding: 10px 18px;
        box-shadow: none;
        border-radius: 6px;
    }

    .logo-img {
        height: 68px;
        max-height: 72px;
    }

    .navbar-collapse {
        background-color: var(--header-blue);
        padding: 15px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        padding: 10px 15px !important;
    }

    .nav-link.active::after {
        display: none;
    }

    .hero-content {
        padding: 60px 0 40px 0;
    }

    .hero-badge {
        font-size: 26px;
        letter-spacing: 5px;
    }

    .hero-title {
        font-size: 36px;
    }
}

@media (max-width: 575.98px) {
    .hero-badge {
        font-size: 20px;
        letter-spacing: 4px;
    }

    .hero-title {
        font-size: 28px;
    }

    .btn-consulta {
        padding: 11px 26px;
        font-size: 13px;
    }

    .service-card {
        padding: 18px 14px;
    }

    .service-icon-wrapper {
        width: 48px;
    }

    .service-icon-img {
        width: 42px;
    }

    .whatsapp-float-btn {
        width: 56px;
        height: 56px;
        font-size: 30px;
        bottom: 20px;
        right: 20px;
    }
}

