/* Doctores de Honduras - Public Website Styles */

:root {
    --brand-primary: #46aad5;
    --brand-primary-light: #5fc0e8;
    --brand-primary-dark: #0253a2;
    --brand-secondary: #28a745;
    --brand-accent: #17a2b8;
    --brand-gray: #f4f4f4;
    --brand-gray-dark: #6c757d;
    --brand-text: #6f6f6f;
    --brand-text-light: #838383;
}

/* Base Styles */
html {
    font-size: 14px;
    min-height: 100%;
    background-color: #fff;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--brand-text);
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

main {
    flex: 1 0 auto;
    background-color: #fff;
    position: relative;
    z-index: 1;
    padding-top: 76px;
}

/* Pages with full-width headers should remove main's padding */
main:has(.hero-section),
main:has(.profile-header),
main:has(.contact-header),
main:has(.directory-search-header) {
    padding-top: 0;
}

/* Navbar */
.navbar-brand img {
    height: 45px;
}

.navbar-public {
    background: linear-gradient(to bottom, rgba(70, 170, 213, 1) 30%, rgba(70, 170, 213, 0.8) 70%, rgba(70, 170, 213, 0) 100%) !important;
    box-shadow: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.navbar-public.navbar {
    background: linear-gradient(to bottom, rgba(70, 170, 213, 1) 0%, rgba(70, 170, 213, 0.8) 50%, rgba(70, 170, 213, 0) 100%) !important;
}

.navbar-public .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}

.navbar-public .navbar-nav-spaced {
    flex-grow: 1;
    justify-content: space-evenly;
    max-width: 700px;
}

.navbar-public .nav-link:hover {
    color: #fff !important;
}

.navbar-public .navbar-brand {
    color: #fff;
}

.navbar-public .btn-light {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

.navbar-public .btn-light:hover {
    background-color: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
    color: #fff;
}

.navbar-public .form-control {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.navbar-public .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.navbar-public .form-control:focus {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero-section {
    background: url('../images/home-banner.jpg') center top / cover no-repeat;
    background-color: var(--brand-primary);
    color: #fff;
    padding: 160px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
    .hero-section h1 {
        font-size: 3rem;
    }
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
}

.hero-search .form-control {
    height: 55px;
    font-size: 1.1rem;
    border: none;
    border-radius: 30px 0 0 30px;
    padding-left: 25px;
}

.hero-search .btn {
    height: 55px;
    border-radius: 0 30px 30px 0;
    padding: 0 30px;
    font-weight: 600;
}

/* Stats Section */
.stats-section {
    background-color: var(--brand-primary);
    padding: 15px 0;
    color: #fff;
}

.stat-item {
    text-align: center;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.stat-divider {
    color: rgba(255, 255, 255, 0.5);
    padding: 0 20px;
    font-size: 1.2rem;
}

/* Doctor Profile Box - Horizontal Card */
.profile-box {
    background-color: #fff;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.profile-box:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

/* Featured Doctor Card - Pagando = true */
.profile-box.profile-featured {
    border-color: var(--brand-primary);
    box-shadow: 0 4px 20px rgba(70, 170, 213, 0.35);
    background: linear-gradient(135deg, #fff 0%, #f0f9ff 100%);
}

.profile-box.profile-featured:hover {
    box-shadow: 0 6px 25px rgba(70, 170, 213, 0.45);
}

.profile-box .featured-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(70, 170, 213, 0.4);
}

.profile-box .featured-badge i {
    margin-right: 4px;
    font-size: 0.65rem;
}

.profile-img {
    width: 100px;
    height: 100px;
    min-width: 100px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--brand-gray);
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brand-gray);
    color: var(--brand-primary);
    font-size: 2.5rem;
}

.profile-description {
    flex: 1;
    padding-left: 25px;
}

.profile-description h5 {
    font-weight: 700;
    color: var(--brand-primary);
    font-size: 1.2rem;
    margin-bottom: 3px;
    line-height: 1.2;
}

.profile-description h6 {
    color: var(--brand-primary);
    font-weight: 400;
    font-size: 1rem;
    margin-bottom: 3px;
    line-height: 1.2;
}

.profile-category {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 10px;
}

.profile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.blue-btn {
    background-color: var(--brand-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid var(--brand-primary);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.blue-btn:hover {
    background-color: transparent;
    color: var(--brand-primary);
}

.blue-btn.phone-btn {
    padding: 8px 12px;
    background-color: transparent;
    color: var(--brand-primary);
}

.blue-btn.phone-btn:hover {
    background-color: var(--brand-primary);
    color: #fff;
}

/* Doctor Card - kept for featured section */
.doctor-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.doctor-card .card-body {
    text-align: center;
    padding: 1.5rem;
}

.doctor-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background-color: var(--brand-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid var(--brand-primary);
}

.doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-avatar .avatar-placeholder {
    font-size: 2.5rem;
    color: var(--brand-primary);
}

.doctor-card .doctor-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--brand-text);
    margin-bottom: 0.5rem;
}

.doctor-card .doctor-specialty {
    color: var(--brand-primary);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.doctor-card .doctor-summary {
    color: var(--brand-text-light);
    font-size: 0.875rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.doctor-card .card-footer {
    background: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem;
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--brand-secondary);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

/* Category Cards */
.category-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: var(--brand-text);
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    color: var(--brand-text);
}

.category-card .category-icon {
    font-size: 2.5rem;
    color: var(--brand-primary);
    margin-bottom: 1rem;
}

.category-card .category-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.category-card .category-count {
    color: var(--brand-text-light);
    font-size: 0.875rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-weight: 700;
    color: var(--brand-text);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--brand-text-light);
    font-size: 1.1rem;
}

/* Featured Doctors Carousel */
.featured-doctors-section {
    padding: 60px 0;
    background-color: #fff;
}

/* Directory Search Header */
.directory-search-header {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    padding: 100px 0 40px;
    text-align: center;
}

.directory-search-header h1 {
    font-size: 2rem;
    font-weight: 700;
}

.directory-search-form {
    max-width: 600px;
    margin: 0 auto;
}

.directory-search-form .form-control {
    height: 50px;
    font-size: 1rem;
    border: none;
    border-radius: 25px 0 0 25px;
    padding-left: 20px;
}

.directory-search-form .btn {
    height: 50px;
    border-radius: 0 25px 25px 0;
    padding: 0 25px;
    font-weight: 600;
}

/* Search Results */
.search-filters {
    background-color: var(--brand-gray);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.results-count {
    color: var(--brand-text-light);
    margin-bottom: 20px;
}

.results-count strong {
    color: var(--brand-primary);
}

/* Sticky Doctor Header */
.sticky-doctor-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    z-index: 1020;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sticky-doctor-header.visible {
    transform: translateY(0);
    opacity: 1;
}

.sticky-doctor-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sticky-doctor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sticky-doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sticky-doctor-avatar i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
}

.sticky-doctor-info {
    display: flex;
    flex-direction: column;
    color: #fff;
    min-width: 0;
}

.sticky-doctor-name {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-doctor-specialty {
    font-size: 0.8rem;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-doctor-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Doctor Profile Page */
.profile-header {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    color: #fff;
    padding: 120px 0 40px;
}

.profile-header-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.profile-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    min-width: 160px;
    max-width: 200px;
    border-radius: 12px;
    border: 4px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-avatar[data-has-gallery="true"] {
    cursor: pointer;
}

.profile-avatar[data-has-gallery="true"]:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.profile-avatar img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.profile-avatar .avatar-placeholder {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.7);
}

.gallery-indicator {
    position: absolute;
    bottom: -8px;
    right: -8px;
    background: var(--brand-secondary);
    color: #fff;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.gallery-indicator i {
    font-size: 0.85rem;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.profile-specialty {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.profile-featured-badge {
    margin-top: 0.75rem;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge-featured {
    background: linear-gradient(135deg, #ffc107 0%, #ffca2c 100%);
    color: #000;
    font-weight: 700;
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
    animation: pulse-featured 2s ease-in-out infinite;
}

.badge-featured i {
    font-size: 0.75rem;
}

@keyframes pulse-featured {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
    }
    50% {
        box-shadow: 0 4px 15px rgba(255, 193, 7, 0.6);
    }
}

.profile-content {
    padding: 40px 0;
}

.profile-section {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 25px;
}

.profile-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--brand-gray);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background-color: var(--brand-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    margin-right: 15px;
    font-size: 1.1rem;
}

.contact-item a {
    color: var(--brand-text);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--brand-primary);
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.social-link:hover {
    transform: scale(1.1);
}

.social-link.facebook {
    background-color: #1877f2;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-link.whatsapp {
    background-color: #25d366;
}

.social-link.website {
    background-color: var(--brand-primary);
}

/* Profile Tabs */
.profile-tabs {
    background: #fff;
    border-radius: 10px 10px 0 0;
    padding: 0;
    border: none;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.profile-tabs .nav-link {
    border: none;
    border-radius: 0;
    padding: 15px 20px;
    color: var(--brand-text);
    font-weight: 500;
    transition: all 0.2s ease;
}

.profile-tabs .nav-link:hover {
    color: var(--brand-primary);
    background-color: rgba(70, 170, 213, 0.05);
}

.profile-tabs .nav-link.active {
    color: var(--brand-primary);
    background-color: #fff;
    border-bottom: 3px solid var(--brand-primary);
}

.profile-tab-content {
    background: #fff;
    border-radius: 0 0 10px 10px;
    min-height: 300px;
}

.profile-tab-content .profile-section {
    margin-bottom: 0;
    border-radius: 0 0 10px 10px;
    box-shadow: none;
}

.profile-sidebar {
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

.profile-sidebar .profile-section {
    margin-bottom: 20px;
}

.profile-summary {
    line-height: 1.8;
    font-size: 1rem;
}

/* Google Map */
.doctor-map {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    border: 1px solid var(--brand-gray);
}

/* Location Card Enhanced */
.location-card {
    background: var(--brand-gray);
    border-radius: 10px;
    padding: 0;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.location-card-header {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.location-card-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.location-card-header .badge {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

.location-card-body {
    padding: 15px 20px;
    background: #fff;
}

.location-card-body p {
    color: var(--brand-text);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.location-card-body i {
    color: var(--brand-primary);
    width: 20px;
}

.location-card-footer {
    padding: 12px 20px;
    background: var(--brand-gray);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

/* Custom Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 80%;
    max-height: 90%;
    cursor: default;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    background: #fff;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 1000000;
}

.lightbox-close:hover {
    background: var(--brand-primary);
    color: #fff;
    transform: scale(1.1);
}

.lightbox-caption {
    text-align: center;
    color: #fff;
    padding: 10px 0 5px;
    font-size: 1rem;
}

.lightbox-counter {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    padding-bottom: 10px;
}

/* Lightbox Navigation Buttons */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 1000000;
}

.lightbox-nav:hover {
    background: var(--brand-primary);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* AI Disclaimer */
.ai-disclaimer {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px 15px;
    color: #856404;
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ai-disclaimer i {
    color: #ffc107;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    padding: 20px 10px 10px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Video Gallery - One per line for larger playback */
.video-gallery {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.video-item {
    background: var(--brand-gray);
    border-radius: 10px;
    overflow: hidden;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-title {
    padding: 12px 15px;
    margin: 0;
    font-weight: 500;
    color: var(--brand-text);
    background: #fff;
}

/* Services List */
.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

.services-list li {
    padding: 10px 15px;
    background: var(--brand-gray);
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Credentials List */
.credential-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--brand-gray);
}

.credential-item:last-child {
    border-bottom: none;
}

.credential-item .credential-title {
    font-weight: 600;
    color: var(--brand-text);
    margin-bottom: 5px;
}

.credential-item .credential-date {
    font-size: 0.875rem;
    color: var(--brand-text-light);
}

/* Pagination */
.pagination {
    justify-content: center;
    margin-top: 30px;
}

.pagination .page-link {
    color: var(--brand-primary);
    border-color: #dee2e6;
    padding: 10px 15px;
    margin: 0 3px;
    border-radius: 8px;
}

.pagination .page-link:hover {
    background-color: var(--brand-gray);
    border-color: var(--brand-primary);
}

.pagination .page-item.active .page-link {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

/* Footer */
.site-footer {
    margin-top: auto;
    flex-shrink: 0;
}

.footer-menu-section {
    background-color: var(--brand-primary);
    color: #fff;
    padding: 25px 0;
}

.footer-menu {
    text-align: center;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.footer-menu ul li {
    padding: 0 25px;
    border-right: 1px solid rgba(255, 255, 255, 0.5);
}

.footer-menu ul li:last-child {
    border-right: none;
}

.footer-menu ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.footer-menu ul li a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-bottom {
    background-color: var(--brand-primary-dark);
    padding: 15px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #fff;
}

/* Buttons */
.btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-primary:hover {
    background-color: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
}

.btn-outline-primary {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-outline-primary:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

/* Focus States */
.btn:focus,
.btn:active:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(5, 72, 120, 0.25);
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--brand-text-light);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h3 {
    font-weight: 600;
    color: var(--brand-text);
    margin-bottom: 10px;
}

/* Contact Page */
.contact-header {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    color: #fff;
    padding: 120px 0 60px;
    text-align: center;
}

.contact-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-header .lead {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content {
    padding: 50px 0 80px;
    background-color: var(--brand-gray);
}

.contact-form-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.contact-form-card .form-label {
    font-weight: 600;
    color: var(--brand-text);
    margin-bottom: 8px;
}

.contact-form-card .form-control {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form-card .form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(70, 170, 213, 0.15);
}

.contact-form-card textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-form-card .btn-primary {
    padding: 14px 30px;
    font-weight: 600;
    border-radius: 8px;
    font-size: 1.1rem;
}

.g-recaptcha {
    display: flex;
    justify-content: center;
}

/* Contact Info Cards */
.contact-info-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.contact-info-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.contact-info-card h5 {
    font-weight: 700;
    color: var(--brand-text);
    margin-bottom: 10px;
}

.contact-info-card p {
    color: var(--brand-text-light);
    margin: 0;
    font-size: 0.95rem;
}

.contact-info-card a {
    color: var(--brand-primary);
    text-decoration: none;
}

.contact-info-card a:hover {
    text-decoration: underline;
}

/* Not Found Page */
.not-found-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.not-found-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.not-found-icon {
    font-size: 5rem;
    color: var(--brand-primary);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.not-found-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--brand-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.not-found-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--brand-text);
    margin-bottom: 1rem;
}

.not-found-message {
    font-size: 1.1rem;
    color: var(--brand-text-light);
    margin-bottom: 2rem;
}

.not-found-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.not-found-search-form {
    max-width: 350px;
    margin: 0 auto;
}

.not-found-search-form .form-control {
    border-radius: 25px 0 0 25px;
    padding-left: 20px;
}

.not-found-search-form .btn {
    border-radius: 0 25px 25px 0;
    padding: 0 20px;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 120px 0 80px;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-search .form-control,
    .hero-search .btn {
        height: 48px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .profile-header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .profile-avatar {
        min-width: 120px;
        max-width: 150px;
    }

    .profile-info {
        text-align: center;
    }

    .profile-featured-badge {
        text-align: center;
    }

    .profile-badges {
        justify-content: center;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .gallery-indicator {
        bottom: -5px;
        right: 50%;
        transform: translateX(50%);
    }

    /* Lightbox navigation on mobile */
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-content {
        max-width: 90%;
    }

    .footer-menu ul {
        flex-direction: column;
        gap: 10px;
    }

    .footer-menu ul li {
        border-right: none;
        padding: 5px 0;
    }

    /* Profile box responsive */
    .profile-box {
        padding: 15px;
        padding-top: 20px;
    }

    .profile-box .featured-badge {
        top: -8px;
        right: 10px;
        font-size: 0.6rem;
        padding: 3px 8px;
    }

    .profile-img {
        width: 80px;
        height: 80px;
        min-width: 80px;
    }

    .profile-description {
        padding-left: 15px;
    }

    .profile-description h5 {
        font-size: 1rem;
    }

    .profile-description h6 {
        font-size: 0.9rem;
    }

    .profile-actions {
        flex-wrap: wrap;
    }

    .blue-btn {
        font-size: 11px;
        padding: 6px 12px;
    }

    /* Profile tabs responsive */
    .profile-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .profile-tabs .nav-link {
        padding: 12px 15px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .profile-tabs .nav-link i {
        display: none;
    }

    /* Gallery responsive */
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }


    /* Services responsive */
    .services-list {
        grid-template-columns: 1fr;
    }

    /* Map responsive */
    .doctor-map {
        height: 250px;
    }

    /* Sidebar on mobile - disable sticky */
    .profile-sidebar {
        position: static;
        margin-top: 20px;
    }

    /* Contact page responsive */
    .contact-header {
        padding: 40px 0;
    }

    .contact-header h1 {
        font-size: 1.75rem;
    }

    .contact-form-card {
        padding: 25px 20px;
    }

    .contact-info-card {
        padding: 20px 15px;
    }

    /* Not found page responsive */
    .not-found-page {
        padding: 40px 20px;
    }

    .not-found-icon {
        font-size: 3.5rem;
    }

    .not-found-code {
        font-size: 5rem;
    }

    .not-found-title {
        font-size: 1.4rem;
    }

    .not-found-message {
        font-size: 1rem;
    }

    .not-found-actions {
        flex-direction: column;
        gap: 10px;
    }

    .not-found-actions .btn {
        width: 100%;
    }

    .not-found-search-form {
        max-width: 100%;
    }

    /* Directory search header responsive */
    .directory-search-header {
        padding: 90px 0 30px;
    }

    .directory-search-header h1 {
        font-size: 1.5rem;
    }

    .directory-search-form .form-control,
    .directory-search-form .btn {
        height: 45px;
    }
}

/* =====================================================
   CLINICA SECTION STYLES
   ===================================================== */

/* Clinica Card - Similar to Doctor Card */
.clinica-box {
    background-color: #fff;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.clinica-box:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.clinica-box.clinica-featured {
    border-color: var(--brand-primary);
    box-shadow: 0 4px 20px rgba(70, 170, 213, 0.35);
    background: linear-gradient(135deg, #fff 0%, #f0f9ff 100%);
}

.clinica-box.clinica-featured:hover {
    box-shadow: 0 6px 25px rgba(70, 170, 213, 0.45);
}

.clinica-logo {
    width: 100px;
    height: 100px;
    min-width: 100px;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--brand-gray);
}

.clinica-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.clinica-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brand-gray);
    color: var(--brand-primary);
    font-size: 2.5rem;
}

.clinica-description {
    flex: 1;
    padding-left: 25px;
}

.clinica-description h5 {
    font-weight: 700;
    color: var(--brand-primary);
    font-size: 1.2rem;
    margin-bottom: 3px;
    line-height: 1.2;
}

.clinica-description h6 {
    color: var(--brand-text-light);
    font-weight: 400;
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.2;
}

.clinica-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.clinica-stats .stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--brand-text-light);
    background-color: var(--brand-gray);
    padding: 4px 10px;
    border-radius: 20px;
}

.clinica-stats .stat-badge i {
    color: var(--brand-primary);
    font-size: 0.85rem;
}

.clinica-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

/* Clinica Header for Detail Page */
.clinica-header {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    color: #fff;
    padding: 120px 0 50px;
    position: relative;
}

.clinica-header.has-background {
    background-size: cover;
    background-position: center;
}

.clinica-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.clinica-header.has-background .clinica-header-overlay {
    display: block;
}

.clinica-header:not(.has-background) .clinica-header-overlay {
    display: none;
}

.clinica-header .container {
    position: relative;
    z-index: 1;
}

.clinica-header-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.clinica-header .clinica-logo {
    width: 150px;
    height: 150px;
    min-width: 150px;
    border-radius: 15px;
    border: 4px solid rgba(255, 255, 255, 0.4);
    background-color: #fff;
    overflow: hidden;
    flex-shrink: 0;
}

.clinica-header .clinica-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.clinica-header .clinica-logo-placeholder {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 4rem;
}

.clinica-header .clinica-info h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.clinica-header .clinica-location {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

/* Doctor mini avatar for clinic detail page */
.doctor-mini-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--brand-gray);
    flex-shrink: 0;
}

.doctor-mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-mini-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    font-size: 1.5rem;
}

/* Doctor link card in clinic detail */
.doctor-link {
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.doctor-link:hover {
    background-color: var(--brand-gray);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.doctor-link strong {
    color: var(--brand-primary);
    display: block;
}

/* Clinica Search Header - extended */
.directory-search-header.clinicas-header .row .form-select {
    height: 50px;
    border-radius: 25px;
    border: none;
    padding-left: 20px;
}

.directory-search-header.clinicas-header .row .form-control {
    border-radius: 25px;
}

.directory-search-header.clinicas-header .row .btn {
    border-radius: 25px;
}

/* Remove padding for clinica-header pages */
main:has(.clinica-header) {
    padding-top: 0;
}

/* Sticky Clinica Header */
.sticky-clinica-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    z-index: 1020;
    padding: 10px 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.sticky-clinica-header.visible {
    transform: translateY(0);
}

.sticky-clinica-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sticky-clinica-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sticky-clinica-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.sticky-clinica-logo i {
    font-size: 1.2rem;
    color: var(--brand-primary);
}

.sticky-clinica-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sticky-clinica-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-clinica-location {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.sticky-clinica-buttons {
    display: flex;
    gap: 8px;
}

/* Clinica Content Section */
.clinica-content {
    padding: 30px 0 50px;
}

/* Clinica Featured Badge */
.clinica-featured-badge {
    margin-top: 0.75rem;
}

/* Clinica Stats in Header */
.clinica-stats-header {
    display: flex;
    gap: 20px;
    margin-top: 1rem;
}

.clinica-stats-header .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.clinica-stats-header .stat-item i {
    font-size: 1rem;
}

/* Location Details Bar */
.location-details-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(70, 170, 213, 0.08) 0%, rgba(70, 170, 213, 0.03) 100%);
    border-top: 1px solid rgba(70, 170, 213, 0.1);
    flex-wrap: wrap;
    gap: 12px;
}

.location-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--brand-text);
    font-size: 0.9rem;
}

.location-detail-item i {
    color: var(--brand-primary);
    font-size: 1rem;
}

.location-directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--brand-primary);
    color: #fff;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.location-directions-btn:hover {
    background: var(--brand-primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

/* Clinica Map */
.clinica-map {
    height: 350px;
    width: 100%;
}

/* Responsive Adjustments for Clinicas */
@media (max-width: 767.98px) {
    .clinica-box {
        padding: 15px;
        padding-top: 20px;
    }

    .clinica-logo {
        width: 80px;
        height: 80px;
        min-width: 80px;
    }

    .clinica-description {
        padding-left: 15px;
    }

    .clinica-description h5 {
        font-size: 1rem;
    }

    .clinica-description h6 {
        font-size: 0.85rem;
    }

    .clinica-stats {
        flex-wrap: wrap;
    }

    .clinica-stats .stat-badge {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    .clinica-header {
        padding: 100px 0 40px;
    }

    .clinica-header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .clinica-header .clinica-logo {
        width: 120px;
        height: 120px;
        min-width: 120px;
    }

    .clinica-header .clinica-info h1 {
        font-size: 1.5rem;
    }

    .clinica-stats-header {
        justify-content: center;
        gap: 15px;
    }

    .clinica-featured-badge {
        text-align: center;
    }

    .sticky-clinica-buttons {
        flex-direction: column;
        gap: 4px;
    }

    .sticky-clinica-buttons .btn {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .location-details-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .location-directions-btn {
        justify-content: center;
    }

    .clinica-map {
        height: 280px;
    }

    .doctor-mini-avatar {
        width: 40px;
        height: 40px;
    }

    .doctor-link {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .doctor-link .doctor-mini-avatar {
        margin: 0 auto;
    }
}

/* =====================================================
   CLINICA DETAIL PAGE - MODERN STYLES
   ===================================================== */

/* Sticky Sidebar */
.clinica-sidebar {
    position: sticky;
    top: 90px;
    align-self: flex-start;
}

/* Section Cards */
.clinica-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.clinica-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    background: linear-gradient(135deg, rgba(70, 170, 213, 0.08) 0%, rgba(70, 170, 213, 0.03) 100%);
    border-bottom: 1px solid rgba(70, 170, 213, 0.1);
}

.clinica-section-header i {
    font-size: 1.4rem;
    color: var(--brand-primary);
}

.clinica-section-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-text);
    flex: 1;
}

.clinica-section-header .badge-count {
    background: var(--brand-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.clinica-section-body {
    padding: 20px 24px;
}

/* Services Grid - Two Columns */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.servicio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--brand-gray);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--brand-text);
    transition: all 0.2s ease;
}

.servicio-item:hover {
    background: rgba(70, 170, 213, 0.1);
    transform: translateX(3px);
}

.servicio-item i {
    color: var(--brand-secondary);
    font-size: 1rem;
    flex-shrink: 0;
}

.servicio-item span {
    line-height: 1.3;
}

/* Doctors Grid */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.doctor-card-mini {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--brand-gray);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.doctor-card-mini:hover {
    background: #fff;
    border-color: var(--brand-primary);
    box-shadow: 0 4px 12px rgba(70, 170, 213, 0.15);
    transform: translateY(-2px);
}

.doctor-card-mini-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doctor-card-mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-card-mini-avatar i {
    color: #fff;
    font-size: 1.4rem;
}

.doctor-card-mini-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.doctor-card-mini-info .doctor-name {
    font-weight: 600;
    color: var(--brand-primary);
    font-size: 0.95rem;
    line-height: 1.3;
}

.doctor-card-mini-info .doctor-specialty {
    color: var(--brand-text-light);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doctor-card-mini-arrow {
    color: var(--brand-text-light);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.doctor-card-mini:hover .doctor-card-mini-arrow {
    color: var(--brand-primary);
    transform: translateX(3px);
}

/* Clinica Map */
.clinica-map {
    height: 350px;
    width: 100%;
    border-radius: 0 0 16px 16px;
}

/* Contact Card */
.contact-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(70, 170, 213, 0.15);
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    color: #fff;
}

.contact-card-header i {
    font-size: 1.2rem;
}

.contact-card-header span {
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-card-body {
    padding: 8px 0;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--brand-gray);
    transition: background-color 0.2s ease;
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-item:hover {
    background-color: rgba(70, 170, 213, 0.03);
}

.contact-info-item .contact-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(70, 170, 213, 0.15) 0%, rgba(70, 170, 213, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-item .contact-info-icon i {
    color: var(--brand-primary);
    font-size: 1rem;
}

.contact-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 0.9rem;
    color: var(--brand-text);
    line-height: 1.4;
    word-break: break-word;
}

.contact-subvalue {
    font-size: 0.85rem;
    color: var(--brand-text-light);
}

.contact-link {
    color: var(--brand-primary) !important;
    text-decoration: none;
    display: block;
}

.contact-link:hover {
    text-decoration: underline;
}

/* Action Buttons Card */
.action-buttons-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.action-btn i {
    font-size: 1.1rem;
}

.action-btn-primary {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(70, 170, 213, 0.35);
}

.action-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(70, 170, 213, 0.45);
    color: #fff;
}

.action-btn-secondary {
    background: #fff;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
}

.action-btn-secondary:hover {
    background: var(--brand-primary);
    color: #fff;
    transform: translateY(-2px);
}

.action-btn-outline {
    background: #fff;
    color: var(--brand-text);
    border: 2px solid #e0e0e0;
}

.action-btn-outline:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    transform: translateY(-2px);
}

/* Back Link */
.back-link-container {
    text-align: center;
    padding-top: 10px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-text-light);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.back-link:hover {
    color: var(--brand-primary);
    background: rgba(70, 170, 213, 0.08);
}

.back-link i {
    transition: transform 0.2s ease;
}

.back-link:hover i {
    transform: translateX(-3px);
}

/* Responsive for Clinica Detail */
@media (max-width: 991.98px) {
    .clinica-sidebar {
        position: static;
        margin-top: 20px;
    }
}

@media (max-width: 767.98px) {
    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .clinica-section-header {
        padding: 14px 18px;
    }

    .clinica-section-header h3 {
        font-size: 1rem;
    }

    .clinica-section-body {
        padding: 16px 18px;
    }

    .servicio-item {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .doctor-card-mini {
        padding: 10px 14px;
    }

    .doctor-card-mini-avatar {
        width: 42px;
        height: 42px;
    }

    .clinica-map {
        height: 280px;
    }

    .contact-card-header {
        padding: 14px 16px;
    }

    .contact-info-item {
        padding: 12px 16px;
    }

    .contact-info-item .contact-info-icon {
        width: 32px;
        height: 32px;
    }

    .action-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

/* =====================================================
   DOCTOR DETAIL PAGE - MODERN STYLES
   ===================================================== */

/* Doctor Sticky Sidebar */
.doctor-sidebar {
    position: sticky;
    top: 90px;
    align-self: flex-start;
}

/* Doctor Section Cards */
.doctor-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.doctor-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    background: linear-gradient(135deg, rgba(70, 170, 213, 0.08) 0%, rgba(70, 170, 213, 0.03) 100%);
    border-bottom: 1px solid rgba(70, 170, 213, 0.1);
}

.doctor-section-header i {
    font-size: 1.4rem;
    color: var(--brand-primary);
}

.doctor-section-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-text);
    flex: 1;
}

.doctor-section-body {
    padding: 20px 24px;
}

/* Credential Items Modern */
.credential-item-modern {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: var(--brand-gray);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.credential-item-modern:last-child {
    margin-bottom: 0;
}

.credential-item-modern:hover {
    background: rgba(70, 170, 213, 0.1);
    transform: translateX(3px);
}

.credential-item-modern i {
    color: var(--brand-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.credential-item-modern span {
    font-size: 0.95rem;
    color: var(--brand-text);
    line-height: 1.4;
}

/* WhatsApp Icon Style */
.contact-info-icon.whatsapp-icon {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.2) 0%, rgba(37, 211, 102, 0.1) 100%);
}

.contact-info-icon.whatsapp-icon i {
    color: #25d366;
}

/* WhatsApp Action Button */
.action-btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.action-btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    color: #fff;
}

/* Social Card */
.social-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.social-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(70, 170, 213, 0.08) 0%, rgba(70, 170, 213, 0.03) 100%);
    border-bottom: 1px solid rgba(70, 170, 213, 0.1);
}

.social-card-header i {
    font-size: 1.1rem;
    color: var(--brand-primary);
}

.social-card-header span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--brand-text);
}

.social-card-body {
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    flex: 1;
    min-width: calc(50% - 5px);
    justify-content: center;
}

.social-btn.facebook {
    background: rgba(24, 119, 242, 0.1);
    color: #1877f2;
}

.social-btn.facebook:hover {
    background: #1877f2;
    color: #fff;
}

.social-btn.instagram {
    background: rgba(225, 48, 108, 0.1);
    color: #e1306c;
}

.social-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
}

.social-btn.twitter {
    background: rgba(0, 0, 0, 0.08);
    color: #000;
}

.social-btn.twitter:hover {
    background: #000;
    color: #fff;
}

.social-btn.website {
    background: rgba(70, 170, 213, 0.1);
    color: var(--brand-primary);
}

.social-btn.website:hover {
    background: var(--brand-primary);
    color: #fff;
}

/* Aseguradoras Card */
.aseguradoras-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.aseguradoras-card-header {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.aseguradoras-card-header i {
    font-size: 1.2rem;
}

.aseguradoras-card-header span {
    font-weight: 600;
    font-size: 0.95rem;
}

.aseguradoras-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aseguradora-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.aseguradora-item:hover {
    background: rgba(40, 167, 69, 0.1);
}

.aseguradora-logo {
    width: 40px;
    height: 30px;
    object-fit: contain;
    border-radius: 4px;
}

.aseguradora-icon {
    width: 40px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(40, 167, 69, 0.15);
    border-radius: 6px;
    color: #28a745;
}

.aseguradora-nombre {
    font-size: 0.9rem;
    color: var(--brand-text);
    font-weight: 500;
}

/* Location Card Modern - Doctor Details (Compact) */
.doctor-locations-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doctor-locations-grid .location-card-modern {
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.25s ease;
    cursor: pointer;
}

.doctor-locations-grid .location-card-modern:hover {
    box-shadow: 0 3px 12px rgba(70, 170, 213, 0.15);
    border-color: rgba(70, 170, 213, 0.4);
    transform: translateX(3px);
}

.doctor-locations-grid .location-card-modern.location-selected {
    border-color: var(--brand-primary);
    box-shadow: 0 3px 15px rgba(70, 170, 213, 0.25);
    background: linear-gradient(135deg, rgba(70, 170, 213, 0.03) 0%, rgba(255, 255, 255, 1) 100%);
}

.doctor-locations-grid .location-card-modern.location-selected .location-card-modern-header {
    background: linear-gradient(135deg, var(--brand-primary-dark, #3a8fb0) 0%, var(--brand-primary) 100%);
}

/* Compact header for doctor locations */
.doctor-locations-grid .location-card-modern-header {
    gap: 10px;
    padding: 10px 14px;
}

.doctor-locations-grid .location-card-modern-header .location-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.doctor-locations-grid .location-card-modern-header .location-icon i {
    font-size: 1rem;
}

.doctor-locations-grid .location-title-wrap h4 {
    font-size: 0.9rem;
}

.doctor-locations-grid .location-type {
    font-size: 0.7rem;
    padding: 1px 6px;
}

/* Compact body for doctor locations */
.doctor-locations-grid .location-card-modern-body {
    padding: 10px 14px;
}

.doctor-locations-grid .location-info-row {
    padding: 5px 0;
    gap: 10px;
}

.doctor-locations-grid .location-info-row i {
    font-size: 0.85rem;
}

.doctor-locations-grid .location-info-row span {
    font-size: 0.8rem;
}

/* Compact footer for doctor locations */
.doctor-locations-grid .location-card-modern-footer {
    padding: 8px 14px;
}

.doctor-locations-grid .location-map-btn {
    padding: 5px 12px;
    font-size: 0.8rem;
    gap: 6px;
}

/* Location number badge */
.location-number {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

/* Click hint for location cards */
.doctor-locations-grid .location-card-modern .location-click-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    margin-left: auto;
}

.doctor-locations-grid .location-card-modern .location-click-hint i {
    font-size: 0.8rem;
}

/* Legacy/Generic support */
.locations-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.location-card-modern {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.2s ease;
}

.location-card-modern:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: rgba(70, 170, 213, 0.3);
}

.location-card-modern-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    color: #fff;
}

.location-card-modern-header .location-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.location-card-modern-header .location-icon i {
    font-size: 1.3rem;
    color: #fff;
}

.location-title-wrap {
    flex: 1;
    min-width: 0;
}

.location-title-wrap h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.location-type {
    display: inline-block;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
}

.location-card-modern-body {
    padding: 16px 20px;
}

.location-info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--brand-gray);
}

.location-info-row:last-child {
    border-bottom: none;
}

.location-info-row i {
    color: var(--brand-primary);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.location-info-row span {
    font-size: 0.9rem;
    color: var(--brand-text);
    line-height: 1.4;
}

.location-info-row a {
    color: var(--brand-primary);
    text-decoration: none;
}

.location-info-row a:hover {
    text-decoration: underline;
}

.location-card-modern-footer {
    padding: 12px 20px;
    background: var(--brand-gray);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.location-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--brand-primary);
    border-radius: 8px;
    color: var(--brand-primary);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.location-map-btn:hover {
    background: var(--brand-primary);
    color: #fff;
}

/* Doctor Map Modern */
.doctor-map-modern {
    width: 100%;
    height: 300px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Video Item Modern */
.video-item-modern {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.video-item-modern:last-child {
    margin-bottom: 0;
}

.video-title-modern {
    padding: 14px 18px;
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--brand-text);
    background: var(--brand-gray);
}

.video-external-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(70, 170, 213, 0.1) 0%, rgba(70, 170, 213, 0.05) 100%);
    color: var(--brand-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.video-external-link i {
    font-size: 2rem;
}

.video-external-link:hover {
    background: var(--brand-primary);
    color: #fff;
}

/* AI Disclaimer Modern */
.ai-disclaimer-modern {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.05) 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    margin-bottom: 20px;
}

.ai-disclaimer-modern i {
    color: #ffc107;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.ai-disclaimer-modern span {
    font-size: 0.85rem;
    color: #856404;
    line-height: 1.5;
}

.ai-specialty-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.ai-summary-text {
    font-size: 0.95rem;
    color: var(--brand-text);
    line-height: 1.7;
}

/* Profile Tabs Modern */
.profile-tabs.nav-tabs {
    background: #fff;
    border-radius: 16px 16px 0 0;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: none;
    padding: 8px 8px 0;
    gap: 4px;
}

.profile-tabs .nav-link {
    border: none;
    border-radius: 10px 10px 0 0;
    padding: 12px 18px;
    color: var(--brand-text-light);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: transparent;
}

.profile-tabs .nav-link:hover {
    color: var(--brand-primary);
    background: rgba(70, 170, 213, 0.05);
}

.profile-tabs .nav-link.active {
    color: var(--brand-primary);
    background: linear-gradient(135deg, rgba(70, 170, 213, 0.1) 0%, rgba(70, 170, 213, 0.05) 100%);
    border-bottom: 3px solid var(--brand-primary);
}

.profile-tab-content {
    background: #fff;
    border-radius: 0 0 16px 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-top: none;
    padding: 20px;
}

.profile-tab-content .doctor-section {
    box-shadow: none;
    border: none;
}

.profile-tab-content .doctor-section-header {
    border-radius: 12px 12px 0 0;
}

.profile-tab-content .doctor-section-body {
    border-radius: 0 0 12px 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-top: none;
}

/* Responsive for Doctor Detail */
@media (max-width: 991.98px) {
    .doctor-sidebar {
        position: static;
        margin-top: 20px;
    }
}

@media (max-width: 767.98px) {
    .doctor-section-header {
        padding: 14px 18px;
    }

    .doctor-section-header h3 {
        font-size: 1rem;
    }

    .doctor-section-body {
        padding: 16px 18px;
    }

    .credential-item-modern {
        padding: 10px 14px;
    }

    .social-btn {
        min-width: 100%;
    }

    .location-card-modern-header {
        padding: 14px 16px;
    }

    .location-card-modern-body {
        padding: 14px 16px;
    }

    .doctor-map-modern {
        height: 250px;
    }

    /* Doctor locations grid mobile adjustments */
    .doctor-locations-grid .location-card-modern:hover {
        transform: none;
    }

    .doctor-locations-grid .location-click-hint span {
        display: none;
    }

    .doctor-locations-grid .location-click-hint i {
        font-size: 0.85rem;
    }

    .location-number {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }

    .doctor-locations-grid .location-card-modern-header {
        padding: 8px 12px;
    }

    .doctor-locations-grid .location-card-modern-body {
        padding: 8px 12px;
    }

    .doctor-locations-grid .location-card-modern-footer {
        padding: 6px 12px;
    }

    .profile-tabs.nav-tabs {
        padding: 4px 4px 0;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .profile-tabs .nav-link {
        padding: 10px 14px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .profile-tabs .nav-link i {
        display: none;
    }

    .profile-tab-content {
        padding: 16px;
    }
}

/* =====================================================
   LIST PAGES - MODERN STYLES
   ===================================================== */

/* Directory Header Modern */
.directory-header-modern {
    position: relative;
    padding: 80px 0 50px;
    overflow: hidden;
}

.directory-header-modern .directory-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 50%, #7ec8e3 100%);
    z-index: -1;
}

.directory-header-modern .directory-header-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.directory-header-modern.clinicas .directory-header-bg {
    background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 50%, var(--brand-primary-light) 100%);
}

.directory-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.directory-header-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.directory-header-icon i {
    font-size: 2.2rem;
    color: #fff;
}

.directory-header-text h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.directory-header-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin: 5px 0 0;
}

/* Search Form Modern */
.directory-search-modern {
    display: flex;
    gap: 12px;
    max-width: 700px;
}

.directory-search-modern.clinicas-search {
    max-width: 900px;
}

.directory-search-modern.proveedores-search {
    max-width: 1000px;
}

.proveedores-search .search-input-wrapper {
    flex: 2;
    min-width: 280px;
}

.proveedores-search .search-select-wrapper {
    flex: 1.5;
    min-width: 180px;
}

.search-input-wrapper,
.search-select-wrapper {
    flex: 1;
    position: relative;
}

.search-input-wrapper i,
.search-select-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-text-light);
    font-size: 1rem;
    z-index: 1;
}

.search-input-wrapper input,
.search-select-wrapper select {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-input-wrapper input:focus,
.search-select-wrapper select:focus {
    outline: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.search-btn {
    padding: 14px 28px;
    background: #fff;
    color: var(--brand-primary);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-btn:hover {
    background: var(--brand-text);
    color: #fff;
    transform: translateY(-2px);
}

/* Directory Stats */
.directory-stats {
    margin-top: 20px;
}

.directory-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #fff;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.directory-stat-badge i {
    font-size: 1rem;
}

/* Directory Title Bar */
.directory-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--brand-gray);
}

.directory-title-bar h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--brand-text);
}

.clear-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--brand-gray);
    border-radius: 8px;
    color: var(--brand-text-light);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.clear-filters-btn:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Doctor Card Modern */
.doctor-card-modern {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.doctor-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(70, 170, 213, 0.2);
    border-color: rgba(70, 170, 213, 0.3);
}

.doctor-card-modern.featured {
    border-color: rgba(70, 170, 213, 0.4);
    background: linear-gradient(135deg, #fff 0%, rgba(70, 170, 213, 0.03) 100%);
}

.doctor-card-modern.featured:hover {
    box-shadow: 0 8px 25px rgba(70, 170, 213, 0.25);
}

.card-featured-badge {
    position: absolute;
    top: 1px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    box-shadow: 0 2px 8px rgba(70, 170, 213, 0.4);
    z-index: 1;
}

.doctor-card-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doctor-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-card-avatar i {
    color: #fff;
    font-size: 2rem;
}

.doctor-card-content {
    flex: 1;
    min-width: 0;
}

.doctor-card-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand-text);
    line-height: 1.3;
}

