/*
* Estilos Profesionales para la Página de Inicio de Wissen
* Basado en principios de diseño moderno (limpieza, espacio, claridad)
* y consistente con la paleta de colores de AdminLTE.
*/

@import url('https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa; /* Un gris muy claro para el fondo */
    color: #495057; /* Texto principal más suave que el negro puro */
    font-size: 16px; /* Base de tamaño de fuente aumentada */
    font-size: 16px; /* Aumentamos el tamaño base de la fuente */
    line-height: 1.6; /* Mejoramos el espaciado entre líneas */
}

/* --- Barra de Navegación --- */
.navbar-custom {
    background-color: rgba(248, 249, 250, 0.98); /* Fondo ligeramente transparente */
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 15px 0; /* Más altura */
    transition: all 0.3s ease;
}

.navbar-custom .navbar-brand {
    color: #3c8dbc !important; /* Azul primario */
    font-weight: 700;
    font-size: 24px; /* Logo más grande */
    letter-spacing: -0.5px;
    padding: 15px 15px 15px 0; /* Ajuste de padding */
    height: auto;
    line-height: 20px;
}

.navbar-custom .nav > li > a {
    color: #333 !important;
    font-weight: 500;
    font-size: 16px; /* Enlaces más grandes */
    padding: 15px 15px; /* Más espacio alrededor */
    line-height: 15px; /* Ajuste para centrado vertical */
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar-custom .nav > li > a:hover,
.navbar-custom .nav > li.active > a {
    color: #3c8dbc !important;
    background-color: transparent;
    transform: translateY(-2px); /* Sutil efecto de elevación */
}

.navbar-custom .btn-ingresar {
    background-color: #3c8dbc;
    border-color: #367fa9;
    color: white !important;
    border-radius: 25px;
    padding: 10px 24px; /* Botón más grande */
    margin-top: 0;
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.navbar-custom .btn-ingresar:hover {
    background-color: #367fa9;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* --- Secciones Generales --- */
.section {
    padding: 90px 0; /* Más espacio vertical */
}

/* Fondos alternados para secciones */
section#quienes-somos {
    background-color: #f8f9fa; /* Gris claro */
}

section#stats {
    background-color: #eeeeee; /* Gris más oscuro */
}

section#impacto {
    background-color: #f8f9fa; /* Gris claro */
}

section#servicios {
    background-color: #eeeeee; /* Gris más oscuro */
}

section#mision-vision {
    background-color: #f8f9fa; /* Gris claro */
}

section#transforma {
    background-color: #eeeeee; /* Gris más oscuro */
}

/* Fondos específicos para secciones */
#impacto, #servicios {
    background-color: #f8f9fa; /* Fondo gris claro para ambas secciones */
}

.section-title {
    text-align: center;
    margin-bottom: 70px; /* Más espacio después del título */
}

.section-title h2 {
    font-size: 50px; /* Título más grande */
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.section-title p {
    color: #777;
    font-size: 24px; /* Subtítulo más grande */
    max-width: 800px; /* Limitar ancho para mejor legibilidad */
    margin: 0 auto; /* Centrar horizontalmente */
}

/* --- Sección Hero con Slider --- */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(60, 142, 189, 0.7), rgba(52, 152, 219, 0.5));
}

