/* estilos/Fichas.css */
/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    background-color: #E8E2D9;
    line-height: 1.6;
    padding-top: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background-color: #1e5631;
    color: white;
    padding: 25px 30px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.logo svg {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    color: #a4de9e;
    stroke-width: 1.5;
}

.logo h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
}

/* Nuevo contenedor para título y botón */
.logo-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-header-container h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    margin: 0;
}

/* Estilos del botón Regresar al Mapa dentro del header */
.back-to-map {
    margin: 0;
}

.btn-back-map {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.btn-back-map:hover {
    background-color: rgba(255, 255, 255, 0.35);
    transform: translateX(-3px);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-back-map .back-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.subtitle h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    border-left: 4px solid #a4de9e;
    padding-left: 15px;
}

/* Secciones */
.section {
    background-color: white;
    border-radius: 8px;
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #1e5631;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header svg {
    width: 28px;
    height: 28px;
    color: #1e5631;
    margin-right: 15px;
    stroke-width: 1.5;
}

.section-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.8rem;
    color: #1e5631;
}

/* Formulario de identificación */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-group.full-width {
    grid-column: 1 / span 2;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

/* Texto fijo para información (reemplaza inputs) */
.info-text {
    display: block;
    margin-top: 5px;
    padding: 12px 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid #1e5631;
    font-size: 1rem;
    color: #333;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.5;
}

/* Actores y columnas */
.two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.column h4 {
    font-family: 'Montserrat', sans-serif;
    color: #1e5631;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #ddd;
}

.column ul {
    list-style-type: none;
}

.column li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.column li:last-child {
    border-bottom: none;
}

.column li svg {
    width: 18px;
    height: 18px;
    color: #1e5631;
    margin-right: 10px;
    stroke-width: 1.5;
}

/* Divisor */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
}

.divider .line {
    height: 1px;
    background-color: #ddd;
    flex: 1;
}

.divider .circle {
    width: 12px;
    height: 12px;
    background-color: #1e5631;
    border-radius: 50%;
    margin: 0 20px;
}

/* Análisis de conflicto */
.subsection {
    margin-bottom: 30px;
}

.subsection h4 {
    font-family: 'Montserrat', sans-serif;
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.causes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.cause-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    background-color: #f0f7f0;
    border-radius: 6px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cause-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cause-item svg {
    width: 32px;
    height: 32px;
    color: #1e5631;
    margin-bottom: 10px;
    stroke-width: 1.5;
}

.cause-item span {
    font-weight: 600;
    color: #2c3e50;
}

/* Impactos */
.impact-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid;
}

.impact-header.environmental {
    border-color: #2ecc71;
}

.impact-header.social {
    border-color: #e74c3c;
}

.impact-header svg {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    stroke-width: 1.5;
}

.impact-header.environmental svg {
    color: #2ecc71;
}

.impact-header.social svg {
    color: #e74c3c;
}

.impact-header h5 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
}

/* Marco legal */
.legal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.legal-item {
    display: flex;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #1e5631;
}

.legal-icon {
    margin-right: 15px;
}

.legal-icon svg {
    width: 32px;
    height: 32px;
    color: #1e5631;
    stroke-width: 1.5;
}

.legal-content h5 {
    font-family: 'Montserrat', sans-serif;
    color: #1e5631;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.legal-content p {
    color: #555;
    font-size: 0.95rem;
}

/* Estado de procesos (si lo necesitas) */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.process-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    background-color: #f0f0f0;
    border-radius: 6px;
    text-align: center;
    opacity: 0.7;
    transition: all 0.3s;
}

.process-item.active {
    background-color: #e1f5e1;
    opacity: 1;
    border: 2px solid #1e5631;
}

.process-item svg {
    width: 28px;
    height: 28px;
    color: #1e5631;
    margin-bottom: 10px;
    stroke-width: 1.5;
}

.process-item span {
    font-weight: 600;
    color: #2c3e50;
}

/* Acciones */
.actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.action-buttons {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
    min-width: 250px;
}

.btn svg {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    stroke-width: 1.5;
}

.btn-download {
    background-color: #1e5631;
    color: white;
}

.btn-download:hover {
    background-color: #164023;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(30, 86, 49, 0.3);
}

.btn-annexes {
    background-color: #2c3e50;
    color: white;
}

.btn-annexes:hover {
    background-color: #1a252f;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

.update-info {
    color: #7f8c8d;
    font-style: italic;
}

.update-info svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    stroke-width: 1.5;
}

/* Recuadro extra */
.recuadro-extra {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 5px solid #ff9800;
}

.recuadro-contenido {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.recuadro-nota {
    display: flex;
    gap: 1rem;
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recuadro-nota:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.recuadro-texto h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.recuadro-texto p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    text-align: justify;
}

/* Footer */
.footer {
    margin-top: 40px;
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
}

.footer .disclaimer {
    font-size: 0.8rem;
    margin-top: 10px;
    color: #95a5a6;
}

/* Responsividad */
@media (max-width: 1024px) {

    .causes-grid,
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .form-grid,
    .two-columns,
    .legal-grid,
    .causes-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: 1;
    }

    .action-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        min-width: auto;
        width: 100%;
    }

    .logo {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-header-container {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
    
    .logo-header-container h1 {
        font-size: 1.8rem;
    }
    
    .btn-back-map {
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    .logo h1 {
        font-size: 1.8rem;
    }

    .subtitle h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .section {
        padding: 20px;
    }

    .section-header h3 {
        font-size: 1.5rem;
    }

    .legal-item {
        flex-direction: column;
        text-align: center;
    }

    .legal-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .logo-header-container h1 {
        font-size: 1.5rem;
    }
    
    .btn-back-map {
        font-size: 0.8rem;
        padding: 6px 14px;
    }
    
    .btn-back-map .back-icon {
        width: 16px;
        height: 16px;
    }
}