/* ============================================
   PÁGINA DE PREGUNTAS FRECUENTES
   ============================================ */

/* Hero Section */
.faq-page-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    background: radial-gradient(ellipse at top, rgba(50, 9, 53, 0.4) 0%, transparent 60%);
    position: relative;
    z-index: 10;
}

.faq-page-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.faq-hero-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #e29117 0%, #3D073B 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    animation: fadeInUp 0.8s ease-out;
    box-shadow: 0 10px 40px rgba(226, 145, 23, 0.3);
}

.faq-hero-icon i {
    font-size: 3.5rem;
    color: #ffffff;
}

.faq-page-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.faq-page-subtitle {
    font-size: 1.25rem;
    color: #a0a0a0;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* FAQ Content Section */
.faq-content-section {
    padding: 4rem 2rem 6rem;
    background: transparent;
    position: relative;
    z-index: 10;
}

.faq-content-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Enlaces dentro de FAQ */
.faq-link {
    color: #e29117;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.faq-link:hover {
    color: #e29117;
    border-bottom-color: #e29117;
    text-shadow: 0 0 10px rgba(226, 145, 23, 0.3);
}

/* Títulos dentro de respuestas */
.faq-answer h4, .faq-answer h3 {
    color: #e29117;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.faq-answer h4:first-child {
    margin-top: 0;
}

/* Ejemplo de cálculo */
.calculation-example {
    background: linear-gradient(135deg, rgba(30, 124, 147, 0.1) 0%, rgba(50, 9, 53, 0.1) 100%);
    border-left: 3px solid #e29117;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.calculation-example p {
    color: #ffffff !important;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.8;
}

.calculation-example strong {
    color: #e29117;
}

/* Responsive - 1400px */
@media (max-width: 1400px) {
    
    .faq-page-hero {
        padding: 12rem 1.5rem 3rem;
    }
    
    .faq-hero-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 1.5rem;
    }
    
    .faq-hero-icon i {
        font-size: 2.75rem;
    }
    
    .faq-page-title {
        font-size: 2.75rem;
        margin-bottom: 1.25rem;
    }
    
    .faq-page-subtitle {
        font-size: 1.1rem;
    }
    
    .faq-content-section {
        padding: 3rem 1.5rem 5rem;
    }
    
    .faq-content-container {
        max-width: 80%;
    }
    
    .calculation-example {
        padding: 1rem 1.25rem;
    }
    
    .calculation-example p {
        font-size: 0.95rem;
    }
}

/* ============================================
   SKELETON LOADER
   ============================================ */

.faq-skeleton {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.faq-skeleton-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(226, 145, 23, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    height: 80px;
    position: relative;
    overflow: hidden;
}

.faq-skeleton-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(226, 145, 23, 0.1) 50%,
        transparent 100%
    );
    animation: faq-skeleton-loading 1.5s infinite;
}

@keyframes faq-skeleton-loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* ============================================
   ERROR MESSAGE
   ============================================ */

.faq-error {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 77, 77, 0.1);
    border: 2px solid rgba(255, 77, 77, 0.3);
    border-radius: 16px;
    margin-top: 2rem;
}

.faq-error i {
    font-size: 4rem;
    color: #ff4d4d;
    margin-bottom: 1.5rem;
    display: block;
}

.faq-error p {
    color: #ffffff;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-retry {
    background: linear-gradient(135deg, #e29117 0%, #3D073B 100%);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(226, 145, 23, 0.3);
}

.btn-retry i {
    font-size: 1rem;
}

/* Responsive - 768px */
@media (max-width: 768px) {
    .faq-page-hero {
        padding: 5rem 1rem 2rem;
        min-height: auto;
    }
    
    .faq-hero-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.25rem;
    }
    
    .faq-hero-icon i {
        font-size: 2.25rem;
    }
    
    .faq-page-title {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }
    
    .faq-page-subtitle {
        font-size: 1rem;
    }
    
    .faq-content-section {
        padding: 2.5rem 1rem 4rem;
    }
    
    .faq-content-container {
        max-width: 100%;
    }
    
    .faq-answer h4 {
        font-size: 1rem;
        margin-top: 1.25rem;
    }
    
    .calculation-example {
        padding: 0.875rem 1rem;
        margin: 1.25rem 0;
    }
    
    .calculation-example p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* Responsive - 480px */
@media (max-width: 480px) {
    .faq-hero-icon {
        width: 60px;
        height: 60px;
    }
    
    .faq-hero-icon i {
        font-size: 2rem;
    }
    
    .faq-page-title {
        font-size: 2rem;
    }
    
    .faq-page-subtitle {
        font-size: 0.95rem;
    }
    
    .calculation-example p {
        font-size: 0.85rem;
    }
}

/* ============================================
   FIX ESPECÍFICO PARA iOS SAFARI
   ============================================ */

@supports (-webkit-touch-callout: none) {
    .faq-page-hero,
    .faq-content-section {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

