﻿/* ====================================
   SECCIÓN DE CONTACTO
   ==================================== */

.contacto-container {
    position: relative;
    width: 100%;
    min-height: auto; 
    overflow: visible; 
}

/* Capa 1: Gradiente base */
.gradient-base-contacto {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 40%, #6b8e3d 0%, #5a7a32 25%, #4a6629 50%, #3a5220 75%, #2d4019 100% );
    z-index: 1;
}

/* Capa 2: Manchas difusas con CSS */
.blurred-spots-contacto {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.spot-contacto-1 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #8fb854 0%, transparent 70%);
    top: 20%;
    left: 10%;
    animation: float 10s ease-in-out infinite;
}

.spot-contacto-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #7a9e3f 0%, transparent 70%);
    top: 50%;
    right: 15%;
    animation: float 12s ease-in-out infinite reverse;
}

.spot-contacto-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #9db762 0%, transparent 70%);
    bottom: 20%;
    left: 50%;
    animation: float 14s ease-in-out infinite;
}

/* Capa 3: Canvas para partículas */
#particles-canvas-contacto {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    max-width: 100%;
}

/* Capa 4: Contenido */
.contacto-content {
    position: relative;
    z-index: 4;
}

/* ====================================
   TÍTULOS
   ==================================== */
.titulo-contacto {
    font-family: 'Novecento CondBold', sans-serif;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.subtitulo-contacto {
    font-family: 'Novecento CondBold', sans-serif;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ====================================
   GRID DE LOGOS
   ==================================== */
.logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-item {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    width: 220px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

    .logo-card:hover {
        transform: translateY(-8px) scale(1.05);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
        background: rgba(255, 255, 255, 1);
    }

.logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.logo-card:hover .logo-img {
    filter: grayscale(0%);
}

/* ====================================
   TARJETA DE INFORMACIÓN DE CONTACTO
   ==================================== */
.contacto-info-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
}

.contacto-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contacto-icon {
    background: linear-gradient(135deg, #6b8e3d 0%, #5a7a32 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(107, 142, 61, 0.3);
}

.contacto-details {
    flex: 1;
}

.contacto-title {
    font-family: 'Novecento CondBold', sans-serif;
    color: #2d4019;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.contacto-text {
    font-family: 'HankenGrotesk-Light', sans-serif;
    color: #555;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contacto-link {
    color: #6b8e3d;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

    .contacto-link:hover {
        color: #5a7a32;
        text-decoration: underline;
        transform: translateX(5px);
    }

/* ====================================
   REDES SOCIALES
   ==================================== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6b8e3d 0%, #5a7a32 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 142, 61, 0.3);
}

    .social-link:hover {
        transform: translateY(-5px) scale(1.1);
        box-shadow: 0 8px 25px rgba(107, 142, 61, 0.5);
        background: linear-gradient(135deg, #7a9e3f 0%, #6b8e3d 100%);
        color: white;
    }

/* ====================================
   ANIMACIONES
   ==================================== */
@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(25px, -25px) scale(1.08);
    }
}

/* ====================================
   RESPONSIVE
   ==================================== */
@media (max-width: 1200px) {
    .logos-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .contacto-container {
        padding: 3rem 0;
    }

    .titulo-contacto {
        font-size: 2.5rem;
    }

    .subtitulo-contacto {
        font-size: 1.5rem;
    }

    .logos-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
        padding: 1rem 0;
    }

    .logo-card {
        max-width: 180px;
        height: 120px;
        padding: 1rem;
    }

    .contacto-info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .spot-contacto-1,
    .spot-contacto-2,
    .spot-contacto-3 {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 576px) {
    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .titulo-contacto {
        font-size: 2rem;
    }

    .contacto-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .contacto-title {
        font-size: 1.1rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* ====================================
   ACCESIBILIDAD
   ==================================== */
@media (prefers-reduced-motion: reduce) {
    .logo-card,
    .social-link,
    .contacto-link {
        transition: none;
    }

    .spot-contacto-1,
    .spot-contacto-2,
    .spot-contacto-3 {
        animation: none;
    }
}

/* ====================================
   PRINT STYLES
   ==================================== */
@media print {
    .contacto-container {
        background: white !important;
    }

    .gradient-base-contacto,
    .blurred-spots-contacto,
    #particles-canvas-contacto {
        display: none !important;
    }

    .social-links {
        display: none;
    }
}