.doctor-card-modern:hover .doctor-card-name {
    color: var(--brand-primary);
}

.doctor-card-specialty {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: var(--brand-primary);
    font-weight: 500;
}

.doctor-card-category {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    background: var(--brand-gray);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--brand-text-light);
}

.doctor-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Card Action Buttons */
.card-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-action-call {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    color: #fff;
}

.card-action-call:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(70, 170, 213, 0.4);
}

.card-action-view {
    gap: 6px;
    padding: 10px 16px;
    background: var(--brand-gray);
    color: var(--brand-text);
    font-size: 0.85rem;
    font-weight: 500;
}

.doctor-card-modern:hover .card-action-view {
    background: var(--brand-primary);
    color: #fff;
}

.card-action-view i {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.doctor-card-modern:hover .card-action-view i {
    transform: translateX(3px);
}

/* Clinica Card Modern */
.clinica-card-modern {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.clinica-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(70, 170, 213, 0.2);
    border-color: rgba(70, 170, 213, 0.3);
}

.clinica-card-modern.featured {
    border-color: rgba(70, 170, 213, 0.4);
    background: linear-gradient(135deg, #fff 0%, rgba(70, 170, 213, 0.03) 100%);
}

.clinica-card-logo {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.clinica-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clinica-card-logo i {
    color: #fff;
    font-size: 2rem;
}

.clinica-card-content {
    flex: 1;
    min-width: 0;
}

.clinica-card-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand-text);
    line-height: 1.3;
}

.clinica-card-modern:hover .clinica-card-name {
    color: var(--brand-primary);
}

.clinica-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: var(--brand-text-light);
}

