/**
 * CSS Completo Adaptado para Laboratorio de Análisis Clínicos Santa Lucía
 * Basado en el sistema FarmaGT
 * Versión moderna unificada
 */

/* =================== VARIABLES =================== */
:root {
    /* Paleta de colores adaptada al logo de Santa Lucía */
    --primary: #1e5596;         /* Azul principal del logo */
    --primary-light: #3a6cb3;   /* Versión más clara del azul */
    --primary-dark: #0d3c75;    /* Versión más oscura del azul */
    
    --accent: #9d348e;          /* Púrpura/magenta del logo */
    --accent-light: #c144b0;    /* Versión más clara del púrpura */
    --accent-gradient: linear-gradient(135deg, #9d348e, #1e5596);
    
    --secondary: #6c757d;
    --success: #198754;
    --info: #5bbad5;            /* Azul claro similar al del logo */
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #212529;
    
    /* Fuentes */
    --font-primary: 'Poppins', 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-headings: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    
    /* Bordes y sombras */
    --border-radius: 0.375rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-hover: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    
    /* Espaciado */
    --section-spacing: 4rem;
}

/* =================== GENERAL =================== */
body {
    font-family: var(--font-primary);
    color: var(--dark);
    background-color: #f5f5f5;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 600;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

.btn {
    border-radius: var(--border-radius);
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: white;
}

.btn-accent:hover {
    background-color: var(--accent-light);
    border-color: var(--accent-light);
    color: white;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-gradient);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0;
    position: relative;
    display: inline-block;
    color: var(--primary);
}

.section-header h2:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--accent-gradient);
    left: 0;
    bottom: -10px;
}

.view-all {
    color: var(--primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.view-all:hover {
    color: var(--primary-light);
}

.img-overlay {
    position: relative;
    overflow: hidden;
}

.img-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.img-overlay-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    z-index: 2;
}

/* =================== HEADER =================== */
/* Top Bar */
.top-bar {
    background-color: var(--primary-dark);
    color: white;
    font-size: 0.9rem;
}

.top-contact span {
    font-size: 0.85rem;
}

.top-social a {
    color: white;
    opacity: 0.8;
    transition: var(--transition);
}

.top-social a:hover {
    opacity: 1;
}

/* Main Header */
.main-header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-main {
    background-color: #fff;
}

.logo-text {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.8rem;
}

.logo-text span {
    color: var(--accent);
}

.logo-wrapper {
    display: inline-block;
    text-decoration: none;
}

.search-form .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
    padding-left: 1rem;
    height: 46px;
}

.search-form .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    background-color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
}

