/* ============================================
   EMPRESA - CSS ESPECÍFICO
   Colores de marca PortoVial (Rojo/Negro/Blanco)
   ============================================ */

/* Hero Section */
.empresa-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d0a0a 60%, #7b1d1d 100%);
    padding: 4rem 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid #dc2626;
}

.empresa-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(220, 38, 38, .18) 0%, transparent 70%);
    pointer-events: none;
}

.empresa-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.empresa-hero p {
    font-size: 1.25rem;
    color: #e5e5e5;
    max-width: 800px;
    margin: 0 auto;
}

/* Sección Misión/Visión */
.mision-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin: 4rem 0;
}

.mision-card,
.vision-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #e5e7eb;
}

.mision-card:hover,
.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.1);
}

.mision-card::before,
.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #dc2626 0%, #991b1b 100%);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: #fee2e2;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #dc2626;
}

.mision-card h2,
.vision-card h2 {
    font-size: 1.75rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 700;
}

.mision-card p,
.vision-card p {
    color: #4a5568;
    line-height: 1.8;
    font-size: 1.0625rem;
}

/* ============================================
   SECCIÓN MISIÓN Y VISIÓN (PREMIUM)
   ============================================ */

.mision-vision-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin: 4rem auto;
    align-items: stretch;
    max-width: 1100px;
}

.mv-card-premium {
    background: white;
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* Sombra suave y amplia */
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Efecto rebote suave */
    border: 1px solid rgba(0, 0, 0, 0.03);
    z-index: 1;
}

.mv-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(220, 38, 38, 0.15);
    /* Sombra roja al hover */
}

/* Fondo decorativo sutil */
.mv-card-premium::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    transition: all 0.5s ease;
}

.mv-card-premium:hover::before {
    transform: scale(1.5);
    background: radial-gradient(circle, rgba(220, 38, 38, 0.1) 0%, transparent 70%);
}

.mv-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
    border: 4px solid white;
}

.mv-card-premium h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.mv-card-premium p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4b5563;
}

/* SECCIÓN VALORES (GRID MODERNO) */
.valores-premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 5rem;
}

.valor-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: left;
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
    position: relative;
    padding-left: 5rem;
    /* Espacio para el icono a la izquierda */
}

.valor-card:hover {
    border-color: #dc2626;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    background: #fffafa;
    /* Rojo muy muy claro */
}

.valor-card-icon {
    position: absolute;
    left: 1.5rem;
    top: 2rem;
    font-size: 2rem;
    color: #dc2626;
}

.valor-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.valor-card p {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}


/* ============================================
   SECCIÓN NORMATIVAS (ELEGANTE)
   ============================================ */

.normativas-container {
    max-width: 900px;
    margin: 4rem auto;
}

.normativa-group-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 3rem 0 1.5rem;
    padding-left: 1rem;
    border-left: 5px solid #dc2626;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.normativa-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.normativa-card:hover {
    transform: translateX(8px);
    border-color: #dc2626;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.08);
}

.normativa-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.normativa-icon {
    width: 48px;
    height: 48px;
    background: #fee2e2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.normativa-details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.normativa-details span {
    font-size: 0.875rem;
    color: #9ca3af;
    display: block;
}

.normativa-action .btn-download-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.normativa-card:hover .btn-download-icon {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
}

/* Valores Institucionales (Legacy) */
.valores-section {
    background: #fafafa;
    padding: 4rem 0;
    margin-top: 4rem;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.valor-item {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-bottom: 3px solid transparent;
}

.valor-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-bottom-color: #dc2626;
}

.valor-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: #fdf2f2;
    border-radius: 50%;
    color: #dc2626;
}

.valor-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.valor-description {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
}

/* Organigrama */
.organigrama-container {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    border: 1px solid #e5e7eb;
}

.organigrama-nivel {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    position: relative;
}

.organigrama-cargo {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    min-width: 220px;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    z-index: 2;
}

.organigrama-cargo.directivo {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: white;
}

.organigrama-cargo.directivo .cargo-titulo {
    color: white;
}

.organigrama-cargo.directivo .cargo-nombre {
    color: #a3a3a3;
}

.organigrama-cargo.gerencial {
    border-color: #dc2626;
    background: #fdf2f2;
}

.cargo-titulo {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.cargo-nombre {
    color: #64748b;
    font-size: 0.875rem;
}

/* Timeline de Historia */
.empresa-timeline {
    position: relative;
    padding-left: 3rem;
    margin: 3rem 0;
}

.empresa-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #e5e7eb;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3.65rem;
    top: 0.5rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dc2626;
    border: 4px solid white;
    box-shadow: 0 0 0 2px #dc2626;
    z-index: 2;
}

.timeline-year {
    font-size: 2rem;
    font-weight: 800;
    color: #dc2626;
    margin-bottom: 1rem;
    line-height: 1;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.timeline-content h3 {
    color: #1a1a1a;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.timeline-content p {
    color: #4a5568;
    line-height: 1.7;
    margin: 0;
}

/* Responsive Styles Update */
@media (max-width: 768px) {
    .empresa-hero h1 {
        font-size: 2.25rem;
    }

    .mision-vision-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .mv-card-premium {
        padding: 1.5rem 1rem;
    }
    
    .mv-icon-large {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .mv-card-premium h2 {
        font-size: 1.25rem;
    }

    .normativa-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .document-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    .document-list .mision-card {
        padding: 1rem 0.5rem !important;
    }
    
    .document-list .mision-card h3 {
        font-size: 1rem !important;
    }
    
    .document-list .mision-card svg {
        width: 32px;
        height: 32px;
    }

    .normativa-action {
        align-self: flex-end;
    }

    .mision-vision-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .organigrama-nivel {
        flex-direction: column;
        align-items: center;
    }

    .timeline-item::before {
        left: -3.55rem;
    }
}