.slide-content {
    position: relative;
    text-align: center;
    color: white;
    z-index: 2;
    padding: 40px 60px;
    background: rgba(0,0,0,0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    max-width: 900px;
    margin: 0 auto;
}

.slide-content h1 {
    font-weight: 900;
    font-size: 100px;
    margin-bottom: 25px;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    animation: titleSlideIn 1.2s ease-out;
    text-align: center;
    transition: all 0.3s ease;
}

.slide-content h1:hover {
    transform: scale(1.05);
    text-shadow: 2px 2px 15px rgba(0,0,0,0.9);
}

.slide-content p {
    font-size: 32px;
    line-height: 1.3;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    margin: 0;
    font-weight: 600;
    animation: textFadeIn 1.5s ease-out 0.3s both;
    text-align: center;
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

.nav-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.nav-dot.active {
    background: white;
    transform: scale(1.3);
}

.nav-dot:hover {
    background: rgba(255,255,255,0.7);
    transform: scale(1.2);
}

/* --- Definición de Animaciones (Keyframes) --- */

@keyframes titleSlideIn {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes textFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive para el slider */
@media (max-width: 768px) {
    .slide-content h1 {
        font-size: 60px;
    }
    .slide-content p {
        font-size: 24px;
    }
    .slide-content {
        padding: 30px 40px;
    }
}

@media (max-width: 480px) {
    .slide-content h1 {
        font-size: 40px;
    }
    .slide-content p {
        font-size: 18px;
    }
    .slide-content {
        padding: 20px 30px;
    }
}

/* --- Sección de Estadísticas --- */
.stats-section {
    background-color: #f8f9fa; /* Cambio a fondo gris claro */
    padding: 80px 0; /* Más padding vertical */
    position: relative;
}

.stat-box {
    text-align: center;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    padding: 30px 15px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border-top: 3px solid #3c8dbc;
    height: 100%; /* Asegurar misma altura */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.stat-box .count {
    font-size: 54px; /* Número más grande */
    font-weight: 700;
    color: #3c8dbc;
    margin: 15px 0;
    display: block;
}

.stat-box p {
    font-size: 20px; /* Texto más grande */
    color: #495057; /* Color más oscuro para mejor contraste */
    font-weight: 600; /* Más negrita */
    margin-bottom: 0;
}

/* Colores diferentes para cada estadística */
.stat-box:nth-child(1) {
    border-top-color: #3c8dbc; /* Azul primario AdminLTE */
}

.stat-box:nth-child(2) {
    border-top-color: #00a65a; /* Verde */
}

.stat-box:nth-child(3) {
    border-top-color: #f39c12; /* Amarillo */
}

.stat-box:nth-child(4) {
    border-top-color: #dd4b39; /* Rojo */
}

.stat-box:nth-child(5) {
    border-top-color: #605ca8; /* Púrpura */
}

/* Estilos para los iconos */
.icon-stat {
    font-size: 36px; /* Iconos más grandes */
    margin-bottom: 15px;
    display: block;
    transition: transform 0.3s ease;
}

.stat-box:hover .icon-stat {
    transform: scale(1.2); /* Efecto de aumento al pasar el mouse */
}

.stat-box:nth-child(1) .icon-stat {
    color: #3c8dbc; /* Azul */
}

.stat-box:nth-child(2) .icon-stat {
    color: #00a65a; /* Verde */
}

.stat-box:nth-child(3) .icon-stat {
    color: #f39c12; /* Amarillo */
}

.stat-box:nth-child(4) .icon-stat {
    color: #dd4b39; /* Rojo */
}

.stat-box:nth-child(5) .icon-stat {
    color: #605ca8; /* Púrpura */
}

/* --- Tarjetas de Características y Contenido --- */
.feature-card, .content-box {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.07);
    margin-bottom: 30px;
    height: 100%; /* Para alinear tarjetas en filas */
    border-top: 3px solid #3c8dbc; /* Borde superior consistente con otros elementos */
    display: flex; /* Usar flexbox */
    flex-direction: column; /* Apilar contenido verticalmente */
    justify-content: flex-start; /* Alinear contenido desde arriba */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover, .content-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/* --- Estilos globales de texto --- */
p {
    font-size: 17px; /* Texto general más grande */
    line-height: 1.7;
    margin-bottom: 20px;
}

ul li {
    font-size: 17px; /* Texto en listas más grande */
    line-height: 1.7;
    margin-bottom: 10px;
}

h3 {
    font-size: 28px; /* Subtítulos más grandes */
    margin-bottom: 20px;
}

h4 {
    font-size: 22px; /* Subtítulos más pequeños también más grandes */
    margin-bottom: 15px;
}

/* Asegurar igual altura en filas de dos columnas */
.row.equal-height {
    display: flex;
    flex-wrap: wrap;
}

.row.equal-height > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

.row.equal-height .content-box,
.row.equal-height .feature-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card .icon {
    font-size: 48px;
    color: #3c8dbc;
    margin-bottom: 25px;
}

.feature-card h4 {
    font-size: 24px; /* Título más grande */
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.content-box h3 {
    font-size: 28px; /* Título más grande */
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.content-box p, .feature-card p {
    font-size: 17px; /* Texto más grande */
    line-height: 1.7;
    color: #555;
}

.content-box ul {
    padding-left: 20px;
    margin: 20px 0;
}

.content-box ul li {
    margin-bottom: 12px;
    font-size: 17px;
    line-height: 1.7;
    color: #555;
}

.content-box i, .feature-card i {
    color: #3c8dbc;
    margin-right: 5px;
}

/* --- Pestañas (Tabs) --- */
.nav-tabs-custom {
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.07);
}

.nav-tabs-custom > .nav-tabs > li > a {
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
}

.nav-tabs-custom > .nav-tabs > li.active {
    border-top-color: #3c8dbc;
}

/* --- Footer --- */
.footer {
    background: #282c34; /* Un color oscuro más moderno */
    color: #adb5bd;
    padding: 70px 0 50px; /* Más espacio superior */
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #3c8dbc;
}

.footer h4 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 25px;
    font-size: 20px; /* Título más grande */
    position: relative;
    padding-bottom: 12px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #3c8dbc;
}

.footer p {
    font-size: 14px; /* Texto más grande */
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer a {
    color: #adb5bd;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer a:hover {
    color: #3c8dbc;
    text-decoration: none;
}

.footer .social-icons {
    margin-top: 15px;
}

.footer .social-icons a {
    display: inline-block;
    width: 45px; /* Iconos más grandes */
    height: 45px;
    line-height: 45px;
    text-align: center;
    border-radius: 50%;
    background: #343a40;
    color: #ffffff;
    margin-right: 12px;
    transition: all 0.3s ease;
    font-size: 18px;
}

.footer .social-icons a:hover {
    background: #3c8dbc;
    transform: translateY(-5px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.3);
}

.footer .copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #343a40;
    font-size: 14px;
}

/* --- Estilos para Secciones a Pantalla Completa (Responsive) --- */
.hero, .section, .stats-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.navbar-brand.logo {
    background: url('/wissen/vistas/img/plantilla/logo_horizontal.png') no-repeat center;
    background-size: contain;
    width: 180px; /* Ajusta según el ancho de tu logo */
    height: 50px; /* Altura del navbar típicamente */
    text-indent: -9999px; /* Oculta el texto */
    display: block;
}

/* Ícono oficial de X (ex-Twitter) usando SVG */
.fa-x-official {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

/* Para que mantenga el color del texto padre */
.fa-x-official {
    filter: brightness(0) invert(1); /* Para íconos blancos */
}