/* General Styles */
:root {
    --primary-color: #546e7a; /* Grayish blue */
    --primary-dark: #37474f;
    --primary-light: #78909c;
    --secondary-color: #e65100; /* Orange accent for buttons */
    --text-light: #ffffff;
    --text-dark: #212121;
    --background-light: #f5f7fa;
    --border-color: #e0e0e0;
    --section-padding: 60px 0;
    --font-primary: 'Arial', 'Helvetica Neue', Helvetica, sans-serif; /* Example */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

body.no-scroll {
    overflow-y: hidden; /* Prevent body scroll when mobile menu is open */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove bottom space */
}

/* Image Effects */
.img-effect {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.img-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.img-corner-rounded {
    border-radius: 0 30px 0 30px;
}
.img-inner-shadow {
    position: relative;
}
.img-inner-shadow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
    border-radius: inherit;
    pointer-events: none;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.btn-primary:hover, .btn-secondary:hover {
    background-color: #f57c00; /* Darker orange */
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.btn-category {
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}
.btn-category::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-dark);
    transition: width 0.3s ease;
}
.btn-category:hover {
    color: var(--primary-dark);
}
.btn-category:hover::after {
    width: 100%;
}

/* Typography */
h1, h2, h3, h4 {
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--primary-dark);
}
h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.2rem; }
p {
    margin-bottom: 20px;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-light);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
}
.preloader .spinner {
    border: 6px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.preloader.preloader-hide {
    opacity: 0;
    visibility: hidden;
}

/* Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
}
.language-switcher-mobile {
    display: none;
}
.language-switcher-desktop {
    display: flex;
}
.language-button {
    display: flex;
    align-items: center;
    background: none;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}
.language-button:hover {
    background-color: var(--background-light);
    border-color: var(--primary-light);
}
.language-button.active {
    background-color: var(--background-light);
    border-color: var(--primary-color);
    font-weight: bold;
}
.language-button img {
    width: 22px;
    height: 16px;
    margin-right: 6px;
    border-radius: 2px;
}
.language-button span {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1100;
    position: absolute;
    right: 15px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
}
.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-dark);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 40px 0 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    border-radius: 0 0 50px 0;
    overflow: hidden;
    margin-top: 0;
}
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    filter: brightness(1.1) contrast(1.15) saturate(1.2);
}
.hero-slide.active {
    opacity: 1;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(30, 30, 30, 0.75) 0%,
        rgba(30, 30, 30, 0.65) 40%,
        rgba(30, 30, 30, 0.45) 70%,
        rgba(30, 30, 30, 0.25) 100%
    );
    z-index: 2;
}
.hero-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}
.hero-text {
    max-width: 700px;
    padding: 20px 0;
    animation: slideInFromLeft 0.8s ease-out forwards;
}
@keyframes slideInFromLeft {
    0% { transform: translateX(-50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--secondary-color), #f57c00);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(230, 81, 0, 0.3);
    animation: pulse 2s infinite;
}
.hero-badge i {
    font-size: 1rem;
}
.hero-text h1 {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 25px;
    line-height: 1.1;
    font-weight: 800;
}
.hero-text .highlight {
    background: linear-gradient(135deg, var(--secondary-color), #f57c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-description {
    font-size: 1.2rem;
    margin-bottom: 35px;
    color: #f5f5f5;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.btn-secondary-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 12px 24px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    backdrop-filter: blur(10px);
}
.btn-secondary-outline:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* Search Section */
.search-section {
    background: linear-gradient(135deg, var(--background-light) 0%, #ffffff 100%);
    padding: 60px 0;
    position: relative;
    margin-top: -50px;
    z-index: 5;
}
.search-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}
.search-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), #f57c00, var(--primary-color));
}
.search-header {
    text-align: center;
    margin-bottom: 30px;
}
.search-header h2 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 2rem;
    font-weight: 700;
}
.search-header p {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 0;
}
.search-form {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: stretch;
}
.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}
.search-input-wrapper .search-icon {
    position: absolute;
    left: 20px;
    color: var(--primary-color);
    font-size: 1.1rem;
    z-index: 2;
}
.search-input-wrapper input {
    width: 100%;
    padding: 18px 20px 18px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    font-size: 1rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
}
.search-input-wrapper input:focus {
    border-color: var(--secondary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(230, 81, 0, 0.1);
    transform: translateY(-2px);
}
.search-btn {
    background: linear-gradient(135deg, var(--secondary-color), #f57c00);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(230, 81, 0, 0.3);
}
.search-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 81, 0, 0.4);
    background: linear-gradient(135deg, #f57c00, #e65100);
}
.popular-searches {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}
.popular-label {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}
.popular-tag {
    background: rgba(84, 110, 122, 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(84, 110, 122, 0.2);
}
.popular-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(84, 110, 122, 0.3);
}

/* Categories Section */
.categories {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, var(--background-light) 100%);
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-weight: 700;
}
.section-header p {
    font-size: 1.1rem;
    color: var(--primary-color);
    max-width: 600px;
    margin: 0 auto;
}
.category-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 0;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--secondary-color), #f57c00);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.category-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.category-card:hover::before {
    transform: scaleX(1);
}
.category-card[data-category="medicos"]:hover::before { background: linear-gradient(90deg, #48BB78, #38A169); }
.category-card[data-category="hospitales"]:hover::before { background: linear-gradient(90deg, #4299E1, #3182CE); }
.category-card[data-category="wellness"]:hover::before { background: linear-gradient(90deg, var(--secondary-color), #f57c00); }
.card-icon {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0 0 30px;
    box-shadow: 0 8px 20px rgba(84, 110, 122, 0.3);
    transition: all 0.3s ease;
}
.category-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}
.card-icon i {
    font-size: 2rem;
}
.card-content {
    padding: 20px 30px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-content h3 {
    color: var(--primary-dark);
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: 700;
}
.card-content p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}
.btn-category:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(84, 110, 122, 0.3);
}
.btn-category i {
    transition: transform 0.3s ease;
}
.btn-category:hover i {
    transform: translateX(3px);
}

/* Featured Doctor Section */
.featured-doctor {
    padding: var(--section-padding);
    background-color: var(--background-light);
}
.doctor-container {
    display: flex;
    align-items: center;
    gap: 50px;
}
.doctor-image {
    flex: 1;
    min-height: 400px;
    background: url('../../images/doctor-featured.jpg') no-repeat center center;
    background-size: cover;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    position: relative;
}
.doctor-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}
.doctor-info {
    flex: 1;
    padding: 30px 0;
}
.doctor-info h2 {
    color: var(--primary-dark);
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.doctor-info p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* City Tourism Section */
.city-tourism {
    padding: var(--section-padding);
    background: url('../../images/city-background.jpeg') no-repeat center center;
    background-size: cover;
    position: relative;
}
.city-tourism::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}
.city-info {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    backdrop-filter: blur(3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.city-logo {
    margin-bottom: 20px;
}
.city-logo img {
    height: 60px;
    margin: 0 auto;
}
.city-info h2 {
    color: var(--primary-dark);
    font-size: 2.2rem;
}
.city-info h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.city-info p {
    color: var(--text-dark);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0 0;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}
.footer-about p {
    font-size: 0.95rem;
    opacity: 0.9;
}
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}
.footer-links h4, .footer-contact h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-light);
}
.footer-links ul li, .footer-contact ul li {
    margin-bottom: 10px;
}
.footer-links ul li a, .footer-contact ul li a {
    opacity: 0.9;
    transition: opacity 0.3s ease, padding-left 0.3s ease;
}
.footer-links ul li a:hover, .footer-contact ul li a:hover {
    opacity: 1;
    padding-left: 5px;
    color: var(--secondary-color);
}
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: var(--primary-dark);
    font-size: 0.9rem;
}

/* Chat Icon */
.chat-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--text-light);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 900;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(84, 110, 122, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(84, 110, 122, 0); }
    100% { box-shadow: 0 0 0 0 rgba(84, 110, 122, 0); }
}
.chat-icon:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
    animation: none;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}
