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

:root {
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0f0;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --accent-fuchsia: #0bbbc8;
    --accent-fuchsia-hover: #0aa5b0;
    --border-color: #e0e0e0;
    --border-color-hover: #cccccc;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background-color: #0bbbc8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Barra de Categorías */
.category-bar {
    background-color: #008b94;
    /* Tono más oscuro de celeste */
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 90;
}

.category-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.category-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.category-link:hover {
    opacity: 0.8;
}

/* Dropdown arrow check */
.category-link::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid white;
    margin-left: 4px;
    margin-top: 2px;
}

@media (max-width: 1024px) {
    .category-container {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 15px;
        /* Espacio para scrollbar si aparece */
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
        flex-wrap: nowrap;
    }

    .category-container::-webkit-scrollbar {
        height: 4px;
    }

    .category-container::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.5);
        border-radius: 4px;
    }
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.navbar-header {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.navbar-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    position: relative;
    width: 30px;
    height: 30px;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hamburger-icon span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    display: block;
}

.close-icon {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
}

.close-icon svg {
    width: 100%;
    height: 100%;
    stroke: white;
}

.navbar-toggle.active .hamburger-icon {
    display: none;
}

.navbar-toggle.active .close-icon {
    display: block;
}

.logo-image {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    opacity: 0.8;
}

.navbar-professional {
    flex-shrink: 0;
}

.professional-btn {
    background-color: white;
    border: 1px solid white;
    border-radius: 50px;
    padding: 8px 20px;
    color: #0bbbc8;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
}

.professional-btn:hover {
    background-color: #f0fbfc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-btn-pill {
    background-color: transparent;
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.login-btn-pill:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    opacity: 0.8;
}

.login-btn-pill svg {
    width: 16px;
    height: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Header y Buscador */
.header {
    margin-bottom: 60px;
    padding: 40px 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    transition: all 0.6s ease;
}

/* Modo BÃºsqueda Activa */
.header.search-active {
    padding: 10px 0;
    margin-bottom: 20px;
}

.header.search-active .main-title,
.header.search-active .main-subtitle,
.header.search-active .header-right {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s ease;
    /* Desvanecimiento rÃ¡pido */
    position: absolute;
    /* Sacar del flujo para centrar perfectamente el buscador */
}

.header.search-active .header-content {
    justify-content: center;
    min-height: 100px;
}

.header.search-active .header-left {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0;
}

.header.search-active .search-container {
    width: 100%;
    display: flex;
    justify-content: center;
    transform: translateY(-40px);
    /* Efecto de 'arrastre' hacia arriba */
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Contenido izquierdo */
.header-left {
    flex: 1;
    min-width: 300px;
}

.main-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 15px 0;
    line-height: 1.2;
    transition: all 0.4s ease;
}

.main-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin: 0 0 30px 0;
    font-weight: 400;
    transition: all 0.4s ease;
}

.search-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Contenido derecho - Avatar */
.header-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.avatar-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
}

.avatar-image {
    width: 500px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.avatar-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--bg-light) 0%, rgba(248, 249, 250, 0.8) 40%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.search-box {
    width: 550px;
    max-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 0;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--accent-fuchsia);
    box-shadow: 0 6px 20px rgba(11, 187, 200, 0.2);
    transform: translateY(-1px);
}

.search-input {
    flex: 1;
    padding: 20px 60px 20px 25px;
    background: transparent;
    border: none;
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 18px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-btn-icon {
    position: absolute;
    right: 22px;
    width: 30px;
    height: 30px;
    background: transparent;
    color: var(--accent-fuchsia);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.search-btn-icon svg {
    width: 26px;
    height: 26px;
}

.search-btn-icon:hover {
    color: var(--accent-fuchsia-hover);
    transform: scale(1.1);
}

.search-btn-icon:active {
    transform: scale(0.95);
}

.admin-link {
    padding: 14px 24px;
    background-color: var(--bg-white);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 4px var(--shadow);
}

.admin-link:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}

/* Sección Destacados (Carrusel) */
.featured-section {
    margin-bottom: 50px;
}

.featured-header {
    margin-bottom: 30px;
}

.featured-header h2 {
    font-size: 24px;
    color: var(--text-secondary);
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.carousel-controls {
    display: flex;
    gap: 10px;
}

.carousel-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-btn:hover {
    background: #FFD700;
    color: #1a1a1a;
    border-color: #FFD700;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

.carousel-container {
    overflow: hidden;
    padding: 20px 10px;
    /* Espacio para sombras */
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.featured-carousel {
    display: flex;
    gap: 30px;
    width: max-content;
    /* Permitir que crezca lo necesario */
    /* Animación se controlará via JS para loop infinito fluido o CSS animation */
    padding-left: 20px;
    /* Inicio visual */
}

/* Forzamos el estilo de tarjeta del directorio dentro del carrusel */
.featured-carousel .tarjeta-card {
    min-width: 160px;
    max-width: 160px;
    flex-shrink: 0;
    margin: 0;
    transform: scale(0.95);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
}

.featured-carousel .tarjeta-card:hover {
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(11, 187, 200, 0.2);
}

.featured-carousel .tarjeta-imagen-container {
    padding: 8px;
}

.featured-carousel .tarjeta-imagen {
    width: 90px;
    height: 90px;
}

.featured-carousel .tarjeta-content {
    padding: 6px 8px 8px;
}

.featured-carousel .tarjeta-nombre {
    font-size: 12px;
}

.featured-carousel .tarjeta-titulo {
    font-size: 10px;
}

.featured-carousel .tarjeta-descripcion {
    font-size: 9px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-carousel .tarjeta-url {
    font-size: 8px;
}

.featured-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #0bbbc8 0%, #008b94 100%);
    color: white;
    font-size: 8px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(11, 187, 200, 0.3);
}



/* Redefinimos flex items por pantalla */
@media (max-width: 1024px) {
    .featured-card {
        flex: 0 0 calc(33.33% - 14px);
        /* 3 items */
    }
}

@media (max-width: 768px) {
    .featured-card {
        flex: 0 0 calc(50% - 10px);
        /* 2 items */
    }
}

@media (max-width: 480px) {
    .featured-card {
        flex: 0 0 calc(100% - 5px);
        /* 1 item */
    }
}

/* Título de sección (Revertido al estilo original) */
.section-header {
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 24px;
    color: var(--text-secondary);
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Color celeste solo para Especialistas Destacados */
.featured-header h2 {
    color: #0bbbc8;
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 18px;
    }
}

/* Grid de tarjetas */
.tarjetas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Paginación */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 60px 0;
    width: 100%;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 12px 22px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    color: var(--text-secondary);
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef2f3;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #f0fbfc;
    border-color: var(--accent-fuchsia);
    color: var(--accent-fuchsia);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(11, 187, 200, 0.12);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #0bbbc8 0%, #008b94 100%);
    border-color: transparent;
    color: white;
    cursor: default;
    box-shadow: 0 5px 15px rgba(11, 187, 200, 0.3);
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #f9f9f9;
    color: var(--text-light);
    box-shadow: none;
    transform: none;
}

/* Números de página más compactos si quieres */
.pagination-btn:not(:first-child):not(:last-child) {
    min-width: 42px;
    padding: 12px 15px;
}

@media (max-width: 600px) {
    .pagination-container {
        gap: 8px;
    }

    .pagination-btn {
        padding: 8px 15px;
        font-size: 13px;
        min-width: 38px;
    }
}



.tarjeta-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Estilos para el nuevo icono de promocionado */
.tarjeta-avatar-wrapper,
.registro-avatar-wrapper,
.tarjeta-item-avatar,
.codi-image-container,
.doctor-avatar-container,
.modal-avatar-wrapper {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
}

.promo-star-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.modal-verified-badge {
    width: 44px;
    height: 44px;
    bottom: 15px;
    right: 15px;
}

.featured-verified-badge {
    width: 30px;
    height: 30px;
    bottom: 5px;
    right: 5px;
}

.promo-star-badge svg {
    width: 100%;
    height: 100%;
}

.tarjeta-imagen-container {
    width: 100%;
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-light);
    position: relative;
}

.tarjeta-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px var(--shadow-hover);
    border-color: var(--border-color-hover);
}

/* Contenedor de imagen */
.tarjeta-imagen-container {
    width: 100%;
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-light);
}

