/*
 * Valecom - Sector Health CSS
 * Estilos específicos para la página de Salud y Telemedicina (MediSyncPro)
 */

:root {
    /* Color principal del sector salud */
    --health-primary: #36C7D0;
    --health-primary-hover: #2EA5AC;
    --health-secondary: #0F4C81;
    --health-accent: #FF6B81;
    --health-light: #E8F7F8;
    --health-dark: #1E5E63;
}

/* ===== Botones específicos de salud ===== */
.btn-health {
    background-color: var(--health-primary);
    border-color: var(--health-primary);
    color: white;
}

.btn-health:hover, .btn-health:focus {
    background-color: var(--health-primary-hover);
    border-color: var(--health-primary-hover);
    color: white;
}

.btn-outline-health {
    color: var(--health-primary);
    border-color: var(--health-primary);
}

.btn-outline-health:hover, .btn-outline-health:focus {
    background-color: var(--health-primary);
    border-color: var(--health-primary);
    color: white;
}

/* ===== Hero Section ===== */
.health-hero {
    background: linear-gradient(135deg, var(--health-light) 0%, #F8F9FC 100%);
    padding: 10rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.health-hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40%;
    background: url('../img/patterns/health-pattern.svg') repeat;
    opacity: 0.04;
    z-index: 0;
}

.sector-logo-hero {
    width: 120px;
    height: 120px;
}

.health-hero h1 {
    color: var(--health-secondary);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.health-hero .lead {
    color: var(--dark-gray);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* ===== Scope Section ===== */
.scope-card {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid var(--health-primary);
}

.scope-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.scope-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--health-light);
    border-radius: 50%;
    color: var(--health-primary);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.scope-card:hover .scope-icon {
    background-color: var(--health-primary);
    color: white;
    transform: scale(1.1);
}

.scope-card h3 {
    font-size: 1.2rem;
    color: var(--dark-blue);
    margin-bottom: 0;
}

/* ===== Benefits Section ===== */
.benefit-box {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--health-primary);
    transition: all 0.3s ease;
}

.benefit-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-box:hover::before {
    height: 6px;
}

.benefit-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--health-light);
    border-radius: 50%;
    color: var(--health-primary);
    font-size: 1.75rem;
    transition: all 0.3s ease;
}

.benefit-box:hover .benefit-icon {
    background-color: var(--health-primary);
    color: white;
    transform: scale(1.1);
}

.benefit-box h3 {
    font-size: 1.2rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.benefit-box p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ===== Modules Section ===== */
.accordion-modules .accordion-item {
    border: none;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-modules .accordion-header {
    background-color: white;
}

.accordion-modules .accordion-button {
    padding: 1.5rem;
    font-weight: 600;
    color: var(--dark-blue);
    background-color: white;
    box-shadow: none;
    border-radius: 10px;
}

.accordion-modules .accordion-button:not(.collapsed) {
    color: var(--health-primary);
    background-color: var(--health-light);
}

.accordion-modules .accordion-button:focus {
    box-shadow: none;
    border-color: var(--health-primary);
}

.accordion-modules .accordion-button::after {
    background-size: 1.25rem;
    transition: all 0.3s ease;
}

.accordion-modules .accordion-button:not(.collapsed)::after {
    color: var(--health-primary);
}

.accordion-modules .accordion-body {
    padding: 2rem;
    background-color: white;
}

.module-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.module-features li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 2rem;
}

.module-features li:last-child {
    margin-bottom: 0;
}

.module-features li i {
    position: absolute;
    left: 0;
    top: 0.25rem;
    color: var(--health-primary);
}

/* Estilos para el modal de todos los módulos */
.module-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    border-left: 4px solid var(--health-primary);
}

.module-card h3 {
    font-size: 1.2rem;
    color: var(--health-secondary);
    margin-bottom: 1rem;
}

.module-card .module-features li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* ===== Technology Section ===== */
.tech-card {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--health-primary);
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.tech-card:hover::after {
    height: 6px;
}

.tech-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--health-light);
    border-radius: 12px;
    color: var(--health-primary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.tech-card:hover .tech-icon {
    background-color: var(--health-primary);
    color: white;
    transform: rotateY(180deg);
}

.tech-card h3 {
    font-size: 1.1rem;
    color: var(--health-secondary);
    margin-bottom: 1rem;
}

.tech-card p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ===== Success Cases Section ===== */
.case-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.case-header {
    position: relative;
    overflow: hidden;
}

.case-header img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.case-card:hover .case-header img {
    transform: scale(1.1);
}

.case-body {
    padding: 2rem;
}

.case-body h3 {
    font-size: 1.3rem;
    color: var(--health-secondary);
    margin-bottom: 1rem;
}

.case-results {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--health-light);
    border-radius: 10px;
}

.result-item {
    text-align: center;
}

.result-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--health-primary);
    margin-bottom: 0.25rem;
}

.result-label {
    display: block;
    font-size: 0.85rem;
    color: var(--dark-gray);
}

.case-body p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ===== CTA Section ===== */
.health-gradient {
    background: linear-gradient(135deg, var(--health-primary), var(--health-secondary));
}

/* ===== Scroll Top Button ===== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--health-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: var(--health-primary-hover);
    color: white;
    transform: translateY(-5px);
}

/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
    .health-hero {
        padding: 8rem 0 4rem;
    }
    
    .health-hero h1 {
        font-size: 2.5rem;
    }
    
    .sector-logo-hero {
        width: 100px;
        height: 100px;
    }
    
    .benefit-box, .tech-card, .case-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .health-hero h1 {
        font-size: 2rem;
    }
    
    .case-results {
        flex-direction: column;
        gap: 1rem;
    }
    
    .module-features li {
        font-size: 0.9rem;
    }
    
    .accordion-modules .accordion-button {
        font-size: 0.95rem;
        padding: 1.25rem;
    }
    
    .accordion-modules .accordion-body {
        padding: 1.5rem;
    }
}