/* Mejoras visuales para Healthic - Sitio más vistoso */

/* Variables CSS para consistencia */
:root {
    --primary-color: #59B4BF;
    --secondary-color: #2C5F6B;
    --accent-color: #F4A261;
    --text-dark: #2C3E50;
    --text-light: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #59B4BF 0%, #2C5F6B 100%);
    --gradient-secondary: linear-gradient(135deg, #F4A261 0%, #E76F51 100%);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 15px 40px rgba(0, 0, 0, 0.15);
    --shadow-strong: 0 20px 50px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mejoras generales */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Navegación simplificada y limpia */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(89, 180, 191, 0.3);
    box-shadow: 0 2px 10px rgba(89, 180, 191, 0.2);
    transition: var(--transition-smooth);
    padding: 0.5rem 0;
}

.navbar-brand img {
    transition: var(--transition-smooth);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: #2C5F6B !important;
    transition: var(--transition-smooth);
    padding: 0.5rem 1rem !important;
    text-decoration: none;
}

.nav-link:hover {
    color: #59B4BF !important;
    text-decoration: none;
}

/* Dropdown de idioma simplificado */
.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    background: white;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: var(--transition-smooth);
    color: #333;
}

.dropdown-item:hover {
    background: rgba(89, 180, 191, 0.1);
    color: #59B4BF;
}

/* Botones mejorados */
.btn-carousel {
    background: var(--gradient-primary) !important;
    border: none !important;
    color: #2C5F6B !important;
    padding: 15px 35px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: var(--transition-smooth) !important;
    backdrop-filter: blur(10px) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: var(--shadow-soft) !important;
    position: relative;
    overflow: hidden;
}

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

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

.btn-carousel:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--shadow-strong) !important;
    color: #2C5F6B !important;
}

/* Títulos mejorados */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.titulo {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    position: relative;
}

.titulo::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Artículos mejorados con intercalación de colores */
article {
    position: relative;
    padding: 4rem 0;
    margin: 2rem 0;
}

/* Sección QS - Azul claro */
.QS {
    background: linear-gradient(135deg, rgba(89, 180, 191, 0.1) 0%, rgba(89, 180, 191, 0.05) 100%);
    border-radius: var(--border-radius);
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(89, 180, 191, 0.2);
}

.QS::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #59B4BF 0%, #2C5F6B 100%);
}

/* Sección SERV - Azul medio */
.SERV {
    background: linear-gradient(135deg, rgba(44, 95, 107, 0.1) 0%, rgba(44, 95, 107, 0.05) 100%);
    border-radius: var(--border-radius);
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(44, 95, 107, 0.2);
}

.SERV::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #2C5F6B 0%, #59B4BF 100%);
}

/* Sección beneficios - Azul oscuro */
.beneficios {
    background-color: #28939C;
    color: #ddd;
    border-radius: var(--border-radius);
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(89, 180, 191, 0.3);
}

.beneficios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #59B4BF 0%, #2C5F6B 50%, #59B4BF 100%);
}

/* Sección QS-Azul - Azul más intenso */
.QS-Azul {
    background-color: #59BEC9;
    /* background: linear-gradient(135deg, rgba(89, 180, 191, 0.2) 0%, rgba(44, 95, 107, 0.15) 100%); */
    border-radius: var(--border-radius);
    color: #FFFFFF;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(89, 180, 191, 0.4);
}

.QS-Azul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #59B4BF 0%, #2C5F6B 25%, #59B4BF 50%, #2C5F6B 75%, #59B4BF 100%);
}

/* Texto justificado mejorado */
.texto-justificado, p {
    text-align: justify;
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

/* Listas mejoradas */
ul li {
    text-align: justify;
    margin-bottom: 1rem;
    padding-left: 1rem;
    position: relative;
    line-height: 1.7;
}

ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Carousel mejorado */
.carousel-caption {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.carousel-caption h1 {
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

/* Footer mejorado */
.bread {
    background: var(--gradient-primary);
    padding: 3rem 0;
    margin-top: 2rem;
}

.bread .links {
    margin-bottom: 1.5rem;
}

.bread .bredtitulo {
    font-weight: 700;
    font-size: 1.2rem;
    color: #2C5F6B;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition-smooth);
}

.bread .bredtitulo:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.bread a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: block;
    padding: 0.25rem 0;
}

.bread a:hover {
    color: #2C5F6B;
    transform: translateX(5px);
}

/* Formulario de contacto mejorado */
form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    margin: 2rem 0;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition-smooth);
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(89, 180, 191, 0.25);
}

