/* ====== PACIENTE - SERVICIOS ====== */

/* Variables de color consistentes */
:root {
    --primary-teal: #00bec6ff;
    --primary-teal-dark: #009aa0;
    --primary-blue: #004063ff;
    --primary-blue-light: #e8f4f8;
    --bg-light: #f8f9fa;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====== CONTENEDOR PRINCIPAL ====== */
.patient-services-container {
    padding: 40px 0 60px;
    background: var(--bg-light);
}

.patient-services-container .container {
    max-width: 1300px;
}

/* ====== TÍTULO DE LA PÁGINA ====== */
.page-header {
    text-align: center;
    padding: 30px 0 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-teal));
    color: white;
    margin-bottom: 40px;
    border-radius: 0 0 30px 30px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    pointer-events: none;
}

.page-header h1 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

/* ====== GRID DE TARJETAS ====== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 0;
}

/* ====== TARJETAS ====== */
.card-service {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-service:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-teal);
}

.card-service::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-teal), var(--primary-blue));
    opacity: 0;
    transition: var(--transition);
}

.card-service:hover::after {
    opacity: 1;
}

.card-body-service {
    padding: 25px 20px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    flex: 1;
}

/* ====== IMAGEN ====== */
.div-card-img {
    width: 100%;
    max-width: 120px;
    height: 80px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.div-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.card-service:hover .div-card-img img {
    transform: scale(1.05);
}

/* ====== TÍTULO ====== */
.div-card-title {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    min-height: 60px;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 0;
    line-height: 1.3;
    text-align: center;
}

.card-title br {
    display: block;
}

/* ====== BOTÓN ====== */
.div-card-boton {
    width: 100%;
    margin-top: 5px;
}

.btn-service {
    background: transparent;
    color: var(--primary-teal);
    border: 2px solid var(--primary-teal);
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    width: auto;
    min-width: 100px;
    letter-spacing: 0.5px;
}

.btn-service:hover {
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-blue));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 190, 198, 0.35);
    border-color: transparent;
}

.btn-service:active {
    transform: translateY(0);
}

/* ====== RESPONSIVE ====== */

/* Tablets grandes (1024px - 1200px) */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* Tablets (768px - 1024px) */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .page-header {
        padding: 25px 0 35px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .card-body-service {
        padding: 20px 15px 18px;
    }
    
    .div-card-img {
        max-width: 100px;
        height: 70px;
    }
    
    .card-title {
        font-size: 0.9rem;
    }
    
    .btn-service {
        padding: 7px 20px;
        font-size: 0.8rem;
        min-width: 80px;
    }
}

/* Móviles grandes (576px - 768px) */
@media (max-width: 768px) {
    .patient-services-container {
        padding: 20px 0 40px;
    }
    
    .page-header {
        padding: 20px 15px 30px;
        border-radius: 0 0 20px 20px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 0.95rem;
        padding: 0 15px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 5px;
    }
    
    .card-body-service {
        padding: 18px 12px 15px;
    }
    
    .div-card-img {
        max-width: 80px;
        height: 60px;
        margin-bottom: 10px;
    }
    
    .div-card-title {
        min-height: 50px;
        margin-bottom: 10px;
    }
    
    .card-title {
        font-size: 0.85rem;
    }
    
    .btn-service {
        padding: 6px 16px;
        font-size: 0.75rem;
        min-width: 70px;
        border-width: 1.5px;
    }
}

/* Móviles pequeños (menos de 576px) */
@media (max-width: 576px) {
    .patient-services-container {
        padding: 10px 0 30px;
    }
    
    .page-header {
        padding: 15px 10px 25px;
        border-radius: 0 0 15px 15px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-header p {
        font-size: 0.85rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 3px;
    }
    
    .card-body-service {
        padding: 15px 10px 12px;
    }
    
    .div-card-img {
        max-width: 65px;
        height: 50px;
        margin-bottom: 8px;
    }
    
    .div-card-title {
        min-height: 40px;
        margin-bottom: 8px;
    }
    
    .card-title {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .btn-service {
        padding: 5px 12px;
        font-size: 0.7rem;
        min-width: 60px;
        border-width: 1.5px;
    }
}

/* Móviles muy pequeños (menos de 400px) */
@media (max-width: 400px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .card-body-service {
        padding: 12px 8px 10px;
    }
    
    .div-card-img {
        max-width: 55px;
        height: 40px;
    }
    
    .card-title {
        font-size: 0.65rem;
    }
    
    .btn-service {
        padding: 4px 10px;
        font-size: 0.6rem;
        min-width: 50px;
    }
}

/* ====== ANIMACIONES ====== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-service {
    animation: fadeInUp 0.5s ease both;
}

.card-service:nth-child(1) { animation-delay: 0.05s; }
.card-service:nth-child(2) { animation-delay: 0.10s; }
.card-service:nth-child(3) { animation-delay: 0.15s; }
.card-service:nth-child(4) { animation-delay: 0.20s; }
.card-service:nth-child(5) { animation-delay: 0.25s; }
.card-service:nth-child(6) { animation-delay: 0.30s; }
.card-service:nth-child(7) { animation-delay: 0.35s; }
.card-service:nth-child(8) { animation-delay: 0.40s; }
.card-service:nth-child(9) { animation-delay: 0.45s; }
.card-service:nth-child(10) { animation-delay: 0.50s; }