.clinica-card-location i {
    font-size: 0.85rem;
}

.clinica-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.clinica-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--brand-text-light);
}

.clinica-stat i {
    color: var(--brand-primary);
    font-size: 0.85rem;
}

.clinica-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.clinica-card-modern .card-action-call {
    background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
}

.clinica-card-modern .card-action-call:hover {
    box-shadow: 0 4px 12px rgba(70, 170, 213, 0.4);
}

.clinica-card-modern:hover .card-action-view {
    background: var(--brand-primary);
    color: #fff;
}

/* Pagination Modern */
.pagination-modern-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid var(--brand-gray);
    border-radius: 10px;
    color: var(--brand-text);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background: var(--brand-gray);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.pagination-btn.active {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    border-color: var(--brand-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(70, 170, 213, 0.3);
}

.pagination-prev,
.pagination-next {
    padding: 0;
}

/* Empty State Modern */
.empty-state-modern {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--brand-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon i {
    font-size: 2.5rem;
    color: var(--brand-text-light);
}

.empty-state-modern h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--brand-text);
}

.empty-state-modern p {
    margin: 0;
    color: var(--brand-text-light);
    font-size: 0.95rem;
}

.empty-state-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    border-radius: 10px;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.empty-state-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(70, 170, 213, 0.4);
    color: #fff;
}

