:root { 
    --primary: #0284c7; 
    --secondary: #1e293b; 
    --brand-green: #10b981;
    --brand-green-hover: #059669;
    --text-light: #64748b;
}

body { 
    font-family: 'Segoe UI', sans-serif; 
    background-image: url('/assets/img/fondo-login.png'); 
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed; 
    margin: 0; 
    padding: 2rem 1rem; 
    color: var(--secondary); 
}

.container { max-width: 1000px; margin: 0 auto; }
.banner-main img { width: 100%; border-radius: 12px 12px 0 0; box-shadow: 0 4px 20px rgba(0,0,0,0.15); display: block; }
.search-box { background: white; padding: 1.5rem; border-radius: 0 0 12px 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); margin-bottom: 2rem; display: flex; gap: 1rem; align-items: center; }
.search-box select, .search-box input { flex: 1; padding: 0.75rem; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 1rem; }
.medicos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.medico-card { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(5px); border-radius: 12px; padding: 1.5rem; box-shadow: 0 4px 15px rgba(0,0,0,0.08); display: flex; flex-direction: column; justify-content: space-between; border-top: 4px solid var(--primary); }
.medico-header { display: flex; gap: 1rem; margin-bottom: 1rem; }
.medico-avatar { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }
.medico-info h3 { margin: 0; font-size: 1.15rem; color: var(--secondary); }
.medico-info p { margin: 0.2rem 0; font-size: 0.9rem; color: #64748b; }
.horarios-badge { background: rgba(2, 132, 199, 0.08); padding: 0.5rem; border-radius: 6px; font-size: 0.85rem; margin-bottom: 1rem; border: 1px solid rgba(2, 132, 199, 0.15); line-height: 1.4; }
.price-tag { font-size: 1.1rem; font-weight: bold; color: var(--primary); margin-bottom: 1rem; }
.btn-booking { background: var(--secondary); color: white; text-align: center; padding: 0.7rem; border-radius: 6px; text-decoration: none; font-weight: bold; cursor: pointer; border: none; width: 100%; display: block; }
.btn-booking:hover { filter: brightness(1.2); }
.alert { padding: 1rem; border-radius: 6px; margin-bottom: 1.5rem; font-weight: 500; text-align: center; }
.success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

.main-nav { background: #1e293b; padding: 0.8rem 1.5rem; display: flex; justify-content: space-between; align-items: center; border-radius: 8px; margin-bottom: 1.5rem; position: relative; z-index: 1000; }
.nav-links { display: flex; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #f1f5f9; text-decoration: none; font-size: 0.9rem; font-weight: 600; padding: 0.4rem 0.8rem; border-radius: 4px; display: block; }
.btn-medicos { background: #0284c7; }
.menu-toggle { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; padding: 0.2rem 0.5rem; }

.tags-container { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.tag-badge { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; padding: 0.4rem 0.8rem; border-radius: 6px; text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: all 0.2s; }
.tag-badge:hover { background: var(--primary) !important; color: white !important; }
.profile-container { background: white; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); padding: 2rem; }
.profile-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.medico-large-avatar { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; border: 3px solid var(--primary); }
.booking-box { background: #f8fafc; border: 1px solid #e2e8f0; padding: 1.5rem; border-radius: 8px; }
.form-group { margin-bottom: 0.8rem; display: flex; flex-direction: column; }
.form-group label { font-size: 0.8rem; font-weight: 600; margin-bottom: 0.2rem; }
.form-group input, .form-group select { padding: 0.6rem; border: 1px solid #cbd5e1; border-radius: 4px; }
.medical-fees { margin: 0.8rem 0; padding: 0.6rem; background: #f8fafc; border-radius: 6px; border: 1px solid #e2e8f0; }
.fee-row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 0.2rem 0; border-bottom: 1px dashed #e2e8f0; }

/* ESTILOS NUEVOS PARA LA PRESENTACIÃ“N (HERO BOX) */
.hero-container {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    padding: 40px 30px;
    text-align: center;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--brand-green);
}
.hero-content { max-width: 800px; margin: 0 auto; }
.hero-content h1 { font-size: 2.2rem; color: var(--secondary); margin-top: 0; margin-bottom: 15px; font-weight: 800; }
.brand-highlight { color: var(--brand-green); }
.hero-description { font-size: 1.1rem; line-height: 1.6; color: #475569; margin-bottom: 30px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 35px; }
.stat-card { background: #f8fafc; padding: 18px; border-radius: 8px; border: 1px solid #e2e8f0; }
.stat-number { display: block; font-size: 1.8rem; font-weight: 700; color: var(--secondary); margin-bottom: 4px; }
.stat-label { font-size: 0.85rem; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.hero-action-text { font-size: 1.05rem; font-weight: 700; color: var(--secondary); margin-bottom: 20px; }
.search-actions-group { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.search-btn { display: inline-block; text-decoration: none; padding: 12px 24px; border-radius: 30px; font-size: 0.95rem; font-weight: 700; color: white !important; transition: all 0.2s ease-in-out; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.btn-especialidad { background-color: var(--brand-green); }
.btn-especialidad:hover { background-color: var(--brand-green-hover); transform: translateY(-2px); }
.btn-patologia { background-color: var(--primary); }
.btn-patologia:hover { background-color: #0369a1; transform: translateY(-2px); }

@media(max-width: 768px){ 
    .profile-layout { grid-template-columns: 1fr; } 
    .menu-toggle { display: block; }
    .nav-links { display: none; flex-direction: column; width: 100%; position: absolute; top: 100%; left: 0; background: #1e293b; padding: 1rem; box-sizing: border-box; border-radius: 0 0 8px 8px; gap: 0.8rem; box-shadow: 0 8px 16px rgba(0,0,0,0.2); }
    .nav-links.active { display: flex; }
    .nav-links a { width: 100%; box-sizing: border-box; text-align: center; padding: 0.6rem; }
    .hero-content h1 { font-size: 1.7rem; }
    .search-actions-group { flex-direction: column; }
    .search-btn { width: 100%; box-sizing: border-box; }
}

/* Asegura que la tarjeta contenga todo con un espacio interno uniforme */
.medico-card {
    background: white;
    border-radius: 12px;
    padding: 1rem; /* <- Esto evita que cualquier elemento interno toque los bordes */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.btn-booking {
    display: block;
    text-align: center;
    width: auto; /* ðŸ‘ˆ Cambia esto de 100% a auto */
    margin: 1rem 1rem 0 1rem; /* Margen arriba, derecha, abajo, izquierda */
    /* ... tus otros estilos ... */
}

/* EFECTO MARQUESINA EN MOVIMIENTO INFINITO */
.reviews-marquee-section {
    margin: 3rem 0;
    overflow: hidden;
    background: #f8fafc;
    padding: 2rem 0;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.marquee-title {
    text-align: center;
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
}

.marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marqueeAnimation 35s linear infinite;
}

/* Pausar el movimiento al poner el cursor encima */
.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

/* Tarjeta individual del carrusel */
.marquee-card {
    background: white;
    width: 280px;
    min-width: 280px;
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.marquee-stars {
    color: #eab308;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    letter-spacing: 1px;
}

.marquee-comment {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.4;
    font-style: italic;
    margin: 0 0 1rem 0;
}

.marquee-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 0.6rem;
    display: flex;
    flex-direction: column;
}

.marquee-footer strong {
    font-size: 0.85rem;
    color: #1e293b;
}

.marquee-footer span {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
}

/* Animación nativa fluida */
@keyframes marqueeAnimation {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================
   ESTILOS DEL PIE DE PÁGINA (FOOTER)
   ========================================== */
.main-footer {
    background-color: #0f172a; /* Negro pizarra/azul oscuro profundo muy elegante */
    color: #cbd5e1;
    padding: 3rem 0 0 0;
    margin-top: 4rem;
    border-top: 3px solid var(--primary); /* Línea superior con el color de tu marca */
    font-family: system-ui, -apple-system, sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: table; /* Excelente compatibilidad de maquetación en WeasyPrint/Móviles */
    width: 100%;
}

.footer-brand, .footer-contact {
    display: table-cell;
    width: 50%;
    vertical-align: top;
    padding-bottom: 2rem;
}

/* Identidad del Sitio */
.footer-logo-wrapper {
    display: block;
    margin-bottom: 0.8rem;
}

.footer-logo {
    height: 40px;
    vertical-align: middle;
    margin-right: 10px;
}

.footer-site-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    vertical-align: middle;
}

.footer-site-name .text-accent {
    color: #38bdf8; /* Azul claro o el color acentuado de tu PWA */
}

.footer-tagline {
    font-size: 0.9rem;
    color: #94a3b8;
    max-width: 350px;
    line-height: 1.5;
    margin: 0;
}

/* Área de Contacto */
.footer-contact h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin: 0 0 0.8rem 0;
    font-weight: 600;
}

.footer-contact p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0 0 0.6rem 0;
}

.footer-email-link {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-email-link:hover {
    color: #0ea5e9;
    text-decoration: underline;
}

/* Barra inferior de Copyright */
.footer-bottom {
    background-color: #020617; /* Negro absoluto para la sección de derechos */
    text-align: center;
    padding: 1.2rem 1rem;
    border-top: 1px solid #1e293b;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
}

/* Adaptabilidad para pantallas pequeñas */
@media (max-width: 640px) {
    .footer-brand, .footer-contact {
        display: block;
        width: 100%;
        text-align: center;
    }
    .footer-tagline {
        margin: 0 auto;
    }
    .footer-contact {
        padding-top: 1rem;
    }
}