.tarjeta-imagen {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    background-color: var(--bg-white);
    box-shadow: 0 4px 12px var(--shadow);
    border: 4px solid var(--bg-white);
    max-width: 100%;
}

.tarjeta-avatar-placeholder,
.registro-card-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #f0fbfc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0bbbc8;
    border: 4px solid #eef2f3;
    box-shadow: 0 4px 12px var(--shadow);
    /* Sombra neutra */
    max-width: 100%;
}

.tarjeta-avatar-placeholder svg,
.registro-card-placeholder svg {
    width: 50px;
    height: 50px;
    stroke: currentColor;
    stroke-width: 2.2;
}

.featured-carousel .tarjeta-avatar-placeholder {
    width: 90px;
    height: 90px;
}

.featured-carousel .tarjeta-avatar-placeholder svg {
    width: 45px;
    height: 45px;
}

.modal-avatar-placeholder {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: #f0fbfc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0bbbc8;
    border: 5px solid #eef2f3;
    /* Borde neutro por defecto */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Sombra neutra */
    max-width: 100%;
    transition: all 0.5s ease;
}


.modal-avatar-placeholder svg {
    width: 100px;
    height: 100px;
    stroke-width: 2.2;
}

/* Contenido de la tarjeta */
.tarjeta-content {
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tarjeta-nombre {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
    text-align: center;
}

.tarjeta-titulo {
    display: none;
    /* Reemplazado por .tarjeta-especialidad-badge */
}

.tarjeta-especialidad-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    text-align: center;
    margin: 2px auto 8px;
    width: fit-content;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.specialty-badge-fixed {
    width: 80px !important;
    font-size: 8px !important;
    padding: 2px 4px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block !important;
}

.tarjeta-descripcion {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

.tarjeta-url {
    font-size: 11px;
    color: var(--accent-fuchsia);
    word-break: break-all;
    margin-top: 4px;
    opacity: 0.8;
    text-align: center;
}

/* Panel de AdministraciÃ³n */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-header h1 {
    font-size: 22px;
    color: var(--text-primary);
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    font-weight: 500;
}

.back-link:hover {
    color: var(--accent-fuchsia);
}

/* Back link en dashboard header debe ser blanco */
.dashboard-header .back-link {
    color: white;
}

.dashboard-header .back-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.dashboard-header .back-link svg {
    color: white;
    stroke: white;
}

.admin-section {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.admin-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Secciones especiales sin padding interno porque tienen su propio header */
.admin-section.trends-section,
.admin-section.recent-section,
.admin-section.form-container,
.admin-section.tarjetas-section {
    padding: 0;
}

.form-container {
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.form-container:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.admin-section h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

/* Formulario Mejorado */
.form-container {
    padding: 0;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-header {
    background: #1e293b;
    padding: 32px 32px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.form-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-fuchsia) 0%, rgba(11, 187, 200, 0.5) 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.form-header-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-fuchsia) 0%, var(--accent-fuchsia-hover) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(11, 187, 200, 0.25);
}

.form-header-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.form-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.form-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.6;
}

.add-form {
    padding: 32px;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 28px;
    position: relative;
    animation: fadeInUp 0.5s ease-out backwards;
}

.form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.form-group:nth-child(3) {
    animation-delay: 0.3s;
}

.form-actions {
    animation: fadeInUp 0.5s ease-out 0.4s backwards;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
    transition: color 0.3s ease;
}

.form-label svg {
    width: 18px;
    height: 18px;
    color: var(--accent-fuchsia);
    flex-shrink: 0;
}

.form-label span {
    flex: 1;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    z-index: 1;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-icon svg {
    width: 100%;
    height: 100%;
}

.form-input {
    width: 100%;
    padding: 16px 18px 16px 50px;
    background-color: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

/* Estilos especÃ­ficos para datetime-local */
input[type="datetime-local"] {
    position: relative;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    margin-left: 8px;
}

input[type="datetime-local"]:hover::-webkit-calendar-picker-indicator,
input[type="datetime-local"]:focus::-webkit-calendar-picker-indicator {
    opacity: 1;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.form-input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.form-input:hover {
    border-color: var(--border-color-hover);
    background-color: #f5f6f7;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-fuchsia);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(11, 187, 200, 0.1);
    transform: translateY(-1px);
}

.form-group:focus-within .input-icon {
    color: var(--accent-fuchsia);
    transform: scale(1.1);
}

.form-help {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.form-help svg {
    width: 14px;
    height: 14px;
    color: var(--text-light);
    margin-top: 2px;
    flex-shrink: 0;
}

/* Estilo para select */
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 45px;
    cursor: pointer;
}

select.form-input:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230bbbc8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

select.form-input option {
    padding: 15px;
    background-color: #ffffff;
    color: #1e293b;
    font-size: 15px;
    font-weight: 500;
}

/* Mejora general del select para que se vea mÃ¡s premium */
select.form-input {
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

select.form-input:hover {
    border-color: var(--accent-fuchsia);
    background-color: #ffffff;
}

/* Checkbox Premium */
.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    user-select: none;
    transition: all 0.2s ease;
}

.checkbox-container:hover {
    color: var(--accent-fuchsia);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: -2px;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkbox-container:hover input~.checkmark {
    border-color: var(--accent-fuchsia);
    background-color: #ffffff;
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--accent-fuchsia);
    border-color: var(--accent-fuchsia);
    box-shadow: 0 4px 12px rgba(11, 187, 200, 0.3);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 8px;
    top: 4px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.admin-badge-promocionado {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-fuchsia);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    margin-left: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid white;
}

.admin-badge-promocionado svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.checkbox-label {
    margin-left: 8px;
}

/* iOS Style Switch */
.ios-switch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-white);
    padding: 18px 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow);
    margin-top: 20px;
    transition: all 0.3s ease;
}

.ios-switch-container:hover {
    border-color: var(--accent-fuchsia);
}

.ios-switch-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ios-switch-info svg {
    width: 20px;
    height: 20px;
    color: var(--accent-fuchsia);
}

.ios-switch-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.slider {
    background-color: var(--accent-fuchsia);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--accent-fuchsia);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

/* Small Switch Variant */
.switch-sm {
    width: 44px;
    height: 24px;
}

.switch-sm .slider:before {
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
}

.switch-sm input:checked+.slider:before {
    transform: translateX(20px);
}

.form-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

.submit-btn {
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--accent-fuchsia) 0%, var(--accent-fuchsia-hover) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(11, 187, 200, 0.35);
    position: relative;
    overflow: hidden;
    min-width: 180px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 187, 200, 0.45);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(11, 187, 200, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(11, 187, 200, 0.2);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.btn-content svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-content svg {
    transform: rotate(90deg);
}

/* Preview de metadatos */
.metadata-preview {
    margin-bottom: 28px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.metadata-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-fuchsia) 0%, var(--accent-cyan) 100%);
}

