/**
 * CSS Compartido: Páginas de Regiones de Pesca
 *
 * Estilos para las páginas:
 * - /donde-pescar/alto-parana/
 * - /donde-pescar/litoral/
 * - /donde-pescar/patagonia/
 * - /donde-pescar/mar-argentino/
 *
 * NOTA: Las tarjetas de provincias usan modulo-provincias-pesca.css (cargado en controlador)
 *
 * @version 1.1.0
 * @date 2026-03-08
 */

/* ============================================
   1. MAPA DE REGIÓN (FLOTANTE IZQUIERDA)
   ============================================ */

.mapa-region {
    float: left;
    max-width: 300px;
    margin: 0 2rem 1.5rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mapa-region img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Clear float después de los primeros párrafos */
.contenido-wrapper h2 {
    clear: both;
}

/* ============================================
   2. IMAGEN DE CABECERA
   ============================================ */

.region-cabecera {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

/* Override de estilos globales de img en contenido-wrapper */
.contenido-wrapper .region-cabecera img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    transition: none;
}

.contenido-wrapper .region-cabecera img:hover {
    transform: none;
    box-shadow: none;
}

/* ============================================
   3. DATOS DESTACADOS (CHIPS)
   ============================================ */

.region-datos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.region-dato {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #f0f7ff;
    border: 1px solid #cce4ff;
    border-radius: 25px;
    padding: 0.6rem 1.4rem;
    font-size: 1.6rem;
    color: #1a5276;
    font-weight: 500;
}

.region-dato i {
    color: #00ABFF;
    font-size: 1.6rem;
}

/* ============================================
   4. ESPECIES DE LA REGIÓN
   ============================================ */

.especies-region .row {
    margin-top: 1rem;
}

.especie-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.especie-item {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.especie-item:hover {
    border-color: #00ABFF;
    box-shadow: 0 6px 16px rgba(0, 171, 255, 0.15);
    transform: translateY(-3px);
}

.especie-item img {
    width: 100%;
    max-width: 120px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Especies destacadas (primeras 8): más grandes */
.especie-destacada img {
    max-width: 150px;
}

.especie-item h4 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0.5rem 0 0.3rem 0;
}

.especie-destacada h4 {
    font-size: 1.8rem;
}

.especie-item .nombre-cientifico {
    font-size: 1.2rem;
    color: #6b7280;
    font-style: italic;
    margin: 0;
}

.especie-link:hover .especie-item h4 {
    color: #00ABFF;
}

/* ============================================
   5. BOTÓN BUSCAR GUÍAS
   ============================================ */

.region-guias-cta {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    border: 1px solid #cce4ff;
    border-radius: 12px;
    padding: 2.5rem;
    margin-top: 3rem;
    text-align: center;
}

.region-guias-cta p {
    font-size: 1.8rem;
    color: #1a5276;
    margin-bottom: 1.5rem;
}

/* ============================================
   6. RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    /* Mapa: dejar de flotar en tablets */
    .mapa-region {
        float: none;
        max-width: 400px;
        margin: 0 auto 2rem auto;
    }

    .contenido-wrapper .region-cabecera img {
        height: 220px;
    }

    .region-guias-cta {
        padding: 2rem;
    }

    .region-guias-cta p {
        font-size: 1.6rem;
    }
    
    /* Especies: 2 columnas en tablets */
    .especies-region .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    /* Mapa: ancho completo en móviles */
    .mapa-region {
        max-width: 100%;
        margin: 0 0 1.5rem 0;
    }

    .contenido-wrapper .region-cabecera img {
        height: 180px;
    }

    .region-dato {
        font-size: 1.4rem;
        padding: 0.5rem 1rem;
    }
    
    /* Especies: tamaño uniforme en móviles */
    .especie-destacada img {
        max-width: 120px;
    }
    
    .especie-destacada h4 {
        font-size: 1.6rem;
    }
}