/* Responsive for List Pages */
@media (max-width: 991.98px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .directory-header-modern {
        padding: 60px 0 40px;
    }

    .directory-header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .directory-header-icon {
        width: 60px;
        height: 60px;
    }

    .directory-header-icon i {
        font-size: 1.8rem;
    }

    .directory-header-text h1 {
        font-size: 1.5rem;
    }

    .directory-header-text p {
        font-size: 0.9rem;
    }

    .directory-search-modern {
        flex-direction: column;
    }

    .directory-search-modern.clinicas-search {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
    }

    .directory-title-bar {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .directory-title-bar h2 {
        font-size: 1.1rem;
    }

    .doctor-card-modern,
    .clinica-card-modern {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }

    .doctor-card-avatar,
    .clinica-card-logo {
        width: 80px;
        height: 80px;
    }

    .doctor-card-content,
    .clinica-card-content {
        width: 100%;
    }

    .doctor-card-actions,
    .clinica-card-actions {
        width: 100%;
        justify-content: center;
        margin-top: 16px;
    }

    .card-action-view {
        flex: 1;
        justify-content: center;
    }

    .card-featured-badge {
        top: 1px;
        right: 10px;
    }

    .clinica-card-location {
        justify-content: center;
    }

    .clinica-card-stats {
        justify-content: center;
    }

    .pagination-btn {
        min-width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .empty-state-modern {
        padding: 40px 20px;
    }

    .empty-state-icon {
        width: 70px;
        height: 70px;
    }

    .empty-state-icon i {
        font-size: 2rem;
    }
}

/* ============================================
   PROVEEDOR STYLES
   ============================================ */

/* Proveedor Brand Color - Using system brand colors for consistency */
:root {
    --proveedor-primary: var(--brand-primary);
    --proveedor-primary-dark: var(--brand-primary-dark);
    --proveedor-primary-light: var(--brand-primary-light);
    --proveedor-gradient: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
}

/* Proveedor Directory Header */
.directory-header-modern.proveedores {
    background: var(--proveedor-gradient);
}

.directory-header-modern.proveedores .directory-header-bg {
    background: linear-gradient(135deg, rgba(70, 170, 213, 0.9), rgba(27, 94, 32, 0.95));
}

.directory-header-modern.proveedores .directory-header-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.proveedores-search .search-btn {
    background: var(--proveedor-primary);
    color: #fff;
}

.proveedores-search .search-btn:hover {
    background: var(--proveedor-primary-dark);
    color: #fff;
}

/* Proveedor Cards Grid */
.proveedor-card-modern {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.proveedor-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(70, 170, 213, 0.15);
    border-color: var(--proveedor-primary-light);
}

.proveedor-card-modern.featured {
    border: 2px solid var(--proveedor-primary);
    box-shadow: 0 4px 16px rgba(70, 170, 213, 0.12);
}

.proveedor-card-modern.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--proveedor-gradient);
}