.metadata-preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.metadata-preview-header svg {
    width: 22px;
    height: 22px;
    color: var(--accent-fuchsia);
    flex-shrink: 0;
}

.metadata-preview-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.metadata-preview-content {
    display: flex;
    gap: 24px;
    transition: opacity 0.3s ease;
}

.metadata-preview-image-container {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.metadata-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.metadata-preview-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    background: var(--bg-light);
}

.metadata-preview-image-placeholder svg {
    width: 50px;
    height: 50px;
}

.metadata-preview-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.metadata-preview-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.metadata-preview-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metadata-preview-field span {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.6;
    word-wrap: break-word;
}

.metadata-preview-field:last-child span {
    max-height: 60px;
    overflow-y: auto;
}

.metadata-preview-text {
    display: inline-block;
}

/* Skeleton Loader */
.metadata-preview-skeleton {
    display: flex;
    gap: 24px;
    animation: fadeIn 0.3s ease-out;
}

.skeleton-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    background: linear-gradient(90deg, #e5e7eb 25%, #d1d5db 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

.skeleton-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skeleton-line {
    height: 16px;
    border-radius: 8px;
    background: linear-gradient(90deg, #e5e7eb 25%, #d1d5db 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-line-title {
    height: 20px;
    width: 60%;
    margin-bottom: 4px;
}

.skeleton-line-subtitle {
    height: 18px;
    width: 80%;
}

.skeleton-line-short {
    width: 40%;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Lista de tarjetas en admin */
.tarjetas-section {
    padding: 0;
    overflow: hidden;
}

.tarjetas-header {
    background: #1e293b;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.tarjetas-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-fuchsia) 0%, rgba(11, 187, 200, 0.5) 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.tarjetas-header-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-fuchsia) 0%, var(--accent-fuchsia-hover) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(11, 187, 200, 0.25);
}

.tarjetas-header-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.tarjetas-header-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0 0 4px 0;
    letter-spacing: -0.3px;
}

.tarjetas-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.5;
}

.tarjetas-list {
    display: grid;
    gap: 16px;
    padding: 24px 32px;
}

.tarjetas-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.tarjetas-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(11, 187, 200, 0.1) 0%, rgba(11, 187, 200, 0.05) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
}

.tarjetas-empty-icon svg {
    width: 40px;
    height: 40px;
    color: var(--accent-fuchsia);
}

.tarjetas-empty h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.tarjetas-empty p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.tarjeta-item {
    background-color: var(--bg-white);
    border-radius: 14px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    animation: fadeInUp 0.4s ease-out backwards;
}

.tarjeta-item:nth-child(1) {
    animation-delay: 0.1s;
}

.tarjeta-item:nth-child(2) {
    animation-delay: 0.15s;
}

.tarjeta-item:nth-child(3) {
    animation-delay: 0.2s;
}

.tarjeta-item:nth-child(4) {
    animation-delay: 0.25s;
}

.tarjeta-item:nth-child(5) {
    animation-delay: 0.3s;
}

.tarjeta-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-fuchsia);
}

.tarjeta-item-left {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 0;
}

.tarjeta-item-avatar {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(11, 187, 200, 0.1) 0%, rgba(11, 187, 200, 0.05) 100%);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tarjeta-item-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tarjeta-item-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-fuchsia);
}

.tarjeta-item-avatar-placeholder svg {
    width: 28px;
    height: 28px;
}

.tarjeta-item-info {
    flex: 1;
    min-width: 0;
}

.tarjeta-item-nombre {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tarjeta-item-nombre svg {
    width: 18px;
    height: 18px;
    color: var(--accent-fuchsia);
    flex-shrink: 0;
}

.tarjeta-item-nombre span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tarjeta-item-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.tarjeta-item-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.tarjeta-item-detail svg {
    width: 14px;
    height: 14px;
    color: var(--text-light);
    flex-shrink: 0;
}

.tarjeta-item-url {
    color: var(--accent-fuchsia);
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
}

.tarjeta-item-descripcion {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tarjeta-item-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 16px;
}

.btn-delete {
    padding: 10px 18px;
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.25);
}

.btn-delete svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-delete:hover {
    background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.35);
}

.btn-delete:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(211, 47, 47, 0.25);
}

/* Mensajes */
.message {
    padding: 15px 20px;
    border-radius: 12px;
    margin-top: 20px;
    font-weight: 500;
}

.message.success {
    background-color: #2e7d32;
    color: white;
}

.message.error {
    background-color: #d32f2f;
    color: white;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent-fuchsia);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.error {
    background-color: #d32f2f;
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-icon {
    width: 60px;
    height: 60px;
    color: var(--text-secondary);
    margin: 0 auto 20px;
    display: block;
}

.no-results-text {
    color: var(--text-secondary);
    font-size: 18px;
    margin: 0;
}

.hidden {
    display: none;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.modal.hidden {
    display: none;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background-color: white;
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1001;
    border: 1px solid rgba(11, 187, 200, 0.1);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Scrollbar para el modal - Integrada completamente */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
    margin: 20px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #0bbbc866;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #0bbbc8;
}

/* Boton Volver Atrás - Más pequeño y sutil */
.modal-back-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(11, 187, 200, 0.2);
    color: #0bbbc8;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.3s ease;
    z-index: 1020;
}

.modal-back-btn:hover {
    background-color: #0bbbc8;
    color: white;
    transform: scale(1.05);
}

.modal-close {
    display: none !important;
}

/* Auth Prompt Modal (Personalizado) */
.auth-modal-content {
    max-width: 450px !important;
    padding: 40px !important;
    text-align: center;
    border-radius: 30px !important;
    overflow: visible !important;
    max-height: none !important;
}

.auth-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.auth-logo-img {
    width: 180px;
    height: auto;
    object-fit: contain;
    margin-bottom: 30px;
}

.auth-modal-body h2 {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    line-height: 1.2;
}

.auth-modal-body p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.auth-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 10px;
}

.auth-btn-primary {
    background: linear-gradient(135deg, #0bbbc8 0%, #089da8 100%);
    color: white !important;
    text-decoration: none;
    padding: 16px 24px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(11, 187, 200, 0.3);
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(11, 187, 200, 0.4);
}

.auth-btn-secondary {
    background: transparent;
    color: #64748b;
    border: none;
    padding: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
}

.auth-btn-secondary:hover {
    color: #1e293b;
}


/* Estilos para el mensaje de error centrado */
#error {
    grid-column: 1 / -1;
    /* Ocupa todo el ancho si está en grid */
    width: 100%;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: transparent;
    /* Resetear fondo si tenía barra roja */
    margin: 0 auto;
}

