/* ========================================
   PÁGINA DE CONTACTO - ESTILOS MODERNOS
   ======================================== */

/* ========================================
   DEGRADADOS Y EFECTOS GLOBALES
   ======================================== */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--light-purple) 50%, #c77dff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Badges de sección */
.section-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.2) 0%, rgba(212, 175, 55, 0.2) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ========================================
   HERO SECTION
   ======================================== */
.contact-hero-section {
    padding: 6rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.contact-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(106, 27, 154, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 40%);
    animation: heroFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-2%, 2%) rotate(5deg); }
}

.hero-title {
    font-family: var(--font-heading);
    color: var(--text-light);
    line-height: 1.1;
    animation: fadeInUp 1s ease-out;
    font-size: 3.5rem;
}

.hero-subtitle {
    color: #e5e5e5;
    animation: fadeInUp 1s ease-out 0.2s backwards;
    font-size: 1.2rem;
    line-height: 1.8;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
    padding: 3rem 0 5rem;
    background: linear-gradient(180deg, transparent 0%, rgba(106, 27, 154, 0.03) 100%);
}

/* ========================================
   CONTACT CARD - FORMULARIO
   ======================================== */
.contact-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(106, 27, 154, 0.15) 100%);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 25px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 0;
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-form {
    position: relative;
    z-index: 1;
}

.contact-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 20px 60px rgba(106, 27, 154, 0.3), 0 0 40px rgba(212, 175, 55, 0.15);
}

.contact-card-title {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    font-size: 1.8rem;
    font-weight: 600;
}

/* ========================================
   FORM STYLES
   ======================================== */
.contact-form .form-group {
    margin-bottom: 0;
}

.contact-form .form-label {
    color: #d4af37;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    display: block;
    letter-spacing: 0.5px;
}

.contact-form .form-label i {
    color: #b388ff;
    transition: color 0.3s ease;
}

.contact-form .form-control {
    background: rgba(26, 26, 26, 0.9) !important;
    border: 2px solid rgba(123, 31, 162, 0.4);
    color: #ffffff !important;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.contact-form .form-control:hover {
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(30, 30, 40, 0.95);
}

.contact-form .form-control:focus {
    background: rgba(35, 35, 50, 0.95);
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15), 0 0 20px rgba(212, 175, 55, 0.1);
    color: #ffffff;
    outline: none;
}

.contact-form .form-group:focus-within .form-label {
    color: #ffd700;
}

.contact-form .form-group:focus-within .form-label i {
    color: #d4af37;
}

.contact-form textarea.form-control {
    resize: none;
    min-height: 160px;
}


/* ========================================
   BUTTONS - MEJORADOS
   ======================================== */
.btn-mystic {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(106, 27, 154, 0.4);
    position: relative;
    overflow: hidden;
    padding: 1rem 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-mystic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-mystic:hover::before {
    left: 100%;
}

.btn-mystic:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--secondary-purple) 0%, var(--light-purple) 100%);
    box-shadow: 0 6px 30px rgba(106, 27, 154, 0.6);
    transform: translateY(-3px);
    color: white;
}

.btn-mystic:hover:disabled {
    transform: none;
    box-shadow: 0 4px 20px rgba(106, 27, 154, 0.2);
}

/* ========================================
   CONTACT INFO CARD
   ======================================== */
.contact-info-card,
.social-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(106, 27, 154, 0.12) 100%);
    border: 2px solid rgba(123, 31, 162, 0.3);
    border-radius: 25px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.contact-info-card::before,
.social-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 0;
}

.contact-info-card:hover::before,
.social-card:hover::before {
    opacity: 1;
}

.contact-info-card > *,
.social-card > * {
    position: relative;
    z-index: 1;
}

.contact-info-card:hover,
.social-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 15px 40px rgba(106, 27, 154, 0.3);
}

.info-title {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    font-size: 1.4rem;
    font-weight: 600;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(123, 31, 162, 0.2);
    transition: var(--transition);
}

.info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-item:hover {
    transform: translateX(5px);
}

.info-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(106, 27, 154, 0.4);
}