.proveedor-card-modern .card-featured-badge.proveedor-badge {
    background: var(--proveedor-gradient);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.proveedor-card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 120px;
}

.proveedor-card-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.proveedor-card-logo i {
    font-size: 3rem;
    color: var(--proveedor-primary);
    opacity: 0.6;
}

.proveedor-card-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.proveedor-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.proveedor-card-type {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 0.85rem;
    color: var(--proveedor-primary);
}

.proveedor-card-type i {
    font-size: 0.8rem;
}

.proveedor-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 0.875rem;
    color: #666;
}

.proveedor-card-location i {
    color: #999;
}

.proveedor-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

.proveedor-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #888;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 6px;
}

.proveedor-stat i {
    font-size: 0.7rem;
    color: var(--proveedor-primary);
}

.proveedor-card-actions {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #fafafa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    gap: 8px;
}

.proveedor-card-actions .card-action-view.proveedor-action {
    background: var(--proveedor-gradient);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.proveedor-card-actions .card-action-view.proveedor-action:hover {
    background: var(--proveedor-primary-dark);
    color: #fff;
}

/* Proveedor Detail Page Header */
.proveedor-header {
    background: var(--proveedor-gradient);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.proveedor-header.has-background {
    background-size: cover;
    background-position: center;
    min-height: 250px;
}

.proveedor-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(70, 170, 213, 0.85), rgba(27, 94, 32, 0.9));
}

