/* =========================================
   ESTILOS SECCIÓN: CONTACTO (DARK MODE)
   ========================================= */

section.contact {
    padding: 100px 0;
    /* Fondo Azul Profundo Institucional */
    background-color: var(--primary-blue);
    background-image: linear-gradient(180deg, var(--primary-blue) 0%, #0d1b2a 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

/* Decoración de fondo: Mapamundi o Red de conexión sutil */
section.contact::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    z-index: 0;
}

/* Mancha de luz roja decorativa */
section.contact::after {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(211, 47, 47, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contenido-contact {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas: Info | Imagen */
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* =========================================
   1. COLUMNA IZQUIERDA (INFO)
   ========================================= */
.izq-contact {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Título Principal */
.izq-contact h2 {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
    letter-spacing: -1px;
}

/* Bloques de Información (Teléfono, Email, etc.) */
.izq-contact > div {
    background: rgba(255, 255, 255, 0.05); /* Glassmorphism oscuro */
    padding: 20px 25px;
    border-radius: 20px;
    border-left: 5px solid var(--primary-red); /* Línea de acento */
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}

.izq-contact > div:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.1);
}

/* Etiquetas (TELEFONO, EMAIL...) */
.izq-contact p:first-child {
    font-size: 0.9rem;
    font-weight: 700;
    color: #aaa; /* Gris claro */
    margin-bottom: 5px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Valores (Números, Correos...) */
.izq-contact p:last-child {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

/* =========================================
   2. REDES SOCIALES (INTERACTIVAS)
   ========================================= */
.redes-contact {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.redes-contact a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.redes-contact svg {
    width: 30px;
    height: 30px;
    stroke: white;
    transition: stroke 0.3s;
}

/* Efectos Hover Personalizados por Red Social */

/* Facebook (Azul) - Primer hijo */
.redes-contact a:nth-child(1):hover {
    background: #1877f2;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(24, 119, 242, 0.4);
    border-color: white;
}

/* Instagram (Gradiente) - Segundo hijo */
.redes-contact a:nth-child(2):hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(220, 39, 67, 0.4);
    border-color: white;
}

/* WhatsApp (Verde) - Tercer hijo */
.redes-contact a:nth-child(3):hover {
    background: #25d366;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
    border-color: white;
}

/* =========================================
   3. IMAGEN DERECHA (ESCRITORIO)
   ========================================= */
.der-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.der-contact img {
    width: 100%;
    max-width: 500px;
    height: auto;
    /* Sombra de luz azul debajo del escritorio */
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
    animation: floatDesk 6s ease-in-out infinite;
}

/* Círculo de fondo detrás de la imagen para darle profundidad */
.der-contact::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: var(--primary-red);
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(40px);
}

/* =========================================
   ANIMACIONES
   ========================================= */
@keyframes floatDesk {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .contenido-contact {
        grid-template-columns: 1fr; /* Una columna */
        text-align: center;
        gap: 40px;
    }

    .izq-contact {
        align-items: center; /* Centrar textos */
    }
    
    .izq-contact > div {
        width: 100%;
        max-width: 500px; /* Limitar ancho en móvil */
        text-align: left; /* Texto interno alineado a la izq para leer bien */
    }

    .redes-contact {
        justify-content: center;
    }
    
    .der-contact {
        order: -1; /* Poner la imagen arriba en móvil si quieres, o quitar esta línea para dejarla abajo */
    }
}

@media (max-width: 600px) {
    .izq-contact h2 {
        font-size: 2.5rem;
    }
    
    .izq-contact p:last-child {
        font-size: 1.1rem;
        word-break: break-all; /* Por si el correo es muy largo */
    }
}