﻿html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Make the Blazor host fill the viewport and act as a flex column */
#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Layout should be a flex column and take remaining space so footer can stick to bottom */
.mud-layout {
    min-height: 100vh;
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
}

/* Main content grows to push footer to the bottom when content is short */
.mud-main-content {
    min-height: unset;
    height: auto;
    overflow: visible;
    background: transparent !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    flex: 1 0 auto; /* key for sticky footer */
}

#main-content-scrollable {
    height: auto;
    min-height: unset;
    overflow: visible !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Elimina espacio entre header y contenido */
.mud-layout > .mud-appbar {
    margin-bottom: 0 !important;
}
.mud-layout > .mud-main-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Footer should sit at the bottom when content is short */
.footer-app-bar {
    margin-top: auto !important; /* key for sticky footer */
}

/* Header and Footer above scrollbar */
.mud-appbar, .footer-app-bar {
    z-index: 1100 !important;
    position: relative;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3Ln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M4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg7NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDg  djYyLjE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.app-bar {
    background-color: #858fbb;
}

.custom-colors .mud-list-item-clickable:hover {
    background-color: rgb(78, 78, 78);
    color: white !important;
}

.align-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.no-margin {
    margin-right: 0;
}

.justify-end {
    margin-left: auto;
}

.home-initial-centered-logo {
    display: grid;
    position: relative;
    top: -99%;
    justify-self: center;
}

.home-initial-centered-text {
    display: grid;
    position: relative;
    top: -90%;
    justify-self: center;
    color: black;
    font-weight: bold;
}

.home-initial-centered-appointment-button {
    display: grid;
    position: relative;
    top: -80%;
    left: 47%;
}

/* Estilos generales para toda la aplicación */
.testimonial-card {
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info, .contact-form {
    border-radius: 8px;
}

/* Espaciado entre secciones */
.my-12 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

/* Mejoras de accesibilidad */
a:focus, button:focus {
    outline: 2px solid #2196F3;
    outline-offset: 2px;
}

/* Transiciones suaves para hover */
.mud-card, .mud-paper {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .mud-card:hover, .mud-paper:hover {
        transform: translateY(-5px);
    }

/* Estilos para el botón de scroll to top */
.scroll-to-top-visible {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.scroll-to-top-hidden {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

    .scroll-to-top-button:hover {
        transform: scale(1.2);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    }

/* Asegurar que el botón sea visible sobre otros elementos */
.mud-scroll-to-top {
    z-index: 1000 !important;
}

/* NavMenu custom styles for Home harmony */
.navmenu-home {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(44,62,80,0.08);
    padding: 0.5rem 1.5rem;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
}

.navmenu-home .mud-fab {
    font-weight: 500;
    font-size: 1.05rem;
    color: #2B6CC4;
    background: #F8F9FA;
    box-shadow: none;
    border-radius: 8px;
    transition: background 0.2s;
}

.navmenu-home .mud-fab:hover {
    background: #e3eaf6;
    color: #1b6ec2;
}

.navmenu-home .mud-spacer {
    flex: 1 1 auto;
}

.navmenu-home .mud-tooltip {
    margin-left: 1rem;
}

/* Esta regla pinta los enlaces del nav en blanco en desktop */
.navmenu-text-white, .mud-nav-link, .mud-fab {
    color: #fff !important;
}

/* En móvil, forzamos color oscuro dentro del contenedor del menú */
@media (max-width: 980px) {
    .mobile-nav-menu .mud-nav-link,
    .mobile-nav-menu .mud-nav-link .mud-nav-link-text,
    .mobile-nav-menu .mud-typography {
        color: #2C3E50 !important;
    }
}

/* Buttons in NavMenu with distinct color */
.navmenu-btn {
    background: linear-gradient(90deg, #1976d2 0%, #1565c0 100%) !important;
    color: #fff !important;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(44,62,80,0.12);
    border: 2px solid #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.2s, box-shadow 0.2s;
}

.navmenu-btn:hover {
    background: linear-gradient(90deg, #1565c0 0%, #1976d2 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(44,62,80,0.18);
    border-color: #e3eaf6;
}

/* Remove default MudFab background for clarity */
.mud-fab {
    background: transparent;
}

.mud-appbar {
    position: relative;
}

.mud-drawer {
    z-index: 1099 !important;
}

body, html {
    overflow-x: hidden;
    overflow-y: overlay;
    background: #F8F9FA !important;
}

/* Footer custom styles for harmony with header/navmenu */
.footer-app-bar {
    background: #2B6CC4 !important;
    color: #fff !important;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -2px 12px rgba(44,62,80,0.08);
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
}

.footer-logo {
    margin-right: 1rem;
}

.logo-completo-blanco {
    margin-bottom: 0.5rem;
    filter: brightness(0) invert(1) drop-shadow(0 0 2px #fff);
}

.footer-title {
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(44,62,80,0.18);
    text-align: center !important;
}

.footer-text {
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(44,62,80,0.18);
    text-align: center !important;
}

.footer-link {
    color: #fff !important;
    text-decoration: underline;
    text-shadow: 0 1px 2px rgba(44,62,80,0.18);
}

.footer-privacy-link {
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    color: #fff !important;
    text-decoration: underline;
    text-shadow: 0 1px 2px rgba(44,62,80,0.18);
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.footer-btn {
    background: linear-gradient(90deg, #1976d2 0%, #1565c0 100%) !important;
    color: #fff !important;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(44,62,80,0.12);
    border: 2px solid #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.2s, box-shadow 0.2s;
}

.footer-btn:hover {
    background: linear-gradient(90deg, #1565c0 0%, #1976d2 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(44,62,80,0.18);
    border-color: #e3eaf6;
}

.footer-copyright {
    display: block;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center !important;
    color: #fff !important;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(44,62,80,0.18);
}

.footer-copyright-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    width: 100%;
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
}

.footer-copyright-separator {
    margin: 0 0.15rem;
    font-size: 0.9rem;
    color: #fff;
    opacity: 0.7;
}

/* Eliminar hover de MudPaper y MudCard en el footer y main layout */
.footer-app-bar:hover,
.mud-theme-primary:hover,
.mud-paper:hover {
    transform: none !important;
    box-shadow: none !important;
}

.logo-image {
    filter: brightness(0) invert(1) drop-shadow(0 0 2px #fff);
}

/* Elimina espacio extra en MudGrid y MudItem del footer */
.footer-app-bar .mud-grid {
    margin-bottom: 0 !important;
}
.footer-app-bar .mud-item {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.footer-app-bar .mud-divider {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    background: transparent !important;
    height: 0 !important;
    min-height: 0 !important;
    border: none !important;
}

/* Elimina fondo blanco del MudTooltip y MudScrollToTop */
.mud-tooltip {
    background: transparent !important;
    box-shadow: none !important;
}

.mud-scroll-to-top {
    background: transparent !important;
    box-shadow: none !important;
}

#main-content-scrollable > .mud-tooltip {
    background: transparent !important;
    box-shadow: none !important;
}

.mud-paper {
    border-radius: 0 !important;
    box-shadow: none !important;
}

.call-btn {
    background: linear-gradient(90deg, #34A853 0%, #2B6CC4 100%) !important;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(44,62,80,0.12);
    border: 2px solid #fff;
    transition: background 0.2s, box-shadow 0.2s;
}

.call-btn:hover {
    background: linear-gradient(90deg, #2B6CC4 0%, #34A853 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(44,62,80,0.18);
    border-color: #e3eaf6;
}

.hero-btn {
    background: linear-gradient(90deg, #2B6CC4 0%, #34A853 100%) !important;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(44,62,80,0.12);
    border: 2px solid #fff;
    transition: background 0.2s, box-shadow 0.2s;
}

.hero-btn:hover {
    background: linear-gradient(90deg, #34A853 0%, #2B6CC4 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(44,62,80,0.18);
    border-color: #e3eaf6;
}

.footer-text, .footer-link, .footer-copyright {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(44,62,80,0.18);
}

.footer-app-bar .mud-text, .footer-app-bar .mud-link {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(44,62,80,0.18);
}

.footer-app-bar .mud-item {
    color: #fff !important;
}

.footer-app-bar .mud-icon-button .mud-icon {
    color: #fff !important;
    filter: drop-shadow(0 0 2px #2B6CC4);
    font-size: 2rem !important;
}

.footer-arrow-icon {
  vertical-align: middle;
  font-size: 1.15em;
  position: relative;
  top: -0.1em;
}

.footer-clock-icon {
  vertical-align: middle;
  font-size: 0.95em;
  position: relative;
  top: 0.05em;
  top: -0.1em;
}

.footer-social-row .mud-icon-button {
    background: none !important;
    border-radius: 0;
    transition: none;
}

.footer-social-row .mud-icon-button:hover {
    background: none !important;
    box-shadow: none !important;
}

.footer-app-bar .mud-stack {
    gap: 0.2rem !important;
}

.footer-app-bar .footer-text.mt-2 {
    margin-top: 0.2rem !important;
}

.footer-contact-hours {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.footer-hours {
    margin-top: 0.1rem;
    text-align: center;
}

.footer-contact-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    text-align: center;
}

.footer-hours-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    text-align: center;
}

.footer-copy-privacy-center {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.2rem;
}

.footer-copy-privacy-center-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    width: 100%;
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
}

.footer-grid-center {
    display: flex !important;
    justify-content: center;
    align-items: flex-start;
    gap: 2.5rem;
    width: 100%;
}

.footer-logo-col, .footer-contact-col, .footer-hours-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    flex: 1 1 0;
    min-width: 0;
    min-height: 120px;
}

.footer-logo-col {
    padding-top: 0.5rem;
}

.footer-social-row {
    margin-top: 0.5rem;
    justify-content: center;
}

.footer-flex-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    width: 100%;
    min-height: 120px;
}

@media (max-width: 600px) {
    .footer-flex-row {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.2rem !important;
        min-height: unset !important;
    }
    .footer-logo-col,
    .footer-contact-col,
    .footer-hours-col {
        min-height: unset !important;
        padding-top: 0 !important;
        width: 100% !important;
        align-items: center !important;
        justify-content: center !important;
        margin-bottom: 0.5rem !important;
    }
    .footer-logo-col {
        margin-bottom: 0.5rem !important;
    }
    .footer-social-row {
        margin-top: 0.3rem !important;
        justify-content: center !important;
    }
    .footer-text {
        font-size: 1rem !important;
    }
    .footer-app-bar {
        padding: 1rem 0.5rem 0.5rem 0.5rem !important;
        border-radius: 0 !important;
    }
    .footer-app-bar .mud-icon-button .mud-icon {
        font-size: 1.5rem !important;
    }
    .footer-privacy-link {
        font-size: 0.85rem !important;
    }
}

.cookie-settings-fab {
    position: fixed;
    bottom: 16px !important;
    left: 16px !important;
    right: auto !important;
    top: auto !important;
    z-index: 9999; /* above header */
}