.proveedor-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 24px;
}

.proveedor-logo {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.proveedor-logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.proveedor-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.proveedor-logo-placeholder i {
    font-size: 3rem;
    color: var(--proveedor-primary);
}

.proveedor-info {
    color: white;
}

.proveedor-info h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.proveedor-type {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Proveedor Sections */
.proveedor-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.proveedor-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.proveedor-section-header i {
    font-size: 1.25rem;
    color: var(--proveedor-primary);
}

.proveedor-section-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a1a1a;
}

.proveedor-section-body {
    padding: 24px;
}

/* Categorias Grid */
.categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.categoria-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.categoria-item:hover {
    background: #e8f4f8;
}

.categoria-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--proveedor-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.categoria-icon i {
    font-size: 1rem;
    color: white;
}

.categoria-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.categoria-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.categoria-desc {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
}

.categoria-count {
    font-size: 0.75rem;
    color: var(--proveedor-primary);
    font-weight: 500;
}

/* Productos Grid */
.productos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.producto-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #444;
    transition: all 0.2s ease;
}

.producto-item:hover {
    border-color: var(--proveedor-primary);
    background: #e8f4f8;
}

.producto-item i {
    font-size: 0.8rem;
    color: var(--proveedor-primary);
}

/* Location Cards for Proveedores */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.location-card-modern {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.location-card-modern:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: var(--proveedor-primary-light);
}

