/* Mantener fondo oscuro general */
.color_fondo {
    background-color: #0d0d0d;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
}

/* Ocultar sección imagen_fondo para eliminar fondo */
.imagen_fondo {
    display: none !important;
}

/* Texto principal */
.letra_blanca {
    color: #fff;
}

/* Contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Bajamos el título para que no quede tapado por navbar */
section.container > .text-center {
    padding-top: 80px; /* Ajusta este valor si es necesario */
}

/* Títulos */
h1 {
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

/* Contenedores alineados horizontalmente */
.contacto-contenedores {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    margin: 40px 0;
}

/* Contenedores individuales más pequeños y cuadrados */
.contacto-item {
    flex: 0 0 160px; /* Ancho fijo */
    height: 160px; /* Alto fijo */
    background: #333;
    padding: 12px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.5);
    text-align: center;
    color: white;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-sizing: border-box;
}

.contacto-item img {
    width: 60px;
    margin-bottom: 10px;
    transition: transform 0.5s ease;
}

.contacto-item p {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    max-height: 2.4em;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.contacto-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.7);
}

/* Estilo específico por tipo */
.contenedor-whatsapp {
    background-color: #25d366;
}

.contenedor-whatsapp:hover {
    background-color: #1ebe5b;
}

.contenedor-whatsapp:hover img {
    transform: rotate(15deg);
}

.contenedor-instagram {
    background: radial-gradient(circle at 30% 107%, #fd46f4 0%, #4a4ae7 45%, #4e6dde 60%, #0ce2c5 90%);
}

.contenedor-instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fc3b51 45%, #a2187f 60%, #1434a9 90%);
}

.contenedor-gmail {
    background-color: #d44638;
}

.contenedor-gmail:hover {
    background-color: #a33a2b;
}

/* Contenedor mapa */
.contenedor-mapa {
    flex: 1 1 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgb(255, 255, 255);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    max-width: 900px;
    margin: 0 auto 40px auto;
    cursor: pointer;
    min-height: 300px;
}

.contenedor-mapa iframe {
    border-radius: 15px;
    width: 100%;
    height: 350px;
}

.contenedor-mapa:hover {
    box-shadow: 0 12px 30px rgba(242, 238, 238, 0.7);
    transform: scale(1.03);
}

.mapa-link {
    display: block;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 10px;
    background-color: #000000;
    transition: background-color 0.3s ease;
    text-align: center;
    border-radius: 0 0 15px 15px;
}

.mapa-link:hover {
    background-color: #444;
}

/* Responsive */
@media (max-width: 900px) {
    .contacto-contenedores {
        flex-direction: column;
        align-items: center;
    }

    .contacto-item {
        width: 100%;
        max-width: 220px;
        height: 160px;
    }

    .contenedor-mapa {
        max-width: 100%;
        height: auto;
        min-height: 250px;
        margin-bottom: 30px;
    }

    .contenedor-mapa iframe {
        height: 250px;
    }
}
