/**
 * Componente: Guías Destacados - Estilos Modernos
 * 
 * Estilos para componente con API REST v1 JSON
 * 
 * @version 3.0.0
 * @date 2025-11-02
 * @changelog Diseño moderno con cards, gradientes y efectos hover
 * @author Pesca Argentina
 */

/* ==========================================
   WRAPPER PRINCIPAL
   ========================================== */

.guias-destacados-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 2rem;
    margin: 4rem 0;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ==========================================
   HEADER
   ========================================== */

.guias-destacados-header {
    margin-bottom: 3rem;
}

.guias-titulo {
    color: #00ABFF;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.guias-subtitulo {
    color: #495057;
    font-size: 1.6rem;
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.6;
}

.guias-subtitulo strong {
    color: #00ABFF;
    font-weight: 600;
}

/* ==========================================
   GRID DE GUÍAS
   ========================================== */

.guias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

/* ==========================================
   CARD DE GUÍA
   ========================================== */

.guia-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.guia-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 171, 255, 0.2);
}

/* ==========================================
   IMAGEN DEL GUÍA
   ========================================== */

.guia-imagen {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #00ABFF 0%, #0088cc 100%);
}

.guia-imagen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.guia-card:hover .guia-imagen::after {
    opacity: 1;
}

.guia-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.guia-card:hover .guia-imagen img {
    transform: scale(1.1);
}

/* ==========================================
   INFORMACIÓN DEL GUÍA
   ========================================== */

.guia-info {
    padding: 2rem 1.5rem;
}

.guia-nombre {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.guia-nombre a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.guia-nombre a:hover {
    color: #00ABFF;
}

.guia-ubicacion,
.guia-rubro {
    font-size: 1.4rem;
    color: #6c757d;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guia-ubicacion i,
.guia-rubro i {
    color: #00ABFF;
    font-size: 1.3rem;
}

/* ==========================================
   CARACTERÍSTICAS (ÍCONOS)
   ========================================== */

.guia-caracteristicas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.5rem 0;
    align-items: center;
}

.caracteristica-icono {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.caracteristica-icono:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* ==========================================
   BOTONES DE ACCIÓN
   ========================================== */

.guia-acciones {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.guia-acciones .btn {
    flex: 1;
    padding: 0.8rem 1rem;
    font-size: 1.3rem;
    font-weight: 500;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-perfil {
    background: #00ABFF;
    color: #ffffff;
    border: 2px solid #00ABFF;
}

.btn-perfil:hover {
    background: #0088cc;
    border-color: #0088cc;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 171, 255, 0.3);
}

.btn-contacto {
    background: #25D366;
    color: #ffffff;
    border: 2px solid #25D366;
}

.btn-contacto:hover {
    background: #1ea952;
    border-color: #1ea952;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* Espaciado entre los íconos de WhatsApp y Email */
.btn-contacto i {
    font-size: 1.4rem;
}

.btn-contacto i:first-child {
    margin-right: -0.2rem;
}

/* ==========================================
   FOOTER
   ========================================== */

.guias-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(0, 171, 255, 0.1);
}

.btn-ver-todos {
    padding: 1.2rem 3rem;
    font-size: 1.6rem;
    font-weight: 600;
    border-radius: 50px;
    background: linear-gradient(135deg, #00ABFF 0%, #0088cc 100%);
    border: none;
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 171, 255, 0.3);
}

.btn-ver-todos:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 171, 255, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.guias-count {
    margin-top: 1rem;
}

.guias-count small {
    font-size: 1.3rem;
    color: #6c757d;
}

/* ==========================================
   INFO FOOTER
   ========================================== */

.guias-info {
    margin-top: 2rem;
}

.guias-info small {
    font-size: 1.2rem;
    color: #adb5bd;
}

.guias-info a {
    color: #00ABFF;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.guias-info a:hover {
    color: #0088cc;
    text-decoration: underline;
}

/* ==========================================
   RESPONSIVE - TABLET
   ========================================== */

@media (max-width: 992px) {
    .guias-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 2rem;
    }
}

/* ==========================================
   RESPONSIVE - MÓVILES
   ========================================== */

@media (max-width: 768px) {
    .guias-destacados-wrapper {
        padding: 3rem 1.5rem;
        margin: 3rem 0;
        border-radius: 15px;
    }
    
    .guias-titulo {
        font-size: 2.4rem;
    }
    
    .guias-subtitulo {
        font-size: 1.4rem;
    }
    
    .guias-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .guia-acciones {
        flex-direction: column;
    }
    
    .btn-ver-todos {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }
    
    /* Íconos de características más pequeños en móviles */
    .caracteristica-icono {
        width: 32px;
        height: 32px;
    }
}

/* ==========================================
   ANIMACIONES
   ========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.guia-card {
    animation: fadeInUp 0.5s ease-out;
}

.guia-card:nth-child(2) {
    animation-delay: 0.1s;
}

.guia-card:nth-child(3) {
    animation-delay: 0.2s;
}

.guia-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* ==========================================
   ESTADOS DE LOADING
   ========================================== */

.guias-loading {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.guias-loading i {
    font-size: 3rem;
    color: #00ABFF;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
    .guias-destacados-wrapper {
        background: #ffffff;
        box-shadow: none;
        padding: 2rem 0;
    }
    
    .guia-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
    
    .btn-ver-todos,
    .btn-contacto,
    .btn-perfil {
        display: none;
    }
    
    .guias-footer {
        display: none;
    }
}
