/*
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/JSP_Servlet/CascadeStyleSheet.css to edit this template
*/
/* 
    Created on : 29 may 2025, 16:36:49
    Author     : Avril
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

/* Contenedor principal */
.contact-container {
    position: relative;
    max-width: 1100px;
    margin: 60px auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    animation: fadeInUp 1s ease forwards;
    z-index: 1;
    overflow: hidden;
}


.contact-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(110deg, #b891f3, #6eecd1, #b4aaf9);
    background-size: 600% 600%;
    z-index: -1;
    border-radius: 22px;
    animation: borderAnimation 8s ease infinite;
}

/* Título */
.titulo-animado {
    font-size: 3rem;
    color: #773bf0;
    font-weight: 700;
    margin-bottom: 40px;
    opacity: 0;
    animation: aparecerTexto 1s ease forwards;
    animation-delay: 0.3s;
    text-align: center;
}

/* Contenido: imagen + info */
.contact-content {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}


.imagen-contenedor {
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(119, 59, 240, 0.3);
    transition: transform 0.4s ease;
    animation: fadeInUp 1s ease forwards;
}

.imagen-contenedor:hover {
    transform: scale(1.05);
}

/* Imagen */
.imagen-contacto {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Borde animado (similar al contenedor principal) */
.imagen-contenedor::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(270deg, #773bf0, #6eecd1, #773bf0);
    background-size: 600% 600%;
    border-radius: 22px;
    z-index: -1;
    animation: borderAnimation 8s ease infinite;
}


/* Información de contacto */
.contact-info {
    flex: 1 1 400px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Texto introductorio */
.intro-text {
    font-size: 1.15rem;
    line-height: 1.5;
    margin-bottom: 25px;
    color: #444;
}

/* Lista de contacto */
.contact-list {
    list-style: none;
    margin-bottom: 35px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-list li {
    margin-bottom: 15px;
}

.contact-list strong {
    color: #773bf0;
}

.contact-list a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-list a:hover {
    color: #6eecd1;
}

/* Botones de contacto */
.buttons-contact {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-contact {
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 6px 18px rgba(119, 59, 240, 0.4);
}

.btn-contact:hover {
    transform: translateY(-3px);
}

.btn-contact:active {
    transform: translateY(0);
}

/* Colores por plataforma */
.btn-contact.whatsapp-btn {
    background: #25D366;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
}

.btn-contact.facebook-btn {
    background: #3b5998;
    box-shadow: 0 6px 18px rgba(59, 89, 152, 0.5);
}

.btn-contact:not(.whatsapp-btn):not(.facebook-btn) {
    background: linear-gradient(90deg, #6eecd1, #773bf0);
}

/* Animaciones */
@keyframes aparecerTexto {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .contact-content {
        flex-direction: column;
        align-items: center;
    }
    .image-wrapper, .contact-info {
        max-width: 100%;
    }
    .titulo-animado {
        font-size: 2.2rem;
    }
    .buttons-contact {
        flex-direction: column;
        align-items: center;
    }
    .btn-contact {
        width: 100%;
        text-align: center;
    }
}
@keyframes borderAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