#error.hidden {
    display: none;
}

.error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
    color: #ef4444;
    /* Rojo */
}

.error-icon {
    width: 64px;
    height: 64px;
    stroke: #ef4444;
    opacity: 0.9;
    margin-bottom: 15px;
}

.error-content p {
    font-size: 18px;
    font-weight: 600;
    color: #b91c1c;
    /* Rojo más oscuro para texto */
    line-height: 1.5;
    margin: 0;
}

/* Estilos de Página de Perfil (Match admin theme) */
.profile-section,
.security-section {
    padding: 0;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
    background-color: var(--bg-white);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    margin: 25px 0;
}

.profile-header,
.security-header {
    background: #1e293b;
    padding: 32px 32px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.profile-header::after,
.security-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-fuchsia) 0%, rgba(11, 187, 200, 0.5) 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.profile-header-icon,
.security-header-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-fuchsia) 0%, var(--accent-fuchsia-hover) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(11, 187, 200, 0.25);
}

.profile-header-icon svg,
.security-header-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.profile-header-content h2,
.security-header-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: -0.5px;
}

.profile-subtitle,
.security-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin: 8px 0 0 0;
    line-height: 1.6;
}

.profile-content,
.security-content {
    padding: 32px;
}

.avatar-edit-container {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f1f5f9;
}

.profile-main-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-main-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-main-avatar svg {
    width: 50px;
    height: 50px;
    color: #cbd5e1;
}

.avatar-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.role-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(11, 187, 200, 0.1);
    color: #0bbbc8;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Estilos Perfil Admin */
.profile-section,
.security-section {
    padding: 0;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
    background-color: var(--bg-white);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    margin: 25px 0;
}

.profile-header,
.security-header {
    background: #1e293b;
    padding: 32px 32px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.profile-header-icon,
.security-header-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-fuchsia) 0%, var(--accent-fuchsia-hover) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-header-icon svg,
.security-header-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.profile-header-content h2,
.security-header-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.profile-subtitle,
.security-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

.profile-content,
.security-content {
    padding: 30px;
}

.avatar-edit-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.profile-main-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ddd;
}

.profile-main-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Estilos de Página de Perfil */
.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f1f5f9;
}

.profile-avatar-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #f8fafc;
    border: 4px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-icon {
    width: 60px;
    height: 60px;
    color: #64748b;
}

.profile-avatar-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.profile-role-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #0bbbc8;
    color: white;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group label svg {
    width: 18px;
    height: 18px;
    color: #0bbbc8;
}

.form-group input {
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: #0bbbc8;
    box-shadow: 0 0 0 4px rgba(11, 187, 200, 0.1);
    outline: none;
}

.form-group input:disabled {
    background: #f8fafc;
    cursor: not-allowed;
    color: #64748b;
}

.form-hint {
    font-size: 12px;
    color: #64748b;
}

.form-actions {
    margin-top: 30px;
}