.info-item:hover .info-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--light-purple) 100%);
}

.info-icon i {
    color: var(--accent-gold);
    font-size: 1.4rem;
    transition: var(--transition);
}

.info-item:hover .info-icon i {
    color: var(--dark-bg);
}

.info-content h5 {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.info-content p,
.info-content a {
    color: #d5d5d5;
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.info-content a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-content a:hover {
    color: var(--accent-gold);
}

/* ========================================
   SOCIAL LINKS GRID
   ======================================== */
.social-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.social-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(106, 27, 154, 0.1) 100%);
    border: 2px solid rgba(123, 31, 162, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.5s;
}

.social-link-card:hover::before {
    left: 100%;
}

.social-link-card i {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    transition: var(--transition);
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3));
}

.social-link-card span {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.social-link-card:hover {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    border-color: var(--accent-gold);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(106, 27, 154, 0.5);
}

.social-link-card:hover i {
    transform: scale(1.3) rotate(10deg);
    color: white;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
}

.social-link-card:hover span {
    color: var(--text-light);
}

.social-link-card.whatsapp:hover {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-color: #25d366;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, rgba(106, 27, 154, 0.03) 0%, transparent 100%);
}

.section-title {
    font-family: var(--font-heading);
    color: var(--text-light);
    line-height: 1.2;
}

/* FAQ Accordion */
.faq-accordion .accordion-item {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(106, 27, 154, 0.12) 100%);
    border: 2px solid rgba(123, 31, 162, 0.3);
    border-radius: 20px !important;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-accordion .accordion-item:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 30px rgba(106, 27, 154, 0.3);
}

.faq-accordion .accordion-button {
    background: transparent;
    color: var(--text-light);
    font-weight: 600;
    font-size: 1rem;
    padding: 1.3rem 1.5rem;
    box-shadow: none;
    transition: var(--transition);
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.3) 0%, rgba(74, 20, 140, 0.2) 100%);
    color: var(--accent-gold);
}

.faq-accordion .accordion-button::after {
    filter: brightness(0) saturate(100%) invert(76%) sepia(61%) saturate(463%) hue-rotate(4deg) brightness(97%) contrast(91%);
    transition: var(--transition);
}

.faq-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.2);
}

.faq-accordion .accordion-body {
    background: rgba(20, 20, 35, 0.5);
    color: #d5d5d5;
    padding: 1.3rem 1.5rem;
    line-height: 1.8;
    border-top: 1px solid rgba(123, 31, 162, 0.2);
}

/* ========================================
   ALERT STYLES
   ======================================== */
.alert {
    border-radius: 15px;
    border: none;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.2) 0%, rgba(32, 201, 151, 0.1) 100%);
    border: 2px solid rgba(40, 167, 69, 0.4);
    color: #7dcea0;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2) 0%, rgba(255, 82, 82, 0.1) 100%);
    border: 2px solid rgba(220, 53, 69, 0.4);
    color: #f5b7b1;
}