.location-card-modern-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 1px solid #e9ecef;
}

.location-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--proveedor-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.location-icon i {
    font-size: 1.1rem;
    color: white;
}

.location-title-wrap {
    flex: 1;
}

.location-title-wrap h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.location-type {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--proveedor-primary);
    background: rgba(70, 170, 213, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
}

.location-card-modern-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.location-info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: #444;
}

.location-info-row i {
    font-size: 0.9rem;
    color: #888;
    margin-top: 2px;
    flex-shrink: 0;
}

.location-info-row a {
    color: var(--proveedor-primary);
    text-decoration: none;
}

.location-info-row a:hover {
    text-decoration: underline;
}

.location-card-modern-footer {
    padding: 12px 16px;
    background: #f0f0f0;
    border-top: 1px solid #e9ecef;
}

.location-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #444;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.location-map-btn:hover {
    background: var(--proveedor-primary);
    border-color: var(--proveedor-primary);
    color: white;
}

/* Proveedor Sidebar */
.proveedor-sidebar {
    position: sticky;
    top: 24px;
}

.proveedor-sidebar .contact-card-header.proveedor-contact-header {
    background: var(--proveedor-gradient);
}

.proveedor-sidebar .action-btn-proveedor {
    background: var(--proveedor-gradient);
    color: white;
}

.proveedor-sidebar .action-btn-proveedor:hover {
    background: var(--proveedor-primary-dark);
}