@media (max-width: 768px) {
    .profile-avatar-section {
        flex-direction: column;
        text-align: center;
    }

    .profile-form .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Ajustes Móviles para Modal */
/* Ajustes Móviles para Modal */
/* Ajustes Móviles para Modal */
@media (max-width: 768px) {

    /* Modal full screen en móvil */
    .modal {
        padding: 0;
        align-items: flex-start;
    }

    .modal-content {
        width: 100%;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        /* Scroll global del contenido */
    }

    /* Reset de cuerpo */
    .modal-body {
        display: flex;
        flex-direction: column;
        overflow: visible;
        /* Dejar que el contenido crezca */
        flex: 0 0 auto;
        /* Altura automática basada en contenido */
        padding: 0;
        gap: 0;
    }

    /* PARTE SUPERIOR: FOTO (No sticky, scrollable normal) */
    .modal-left {
        width: 100%;
        position: relative;
        background-color: white;
        padding: 25px 20px 10px;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px;
        align-items: center;
        justify-items: center;
        border-bottom: none;
        z-index: 20;
    }

    /* Degradado blanco para suavizar la transición al scrolear (Mucho más alto para que sea imperceptible) */
    .modal-left::after {
        content: '';
        position: absolute;
        bottom: -60px;
        left: 0;
        width: 100%;
        height: 60px;
        background: linear-gradient(to bottom,
                white 0%,
                rgba(255, 255, 255, 0.95) 20%,
                rgba(255, 255, 255, 0.7) 50%,
                transparent 100%);
        pointer-events: none;
    }

    .modal-imagen-container {
        grid-column: 1 / -1;
        /* Ocupar todo el ancho */
        display: flex;
        justify-content: center;
        margin-bottom: 5px;
    }

    .modal-imagen,
    .modal-avatar-placeholder {
        width: 120px !important;
        /* Aún más pequeño para maximizar espacio */
        height: 120px !important;
        border: 4px solid white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .modal-avatar-placeholder svg {
        width: 60px !important;
        height: 60px !important;
    }

    .modal-specialty-label {
        grid-row: 2 !important;
        grid-column: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 48px !important;
        /* Altura ajustada */
        font-size: 12px !important;
        font-weight: 800;
        padding: 0 5px !important;
        border-radius: 25px !important;
        /* Redondeo pedido */
        background-color: var(--specialty-color, #0bbbc8) !important;
        color: white !important;
        border: none;
        line-height: 1.1;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        box-sizing: border-box;
        text-align: center;
    }

    .modal-verified-badge {
        width: 30px;
        height: 30px;
        bottom: 8px;
        right: 8px;
    }

    /* PARTE INFERIOR: DATOS */
    .modal-right {
        padding: 20px 25px;
        width: 100%;
        display: block !important;
        /* Forzar visibilidad */
        background: white;
    }

    .modal-info-header {
        text-align: center;
        margin-bottom: 15px;
    }

    .modal-nombre {
        font-size: 22px;
        margin-bottom: 8px;
        color: var(--text-primary);
        word-wrap: break-word;
        /* Evitar desbordes */
    }

    /* Ajuste de cajas de info - MÁS ANCHAS */
    .modal-info-content {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .modal-detail-box,
    .modal-url-box {
        padding: 18px 20px;
        background: #f8fafc;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Texto de descripción más ancho y legible */
    .modal-descripcion {
        font-size: 15px;
        line-height: 1.7;
        color: var(--text-primary);
        width: 100%;
    }

    /* URL más ancha */
    .modal-url-link {
        font-size: 14px;
        word-break: break-all;
        width: 100%;
        display: block;
    }

    .detail-label {
        margin-bottom: 10px;
    }

    .modal-btn-visitar {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap !important;
        /* Evitar que el icono baje */
        gap: 10px;
        border-radius: 25px !important;
        width: 100%;
        padding: 16px 24px;
        font-size: 16px;
        box-sizing: border-box;
    }

    .modal-actions {
        padding: 0;
        margin-top: 25px;
    }

    /* Botón volver flotante (Asegurado) - Solo Icono y a la Izquierda */
    .modal-back-btn {
        top: 25px;
        left: 20px;
        right: auto;
        position: absolute;
        width: 46px;
        /* Botón un poco más grande */
        height: 46px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 25px !important;
        /* Esquinas de 25px */
        background: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 50;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .modal-back-btn span {
        display: none;
    }

    .modal-back-btn svg {
        margin: 0;
        width: 24px;
        /* Icono más grande */
        height: 24px;
        stroke-width: 2.5;
        /* Más visible */
    }

    /* Doctores Relacionados abajo */
    .modal-doctores {
        padding: 20px 25px 40px;
        background: #fff;
    }

    .doctores-titulo {
        font-size: 18px;
        margin-bottom: 15px;
        padding: 0;
    }

    .doctores-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 15px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .doctores-grid .doctor-card {
        min-width: 140px;
        max-width: 140px;
        flex: 0 0 auto;
        margin: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    /* OPTIMIZACIÓN EXTRA PARA PANTALLAS MUY PEQUEÑAS (iPhone SE) */
    @media (max-width: 380px) {
        .modal-left {
            padding: 20px 10px 10px;
            gap: 8px !important;
        }

        .modal-imagen,
        .modal-avatar-placeholder {
            width: 100px !important;
            height: 100px !important;
        }

        .modal-specialty-label {
            height: 40px !important;
            font-size: 10px !important;
            padding: 0 4px !important;
        }

        .recommend-btn {
            height: 40px !important;
            font-size: 11px !important;
            padding: 0 4px !important;
            gap: 4px;
        }

        .recommend-btn svg {
            width: 14px;
            height: 14px;
        }

        .modal-right {
            padding: 12px 15px;
        }

        .modal-nombre {
            font-size: 18px;
            margin-bottom: 5px;
        }

        .modal-info-content {
            gap: 10px;
        }

        .modal-detail-box,
        .modal-url-box {
            padding: 12px;
        }

        .modal-descripcion {
            font-size: 13px;
            line-height: 1.5;
        }

        .modal-btn-visitar {
            padding: 12px 15px;
            font-size: 13px !important;
            gap: 6px;
        }

        .modal-doctores {
            padding: 15px 15px 30px;
        }
    }
}

.modal-body {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 50px 40px 30px;
    align-items: start;
    /* Quita el espacio extra abajo de la foto */
}

.modal-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: sticky;
    top: 0;
}

.modal-specialty-label {
    margin-top: 15px;
    padding: 8px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    /* Se muestra solo si está promocionado */
    text-align: center;
    width: 250px;
    box-sizing: border-box;
}

.modal-imagen {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid white;
    /* Borde neutro */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Sombra neutra */
    transition: all 0.5s ease;
    background-color: #f8fafc;
}

.modal-info-header {
    margin-bottom: 20px;
}

.modal-nombre {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.modal-badge-container {
    display: flex;
    gap: 8px;
    margin-bottom: 5px;
}

.modal-titulo-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

.modal-info-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Más compacto */
}

.modal-detail-box,
.modal-url-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #f1f5f9;
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #0bbbc8;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.detail-label svg {
    width: 16px;
    height: 16px;
}

.modal-descripcion {
    font-size: 15px;
    color: #334155;
    line-height: 1.6;
    margin: 0;
}

.modal-url-link {
    font-size: 14px;
    color: #0bbbc8;
    word-break: break-all;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.modal-url-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.modal-stats-section {
    margin-top: 20px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #f1f5f9;
}

.modal-map-container {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    z-index: 10;
}

.modal-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.stat-item {
    background: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.stat-label {
    display: block;
    font-size: 10px;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #0bbbc8;
}

.modal-actions {
    margin-top: 25px;
}

.modal-btn-visitar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #0bbbc8 0%, #089da8 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    /* Centrado vertical preciso */
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(11, 187, 200, 0.25);
}

.modal-btn-visitar:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(11, 187, 200, 0.35);
}

.modal-btn-visitar svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    display: block;
    /* Asegurar que se comporte como bloque dentro de flex */
}

.modal-btn-visitar:hover svg {
    transform: translateX(4px);
}

/* Doctores Relacionados */
.modal-doctores {
    padding: 30px 40px;
    background-color: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.doctores-titulo {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.doctores-titulo::before {
    content: '';
    width: 4px;
    height: 18px;
    background: #0bbbc8;
    border-radius: 2px;
}

.doctores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.doctor-card {
    background-color: white;
    border-radius: 14px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

.doctor-avatar-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
}

.doctor-imagen {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    /* Borde neutro */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* Sombra neutra */
    transition: all 0.3s ease;
}

.doctor-card:hover .doctor-imagen {
    transform: scale(1.05);
}

.doctor-promo-icon {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.doctor-promo-icon svg {
    width: 100%;
    height: 100%;
}

.doctor-nombre {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    line-height: 1.3;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doctor-card:hover .doctor-imagen {
    border-color: #0bbbc833;
}

.doctor-nombre {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    line-height: 1.4;
}

/* Responsive Modal */
@media (max-width: 992px) {
    .modal-body {
        grid-template-columns: 1fr;
        padding: 50px 30px 40px;
        text-align: center;
    }

    .modal-badge-container {
        justify-content: center;
    }

    .modal-left {
        justify-content: center;
    }

    .modal-imagen {
        width: 250px;
        height: 250px;
    }

    .detail-label {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 100%;
        width: 100%;
        max-height: 100vh;
        border-radius: 16px;
    }

    .modal-back-btn {
        top: 15px;
        right: 15px;
        padding: 8px 15px;
    }
}

/* Responsive para tablets y pantallas medianas */
@media (max-width: 1150px) and (min-width: 769px) {
    .navbar-container {
        gap: 5px;
        padding: 10px 10px;
        justify-content: space-between;
    }

    .logo-image {
        height: 20px;
    }

    .navbar-links {
        gap: 20px;
        flex-wrap: nowrap;
        margin: 0;
        flex: 0 1 auto;
    }

    .nav-link {
        font-size: 11px;
        letter-spacing: -0.3px;
    }

    .professional-btn {
        padding: 5px 10px !important;
        font-size: 11px !important;
    }

    .professional-btn .chevron-icon {
        width: 10px !important;
        height: 10px !important;
    }

    .login-btn-pill {
        padding: 5px 10px;
        font-size: 11px;
    }

    .navbar-professional {
        margin-left: 5px !important;
        flex-shrink: 0;
    }

    .tarjetas-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .tarjeta-imagen {
        width: 140px;
        height: 140px;
    }
}

/* Responsive para mÃ³viles */
@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-header {
        width: 100%;
        justify-content: space-between;
    }

    .navbar-container {
        flex-direction: column;
        padding: 15px 20px;
        gap: 0;
        align-items: stretch;
    }

    .navbar-logo {
        width: auto;
    }

    .navbar-links {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        text-align: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0;
        align-items: center;
    }

    .navbar-links.active {
        max-height: 500px;
        padding: 20px 0;
    }

    .navbar-professional {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0;
        margin-left: 0 !important;
        display: flex;
        justify-content: center;
    }

    .navbar-professional.active {
        max-height: 100px;
        padding: 15px 0 30px 0;
    }

    .professional-btn {
        width: auto !important;
        justify-content: center !important;
        background-color: white !important;
        color: #0bbbc8 !important;
        border: 1px solid white !important;
        padding: 10px 22px !important;
        border-radius: 50px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
    }

    .professional-btn .chevron-icon {
        color: #0bbbc8 !important;
        width: 14px !important;
        height: 14px !important;
    }

    .navbar-toggle {
        border: none !important;
        outline: none !important;
        background: transparent !important;
    }


    .header {
        padding: 30px 0;
        margin-bottom: 40px;
    }

    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
    }

    .header-left {
        text-align: center;
    }

    .main-title {
        font-size: 32px;
    }

    .main-subtitle {
        font-size: 18px;
    }

    .header-right {
        width: 100%;
    }

    .avatar-image {
        width: 100%;
        max-width: 400px;
        height: auto;
    }

    .search-container {
        align-items: stretch;
        width: 100%;
        flex-direction: column;
    }

    .search-box {
        width: 100%;
        max-width: 100%;
    }

    .admin-link {
        width: 100%;
        text-align: center;
    }

    .tarjetas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .tarjeta-imagen {
        width: 140px;
        height: 140px;
    }

    .tarjeta-imagen-container {
        padding: 12px;
    }

    .search-container {
        flex-direction: column;
    }

    .search-box {
        width: 100%;
        min-width: auto;
    }

    .admin-link {
        width: 100%;
        text-align: center;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tarjeta-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .tarjeta-item-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .container {
        padding: 20px 15px;
    }
}

/* Admin Layout con Sidebar */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-light);
}

/* Sidebar */
.admin-sidebar {
    width: 240px;
    background-color: #1e293b;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    padding: 20px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar .contact-icon {
    width: 36px;
    height: 36px;
    color: rgba(255, 255, 255, 0.7);
    display: none;
    flex-shrink: 0;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: white;
    text-align: center;
}

.user-email {
    font-size: 11px;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    word-break: break-word;
    line-height: 1.3;
}

.sidebar-nav {
    flex: 1;
    padding: 15px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 14px;
}

.nav-item svg {
    width: 18px;
    height: 18px;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

.nav-item.active {
    background-color: rgba(11, 187, 200, 0.2);
    color: #0bbbc8;
    border-left-color: #0bbbc8;
}

.sidebar-footer {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.sidebar-link:hover {
    color: white;
}

.sidebar-link.logout-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.sidebar-link.logout-link svg {
    width: 16px;
    height: 16px;
}

.sidebar-link.logout-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-1px);
}

/* Main Content Area */
.admin-main {
    flex: 1;
    margin-left: 240px;
    padding: 0;
    background-color: var(--bg-light);
    min-width: 0;
    max-width: calc(100vw - 240px);
    overflow-x: hidden;
}

.admin-content {
    padding: 20px;
    max-width: 100%;
    margin: 0;
    width: calc(100vw - 280px);
    box-sizing: border-box;
}

/* Dashboard Header */
.dashboard-header {
    background-color: #1e293b;
    color: white;
    padding: 18px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.dashboard-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-title svg {
    width: 22px;
    height: 22px;
}

.dashboard-title h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.dashboard-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-filters span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.filter-select {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.filter-select option {
    background-color: #1e293b;
    color: white;
}

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.5s ease-out backwards;
}

.stat-card:nth-child(1) {
    animation-delay: 0.05s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.15s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(11, 187, 200, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    color: #0bbbc8;
}

.stat-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.stat-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Chart Container - Mejorado con mismo diseÃ±o que addlink.html */
.trends-section {
    padding: 0;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out 0.2s backwards;
}

.trends-header {
    background: #1e293b;
    padding: 32px 32px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.trends-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-fuchsia) 0%, rgba(11, 187, 200, 0.5) 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.trends-header-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-fuchsia) 0%, var(--accent-fuchsia-hover) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(11, 187, 200, 0.25);
}

.trends-header-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.trends-header-content {
    flex: 1;
}

.trends-header-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.trends-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.6;
}

.chart-content {
    padding: 32px;
    background-color: var(--bg-white);
}

/* Estilos antiguos de chart-header - mantener para compatibilidad si se usan en otros lugares */
.chart-header:not(.trends-header-content):not(.recent-header-content) {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.chart-header:not(.trends-header-content):not(.recent-header-content) svg {
    width: 20px;
    height: 20px;
    color: #0bbbc8;
}

.chart-header:not(.trends-header-content):not(.recent-header-content) h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

#trendsChart {
    max-height: 300px;
    animation: fadeIn 0.6s ease-out 0.4s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Recent Cards Table - Mejorado con mismo diseÃ±o que addlink.html */
.recent-section {
    padding: 0;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out 0.3s backwards;
}

.recent-header {
    background: #1e293b;
    padding: 32px 32px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.recent-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-fuchsia) 0%, rgba(11, 187, 200, 0.5) 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.recent-header-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-fuchsia) 0%, var(--accent-fuchsia-hover) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(11, 187, 200, 0.25);
}

.recent-header-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.recent-header-content {
    flex: 1;
}

.recent-header-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.recent-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.6;
}

/* Mantener compatibilidad con clases antiguas */
.recent-cards:not(.recent-section) {
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px var(--shadow);
}

.recent-cards:not(.recent-section) h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 15px 0;
}

.table-container {
    overflow-x: auto;
    padding: 32px;
    background-color: var(--bg-white);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background-color: var(--bg-light);
}

.data-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
    border-bottom: 2px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

.data-table td {
    padding: 18px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.2s ease;
}

.data-table tbody tr {
    animation: fadeInUp 0.4s ease-out backwards;
    transition: all 0.2s ease;
}

.data-table tbody tr:nth-child(1) {
    animation-delay: 0.1s;
}

.data-table tbody tr:nth-child(2) {
    animation-delay: 0.15s;
}

.data-table tbody tr:nth-child(3) {
    animation-delay: 0.2s;
}

.data-table tbody tr:nth-child(4) {
    animation-delay: 0.25s;
}

.data-table tbody tr:nth-child(5) {
    animation-delay: 0.3s;
}

.data-table tbody tr:nth-child(6) {
    animation-delay: 0.35s;
}

.data-table tbody tr:nth-child(7) {
    animation-delay: 0.4s;
}

.data-table tbody tr:nth-child(8) {
    animation-delay: 0.45s;
}

.data-table tbody tr:hover {
    background-color: rgba(11, 187, 200, 0.05);
    transform: translateX(2px);
}

.btn-delete-small {
    padding: 8px 14px;
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(211, 47, 47, 0.25);
}

.btn-delete-small:hover {
    background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(211, 47, 47, 0.35);
}

.btn-delete-small:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(211, 47, 47, 0.25);
}