.chat-icon i {
    font-size: 1.5rem;
}

/* Scroll Animation (Fade-up) */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.7s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- ESTILOS PARA EL CARRUSEL DE ESPECIALIDADES (NUEVO) --- */
.specialties-carousel {
    width: 100%;
    height: auto;
    padding: 20px 0 50px;
    overflow: hidden;
}
.specialties-carousel .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
}
.specialties-carousel .category-card {
    width: 100%;
    height: 100%;
    margin-bottom: 0;
}
.specialties-carousel .swiper-pagination-bullet {
    background-color: var(--primary-light);
    opacity: 0.7;
    width: 10px;
    height: 10px;
}
.specialties-carousel .swiper-pagination-bullet-active {
    background-color: var(--secondary-color);
    opacity: 1;
}
.specialties-carousel .swiper-button-next,
.specialties-carousel .swiper-button-prev {
    color: var(--primary-dark);
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.specialties-carousel .swiper-button-next:hover,
.specialties-carousel .swiper-button-prev:hover {
    background-color: white;
    color: var(--secondary-color);
}
.specialties-carousel .swiper-button-next::after,
.specialties-carousel .swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: bold;
}


/* --- SECCIONES RESPONSIVAS --- */
@media (max-width: 992px) {
    .hero-text h1 { font-size: 2.8rem; }
    .doctor-container { flex-direction: column; gap: 30px; }
    .doctor-image { width: 100%; min-height: 300px; }
    .doctor-info { text-align: center; }
    .footer-container { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: flex; }
    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--text-light);
        box-shadow: -3px 0 10px rgba(0, 0, 0, 0.15);
        transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        padding: 80px 20px 20px;
        z-index: 999;
        overflow-y: auto;
    }
    header nav.active { right: 0; }
    nav ul { flex-direction: column; align-items: flex-start; }
    nav ul li { margin: 12px 0; width: 100%; }
    nav ul li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--border-color); width: 100%; }
    nav ul li a::after { display: none; }
    nav ul li:last-child a { border-bottom: none; }
    .language-switcher-desktop { display: none; }
    .language-switcher-mobile { display: flex !important; margin-top: 20px; padding-top: 20px; border-top: 2px solid var(--border-color); justify-content: center; width: 100%; }
    .language-switcher-mobile .language-button { min-width: 90px; justify-content: center; }
    .hero { text-align: center; padding: 20px 0 30px; align-items: center; min-height: 60vh; }
    .hero-text { padding: 10px 0; max-width: 100%; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-description { font-size: 1rem; }
    .hero-actions { flex-direction: column; gap: 15px; align-items: center; }
    .hero-actions .btn-primary, .hero-actions .btn-secondary-outline { width: 100%; max-width: 280px; justify-content: center; }
    .search-section { padding: 40px 0; margin-top: -40px; }
    .search-box { padding: 30px 20px; margin: 0 15px; }
    .search-header h2 { font-size: 1.6rem; }
    .search-form { flex-direction: column; gap: 15px; }
    .search-btn { width: 100%; justify-content: center; padding: 16px; }
    .popular-searches { justify-content: center; gap: 10px; }
    .section-header h2 { font-size: 2rem; }
    .category-card { margin-bottom: 0; }
    .card-icon { width: 70px; height: 70px; margin: 25px 0 0 25px; }
    .card-icon i { font-size: 1.8rem; }
    .card-content { padding: 15px 25px 25px; }
    .card-content h3 { font-size: 1.4rem; }
    .featured-doctor { padding: 40px 0; }
    .doctor-container { flex-direction: column; gap: 30px; }
    .doctor-image { width: 100%; min-height: 300px; }
    .doctor-info { text-align: center; }
    .doctor-info h2 { font-size: 2rem; }
    .city-tourism { padding: 40px 0; }
    .city-info { padding: 30px; }
    .city-info h2 { font-size: 1.8rem; }
    .city-info h3 { font-size: 1.5rem; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-about p, .social-icons { justify-content: center; margin-left: auto; margin-right: auto; max-width: 300px; }
    .social-icons { display: inline-flex; }
    .specialties-carousel .swiper-button-next, .specialties-carousel .swiper-button-prev { display: none; }
}

@media (max-width: 576px) {
    body { font-size: 15px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.3rem; }
    .header-container { padding-left: 15px; padding-right: 45px; }
    .logo-container img { height: 50px; }
    .language-switcher { margin-left: 5px; }
    .language-button { padding: 4px; margin-left: 3px; }
    .language-button img { width: 18px; height: 12px; }
    .language-button span { display: none; }
    .search-form { flex-direction: column; }
    .search-form input[type="text"] { border-bottom: 1px solid var(--border-color); border-radius: 8px 8px 0 0; }
    .search-form button { width: 100%; padding: 15px; border-radius: 0 0 8px 8px; }
    .btn-primary, .btn-secondary { padding: 10px 20px; font-size: 0.9rem; }
    .chat-icon { width: 50px; height: 50px; bottom: 20px; right: 20px; }
    .chat-icon i { font-size: 1.3rem; }
}

/* Mayor's Message Section */
.mensaje-alcalde {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, var(--background-light) 100%);
    position: relative;
    overflow: hidden;
}
.mensaje-alcalde::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><circle fill="rgba(84,110,122,0.03)" cx="200" cy="200" r="100"/><circle fill="rgba(84,110,122,0.02)" cx="800" cy="300" r="150"/><circle fill="rgba(230,81,0,0.02)" cx="1000" cy="600" r="80"/></svg>');
    pointer-events: none;
}
.mensaje-container {
    position: relative;
    z-index: 2;
}
.mensaje-header {
    text-align: center;
    margin-bottom: 40px;
}
.mensaje-header h2 {
    color: var(--primary-dark);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
}
.mensaje-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 2px;
}
.mensaje-card {
    background: white;
    border-radius: 25px;
    padding: 0;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.mensaje-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--secondary-color), #f57c00, var(--primary-color));
    border-radius: 25px 25px 0 0;
    z-index: 3;
}
.mensaje-content {
    display: flex;
    flex-direction: column;
}
.alcalde-photo {
    width: 100%;
    padding: 40px 50px 20px;
    text-align: center;
    position: relative;
    background: linear-gradient(180deg, rgba(84,110,122,0.03) 0%, rgba(84,110,122,0.01) 100%);
    order: 1;
}
.photo-wrapper {
    position: relative;
    display: inline-block;
}
.photo-wrapper::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(84,110,122,0.08), rgba(230,81,0,0.03));
    animation: pulse-ring 5s infinite;
}
@keyframes pulse-ring {
    0% { transform: scale(0.98); opacity: 0.5; }
    50% { transform: scale(1.02); opacity: 0.2; }
    100% { transform: scale(0.98); opacity: 0.5; }
}
.alcalde-img {
    width: 220px !important;
    height: 220px !important;
    border-radius: 50% !important;
    object-fit: cover;
    border: 6px solid white;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    transition: all 0.4s ease;
    position: relative;
    z-index: 3;
    display: block;
    margin: 0 auto;
}
.alcalde-img:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.18) !important;
    border-color: var(--primary-color);
}
.mensaje-text {
    width: 100%;
    padding: 30px 60px 50px;
    color: var(--text-dark);
    position: relative;
    order: 2;
}
.quote-open {
    font-size: 3.5rem;
    color: rgba(84,110,122,0.15);
    font-family: 'Georgia', serif;
    line-height: 1;
    position: absolute;
    top: 0;
    left: 40px;
    z-index: 1;
}
.quote-close {
    font-size: 3.5rem;
    color: rgba(84,110,122,0.15);
    font-family: 'Georgia', serif;
    line-height: 1;
    position: absolute;
    bottom: 70px;
    right: 40px;
    z-index: 1;
}
.mensaje-paragraph {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: justify;
    position: relative;
    z-index: 2;
    color: var(--text-dark);
    text-indent: 1.5em;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}
