/* style/detail.css */

/* CONTENEDOR PRINCIPAL */
.contenedor-general {
    width: 100%;
    margin: 10px auto;
    padding: 0 10px;
    position: relative;
    padding-bottom: 100px;
    box-sizing: border-box;
}

/* SERVICIOS - Grid responsivo */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3px; /* Reducido de 10px 15px a solo 3px */
    font-size: 14px;
    color: #2D3748;
    text-align: left;
    padding: 10px 0 0; /* Reducido de 15px */
}

/* CLASE MODIFICADA: Separación reducida entre elementos */
.servicio-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px; /* Reducido de 18px */
    padding: 5px;
    background: white;
    border: 1px solid #E2E8F0;
    border-left: 4px solid #3498db;
    border-radius: 8px;
    min-width: 0;
    margin: 2px 0; /* Reducido de 3px 0 */
}

/* Información destacada */
.info-destacada {
    font-size: 13px; 
    font-weight: bold; 
    font-style: italic; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* BOTONES */
.boton {
    padding: 10px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 14px;
    flex: 1;
    min-width: 120px;
    max-width: 180px;
}

.boton.denunciar {
    background: linear-gradient(135deg, #718096 0%, #4A5568 100%);
    color: white;
}

.boton.mas-avisos {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A24 100%);
    color: white;
}

.boton:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* BOTONES FLOTANTES */
.botones-flotantes {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.boton-flotante {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.boton-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    background-image: url('../icono-whatsapp.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.boton-llamar {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    color: white;
}

.boton-flotante:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* IMÁGENES */
.sin-imagen {
    text-align: center;
    padding: 20px;
}

.imagen-placeholder {
    width: 80px;
    height: 110px;
    display: block;
    margin: 20px auto;
    opacity: 0.7;
}

.imagen-galeria {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 15px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 3px solid white;
}

.enlace-imagen {
    display: block;
    margin-bottom: 20px;
    text-align: center;
}

.enlace-imagen img:hover {
    transform: scale(1.03);
}

/* CLASES NO UTILIZADAS (COMENTADAS PARA FUTURO USO) */
/*
.bloque-externo {
    background: white;
    border-radius: 12px;
    padding: 10px 20px 20px;
    margin: 25px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.09);
    border: 1px solid #e0e0e0;
    border-left: 4px solid #25D366;
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.titulo-borde {
    display: inline-block;
    position: absolute;
    top: -14px;
    left: 20px;
    background: white;
    padding: 0 15px;
    font-weight: bold;
    color: #2c3e50;
    font-size: 16px;
    z-index: 1;
    height: 28px;
    line-height: 28px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.titulo-borde::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #25D366, transparent);
    border-radius: 2px;
}

.bloque-contenido-perfil,
.bloque-contenido-servicios,
.bloque-contenido-galeria,
.bloque-contenido-sobre,
.bloque-contenido-destacados {
    margin-top: 10px;
}

.bloque-contenido-destacados {
    text-align: center;
}

.destacado {
    font-weight: 600;
    color: #4a5568;
}

.detalles {
    background: linear-gradient(135deg, #F8F9FA 0%, #EDF2F7 100%);
    line-height: 1.8;
    margin: 15px 0;
    padding: 15px;
    border-radius: 8px;
}

.descripcion {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFEFD5 100%);
    border-left: 4px solid #FFA500;
    font-weight: bold;
    margin: 15px 0;
    padding: 15px;
    border-radius: 8px;
}

.bloque-contenido-sobre {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
}
*/

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .contenedor-general {
        padding: 0 8px;
        margin: 8px auto;
    }
    
    .servicios-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 2px; /* Reducido para dispositivos móviles */
    }

    .botones-flotantes {
        bottom: 25px;
        right: 15px;
    }
    
    .boton-flotante {
        width: 65px;
        height: 65px;
        font-size: 26px;
    }
    
    .boton {
        min-width: 110px;
        padding: 8px 12px;
        font-size: 13px;
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2px; /* Reducido para dispositivos móviles */
    }
    
    .servicio-item {
        padding: 8px 6px; /* Reducido ligeramente */
        font-size: 13px;
    }
    
    .botones-flotantes {
        bottom: 20px;
        right: 10px;
    }
    
    .boton-flotante {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .boton {
        min-width: 100px;
        padding: 8px 10px;
        font-size: 12px;
        max-width: 140px;
    }
}

@media (max-width: 360px) {
    .contenedor-general {
        padding: 0 5px;
        margin: 5px auto;
    }
    
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 2px; /* Reducido para dispositivos móviles */
    }
    
    .servicio-item {
        font-size: 12px;
        padding: 6px 4px; /* Reducido ligeramente */
    }
    
    .boton-flotante {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .boton {
        width: 100%;
        max-width: none;
        min-width: auto;
        padding: 10px 12px;
        font-size: 13px;
    }
}