/* Registros Section */
.registros-section {
    padding: 0;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
}

.registros-header {
    background: #1e293b;
    padding: 32px 32px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.registros-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-fuchsia) 0%, rgba(11, 187, 200, 0.5) 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.registros-header-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-fuchsia) 0%, var(--accent-fuchsia-hover) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(11, 187, 200, 0.25);
}

.registros-header-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.registros-header-content {
    flex: 1;
}

.registros-header-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.registros-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.6;
}

.registros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 32px;
    background-color: var(--bg-white);
}

.registro-card {
    background-color: var(--bg-white);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.5s ease-out backwards;
    padding: 24px 20px;
}

.registro-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-fuchsia);
}

.registro-card-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 0;
}

.registro-card-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.registro-card-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-fuchsia);
    background: linear-gradient(135deg, rgba(11, 187, 200, 0.1) 0%, rgba(11, 187, 200, 0.05) 100%);
    border: 3px solid var(--border-color);
}

.registro-card-placeholder svg {
    width: 48px;
    height: 48px;
}

.registro-card-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.registro-card-nombre {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.registro-card-url {
    font-size: 13px;
    color: var(--accent-fuchsia);
    margin: 0;
    word-break: break-all;
    line-height: 1.4;
}

/* CODI Section - Detalle de tarjeta */
.codi-section {
    padding: 0;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
}

.codi-header {
    background: #1e293b;
    padding: 32px 32px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.codi-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-fuchsia) 0%, rgba(11, 187, 200, 0.5) 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.codi-header-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-fuchsia) 0%, var(--accent-fuchsia-hover) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(11, 187, 200, 0.25);
}