/* Proveedor Map */
.proveedor-map {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

/* Responsive Styles for Proveedor */
@media (max-width: 991.98px) {
    .proveedor-header-content {
        flex-direction: column;
        text-align: center;
    }

    .proveedor-info h1 {
        font-size: 1.5rem;
    }

    .proveedor-type {
        justify-content: center;
    }

    .proveedor-sidebar {
        position: static;
    }

    .locations-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .proveedor-logo {
        width: 100px;
        height: 100px;
    }

    .proveedor-card-logo {
        min-height: 100px;
        padding: 16px;
    }

    .proveedor-card-logo img {
        max-height: 60px;
    }

    .proveedor-card-content {
        padding: 16px;
    }

    .proveedor-section-body {
        padding: 16px;
    }

    .categorias-grid {
        grid-template-columns: 1fr;
    }

    .proveedor-card-actions {
        flex-wrap: wrap;
    }

    .proveedor-card-actions .card-action-view {
        flex: 1;
        justify-content: center;
    }
}

/* ============================================
   PROVEEDOR DETAIL TABS
   ============================================ */

.proveedor-tabs {
    border-bottom: none;
    gap: 4px;
}

.proveedor-tabs .nav-link {
    border: none;
    border-radius: 12px 12px 0 0;
    padding: 14px 24px;
    font-weight: 600;
    color: #666;
    background: #f0f0f0;
    transition: all 0.2s ease;
}

.proveedor-tabs .nav-link:hover {
    color: var(--proveedor-primary);
    background: #e8e8e8;
}

.proveedor-tabs .nav-link.active {
    color: var(--proveedor-primary);
    background: white;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.proveedor-tabs .nav-link .badge {
    font-size: 0.7rem;
    padding: 3px 6px;
}

.proveedor-tab-content {
    background: white;
    border-radius: 0 16px 16px 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.proveedor-section.tab-section {
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
}

.section-subtitle i {
    color: var(--proveedor-primary);
}

/* Category Chips */
.categorias-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.categoria-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f8f9fa, #f0f0f0);
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #444;
    cursor: pointer;
    transition: all 0.2s ease;
}

.categoria-chip:hover {
    background: var(--proveedor-primary);
    border-color: var(--proveedor-primary);
    color: white;
}

.categoria-chip:hover .chip-count {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.chip-count {
    background: rgba(70, 170, 213, 0.15);
    color: var(--proveedor-primary);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Products Search */
.productos-search-box .input-group {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.productos-search-box .input-group-text {
    background: white;
    border: 1px solid #e0e0e0;
    border-right: none;
    color: #888;
}

.productos-search-box .form-control {
    border: 1px solid #e0e0e0;
    border-left: none;
    border-right: none;
    padding: 12px 16px;
}

.productos-search-box .form-control:focus {
    box-shadow: none;
    border-color: #e0e0e0;
}

.productos-search-box .btn {
    border: 1px solid #e0e0e0;
    border-left: none;
    background: white;
}

/* Searchable Products Grid */
.productos-grid-searchable {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 8px;
}

.productos-grid-searchable::-webkit-scrollbar {
    width: 6px;
}

.productos-grid-searchable::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.productos-grid-searchable::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.productos-grid-searchable::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.producto-item-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #444;
    transition: all 0.2s ease;
    cursor: default;
}

.producto-item-search:hover {
    background: #e8f4f8;
}

.producto-item-search i {
    color: var(--proveedor-primary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.producto-nombre {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.producto-cat {
    font-size: 0.7rem;
    color: #888;
    background: #e8e8e8;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Product Cards Grid */
.productos-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-height: 700px;
    overflow-y: auto;
    padding: 4px;
}

.productos-cards-grid::-webkit-scrollbar {
    width: 6px;
}

.productos-cards-grid::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.productos-cards-grid::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.producto-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    transition: all 0.2s ease;
}

.producto-card:hover {
    border-color: var(--proveedor-primary-light);
    box-shadow: 0 4px 12px rgba(70, 170, 213, 0.12);
    transform: translateY(-2px);
}

.producto-card-image {
    position: relative;
    height: 180px;
    background: #f5f5f5;
    overflow: hidden;
}

.producto-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.producto-card:hover .producto-card-image img {
    transform: scale(1.05);
}

.producto-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f4f8, #e0f2f7);
}

.producto-card-placeholder i {
    font-size: 2.5rem;
    color: var(--proveedor-primary);
    opacity: 0.4;
}

.producto-card-categoria {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--proveedor-primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.producto-card-body {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.producto-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.producto-card-ref {
    font-size: 0.75rem;
    color: #888;
    margin: 0;
}

.producto-card-ref .ref-label {
    font-weight: 600;
    color: #666;
}

.producto-card-desc {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.producto-card-footer {
    padding: 10px 12px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.producto-card-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 8px 12px;
    background: var(--proveedor-primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.producto-card-link:hover {
    background: var(--proveedor-primary-dark);
    color: white;
}

.no-results-message {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.no-results-message i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
    opacity: 0.5;
}

.no-results-message p {
    margin: 0;
    font-size: 0.95rem;
}

/* Large Map */
.proveedor-map-large {
    width: 100%;
    height: 350px;
    border-bottom: 1px solid #e0e0e0;
}

/* Compact Location Cards */
.locations-compact-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.locations-compact-list::-webkit-scrollbar {
    width: 6px;
}

.locations-compact-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.locations-compact-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* City Group Styles */
.city-group {
    margin-bottom: 8px;
}

.city-group:last-child {
    margin-bottom: 0;
}

.city-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--proveedor-primary), var(--proveedor-primary-dark));
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px 8px 0 0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.city-group-header i {
    font-size: 1rem;
}

.city-group-header .city-count {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

.city-group .location-compact-card {
    border-radius: 0;
    border-bottom: 1px solid #e0e0e0;
}

.city-group .location-compact-card:last-child {
    border-radius: 0 0 8px 8px;
    border-bottom: none;
}

.location-compact-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.location-compact-card:hover {
    background: #e8f4f8;
    border-color: var(--proveedor-primary-light);
    box-shadow: 0 2px 8px rgba(70, 170, 213, 0.1);
}

.location-compact-card.principal {
    background: linear-gradient(135deg, #e8f4f8, #e0f2f7);
    border-color: var(--proveedor-primary-light);
}

.location-compact-marker {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--proveedor-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.location-compact-card.principal .location-compact-marker {
    background: var(--proveedor-primary-dark);
}

.location-compact-info {
    flex: 1;
    min-width: 0;
}

.location-compact-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.location-compact-header h5 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
}

.badge-principal {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--proveedor-primary-dark);
    background: rgba(70, 170, 213, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
}

.location-compact-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.location-compact-details .detail-item {
    font-size: 0.8rem;
    color: #666;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.location-compact-details .detail-item i {
    color: #999;
    font-size: 0.75rem;
    margin-top: 2px;
}

.location-compact-phones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--proveedor-primary);
    text-decoration: none;
    padding: 4px 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.phone-link:hover {
    background: var(--proveedor-primary);
    border-color: var(--proveedor-primary);
    color: white;
}

.phone-link.whatsapp {
    color: #25d366;
}

.phone-link.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    color: white;
}

.location-compact-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: var(--proveedor-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
    align-self: center;
}

.location-compact-action:hover {
    background: var(--proveedor-primary);
    border-color: var(--proveedor-primary);
    color: white;
}

/* Responsive for Tabs */
@media (max-width: 767.98px) {
    .proveedor-tabs .nav-link {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .proveedor-tabs .nav-link i {
        display: none;
    }

    .productos-grid-searchable {
        grid-template-columns: 1fr;
        max-height: 400px;
    }

    .productos-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-height: 500px;
    }

    .producto-card-image {
        height: 160px;
    }

    .producto-card-body {
        padding: 10px;
    }

    .producto-card-title {
        font-size: 0.8rem;
    }

    .producto-card-desc {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }

    .producto-card-footer {
        padding: 8px 10px;
    }

    .producto-card-link {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .proveedor-map-large {
        height: 250px;
    }

    .locations-compact-list {
        max-height: 350px;
    }

    .location-compact-card {
        flex-wrap: wrap;
    }

    .location-compact-action {
        width: 100%;
        margin-top: 8px;
    }
}

/* ========================================
   In-Site Ads Section
   ======================================== */

.ads-section {
    padding: 40px 0;
    background-color: var(--brand-gray);
}

.ads-section-header {
    text-align: center;
    margin-bottom: 25px;
}

.ads-section-header h3 {
    font-weight: 600;
    color: var(--brand-text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
}

/* Ad Slot Container */
.ad-slot {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    position: relative;
    height: 100%;
}

.ad-slot:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.ad-slot-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.ad-slot-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Ad Label */
.ad-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    z-index: 2;
}

/* Ad Image */
.ad-slot-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.ad-slot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ad-slot:hover .ad-slot-image img {
    transform: scale(1.03);
}

.ad-slot-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-gray) 0%, #e8e8e8 100%);
    color: var(--brand-text-light);
    font-size: 2.5rem;
}

/* Colored placeholder variants */
.ad-slot-image-placeholder.placeholder-pharmacy {
    background: linear-gradient(135deg, #28a745 0%, #5dd879 100%);
    color: #fff;
}

.ad-slot-image-placeholder.placeholder-clinic {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    color: #fff;
}

.ad-slot-image-placeholder.placeholder-lab {
    background: linear-gradient(135deg, #6f42c1 0%, #a78bfa 100%);
    color: #fff;
}

.ad-slot-image-placeholder.placeholder-insurance {
    background: linear-gradient(135deg, #0d6efd 0%, #6ea8fe 100%);
    color: #fff;
}

.ad-slot-image-placeholder.placeholder-equipment {
    background: linear-gradient(135deg, #fd7e14 0%, #ffb347 100%);
    color: #fff;
}

.ad-slot-image-placeholder.placeholder-dental {
    background: linear-gradient(135deg, #20c997 0%, #63e6be 100%);
    color: #fff;
}

/* Ad Content */
.ad-slot-content {
    padding: 15px;
}

.ad-slot-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--brand-text);
    margin-bottom: 5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ad-slot-description {
    font-size: 0.85rem;
    color: var(--brand-text-light);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.ad-slot-cta {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-primary);
    gap: 5px;
}

.ad-slot-cta i {
    transition: transform 0.2s ease;
}

.ad-slot:hover .ad-slot-cta i {
    transform: translateX(3px);
}

/* Horizontal Banner Ad */
.ad-slot-banner {
    display: flex;
    align-items: stretch;
}

.ad-slot-banner .ad-slot-image {
    width: 40%;
    min-width: 180px;
    height: auto;
    min-height: 140px;
}

.ad-slot-banner .ad-slot-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.ad-slot-banner .ad-slot-title {
    font-size: 1.1rem;
}

.ad-slot-banner .ad-slot-description {
    -webkit-line-clamp: 3;
}

/* Featured Ad Styling */
.ad-slot-featured {
    border: 2px solid var(--brand-primary);
    box-shadow: 0 4px 15px rgba(70, 170, 213, 0.2);
}

.ad-slot-featured:hover {
    box-shadow: 0 8px 25px rgba(70, 170, 213, 0.3);
}

.ad-slot-featured .ad-label {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
}

/* Ads Grid Layout */
.ads-grid {
    display: grid;
    gap: 20px;
}

.ads-grid-1 {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
}

.ads-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.ads-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.ads-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Single Banner (Full Width) */
.ads-banner-single {
    max-width: 900px;
    margin: 0 auto;
}

/* Responsive Ads */
@media (max-width: 991px) {
    .ads-grid-3,
    .ads-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .ad-slot-banner {
        flex-direction: column;
    }

    .ad-slot-banner .ad-slot-image {
        width: 100%;
        height: 160px;
    }
}

@media (max-width: 767px) {
    .ads-section {
        padding: 30px 0;
    }

    .ads-grid-2,
    .ads-grid-3,
    .ads-grid-4 {
        grid-template-columns: 1fr;
    }

    .ad-slot-image {
        height: 160px;
    }
}

/* Articulos Section */
.articulos-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.articulo-item {
    background: var(--brand-gray);
    border-radius: 12px;
    padding: 20px 24px;
    border-left: 4px solid var(--brand-primary);
    transition: all 0.2s ease;
}

.articulo-item:hover {
    background: rgba(70, 170, 213, 0.08);
    transform: translateX(3px);
}

.articulo-titulo {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-primary-dark);
    margin: 0 0 12px 0;
}

.articulo-contenido {
    font-size: 0.95rem;
    color: var(--brand-text);
    line-height: 1.6;
}

.articulo-contenido p {
    margin-bottom: 10px;
}

.articulo-contenido p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .articulo-item {
        padding: 16px 18px;
    }

    .articulo-titulo {
        font-size: 1rem;
    }

    .articulo-contenido {
        font-size: 0.9rem;
    }
}