.alert .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

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

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 991.98px) {
    .contact-hero-section {
        padding: 4rem 0 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .contact-card,
    .contact-info-card,
    .social-card {
        padding: 2rem;
    }
}

@media (max-width: 767.98px) {
    .contact-hero-section {
        padding: 3rem 0 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .contact-card-title {
        font-size: 1.5rem;
    }

    .contact-card,
    .contact-info-card,
    .social-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .info-icon {
        width: 50px;
        height: 50px;
    }

    .info-icon i {
        font-size: 1.2rem;
    }

    .social-links-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .social-link-card {
        padding: 1rem 0.5rem;
    }

    .social-link-card i {
        font-size: 1.5rem;
    }

    .social-link-card span {
        font-size: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .social-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-link-card {
        padding: 1.2rem;
    }

    .social-link-card i {
        font-size: 1.8rem;
    }

    .social-link-card span {
        font-size: 0.85rem;
    }

    .btn-mystic {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ========================================
   CAPTCHA PUZZLE SYSTEM
   ======================================== */
.btn-verify {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.8) 0%, rgba(212, 175, 55, 0.3) 100%);
    color: white;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    padding: 0.85rem 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-verify:hover {
    background: linear-gradient(135deg, rgba(106, 27, 154, 1) 0%, rgba(212, 175, 55, 0.5) 100%);
    box-shadow: 0 4px 20px rgba(106, 27, 154, 0.4);
}

.btn-verify.verified {
    background: linear-gradient(135deg, #28a745 0%, #34d058 100%);
    border-color: #28a745;
}

.btn-verify:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.verified-badge {
    display: none;
    align-items: center;
    gap: 0.5rem;
    color: #28a745;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.verified-badge.show {
    display: flex;
}

.btn-mystic:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.4) 0%, rgba(74, 20, 140, 0.4) 100%);
    box-shadow: none;
}

.captcha-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.captcha-modal.show {
    display: flex;
}

.captcha-container {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.98) 0%, rgba(106, 27, 154, 0.2) 100%);
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 20px;
    padding: 2rem;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(106, 27, 154, 0.5);
    animation: modalSlideIn 0.3s ease;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.captcha-modal .captcha-header {
    text-align: center;
    margin-bottom: 1.5rem;
    background: none;
    border: none;
    padding: 0;
    display: block;
}

.captcha-modal .captcha-header h4 {
    color: var(--accent-gold);
    font-family: 'Cinzel', serif;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.captcha-modal .captcha-header p {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin: 0;
}

.captcha-puzzle {
    position: relative;
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #2c0d4d 0%, #1a1a2e 100%);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.puzzle-background {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.puzzle-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(106, 27, 154, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
}

.puzzle-icon {
    font-size: 4rem;
    color: var(--accent-gold);
    opacity: 0.3;
    position: absolute;
}

.puzzle-slot {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 2px dashed rgba(212, 175, 55, 0.6);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.puzzle-slot.correct {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.2);
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.5);
}

.puzzle-piece {
    position: absolute;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #ffd700 100%);
    border-radius: 8px;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.5);
    transition: box-shadow 0.3s ease;
    touch-action: none;
    user-select: none;
}

.puzzle-piece:active {
    cursor: grabbing;
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.8);
}

.puzzle-piece i {
    font-size: 1.5rem;
    color: #1a1a2e;
}

.captcha-slider-container {
    margin-top: 1rem;
}

.captcha-slider-track {
    position: relative;
    width: 100%;
    height: 45px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 25px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    overflow: hidden;
}

.captcha-slider-text {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0b0b0;
    font-size: 0.9rem;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.captcha-slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(106, 27, 154, 0.5) 0%, rgba(212, 175, 55, 0.3) 100%);
    border-radius: 25px;
    transition: background 0.3s ease;
}

.captcha-slider-fill.correct {
    background: linear-gradient(90deg, rgba(40, 167, 69, 0.5) 0%, rgba(40, 167, 69, 0.3) 100%);
}

.captcha-slider-handle {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #ffd700 100%);
    border-radius: 50%;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 15px rgba(212, 175, 55, 0.5);
    transition: box-shadow 0.3s ease, background 0.3s ease;
    touch-action: none;
    user-select: none;
    z-index: 2;
}

.captcha-slider-handle:active {
    cursor: grabbing;
    box-shadow: 0 5px 25px rgba(212, 175, 55, 0.8);
}

.captcha-slider-handle.correct {
    background: linear-gradient(135deg, #28a745 0%, #34d058 100%);
    box-shadow: 0 3px 15px rgba(40, 167, 69, 0.5);
}

.captcha-slider-handle i {
    font-size: 1.2rem;
    color: #1a1a2e;
    transition: transform 0.3s ease;
}

.captcha-slider-handle.correct i::before {
    content: "\F26B";
}

.captcha-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.captcha-refresh {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--accent-gold);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.captcha-refresh:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--accent-gold);
}

.captcha-close {
    background: transparent;
    border: none;
    color: #b0b0b0;
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
    transition: color 0.3s ease;
}

.captcha-close:hover {
    color: var(--accent-gold);
}

.captcha-status {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 24px;
}

.captcha-status.success {
    color: #28a745;
}

.captcha-status.error {
    color: #ff6b6b;
}