.codi-header-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.codi-header-content {
    flex: 1;
}

.codi-header-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.codi-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.6;
}

.codi-content {
    padding: 32px;
    background-color: var(--bg-white);
}

.codi-main-info {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.codi-image-container {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(11, 187, 200, 0.1) 0%, rgba(11, 187, 200, 0.05) 100%);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.codi-imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.codi-imagen-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-fuchsia);
}

.codi-imagen-placeholder svg {
    width: 80px;
    height: 80px;
}

.codi-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.codi-detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.codi-detail-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.codi-detail-label svg {
    width: 18px;
    height: 18px;
    color: var(--accent-fuchsia);
    flex-shrink: 0;
}

.codi-detail-value {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.codi-url {
    color: var(--accent-fuchsia);
    text-decoration: none;
    word-break: break-all;
    transition: color 0.3s ease;
}

.codi-url:hover {
    color: var(--accent-fuchsia-hover);
    text-decoration: underline;
}

.codi-description {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.codi-descripcion-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 12px 0 0 0;
}

.codi-dates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.codi-date-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Login Page */
.login-body {
    background: #1e293b;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: 200px 200px;
    opacity: 0.3;
}

.login-page {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

.login-title {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.login-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 50px;
}

.usuarios-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.usuario-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.usuario-circle:hover {
    transform: translateY(-5px);
}

.usuario-avatar-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(11, 187, 200, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.usuario-circle:hover .usuario-avatar-circle {
    border-color: #0bbbc8;
    box-shadow: 0 0 20px rgba(11, 187, 200, 0.4);
}

.usuario-foto {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-icon {
    width: 60px;
    height: 60px;
    color: rgba(255, 255, 255, 0.7);
}

.usuario-nombre {
    color: white;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    text-align: center;
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
}

.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.login-modal.hidden {
    display: none;
}

.login-modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    max-height: 95vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Scrollbar personalizado para el modal de login */
.login-modal-content::-webkit-scrollbar {
    width: 8px;
}

.login-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.login-modal-content::-webkit-scrollbar-thumb {
    background: rgba(11, 187, 200, 0.3);
    border-radius: 4px;
}

.login-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(11, 187, 200, 0.5);
}

/* Ocultar las flechas del scrollbar */
.login-modal-content::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

/* Para Firefox */
.login-modal-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(11, 187, 200, 0.3) transparent;
}

.login-header {
    background-color: #1e293b;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-header h1 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: 1px;
}

.login-close {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.login-close:hover {
    opacity: 0.7;
}

.login-close svg {
    width: 24px;
    height: 24px;
}

.login-profile {
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: rgba(30, 41, 59, 0.05);
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(11, 187, 200, 0.3);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(11, 187, 200, 0.05);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-avatar .contact-icon {
    width: 36px;
    height: 36px;
    color: rgba(11, 187, 200, 0.7);
    display: none;
    flex-shrink: 0;
}

.profile-avatar:has(.contact-icon:not([style*="display: none"])) {
    background-color: rgba(11, 187, 200, 0.1);
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 0;
}

.profile-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.login-form {
    padding: 30px;
}

.form-group-login {
    margin-bottom: 20px;
}

.form-group-login label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.login-input {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(248, 249, 250, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s ease;
}

.login-input:focus {
    outline: none;
    border-color: #0bbbc8;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(11, 187, 200, 0.1);
}

.forgot-password {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    text-align: right;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #0bbbc8;
}

.login-error {
    background-color: #fee;
    color: #d32f2f;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #ffcdd2;
}

.login-submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #1e293b;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.login-submit-btn:hover {
    background-color: #334155;
    transform: translateY(-2px);
}

.login-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-submit-btn svg {
    width: 20px;
    height: 20px;
}

/* Responsive Login */
@media (max-width: 768px) {
    .login-title {
        font-size: 24px;
    }

    .login-subtitle {
        font-size: 16px;
    }

    .usuarios-container {
        gap: 20px;
    }

    .usuario-avatar-circle {
        width: 100px;
        height: 100px;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
    }

    .usuario-nombre {
        font-size: 14px;
    }
}

/* Responsive Admin */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .admin-main {
        margin-left: 0;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-cards {
        grid-template-columns: 1fr;
    }

    .table-container {
        overflow-x: scroll;
    }

    /* Registros responsive */
    .registros-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 16px;
    }

    .registro-card {
        padding: 20px 16px;
    }

    .registro-card-image img,
    .registro-card-placeholder {
        width: 100px;
        height: 100px;
    }

    /* CODI responsive */
    .codi-main-info {
        flex-direction: column;
        gap: 24px;
    }

    .codi-image-container {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .codi-dates {
        grid-template-columns: 1fr;
    }

    .codi-content {
        padding: 20px;
    }
}

/* OptimizaciÃ³n para pantallas de 1600px */
@media (max-width: 1600px) {
    .admin-content {
        width: calc(100vw - 240px);
        padding: 15px;
        overflow-x: hidden;
    }

    .stats-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 15px;
        gap: 12px;
    }

    .stat-content h3 {
        font-size: 24px;
    }

    .stat-content p {
        font-size: 12px;
    }

    .dashboard-header {
        padding: 15px 18px;
    }

    .chart-container {
        padding: 18px;
    }

    #trendsChart {
        max-height: 280px;
    }
}

/* Estilos para gestiÃ³n de usuarios */
.btn-add-user {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent-fuchsia) 0%, var(--accent-fuchsia-hover) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(11, 187, 200, 0.35);
}

.btn-add-user:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 187, 200, 0.45);
}

.btn-add-user:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(11, 187, 200, 0.3);
}

.btn-add-user svg {
    width: 18px;
    height: 18px;
}

