/* ===================================
   ESTILOS VISIÓN Y MISIÓN
   Municipalidad Distrital de Ancón
   =================================== */

/* Variables CSS */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --light-bg: #f9fafb;
    --dark-text: #1f2937;
    --light-text: #6b7280;
    --border-color: #e5e7eb;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Main - Contenedor Principal */
.vision-mision-main {
    padding: 60px 0;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    min-height: 80vh;
}

/* Sección de Visión y Misión */
.vision-mision-section {
    margin-bottom: 40px;
}

/* Título de Sección */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Intro de Sección */
.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid de Visión y Misión */
.vision-mision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
    justify-items: center;
}

/* Tarjeta General */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid var(--border-color);
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

/* Header de Tarjeta */
.card-header {
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    z-index: 0;
}

.vision-header {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.mision-header {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

/* Ícono de Tarjeta */
.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    position: relative;
    z-index: 1;
}

.vision-card .card-icon {
    color: var(--primary-color);
}

.mision-card .card-icon {
    color: var(--secondary-color);
}

/* Título de Tarjeta */
.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    position: relative;
    z-index: 1;
}

.mision-card .card-title {
    color: var(--secondary-color);
}

/* Body de Tarjeta */
.card-body {
    padding: 30px;
    flex-grow: 1;
}

.card-text {
    color: var(--light-text);
    line-height: 1.8;
    font-size: 1rem;
    margin: 0;
    text-align: justify;
}

/* Footer de Tarjeta */
.card-footer {
    padding: 20px 30px;
    background: var(--light-bg);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vision-badge {
    background-color: #dbeafe;
    color: var(--primary-color);
}

.mision-badge {
    background-color: #fef3c7;
    color: var(--secondary-color);
}

/* Sección de Valores */
.values-section {
    margin-top: 60px;
    padding: 50px 30px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.values-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

.values-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Grid de Valores */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Item de Valor */
.value-item {
    text-align: center;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.value-item:hover {
    background: white;
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.15);
}

/* Ícono de Valor */
.value-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.value-item:hover .value-icon {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

/* Título de Valor */
.value-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

/* Párrafo de Valor */
.value-item p {
    color: var(--light-text);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive - Tablets */
@media (max-width: 768px) {
    .vision-mision-main {
        padding: 40px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .values-title {
        font-size: 1.6rem;
    }

    .values-section {
        padding: 30px 20px;
    }

    .card-body,
    .card-header,
    .card-footer {
        padding: 20px;
    }
}

/* Responsive - Móviles */
@media (max-width: 480px) {
    .vision-mision-main {
        padding: 30px 0;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .section-intro {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .vision-mision-grid {
        gap: 20px;
        margin-bottom: 40px;
    }

    .card {
        max-width: 100%;
        margin-bottom: 10px;
    }

    .card-icon {
        font-size: 2.5rem;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .values-title {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .value-item {
        padding: 20px;
    }

    .value-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .value-item h3 {
        font-size: 1.1rem;
    }

    .card-text,
    .value-item p {
        text-align: left;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vision-mision-section {
    animation: fadeInUp 0.6s ease-out;
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

.value-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Accesibilidad - Focus Visible */
.card:focus-visible,
.value-item:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .vision-mision-main {
        background: white;
        padding: 20px 0;
    }

    .card,
    .values-section {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}
