/* 
* Estilos principales del sitio
* Versión: 2.5
* Fecha: 29/04/2025
* Estilo mejorado para un diseño más atractivo
*/

/* Variables de colores y estilos */
:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --primary-light: #e6f2ff;
    --accent-color: #1abc9c;
    --accent-dark: #16a085;
    --accent-light: #e8f8f5;
    --text-color: #333;
    --text-light: #666;
    --text-dark: #222;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --heading-line-height: 1.2;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif !important;
    color: var(--text-color);
    background-color: #f5f5f5;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    line-height: var(--heading-line-height);
    text-wrap: balance;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.35rem);
}

h3 {
    font-size: clamp(1.25rem, 2.2vw, 1.7rem);
}

h4 {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: .92rem;
}

.container {
    max-width: 1200px;
    padding: 0 15px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.btn {
    font-weight: 500;
    padding: 10px 20px;
    transition: var(--transition);
    border-radius: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.35);
}

/* Header y navegación */
.navbar {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand img {
    height: 60px;
}

.navbar-nav .nav-link {
    color: var(--text-light);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background-color: var(--primary-color);
}

/* Sección de búsqueda */
.search-section {
    padding: 40px 0;
    text-align: center;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.search-section h2 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-weight: 400;
}

.search-form {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.search-form .form-control {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    height: 48px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.search-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.search-form .form-select {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    height: 48px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    background-position: right 15px center;
    transition: var(--transition);
}

.search-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.search-form label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-light);
}

.btn-search {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 123, 255, 0.3);
}

.btn-search:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* Resultados de búsqueda */
.search-results {
    margin-top: 30px;
}

.search-results-header {

    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.search-results-count {
    font-size: 1.1rem;
    color: var(--text-light);
}

.search-results-count strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Sección de doctores */
.recent-doctors {
    padding: 40px 0;
}

.recent-doctors h3 {
    font-size: clamp(1.35rem, 2.4vw, 1.8rem);
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-weight: 400;
    position: relative;
    padding-bottom: 15px;
}

.recent-doctors h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

/* Doctor Cards */
.doctor-card {
    border: none;
    box-shadow: var(--shadow);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    background-color: #fff;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.doctor-img {
    height: 280px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.doctor-card:hover .doctor-img {
    transform: scale(1.05);
}

.doctor-img-placeholder {
    height: 280px;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-img-placeholder i {
    font-size: 64px;
    color: #a0aec0;
}

.doctor-card .card-body {
    padding: 1.5rem;
}

.doctor-card .card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
    color: var(--text-dark);
}

.doctor-card .card-text {
    color: var(--text-light);
    font-size: 0.95rem;
}

.doctor-specialty {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.doctor-location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.doctor-location i {
    color: #e53e3e;
    margin-right: 5px;
}

/* Carrusel */
.doctor-carousel {
    position: relative;
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.carousel-control-prev {
    left: -20px;
}

.carousel-control-next {
    right: -20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.carousel-inner {
    padding: 20px 0;
}

/* Ciudades Section */
.cities-section {
    padding: 40px 0;
    background-color: var(--light-bg);
    border-radius: 12px;
    margin: 30px 0;
}

.cities-section h3 {
    font-size: clamp(1.35rem, 2.4vw, 1.8rem);
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-weight: 400;
    position: relative;
    padding-bottom: 15px;
}

.cities-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.city-item {
    display: inline-block;
    margin: 5px;
    padding: 8px 16px;
    background-color: white;
    border-radius: 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.city-item:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

footer h5 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    color: white;
}

footer .list-unstyled li {
    margin-bottom: 10px;
}

footer a.text-white {
    text-decoration: none;
    transition: opacity 0.3s;
    color: rgba(255, 255, 255, 0.7);
}

footer a.text-white:hover {
    color: white;
    opacity: 1;
}

footer .footer-social a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

footer .footer-social a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

footer hr {
    margin: 30px 0;
    opacity: 0.1;
}

footer .copyright {
    font-size: 0.9rem;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.7);
}