/* Badges de roles */
.role-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-admin {
    background: linear-gradient(135deg, #0bbbc8 0%, #0aa5b0 100%);
    color: white;
}

.role-user {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

/* BotÃ³n deshabilitado */
.btn-disabled {
    padding: 8px 14px;
    background: #e5e7eb;
    color: #9ca3af;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: not-allowed;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0.6;
}

.btn-disabled svg {
    width: 16px;
    height: 16px;
}

/* Modal form */
.modal-header {
    background: #1e293b;
    padding: 32px 32px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-fuchsia) 0%, rgba(11, 187, 200, 0.5) 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.modal-form {
    padding: 32px;
}

.modal-form .form-group {
    margin-bottom: 24px;
}

.modal-form .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.btn-cancel {
    padding: 14px 28px;
    background: var(--bg-light);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cancel:hover {
    background: var(--border-color);
    color: var(--text-primary);
    border-color: var(--border-color-hover);
}

.modal-form .message {
    margin-top: 20px;
}

/* Prevenir scroll horizontal */
body {
    overflow-x: hidden;
}

.admin-layout {
    overflow-x: hidden;
}

.admin-main {
    overflow-x: hidden;
}

/* Footer Profesional */
.main-footer {
    background-color: #0bbbc8;
    color: #ffffff;
    padding: 80px 0 30px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-col .footer-logo {
    height: 50px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
    /* Hace el logo blanco para resaltar en celeste */
}

.footer-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    color: #ffffff;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #ffffff;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 8px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

.contact-list svg {
    width: 20px;
    height: 20px;
    color: #ffffff;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.social-icon:hover {
    background-color: #ffffff;
    color: #0bbbc8;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* Boton Volver Atrás en Modal */
.modal-back-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: transparent;
    border: none;
    color: #0bbbc8;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 1010;
    text-transform: none;
}

.modal-back-btn:hover {
    background-color: rgba(11, 187, 200, 0.05);
    transform: translateX(-3px);
}

.modal-back-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

/* Ocultar el boton de 'X' antiguo para limpiar el diseño */
.modal-close {
    display: none !important;
}

/* =========================================
   Sección de Comentarios (Modal)
   ========================================= */
.modal-comments-section {
    padding: 0 40px 30px 40px;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

.comments-header-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.comments-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 700;
}

.comments-count {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Formulario de comentario */
.new-comment-form {
    margin-bottom: 30px;
}

.comment-input-wrapper {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.comment-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.input-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#commentInput {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    resize: none;
    transition: border-color 0.3s;
    min-height: 40px;
}

#commentInput:focus {
    outline: none;
    border-bottom: 2px solid var(--primary-color);
}

/* Selector de Estrellas */
.star-rating-selector {
    display: flex;
    flex-direction: row-reverse;
    /* Para facilitar selector CSS */
    justify-content: flex-end;
    gap: 5px;
}

.star-pill {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.star-pill:hover,
.star-pill:hover~.star-pill,
.star-pill.selected,
.star-pill.selected~.star-pill {
    color: #0bbbc8;
    /* Celeste marca */
}

/* Botones de acción */
.comment-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 5px;
}

.btn-cancel-comment {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 500;
    border-radius: 20px;
}

.btn-cancel-comment:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.btn-submit-comment {
    background-color: #0bbbc8;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
}

.btn-submit-comment:disabled {
    background-color: var(--border-color);
    cursor: not-allowed;
    color: var(--text-secondary);
}

/* Lista de Comentarios */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    display: flex;
    gap: 15px;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.comment-stars {
    color: #0bbbc8;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.comment-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.login-comment-prompt {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Responsive adjust for comments */
@media (max-width: 768px) {
    .modal-comments-section {
        padding: 0 15px 30px 15px;
        /* Más espacio en móviles */
    }

    .comments-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        margin: 15px 0;
    }

    .comments-title {
        font-size: 1.1rem;
    }

    .comments-count {
        font-size: 0.9rem;
        margin-top: -5px;
    }

    .comment-input-wrapper {
        gap: 10px;
    }

    .comment-avatar-small {
        width: 35px;
        height: 35px;
    }

    .star-pill {
        font-size: 1.3rem;
    }

    .btn-cancel-comment,
    .btn-submit-comment {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .comment-item {
        gap: 10px;
    }

    .comment-author {
        font-size: 0.85rem;
    }

    .comment-date {
        font-size: 0.75rem;
    }

    .comment-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .comment-input-wrapper {
        flex-direction: column;
    }

    .input-area {
        width: 100%;
    }

    .comment-actions {
        width: 100%;
        justify-content: space-between;
    }

    .btn-cancel-comment,
    .btn-submit-comment {
        flex: 1;
        text-align: center;
    }
}

/* --- Sistema de Recomendaciones --- */
.modal-recommend-container {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.85));
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    width: 250px;
}

.recommend-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #475569;
    border: 1.5px solid #e2e8f0;
    padding: 12px 24px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    width: 100%;
    justify-content: center;
}

.recommend-btn svg {
    width: 20px;
    height: 20px;
}

.recommend-btn:hover {
    background: #f8fafc;
    border-color: #0bbbc8;
    color: #0bbbc8;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(11, 187, 200, 0.3);
}

.recommend-btn.active {
    background: #0bbbc8;
    color: white;
    border-color: #0bbbc8;
    box-shadow: 0 10px 20px -5px rgba(11, 187, 200, 0.4);
}

.recommend-btn.active svg {
    fill: white;
    stroke: white;
    transform: rotate(-10deg);
}

.recommend-btn:active {
    transform: scale(0.96);
}

.recommend-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 0 10px;
    margin-top: 10px;
    width: 100%;
}

.recommend-photos {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.recom-photo-tiny,
.recom-extra-count {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    margin-right: -12px;
    position: relative;
    transition: transform 0.2s ease;
}

.recom-photo-tiny:last-child,
.recom-extra-count:last-child {
    margin-right: 0;
}

.recom-photo-tiny {
    object-fit: cover;
    background: #f1f5f9;
}

.recom-photo-tiny:hover {
    transform: translateY(-4px);
    z-index: 100 !important;
}

.recommend-count {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.4;
    text-align: left;
}

.recommend-count strong {
    color: #1e293b;
    font-weight: 700;
}

@media (max-width: 768px) {
    .modal-recommend-container {
        display: contents;
        /* Permitir que sus hijos entren al grid de modal-left */
    }

    .recommend-btn {
        grid-row: 2 !important;
        grid-column: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 48px !important;
        /* Misma altura */
        margin: 0 !important;
        border-radius: 25px !important;
        /* Redondeo pedido */
        padding: 0 5px !important;
        font-size: 12px !important;
        font-weight: 700;
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 5px;
        background: white;
        border: 1.5px solid #e2e8f0;
        box-sizing: border-box;
    }

    .recommend-btn svg {
        display: block !important;
        flex-shrink: 0;
        width: 18px;
        height: 18px;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .recommend-info {
        grid-row: 3 !important;
        grid-column: 1 / -1 !important;
        margin-top: 15px !important;
        width: 100%;
        padding: 0;
        gap: 8px;
        justify-content: center;
    }

    .recom-photo-tiny,
    .recom-extra-count {
        width: 25px;
        height: 25px;
        margin-right: -10px;
    }

    .recommend-count {
        font-size: 11px;
    }

    .modal-left::after {
        bottom: -30px;
        height: 30px;
    }
}

/* PRIORIDAD MÁXIMA PARA EL HALO DE PROMOCIONADOS */
.is-promoted-halo {
    border-color: #0bbbc8 !important;
    box-shadow: 0 0 25px rgba(11, 187, 200, 0.4) !important;
}