.btnobscuro {
    background: var(--gradient-primary) !important;
    border: none !important;
    color: #2C5F6B !important;
    padding: 12px 30px !important;
    border-radius: var(--border-radius) !important;
    font-weight: 600 !important;
    transition: var(--transition-smooth) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.btnobscuro:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Iconos sociales mejorados */
.socialicons a {
    display: inline-block;
    margin: 0 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.socialicons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

/* Animaciones mejoradas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-aos] {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

/* Responsive simplificado */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .nav-link {
        padding: 0.5rem 1rem !important;
        text-align: center;
    }
    
    .navbar-toggler {
        border: 1px solid #59B4BF;
        border-radius: 4px;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler img {
        width: 25px;
        height: 25px;
    }
    
    .dropdown-menu {
        background: white;
        border: 1px solid #ddd;
    }
    
    .dropdown-item {
        color: #333;
        text-align: center;
    }
    
    .dropdown-item:hover {
        background: rgba(89, 180, 191, 0.1);
        color: #59B4BF;
    }
    
    .titulo {
        font-size: 2rem;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .QS, .SERV, .beneficios, .QS-Azul {
        padding: 2rem 1rem;
        margin: 1rem 0;
    }
    
    .btn-carousel {
        padding: 12px 25px !important;
        font-size: 1rem !important;
    }
}

/* Efectos de hover mejorados */
.hover-lift {
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

/* Gradientes de fondo */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

/* Utilidades */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: var(--shadow-soft);
}

.border-gradient {
    border: 2px solid;
    border-image: var(--gradient-primary) 1;
}

/* Navbar simplificado y unificado */
.navbar-collapse {
    background: transparent;
}

.navbar-nav {
    align-items: center;
}

.navbar-brand img {
    height: 45px;
    width: auto;
    transition: var(--transition-smooth);
}

.nav-item.dropdown .dropdown-toggle {
    background: transparent;
    border: none;
    color: #2C5F6B;
}

.nav-item.dropdown .dropdown-toggle:hover {
    background: rgba(89, 180, 191, 0.1);
    color: #59B4BF;
}

/* Eliminar flechas y elementos visuales innecesarios */
.nav-link::before,
.nav-link::after {
    display: none !important;
}

.navbar-nav .nav-item::before,
.navbar-nav .nav-item::after {
    display: none !important;
}

/* Asegurar que no haya flechas en los enlaces */
.nav-link {
    position: relative;
}

.nav-link::before {
    content: none !important;
}

.nav-link::after {
    content: none !important;
}

/* Simplificar el dropdown */
.dropdown-toggle::after {
    content: "▼";
    font-size: 0.7rem;
    margin-left: 0.5rem;
    border: none;
    vertical-align: middle;
}

/* Estilos unificados para todas las páginas */
.navbar {
    z-index: 1030;
}

.navbar-nav .nav-item {
    margin: 0 0.25rem;
}

.navbar-nav .nav-link {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Eliminar cualquier estilo de lista que pueda causar flechas */
.navbar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navbar-nav li {
    list-style: none;
}

.navbar-nav li::before,
.navbar-nav li::after {
    display: none !important;
    content: none !important;
}

/* Asegurar que los enlaces no tengan subrayado */
.navbar-nav a {
    text-decoration: none !important;
}

.navbar-nav a:hover {
    text-decoration: none !important;
}

/* Mejoras para las secciones con más contraste */
.QS h3, .SERV h3, .beneficios h3, .QS-Azul h3 {
    color: #FFFFFF;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

.QS h3::after, .SERV h3::after, .beneficios h3::after, .QS-Azul h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Estilos para los valores - Mejor legibilidad */
.valores-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    padding: 1rem;
}

.valor-item {
    background: linear-gradient(135deg, rgba(89, 180, 191, 0.1) 0%, rgba(44, 95, 107, 0.05) 100%);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(89, 180, 191, 0.15);
    border: 2px solid rgba(89, 180, 191, 0.3);
    transition: var(--transition-smooth);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.valor-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.valor-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(89, 180, 191, 0.25);
    border-color: rgba(89, 180, 191, 0.5);
    background: linear-gradient(135deg, rgba(89, 180, 191, 0.15) 0%, rgba(44, 95, 107, 0.1) 100%);
}

.valor-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(89, 180, 191, 0.1) 0%, rgba(44, 95, 107, 0.1) 100%);
    border-radius: 50%;
    border: 2px solid rgba(89, 180, 191, 0.2);
}

.valor-content {
    flex: 1;
}

.valor-titulo {
    color: #2C5F6B;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.valor-descripcion {
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
    font-weight: 500;
}

/* Responsive para valores */
@media (max-width: 768px) {
    .valores-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem;
    }
    
    .valor-item {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .valor-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
        margin: 0 auto;
    }
    
    .valor-titulo {
        font-size: 1.2rem;
    }
    
    .valor-descripcion {
        font-size: 0.95rem;
    }
}