.mensaje-paragraph:first-of-type {
    margin-top: 35px;
}
.mensaje-signature {
    border-top: 3px solid var(--secondary-color);
    padding-top: 25px;
    margin-top: 35px;
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}
.signature-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 5px;
}
.signature-position {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
    margin: 0;
}
@media (max-width: 768px) {
    .mensaje-alcalde { padding: 60px 0; }
    .mensaje-header h2 { font-size: 2rem; margin-bottom: 40px; }
    .mensaje-card { margin: 0 15px; }
    .alcalde-photo { padding: 40px 30px 25px; }
    .alcalde-img { width: 200px !important; height: 200px !important; }
    .mensaje-text { padding: 15px 30px 40px; }
    .mensaje-paragraph { font-size: 1.05rem; text-indent: 1em; text-align: left; }
    .quote-open { font-size: 3.5rem; top: -5px; left: 20px; }
    .quote-close { font-size: 3.5rem; bottom: 60px; right: 20px; }
}
@media (max-width: 576px) {
    .alcalde-photo { padding: 30px 20px 20px; }
    .alcalde-img { width: 160px !important; height: 160px !important; }
    .mensaje-text { padding: 10px 20px 30px; }
    .mensaje-paragraph { font-size: 1rem; margin-bottom: 20px; text-indent: 0; }
    .signature-title { font-size: 1.2rem; }
    .signature-position { font-size: 0.95rem; }
    .quote-open { font-size: 3rem; top: 0; left: 10px; }
    .quote-close { font-size: 3rem; bottom: 40px; right: 10px; }
}
/* Agrega esto en tu propio archivo CSS para solucionar el problema */

.header-nav .nav-menu .nav-link:hover {
    text-decoration: none !important; /* Anula el tachado */
}