/* Página de Contacto */

/* Hero de contacto */
.contact-hero {
    padding: 8rem 2rem 6rem;
    background: linear-gradient(135deg, #000000 0%, #0a0a1a 50%, #000000 100%);
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(74, 158, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(179, 102, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.contact-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.contact-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.gradient-text {
    background: linear-gradient(to right, #4a9eff, #b366ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #b0b0b0;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
}

.contact-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    min-width: 120px;
    transition: all 0.3s ease;
}

.contact-stats .stat:hover {
    transform: translateY(-5px);
    border-color: rgba(74, 158, 255, 0.2);
    background: rgba(74, 158, 255, 0.05);
}

.contact-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #4a9eff, #b366ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.contact-stats .stat-label {
    font-size: 0.9rem;
    color: #a0a0a0;
    text-align: center;
}

/* Ondas sonoras animadas */
.contact-hero-visual {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    overflow: hidden;
    z-index: 1;
}

.sound-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, transparent, rgba(74, 158, 255, 0.1));
    border-radius: 50% 50% 0 0;
    animation: waveAnimation 8s ease-in-out infinite;
}

.sound-wave:nth-child(2) {
    height: 80px;
    background: linear-gradient(to top, transparent, rgba(179, 102, 255, 0.08));
    animation-delay: -2s;
    animation-duration: 10s;
}

.sound-wave:nth-child(3) {
    height: 60px;
    background: linear-gradient(to top, transparent, rgba(255, 255, 255, 0.05));
    animation-delay: -4s;
    animation-duration: 12s;
}

@keyframes waveAnimation {
    0%, 100% {
        transform: translateY(0) scaleX(1);
    }
    50% {
        transform: translateY(-20px) scaleX(1.1);
    }
}

/* Main contacto */
.contact-main {
    padding: 4rem 2rem;
    background: #000000;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Formulario de contacto */
.contact-form-section {
    background: rgba(20, 20, 20, 0.8);
    border-radius: 2rem;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.form-header {
    margin-bottom: 2.5rem;
}

.form-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.form-header p {
    color: #a0a0a0;
    font-size: 1rem;
    line-height: 1.5;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.form-label::after {
    content: '*';
    color: #ff4a4a;
    font-size: 0.8rem;
}

.input-with-icon,
.textarea-with-icon {
    position: relative;
}

.input-with-icon i,
.textarea-with-icon i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #4a9eff;
    font-size: 1rem;
    z-index: 1;
}

.textarea-with-icon i {
    top: 1.5rem;
    transform: none;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-textarea {
    padding-top: 1.5rem;
    resize: vertical;
    min-height: 120px;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%234a9eff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 3rem;
    cursor: pointer;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #4a9eff;
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #666;
}

/* Checkboxes */
.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 0.2rem;
    accent-color: #4a9eff;
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.9rem;
    color: #a0a0a0;
    line-height: 1.4;
    cursor: pointer;
}

.privacy-link {
    color: #4a9eff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: #b366ff;
    text-decoration: underline;
}

/* Botón de envío */
.submit-btn {
    position: relative;
    padding: 1.2rem 2rem;
    background: linear-gradient(to right, #4a9eff, #b366ff);
    border: none;
    border-radius: 1rem;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    overflow: hidden;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(74, 158, 255, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

.submit-btn.loading i {
    display: none;
}

.btn-loading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.submit-btn.loading .btn-loading {
    display: block;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mensaje del formulario */
.form-message {
    padding: 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.form-message.success {
    opacity: 1;
    transform: translateY(0);
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.form-message.error {
    opacity: 1;
    transform: translateY(0);
    background: rgba(255, 74, 74, 0.1);
    border: 1px solid rgba(255, 74, 74, 0.2);
    color: #ff4a4a;
}

.form-message.info {
    opacity: 1;
    transform: translateY(0);
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.2);
    color: #4a9eff;
}

/* Sección de información de contacto */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Métodos de contacto */
.contact-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.method-card {
    background: rgba(20, 20, 20, 0.8);
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.method-card:hover {
    transform: translateY(-5px);
    border-color: rgba(74, 158, 255, 0.2);
    background: rgba(30, 30, 30, 0.9);
}

.method-icon {
    font-size: 2rem;
    color: #4a9eff;
    margin-bottom: 1rem;
}

.method-content {
    flex: 1;
}

.method-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.method-description {
    font-size: 0.9rem;
    color: #a0a0a0;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.method-link,
.method-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a9eff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.method-link:hover,
.method-btn:hover {
    color: #b366ff;
}

.method-link i,
.method-btn i {
    font-size: 0.9rem;
}

.method-address {
    font-style: normal;
    font-size: 0.95rem;
    color: #ffffff;
    line-height: 1.5;
    margin: 0.5rem 0;
}

.method-address i {
    color: #4a9eff;
    margin-right: 0.5rem;
}

.method-hours {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* FAQ */
.contact-faq {
    background: rgba(20, 20, 20, 0.8);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #4a9eff;
}

.faq-question i {
    color: #4a9eff;
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    font-size: 0.9rem;
    color: #a0a0a0;
    line-height: 1.5;
    padding-top: 0.8rem;
    display: none;
}

.faq-answer.show {
    display: block;
}

.faq-link {
    color: #4a9eff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.3s ease;
}

.faq-link:hover {
    color: #b366ff;
    text-decoration: underline;
}

/* Redes sociales */
.contact-social {
    background: rgba(20, 20, 20, 0.8);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.social-description {
    font-size: 0.9rem;
    color: #a0a0a0;
    margin-bottom: 1.5rem;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(74, 158, 255, 0.1);
    border-color: rgba(74, 158, 255, 0.3);
    transform: translateY(-2px);
}

.social-link i {
    font-size: 1.2rem;
}

.social-link:nth-child(1) i { color: #E1306C; } /* Instagram */
.social-link:nth-child(2) i { color: #1DA1F2; } /* Twitter */
.social-link:nth-child(3) i { color: #FF0000; } /* YouTube */
.social-link:nth-child(4) i { color: #0077B5; } /* LinkedIn */

/* Widget de chat */
.chat-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-widget.active {
    display: flex;
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(to right, #4a9eff, #b366ff);
    color: #ffffff;
}

.chat-agent {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.agent-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.agent-info {
    display: flex;
    flex-direction: column;
}

.agent-name {
    font-weight: 600;
    font-size: 1rem;
}

.agent-status {
    font-size: 0.8rem;
    opacity: 0.9;
}

.agent-status.online {
    color: #00ff88;
}

.chat-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.chat-close:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.message.agent {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
}

.message-content {
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.agent .message-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.message.user .message-content {
    background: linear-gradient(to right, #4a9eff, #b366ff);
    color: #ffffff;
}

.message-time {
    font-size: 0.7rem;
    color: #888;
    margin-top: 0.3rem;
    align-self: flex-end;
}

.chat-input {
    display: flex;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 0.8rem;
}

.chat-input input {
    flex: 1;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
}

.chat-input input:focus {
    border-color: #4a9eff;
}

.chat-send {
    width: 40px;
    height: 40px;
    background: linear-gradient(to right, #4a9eff, #b366ff);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat-send:hover {
    transform: scale(1.1);
}

/* Botón para abrir chat */
.chat-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(to right, #4a9eff, #b366ff);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(74, 158, 255, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(74, 158, 255, 0.4);
}

.chat-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ff4a4a;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

/* Enlace activo en el menú */
.nav-link.active {
    color: #4a9eff;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #4a9eff, #b366ff);
}

/* Responsive */
@media (max-width: 1100px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .contact-title {
        font-size: 3.2rem;
    }
    
    .contact-stats {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 6rem 1.5rem 4rem;
    }
    
    .contact-title {
        font-size: 2.5rem;
    }
    
    .contact-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-stats {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .contact-stats .stat {
        width: 100%;
        max-width: 250px;
    }
    
    .contact-main {
        padding: 3rem 1.5rem;
    }
    
    .contact-form-section {
        padding: 2rem;
    }
    
    .social-links {
        grid-template-columns: 1fr;
    }
    
    .chat-widget {
        width: calc(100% - 3rem);
        right: 1.5rem;
        bottom: 90px;
    }
}

@media (max-width: 480px) {
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-subtitle {
        font-size: 1rem;
    }
    
    .form-header h2 {
        font-size: 1.8rem;
    }
    
    .contact-form-section,
    .method-card,
    .contact-faq,
    .contact-social {
        padding: 1.5rem;
    }
    
    .submit-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}