.cart-btn {
    position: relative;
    padding: 0.5rem 1rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Main Navigation */
.main-nav {
    background: var(--accent-gradient);
}

.nav-container {
    display: flex;
    position: relative;
}

.navbar-toggler {
    background-color: transparent;
    border: none;
    color: white;
    padding: 0.75rem 0;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.navbar-toggler i {
    margin-right: 0.5rem;
}

.navbar-nav {
    display: flex;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-link {
    color: white;
    padding: 1rem 1.25rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-icon {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.navbar-nav .dropdown-menu {
    margin-top: 0;
    border: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.navbar-nav .dropdown-item {
    padding: 0.6rem 1.5rem;
    font-weight: 400;
}

.navbar-nav .dropdown-item:hover {
    background-color: rgba(30, 85, 150, 0.1);
}

/* =================== HERO SECTION =================== */
.hero-section {
    background: linear-gradient(rgba(30, 85, 150, 0.9), rgba(157, 52, 142, 0.85)), url('../img/banner1.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    margin-bottom: 2rem;
    position: relative;
}

.hero-text {
    padding: 2rem 0;
}

.hero-text h1 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-buttons {
    margin-top: 2rem;
}

/* Search Bar Section */
.search-bar-section {
    margin-top: -3rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.search-wrapper {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
}

.search-wrapper form {
    display: flex;
}

.search-wrapper input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.search-wrapper button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    background-color: var(--primary);
}

/* =================== SERVICIOS SECTION =================== */
.services-section {
    padding: 4rem 0;
}

.service-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--primary);
}

.service-link {
    color: var(--accent);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
}

.service-link:hover {
    color: var(--accent-light);
}

/* =================== CATEGORIAS SECTION =================== */
.categories-section {
    padding: 4rem 0;
    background-color: var(--light);
}

.category-card {
    display: block;
    text-align: center;
    transition: var(--transition);
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--box-shadow);
    height: 100%;
    border-bottom: 3px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    color: var(--primary);
    box-shadow: var(--box-shadow-hover);
    border-bottom: 3px solid var(--accent);
}

.category-img {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.category-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover .category-img img {
    transform: scale(1.05);
}

.category-card h3 {
    font-size: 1rem;
    margin-bottom: 0;
    color: var(--primary);
    transition: var(--transition);
}

.category-card:hover h3 {
    color: var(--accent);
}

/* Versión antigua categoría */
.categoria-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.categoria-img {
    height: 150px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.categoria-card:hover .categoria-img {
    transform: scale(1.1);
}

.categoria-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(30, 85, 150, 0.7), rgba(157, 52, 142, 0.7));
    overflow: hidden;
    width: 100%;
    height: 0;
    transition: 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.categoria-card:hover .categoria-overlay {
    height: 100%;
}

.categoria-title {
    color: white;
    font-size: 1.5rem;
    text-align: center;
    padding: 0 1rem;
}

/* =================== PRODUCTOS SECTION =================== */
.featured-products-section {
    padding: 4rem 0;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    height: 100%;
    border-top: 3px solid transparent;
    background-image: linear-gradient(white, white), var(--accent-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.product-badge.offer {
    background-color: var(--warning);
    color: var(--dark);
}

.product-badge.prescription {
    background-color: var(--info);
    color: white;
    left: auto;
    right: 10px;
}

.product-badge.exam {
    background-color: var(--accent);
    color: white;
}

.product-img {
    display: block;
    height: 200px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-content {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    height: 2.8rem;
    overflow: hidden;
}

.product-title a {
    color: var(--primary);
}

.product-title a:hover {
    color: var(--accent);
}

.product-price {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.new-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.old-price {
    font-size: 0.9rem;
    color: var(--secondary);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.product-action {
    display: flex;
    gap: 0.5rem;
}

.product-action .btn {
    flex: 1;
}

/* Estilos antiguos para productos */
.card {
    border: none;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-5px);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.producto-precio {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary);
}

.producto-precio-oferta {
    font-size: 1rem;
    text-decoration: line-through;
    color: var(--secondary);
}

.badge-oferta {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--warning);
    color: var(--dark);
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: bold;
}

.badge-receta {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--info);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* =================== CLINICAS Y LABORATORIOS =================== */
.clinics-section, .labs-section {
    padding: 4rem 0;
}

.clinic-card, .lab-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    border-top: 3px solid var(--primary);
}

.clinic-card:hover, .lab-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.clinic-img, .lab-img {
    height: 200px;
    overflow: hidden;
}

.clinic-img img, .lab-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.clinic-card:hover .clinic-img img,
.lab-card:hover .lab-img img {
    transform: scale(1.05);
}

.clinic-content, .lab-content {
    padding: 1.5rem;
}

.clinic-content h3, .lab-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.clinic-address, .lab-address,
.clinic-phone, .lab-phone {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.clinic-address i, .lab-address i,
.clinic-phone i, .lab-phone i {
    width: 20px;
    margin-right: 0.5rem;
    color: var(--accent);
}

/* Estilos antiguos para clínicas */
.clinica-card {
    border: none;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.clinica-card:hover {
    box-shadow: var(--box-shadow-hover);
}

.clinica-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

.clinica-info i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
    color: var(--accent);
}

.mapa-clinica {
    height: 300px;
    width: 100%;
    border-radius: var(--border-radius);
}

/* Médicos */
.medico-card {
    text-align: center;
    margin-bottom: 2rem;
}

.medico-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 5px solid white;
    box-shadow: 0 0 0 3px var(--primary);
}

/* =================== CTA SECTION =================== */
.cta-section {
    background: linear-gradient(rgba(30, 85, 150, 0.9), rgba(157, 52, 142, 0.85)), url('../img/banner2.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.cta-content {
    padding: 2rem 0;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.feature-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.feature-text p {
    margin-bottom: 0;
    opacity: 0.8;
}

/* =================== CARRITO =================== */
.tabla-carrito .producto-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.cantidad-input {
    width: 70px;
    text-align: center;
}

/* =================== FOOTER =================== */
.footer {
    background-color: #212529;
    color: rgba(255, 255, 255, 0.7);
}

.footer-top {
    background-color: #212529;
}

.footer-bottom {
    background-color: #191d21;
}

.footer-title {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    font-weight: 600;
    font-size: 1.25rem;
}

.footer-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-gradient);
}

.footer-desc {
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.footer-contact .contact-item i {
    width: 20px;
    margin-right: 0.75rem;
    margin-top: 4px;
    color: var(--accent);
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    position: relative;
    padding-left: 15px;
}

.footer-links a:before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent);
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.social-media {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--accent-gradient);
    color: white;
    transform: translateY(-3px);
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
}

.footer-logo {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.currency-info {
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.back-to-top:hover {
    background: var(--primary-dark);
    color: white;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* =================== FORMULARIOS =================== */
.form-control, .form-select {
    border-radius: var(--border-radius);
    padding: 0.5rem 0.75rem;
}

.form-floating > .form-control {
    padding: 1rem 0.75rem;
}

.form-label {
    font-weight: 500;
}

/* =================== ADMIN =================== */
.admin-sidebar {
    background-color: var(--dark);
    color: white;
    min-height: 100vh;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: var(--border-radius);
}

.admin-sidebar .nav-link:hover, 
.admin-sidebar .nav-link.active {
    background-color: var(--accent);
    color: white;
}

.admin-sidebar .nav-link i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

.admin-content {
    padding: 2rem;
}

.admin-card {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
}

/* =================== NOTIFICACIONES =================== */
/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    color: #333;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-notification.success {
    border-left: 4px solid var(--success);
}

.toast-notification.danger {
    border-left: 4px solid var(--danger);
}

.toast-icon {
    margin-right: 10px;
}

.toast-notification.success .toast-icon {
    color: var(--success);
}

.toast-notification.danger .toast-icon {
    color: var(--danger);
}

/* Cotización */
.cotizacion-box {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary);
}

.cotizacion-header {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.cotizacion-footer {
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* =================== CAROUSEL =================== */
.carousel-item {
    height: 400px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 15px 20px;
}

.carousel-caption h5 {
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* =================== EXÁMENES SECTION =================== */
.exams-section {
    padding: 4rem 0;
    background-color: var(--light);
}

.exam-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    height: 100%;
    border-left: 3px solid var(--accent);
}

.exam-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.exam-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.exam-icon i {
    font-size: 1.5rem;
}

.exam-content {
    padding: 1.5rem;
}

.exam-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.exam-description {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.exam-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.exam-meta {
    display: flex;
    justify-content: space-between;
    color: var(--secondary);
    font-size: 0.85rem;
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
}

.exam-meta span {
    display: flex;
    align-items: center;
}

.exam-meta i {
    margin-right: 0.5rem;
    color: var(--accent);
}

/* =================== PAGINACIÓN =================== */
.pagination {
    justify-content: center;
    margin-top: 2rem;
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

.page-link {
    color: var(--primary);
}

.page-link:hover {
    color: var(--primary-dark);
}

/* =================== TESTIMONIOS =================== */
.testimonials-section {
    padding: 4rem 0;
}

.testimonial-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    position: relative;
    margin-top: 2rem;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.testimonial-card:before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: -20px;
    left: 30px;
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-user {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-user-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--primary);
}

.testimonial-user-info p {
    margin-bottom: 0;
    font-size: 0.85rem;
    color: var(--secondary);
}

.testimonial-rating {
    color: var(--warning);
    margin-top: 0.5rem;
}

/* =================== ESTADÍSTICAS =================== */
.stats-section {
    padding: 4rem 0;
    background: var(--light);
}

.stat-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.stat-icon i {
    font-size: 1.8rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.stat-label {
    color: var(--secondary);
    font-size: 1.1rem;
}

/* =================== EQUIPO =================== */
.team-section {
    padding: 4rem 0;
}

.team-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.team-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-card:hover .team-img img {
    transform: scale(1.05);
}

.team-social {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.team-card:hover .team-social {
    bottom: 20px;
}

.team-social-icon {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}

.team-social-icon:hover {
    background: var(--accent-gradient);
    color: white;
}

.team-content {
    padding: 1.5rem;
    text-align: center;
}

.team-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.team-position {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-description {
    color: var(--secondary);
}

/* =================== RESPONSIVE =================== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--accent-gradient);
        z-index: 999;
        padding: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .navbar-nav .dropdown-menu {
        background-color: rgba(0, 0, 0, 0.1);
        border: none;
        box-shadow: none;
    }
    
    .navbar-nav .dropdown-item {
        color: white;
    }
    
    .navbar-nav .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .search-bar-section {
        margin-top: -1.5rem;
    }
    
    .cta-section {
        text-align: center;
    }
    
    .cta-features {
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .card-img-top {
        height: 180px;
    }
    
    .admin-sidebar {
        min-height: auto;
    }
    
    .admin-content {
        padding: 1rem;
    }
    
    .mapa-clinica {
        height: 250px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .footer-title {
        margin-top: 1.5rem;
    }
    
    .social-media {
        justify-content: center;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links a:before {
        display: none;
    }
    
    .footer-contact .contact-item {
        justify-content: center;
    }
    
    .hero-section {
        text-align: center;
    }
    
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 575.98px) {
    .search-wrapper {
        padding: 1rem;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .payment-methods {
        margin-left: 0 !important;
    }
    
    .carousel-item {
        height: 300px;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
    
    .exam-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .team-img {
        height: 200px;
    }
    
    .stat-number {
        font-size: 2rem;
    }


    /* Estilos personalizados para los toasts */
.toast {
    min-width: 250px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    opacity: 1 !important;
    font-size: 0.9rem;
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
}

.toast-container {
    z-index: 1090;
}

.toast .toast-body {
    padding: 0.75rem 1rem;
}

/* Colores para los diferentes tipos de toast */
.toast.bg-success {
    background-color: #28a745 !important;
}

.toast.bg-danger {
    background-color: #dc3545 !important;
}

.toast.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.toast.bg-info {
    background-color: #17a2b8 !important;
}

/* Animación de entrada */
@keyframes toastFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast {
    animation: toastFadeIn 0.3s ease-out;
}

/* Estilos para notificaciones toast y animación del carrito */
.toast {
    min-width: 250px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    opacity: 1 !important;
    font-size: 0.9rem;
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
}

.toast-container {
    z-index: 1090;
}

.toast .toast-body {
    padding: 0.75rem 1rem;
}

.toast .toast-header {
    padding: 0.5rem 1rem;
}

.toast .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Colores para los diferentes tipos de toast */
.toast .toast-header.bg-success {
    background-color: #28a745 !important;
}

.toast .toast-header.bg-danger {
    background-color: #dc3545 !important;
}

.toast .toast-header.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.toast .toast-header.bg-info {
    background-color: #17a2b8 !important;
}

/* Animación de entrada para toasts */
@keyframes toastFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast {
    animation: toastFadeIn 0.3s ease-out;
}

/* Animación para el ícono del carrito */
@keyframes cartPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.cart-pulse {
    animation: cartPulse 0.5s ease;
}

/* Estilo para el contador del carrito */
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff6b6b;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
}



/* Prevenir parpadeo en modales */
.modal {
    animation: none !important;
    -webkit-animation: none !important;
    transition: opacity 0.15s linear !important;
    -webkit-transition: opacity 0.15s linear !important;
}

/* Asegurar que no haya transiciones/animaciones en el botón de modal */
[data-bs-target="#modalEnvio1"] {
    transition: none !important;
    animation: none !important;
}

/* Prevenir eventos hover no deseados */
.modal-open .modal,
.modal-backdrop {
    pointer-events: auto !important;
}


}