body {
    font-family: 'Montserrat', sans-serif;
}
.hero-gradient {
    /* Updated gradient for Medical&Care */
    background: linear-gradient(135deg, #0077b6 0%, #00529B 100%);
    height: 440px; /* Default height for desktop */
}

@media (max-width: 1024px) { /* Tablets */
    .hero-gradient {
        height: 350px;
    }
}

@media (max-width: 767px) { /* Mobile */
    .hero-gradient {
        height: 600px;
    }
}
.btn-primary {
    background-color: #158ac9; /* Lighter blue */
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: #00529B; /* Darker blue on hover */
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.stat-item {
    transition: all 0.3s ease;
}
.stat-item:hover {
    transform: scale(1.05);
}

.stat-number {
    word-break: break-all;
}
.social-icon {
    transition: all 0.3s ease;
}
.social-icon:hover {
    transform: scale(1.2);
}
.hero-slider {
    position: relative;
    height: 100%;
}

#hero-section {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.slide {
    transition: opacity 0.7s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
}
.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Responsive Typography for Hero Section */
.hero-title {
    font-size: 3.75rem; /* 60px for Desktop */
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem; /* 24px for Desktop */
}

@media (max-width: 1024px) { /* Tablets */
    .hero-title {
        font-size: 2.5rem; /* 40px */
    }
    .hero-subtitle {
        font-size: 1.25rem; /* 20px */
    }
    .hero-foreground-img {
        margin-top: -5rem; /* Pull image up on tablets */
    }
}

@media (max-width: 767px) { /* Mobile */
    .hero-title {
        font-size: 2.25rem; /* 36px */
    }
    .hero-subtitle {
        font-size: 1.125rem; /* 18px */
    }
}

.hero-foreground-img {
    max-height: 100%;
    max-width: 100%;
}

/* Styles from especialidades.html */
.specialty-card:hover .specialty-icon {
    transform: scale(1.1);
    transition: all 0.3s ease;
}
.appointment-form {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}
.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
    transition: width 0.3s;
}
.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: width 0.3s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Header Dropdown Styles */
.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    transform-origin: top center;
    animation: fadeInDown 0.3s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile Menu Panel Styles */
.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80%;
    max-width: 320px;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 100;
    display: flex;
    flex-direction: column;
}
.mobile-menu-panel.open {
    transform: translateX(0);
}
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb; /* gray-200 */
}
.mobile-menu-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
}
.mobile-menu-footer {
    padding: 1rem;
    border-top: 1px solid #e5e7eb; /* gray-200 */
}
.mobile-menu-link {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 1.125rem; /* text-lg */
    color: #1e40af; /* blue-800 */
    font-weight: 400; /* normal */
}
.mobile-menu-link:hover {
    color: #1d4ed8; /* blue-700 */
}
.mobile-menu-link .fa-chevron-down {
    margin-left: auto;
    transition: transform 0.3s;
}
.mobile-menu-link.open i.fa-chevron-down {
    transform: rotate(180deg);
}
.mobile-submenu {
    padding-left: 1.5rem; /* pl-6 */
    display: none;
}
.mobile-submenu.open {
    display: block;
}
.mobile-submenu a {
    display: block;
    padding: 0.5rem 0;
    color: #4b5563; /* gray-600 */
}

.tab-btn {
    background-color: transparent;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}
.active-tab {
    border-bottom-color: #00529B; /* Azul oscuro de tu marca */
    color: #00529B;
}
.location-content {
    transition: opacity 0.3s ease-in-out;
}
.hidden {
    display: none;
}

.hero-especialidad {
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.8), rgba(0, 82, 155, 0.9));
    background-size: cover;
}

.check-icon {
    color: #0077b6; /* Azul principal de tu marca */
}

.cta-button {
    background-color: #00529B; /* Azul oscuro de tu marca */
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #003d73;
}

.hero-pediatria {
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.8), rgba(0, 82, 155, 0.9)), url('https://images.pexels.com/photos/7845123/pexels-photo-7845123.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center;
    background-size: cover;
}

.hero-ginecologia {
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.8), rgba(0, 82, 155, 0.9)), url('https://images.pexels.com/photos/6749479/pexels-photo-6749479.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center;
    background-size: cover;
}