/**
 * Estilos para la página de Contacto
 * Basado en la plantilla original
 */

/* Quitar padding del main-content solo en esta página */
.contact-page.main-content {
    padding: 0;
}

/* Página de Contacto */
.contact-page .contact-hero {
    background-image: url('../images/bg-contact.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

/* Burbujas decorativas */
.contact-page .bubble {
    position: fixed;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    z-index: 0;
    animation: floatContact 10s infinite ease-in-out;
    pointer-events: none;
}

@keyframes floatContact {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Contenedor principal */
.contact-page .container {
    width: 100%;
    max-width: 700px;
    margin: auto;
    position: relative;
    z-index: 1;
}

/* Contenedor del formulario */
.contact-page .form-container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 0, 255, 0.3);
    padding: 40px;
    width: 100%;
    max-width: 700px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 0, 255, 0.2);
    animation: fadeInContact 0.8s ease-out forwards;
}

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

.contact-page .form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right,
            rgba(255, 0, 255, 0.1),
            rgba(255, 0, 255, 0),
            rgba(255, 0, 255, 0.1));
    transform: rotate(30deg);
    z-index: -1;
    animation: shine 6s infinite linear;
}

@keyframes shine {
    0% {
        transform: rotate(30deg) translate(-10%, -10%);
    }
    100% {
        transform: rotate(30deg) translate(10%, 10%);
    }
}

/* Título del formulario */
.contact-page .form-title {
    text-align: center;
    margin-bottom: 30px;
    color: #ff8eff;
    font-size: 28px;
    position: relative;
    display: block;
    width: 100%;
}

.contact-page .form-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #ff8eff;
    border-radius: 3px;
}

/* Grupo de campos */
.contact-page .form-group {
    margin-bottom: 25px;
    position: relative;
}

.contact-page .form-group label,
.contact-page .wpcf7-form label {
    display: block;
    margin-bottom: 8px;
    color: #686868;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Campos de entrada */
.contact-page .form-control,
.contact-page .wpcf7-form input[type="text"],
.contact-page .wpcf7-form input[type="email"],
.contact-page .wpcf7-form input[type="tel"],
.contact-page .wpcf7-form textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 8px;
    color: #333;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.contact-page .form-control:focus,
.contact-page .wpcf7-form input:focus,
.contact-page .wpcf7-form textarea:focus {
    outline: none;
    border-color: #ff8eff;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
    background-color: #fff;
}

.contact-page textarea.form-control,
.contact-page .wpcf7-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Íconos */
.contact-page .input-icon {
    position: absolute;
    right: 15px;
    top: 40px;
    color: #999;
    transition: all 0.3s ease;
}

.contact-page .form-group:focus-within .input-icon {
    color: #ff8eff;
}

/* Botón de enviar */
.contact-page .submit-btn,
.contact-page .wpcf7-form input[type="submit"] {
    background-color: #ff8eff;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-page .submit-btn:hover,
.contact-page .wpcf7-form input[type="submit"]:hover {
    background-color: #e066e0;
    box-shadow: 0 5px 15px rgba(255, 0, 255, 0.4);
    transform: translateY(-3px);
}

.contact-page .submit-btn:active,
.contact-page .wpcf7-form input[type="submit"]:active {
    transform: translateY(0);
}

/* Contact Form 7 específico */
.contact-page .wpcf7-form {
    margin: 0;
}

.contact-page .wpcf7-form p {
    margin-bottom: 20px;
}

.contact-page .wpcf7-form .wpcf7-response-output {
    margin: 20px 0 0;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.contact-page .wpcf7-form .wpcf7-mail-sent-ok {
    background-color: rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
    color: #2E7D32;
}

.contact-page .wpcf7-form .wpcf7-validation-errors,
.contact-page .wpcf7-form .wpcf7-acceptance-missing {
    background-color: rgba(244, 67, 54, 0.2);
    border-color: #F44336;
    color: #C62828;
}

.contact-page .wpcf7-not-valid-tip {
    color: #ff4d4d;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.contact-page .wpcf7-spinner {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-page .form-container {
        padding: 25px;
        margin: 0 15px;
    }

    .contact-page .form-title {
        font-size: 24px;
    }

    .contact-page .wpcf7-form input[type="submit"],
    .contact-page .submit-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}
