/* ========================================
   HEADER
======================================== */
.header {
    position: relative;
    min-height: 100vh;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
    padding: 80px 20px;
}

.text-container {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    padding: 40px 50px;
    border-radius: 16px;
    max-width: 800px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    animation: fadeInDown 1s ease forwards;
}

.header-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
    margin-bottom: 15px;
    line-height: 1.3;
}

.header-subtitulo {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 5px;
}

.header-fecha {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 10px;
}

.line {
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #31b8c2, #ffffff);
    margin: 15px auto;
    border-radius: 2px;
}

/* ========================================
   BOTÓN REGRESAR
======================================== */
.btn-regresar {
    background: linear-gradient(135deg, #0d7377 0%, #0a9396 100%);
    border: none;
    color: white;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(13, 115, 119, 0.4);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn-regresar:hover {
    background: linear-gradient(135deg, #095f5f 0%, #0d7377 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(13, 115, 119, 0.5);
    color: white;
}

.btn-regresar:active {
    transform: translateY(-1px);
    color: white;
}

/* ========================================
   ARTÍCULOS - LAYOUT
======================================== */
.impl-articulo {
    /* Oculto por defecto, se revela con JS al hacer scroll */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.impl-articulo.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Imagen con efecto */
.impl-imagen-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background: #f0fafa;
    padding: 15px;
    text-align: center;
    position: relative;
}

/* Brillo al hacer hover */
.impl-imagen-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.4) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-25deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.impl-imagen-wrapper:hover::after {
    left: 125%;
}

.impl-imagen-wrapper:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 100, 116, 0.25);
}

.impl-imagen-wrapper img {
    max-height: 280px;
    width: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.4s ease;
}

.impl-imagen-wrapper:hover img {
    transform: scale(1.03);
}

/* ========================================
   TÍTULOS CON GRADIENTE Y COLOR
======================================== */
.impl-titulo {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;

    /* Gradiente turquesa-verde en el título */
    background: linear-gradient(135deg, #006474 0%, #00a6a6 50%, #0d7377 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.impl-linea {
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #006474, #00a6a6);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* La línea se expande al hacer visible el artículo */
.impl-articulo.visible .impl-linea {
    width: 100px;
}

/* ========================================
   TEXTO Y LISTAS
======================================== */
.impl-texto {
    /* El texto aparece con un pequeño delay respecto a la imagen */
    transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}

.texto-ajustado {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #444;
    text-align: justify;
    margin-bottom: 0;
}

.impl-lista {
    padding-left: 1.5rem;
    list-style: none;
}

.impl-lista li {
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
    padding-left: 0.5rem;
    position: relative;
}

/* Bullet personalizado turquesa */
.impl-lista li::before {
    content: '❖';
    color: #00a6a6;
    font-size: 0.8rem;
    position: absolute;
    left: -1.3rem;
    top: 3px;
}

/* ========================================
   SEPARADOR ENTRE ARTÍCULOS
======================================== */
.impl-articulo.border-top {
    border-top: 2px solid #e9ecef !important;
}

/* ========================================
   ANIMACIONES
======================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Clase legacy para compatibilidad */
.fade-in {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

/* ========================================
   COLORES DE TEXTO
======================================== */
.text-success   { color: #28a745 !important; }
.text-warning   { color: #ffc107 !important; }
.text-primary   { color: #007bff !important; }
.text-danger    { color: #dc3545 !important; }
.text-info      { color: #17a2b8 !important; }
.text-secondary { color: #6c757d !important; }

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 992px) {
    .text-container {
        padding: 30px 25px;
    }
    .header-title {
        font-size: 1.8rem;
    }
    .impl-titulo {
        font-size: 1.35rem;
        text-align: center;
        display: block;
    }
    .impl-linea {
        margin: 0 auto 15px;
    }
}

@media (max-width: 768px) {
    .header {
        min-height: 80vh;
        padding: 60px 15px;
    }
    .header-title {
        font-size: 1.5rem;
    }
    .text-container {
        padding: 25px 20px;
    }
    .texto-ajustado {
        font-size: 1rem;
    }
    .impl-titulo {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .header-title {
        font-size: 1.3rem;
    }
    .btn-regresar {
        padding: 10px 22px;
        font-size: 0.95rem;
    }
}
