/* ============================================
   MAPFRE CANAL DEL INFORMANTE - ESTILOS
   ============================================ */

/* ===== PALETA DE COLORES MAPFRE ===== */
:root {
    --mapfre-red: #D32F2F;
    --mapfre-red-dark: #B71C1C;
    --mapfre-red-hover: #E53935;
    --mapfre-gray-bg: #F5F5F5;
    --mapfre-gray-light: #FAFAFA;
    --mapfre-gray-medium: #E0E0E0;
    --mapfre-gray-text: #616161;
    --mapfre-gray-dark: #424242;
    --mapfre-white: #FFFFFF;
    --mapfre-black: #212121;
}

/* ===== ESTILOS GENERALES ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--mapfre-gray-bg);
    color: var(--mapfre-black);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ===== HEADER MAPFRE ===== */
.mapfre-header {
    background-color: var(--mapfre-red);
    color: var(--mapfre-white);
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mapfre-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1140px;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

.mapfre-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mapfre-logo-icon {
    width: 32px;
    height: 32px;
    background-color: var(--mapfre-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--mapfre-red);
    font-size: 14px;
}

.mapfre-logo-text {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

.mapfre-header-title {
    font-size: 18px;
    font-weight: 500;
    text-align: right;
}

/* ===== CONTENIDO PRINCIPAL ===== */
.mapfre-content {
    padding: 60px 20px;
    background-color: var(--mapfre-gray-bg);
}

.mapfre-title {
    color: var(--mapfre-black);
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
}

.mapfre-subtitle {
    color: var(--mapfre-gray-text);
    font-size: 16px;
    text-align: center;
    margin-bottom: 50px;
}

/* ===== TARJETAS DE DENUNCIA ===== */
.denuncias-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.denuncia-card {
    background-color: var(--mapfre-white);
    border: 1px solid var(--mapfre-gray-medium);
    border-radius: 4px;
    padding: 30px 20px;
    width: 300px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.denuncia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    border-color: var(--mapfre-red);
}

.denuncia-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 4px;
}

.denuncia-card-title {
    color: var(--mapfre-red);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.denuncia-card-subtitle {
    color: var(--mapfre-gray-text);
    font-size: 13px;
    font-style: italic;
}

/* ===== FOOTER MAPFRE ===== */
.mapfre-footer {
    background-color: var(--mapfre-red);
    color: var(--mapfre-white);
    padding: 30px 0;
    margin-top: auto;
    font-size: 13px;
    line-height: 1.6;
}

.mapfre-footer .container {
    max-width: 1140px;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

.mapfre-footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.mapfre-footer-column h6 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--mapfre-white);
}

.mapfre-footer-column p {
    margin: 3px 0;
    font-size: 12px;
}

.mapfre-footer-column a {
    color: var(--mapfre-white);
    text-decoration: underline;
}

.mapfre-footer-column a:hover {
    color: var(--mapfre-gray-light);
}

.mapfre-footer-copyright {
    text-align: right;
    font-size: 12px;
}

/* ===== FORMULARIO ===== */
.mapfre-form-container {
    background-color: var(--mapfre-white);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
}

.mapfre-form-title {
    color: var(--mapfre-black);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.mapfre-form-description {
    color: var(--mapfre-gray-text);
    font-size: 14px;
    text-align: center;
    margin-bottom: 40px;
}

.form-label strong {
    color: var(--mapfre-black);
    font-weight: 600;
}

.form-label .text-danger {
    color: var(--mapfre-red) !important;
}

.form-label small {
    color: var(--mapfre-gray-text);
    display: block;
    margin-top: 3px;
}

.form-select, .form-control {
    border: 1px solid var(--mapfre-gray-medium);
    border-radius: 4px;
    padding: 10px 12px;
}

.form-select:focus, .form-control:focus {
    border-color: var(--mapfre-red);
    box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.25);
}

.btn-mapfre-primary {
    background-color: var(--mapfre-red);
    color: var(--mapfre-white);
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-mapfre-primary:hover {
    background-color: var(--mapfre-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-mapfre-secondary {
    background-color: var(--mapfre-gray-medium);
    color: var(--mapfre-gray-dark);
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-mapfre-secondary:hover {
    background-color: var(--mapfre-gray-text);
    color: var(--mapfre-white);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .mapfre-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 0;
    padding-right: 0;
}
    
    .mapfre-header-title {
        text-align: center;
    }
    
    .mapfre-footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .mapfre-footer-copyright {
        text-align: center;
    }
    
    .denuncias-container {
        flex-direction: column;
        align-items: center;
    }
    
    .denuncia-card {
        width: 100%;
        max-width: 400px;
    }
    
    .mapfre-form-container {
        padding: 20px;
    }
}

/* ===== ALERTAS Y MENSAJES ===== */
.alert-mapfre {
    border-left: 4px solid var(--mapfre-red);
    background-color: #FFEBEE;
    color: var(--mapfre-red-dark);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success-mapfre {
    border-left: 4px solid #4CAF50;
    background-color: #E8F5E9;
    color: #2E7D32;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* ===== UTILIDADES ===== */
.text-mapfre-red {
    color: var(--mapfre-red) !important;
}

.bg-mapfre-red {
    background-color: var(--mapfre-red) !important;
}

.border-mapfre-red {
    border-color: var(--mapfre-red) !important;
}

/* Logo MAPFRE oficial */
.mapfre-logo img {
    height: 65px;
    width: auto;
    max-height: 60px;
    object-fit: contain;
    vertical-align: middle;
    margin-left: -151px;
}

@media (max-width: 768px) {
    .mapfre-logo img {
        height: 32px;
        max-height: 35px;
    }
}


/* Optimizaci�n adicional para logo MAPFRE de alta calidad */
.mapfre-logo img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: contrast(1.05) brightness(1.02);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ajuste responsive para tablets */
@media (max-width: 992px) and (min-width: 769px) {
    .mapfre-logo img {
        height: 48px;
        max-height: 52px;
    }
}

/* Header con m�s altura para acomodar logo grande */
.mapfre-header {
    min-height: 75px;
    display: flex;
    align-items: center;
}


/* Alineación consistente entre header y footer */
.mapfre-header .container,
.mapfre-footer .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.mapfre-logo {
    margin-left: 0;
    padding-left: 0;
}

.mapfre-footer-content {
    padding-left: 0;
}

/* ===== MEDIA QUERIES RESPONSIVE ===== */

/* Tablets y pantallas medianas (768px - 992px) */
@media (max-width: 992px) {
    .mapfre-header .container,
    .mapfre-footer .container {
        max-width: 960px;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Tablets pequeñas (576px - 768px) */
@media (max-width: 768px) {
    .mapfre-header .container,
    .mapfre-footer .container {
        max-width: 720px;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .mapfre-footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Móviles (menos de 576px) */
@media (max-width: 576px) {
    .mapfre-header .container,
    .mapfre-footer .container {
        max-width: 100%;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .mapfre-header-title {
        font-size: 14px;
    }
    
    .mapfre-logo img {
        height: 40px;
        max-height: 45px;
    }
}
