/* Estilos específicos para la sección de Contáctanos con efecto parallax */

.contact-parallax-section {
    position: relative;
    min-height: 120vh;
    height: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin: 0;
}

.contact-parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: url('../img/Campo.JPG');
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    will-change: transform;
    z-index: 1;
    transform: translate3d(0, 0, 0);
}

.contact-parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background: url('../img/Campo.JPG');
    background-size: cover;
    z-index: 2;
}

.contact-content {
    position: relative;
    z-index: 3;
    color: white;
    width: 100%;
    padding: 12px 0;
    min-height: fit-content;
    text-align: center;
}

.contact-title {
    font-size: 4.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 4px 4px 8px rgba(0,0,0,0.6);
    letter-spacing: 4px;
    text-transform: uppercase;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 4s ease-in-out infinite alternate;
    position: relative;
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(45deg, #28a745, #20c997, #28a745);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.5);
}

@keyframes titleGlow {
    0% { filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3)); }
    100% { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6)); }
}

.contact-subtitle {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 5rem;
    opacity: 0.95;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    padding: 0 2rem;
}

.contact-team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    max-width: 780px;
    margin: 0 auto 2rem auto;
    padding: 0 2rem;
}

.contact-member {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3rem 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.contact-member::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(255, 255, 255, 0.05), 
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent);
    animation: shimmer 6s linear infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.contact-member:hover {
    transform: translateY(-20px) scale(1.03);
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.contact-member-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    border: 4px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.contact-member:hover .contact-member-photo {
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.contact-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.contact-member:hover .contact-member-photo img {
    transform: scale(1.1);
}

.contact-member-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.contact-member-role {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.3rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-member-company {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-style: italic;
    font-weight: 300;
}

.contact-social-buttons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
}

.contact-social-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
    font-size: 1.2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: scale(0);
    z-index: -1;
}

.contact-social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.contact-social-btn:hover::before {
    transform: scale(1);
}

.contact-whatsapp:hover::before {
    background: #25d366;
}

.contact-whatsapp:hover {
    color: white;
    border-color: #25d366;
}

.contact-skype:hover::before {
    background: #00aff0;
}

.contact-skype:hover {
    color: white;
    border-color: #00aff0;
}

.contact-email:hover::before {
    background: #ea4335;
}

.contact-email:hover {
    color: white;
    border-color: #ea4335;
}

/* Responsive */
@media (max-width: 1200px) {
    .contact-team-grid {
        gap: 3rem;
        max-width: 800px;
    }
    
    .contact-qr-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }
    
    .contact-title {
        font-size: 4rem;
    }
}

@media (max-width: 992px) {
    .contact-qr-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .contact-qr-image {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .contact-parallax-bg {
        background-attachment: scroll;
        position: absolute;
    }
    
    .contact-parallax-section {
        min-height: auto;
        height: auto;
        padding: 4rem 0;
    }
    
    .contact-title {
        font-size: 3rem;
        letter-spacing: 2px;
        margin-bottom: 2rem;
    }
    
    .contact-subtitle {
        font-size: 1.3rem;
        padding: 0 1.5rem;
        margin-bottom: 4rem;
    }
    
    .contact-team-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 3rem;
        max-width: 500px;
        margin-bottom: 5rem;
    }
    
    .contact-member {
        padding: 2.5rem 2rem;
    }
    
    .contact-member-photo {
        width: 120px;
        height: 120px;
    }
    
    .contact-qr-section {
        margin-top: 4rem;
        padding: 3rem 1rem 2rem 1rem;
    }
    
    .contact-qr-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .contact-qr-image {
        width: 110px;
        height: 110px;
    }
    
    .contact-qr-title {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 480px) {
    .contact-parallax-section {
        padding: 3rem 0;
    }
    
    .contact-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
        margin-bottom: 1.5rem;
    }
    
    .contact-subtitle {
        font-size: 1.2rem;
        margin-bottom: 3rem;
        padding: 0 1rem;
    }
    
    .contact-team-grid {
        margin-bottom: 4rem;
    }
    
    .contact-member {
        padding: 2rem 1.5rem;
    }
    
    .contact-member-photo {
        width: 100px;
        height: 100px;
    }
    
    .contact-social-buttons {
        gap: 1rem;
    }
    
    .contact-social-btn {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
    
    .contact-qr-section {
        margin-top: 3rem;
        padding: 2.5rem 0.5rem 1.5rem 0.5rem;
    }
    
    .contact-qr-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    
    .contact-qr-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .contact-qr-item {
        padding: 1.5rem 1rem;
    }
    
    .contact-qr-image {
        width: 100px;
        height: 100px;
    }
}

/* Animaciones de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.contact-member {
    animation: fadeInUp 0.8s ease forwards;
}

.contact-qr-item {
    animation: fadeInScale 0.6s ease forwards;
}

/* Efectos adicionales para profesionalidad */
.contact-member-name {
    position: relative;
}

.contact-member-name::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #20c997, #28a745);
    transition: width 0.3s ease;
}

.contact-member:hover .contact-member-name::after {
    width: 60px;
}

.contact-social-btn {
    position: relative;
    overflow: hidden;
}

.contact-social-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.contact-social-btn:active::after {
    width: 100px;
    height: 100px;
}

/* Mejoras en el overlay */
.contact-parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: gradientShift 15s ease infinite;
    z-index: 2;
}



/* Sección de códigos QR */
.contact-qr-section {
    margin-top: 6rem;
    padding: 4rem 2rem 2rem 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.contact-qr-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background: linear-gradient(45deg, #28a745, #20c997, #28a745);
    box-shadow: 0 2px 15px rgba(40, 167, 69, 0.6);
}

.contact-qr-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    letter-spacing: 1px;
    position: relative;
}

.contact-qr-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, #20c997, #28a745);
    border-radius: 1.5px;
}

.contact-qr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
    margin-bottom: 20px;
}

.contact-qr-item {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.contact-qr-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(0.8) rotate(0deg); opacity: 0.3; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.6; }
}

.contact-qr-item:hover {
    transform: translateY(-12px) scale(1.05);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.contact-qr-image {
    width: 140px;
    height: 140px;
    margin: 0 auto 1rem auto;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    padding: 8px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.contact-qr-item:hover .contact-qr-image {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.contact-qr-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .contact-parallax-bg {
        background-attachment: scroll !important;
    }
    
    .contact-member,
    .contact-social-btn,
    .contact-member-photo,
    .contact-member-photo img,
    .contact-qr-item {
        transition: none !important;
        animation: none !important;
    }
    
    .contact-title {
        animation: none !important;
    }
    
    .contact-parallax-overlay {
        animation: none !important;
    }
}

/* Efecto ripple para botones */
@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* Mejoras adicionales de diseño profesional */
.contact-parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.04)"/><circle cx="10" cy="90" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    z-index: 2;
    pointer-events: none;
    opacity: 0.6;
}

/* Efecto de partículas flotantes */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(90deg); }
    50% { transform: translateY(-5px) rotate(180deg); }
    75% { transform: translateY(-15px) rotate(270deg); }
}
