/* Estilos para la página de Rendición de Cuentas 2024 */

:root {
    /* Colores oficiales ISTT */
    --primary-color: #005D99; /* Azul ISTT */
    --secondary-color: #A3C947; /* Verde ISTT */
    --accent-color: #F7D038; /* Amarillo ISTT */
    --highlight-color: #009FD9; /* Azul Claro ISTT */
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --white: #ffffff;
    --text-dark: #374151;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --shadow: 0 4px 15px rgba(0, 93, 153, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 93, 153, 0.15);
}

/* Contenedor principal */
.rendicion-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--light-color) 0%, #e2e8f0 100%);
    padding: 2rem 0;
}

/* Título principal */
.rendicion-title {
    background: linear-gradient(135deg, var(--primary-color), var(--highlight-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Contenedor del contenido principal */
.rendicion-content {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.rendicion-content:hover {
    box-shadow: var(--shadow-hover);
}

/* Encabezado del contenido */
.rendicion-header {
    background: linear-gradient(135deg, var(--primary-color), var(--highlight-color));
    color: var(--white);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rendicion-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.03)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.rendicion-header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Contenido interno */
.rendicion-inner {
    padding: 3rem 2rem;
}

/* Estilos para las fases */
.phase-section {
    margin-bottom: 3rem;
    position: relative;
}

.phase-title {
    background: linear-gradient(135deg, var(--primary-color), var(--highlight-color));
    color: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 15px 15px 0 0;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 0 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 93, 153, 0.2);
    position: relative;
    overflow: hidden;
}

.phase-title::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 30px 30px;
    border-color: transparent transparent rgba(255,255,255,0.1) transparent;
}

/* Contenedor de la fase */
.phase-content {
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-top: none;
    border-radius: 0 0 15px 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(64, 122, 6, 0.1);
}

/* Secciones principales */
.section-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.section-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 93, 153, 0.15);
    border-left-color: var(--primary-color);
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.section-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title a::before {
    content: '📄';
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.section-title a:hover {
    color: var(--highlight-color);
    text-decoration: none;
}

.section-title a:hover::before {
    transform: scale(1.2);
}

/* Enlaces de sección independientes */
.section-link {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 159, 217, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--highlight-color);

    display: flex;
    justify-content: margin-left; /* Empuja el contenido hacia la derecha */
    align-items: center;
}

.section-link a {
    color: var(--highlight-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.section-link a::before {
    content: "🌐"; /* Ícono único */
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.section-link a:hover {


    color: var(--highlight-color);
    text-decoration: none;
}

/* Subsecciones */
.subsection-container {
    margin-left: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.sub-section-item {
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(163, 201, 71, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.sub-section-item:hover {
    background: rgba(163, 201, 71, 0.1);
    transform: translateX(3px);
}

.sub-section-title {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    color: var(--text-dark);
}

.sub-section-title a {
    color: var(--dark-green);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sub-section-title a::before {
    content: '📋';
    font-size: 0.9rem;
}

.sub-section-title a:hover {
    color: var(--primary-color);
}

/* Enlaces especiales para videos y redes sociales */
.video-link::before {
    content: '🎥' !important;
}

.youtube-link::before {
    content: '📺' !important;
}

/* Indicadores de fase */
.phase-indicator {
    position: absolute;
    left: -15px;
    top: 15px;
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    border: 3px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--dark-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 3;
}

/* Línea conectora entre fases */
.phase-connector {
    position: absolute;
    left: -1px;
    top: 45px;
    bottom: -45px;
    width: 2px;
    background: linear-gradient(to bottom, var(--secondary-color), var(--primary-color));
    z-index: 1;
}

.phase-section:last-child .phase-connector {
    display: none;
}

/* Efectos de animación */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.phase-section {
    animation: fadeInUp 0.6s ease-out;
}

.phase-section:nth-child(1) { animation-delay: 0.1s; }
.phase-section:nth-child(2) { animation-delay: 0.2s; }
.phase-section:nth-child(3) { animation-delay: 0.3s; }

/* Responsive Design */
@media (max-width: 768px) {
    .rendicion-container {
        padding: 1rem 0;
    }
    
    .rendicion-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .rendicion-header {
        padding: 1.5rem 1rem;
    }
    
    .rendicion-header h1 {
        font-size: 1.5rem;
    }
    
    .rendicion-inner {
        padding: 2rem 1rem;
    }
    
    .phase-title {
        font-size: 1.2rem;
        padding: 1rem 1.5rem;
    }
    
    .phase-content {
        padding: 1.5rem 1rem;
    }
    
    .subsection-container {
        margin-left: 0.5rem;
    }
    
    .section-item {
        padding: 1rem;
    }
    
    .phase-indicator {
        display: none;
    }
    
    .phase-connector {
        display: none;
    }
}

@media (max-width: 480px) {
    .section-title a {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .sub-section-title a {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

