/**
 * Info Pages Shared Styles
 * Modern design for Privacy Policy, FAQ, Terms & Conditions, etc.
 * Author: DRAPP
 * Date: 2025
 */

:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --accent-purple: #667eea;
    --accent-purple-dark: #764ba2;
    --text-color: #2c3e50;
    --text-light: #4a5568;
    --text-muted: #6c757d;
    --light-bg: #f8f9fa;
    --border-color: #e0e6ed;
    --hover-color: #ecf0f1;
    --white: #ffffff;
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --transition-base: all 0.2s ease;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   HERO SECTION - Modern & Compact
   ======================================== */

.info-hero {
    margin-bottom: 2.5rem;
    padding: 0;
    position: relative;
}

/* Badge/Label opcional */
.info-hero .badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.info-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    position: relative;
}

/* Acento visual sutil con gradient en el texto */
.info-hero h1 span {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-purple-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-hero p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
    max-width: 650px;
}

.info-hero .subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Línea decorativa sutil */
.info-hero::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-purple) 0%, transparent 100%);
    border-radius: 2px;
}

/* Centered version */
.info-hero.centered {
    text-align: center;
    margin-bottom: 3rem;
}

.info-hero.centered::after {
    left: 50%;
    transform: translateX(-50%);
}

.info-hero.centered .badge {
    margin-bottom: 0.75rem;
}

.info-hero.centered h1 {
    font-size: 2.5rem;
}

.info-hero.centered p {
    max-width: 700px;
    margin: 0.5rem auto 0 auto;
}

/* ========================================
   LAYOUT
   ======================================== */

.info-layout {
    display: flex;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ========================================
   SIDEBAR NAVIGATION
   ======================================== */

.info-nav {
    position: sticky;
    top: 20px;
    width: 280px;
    height: fit-content;
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: none;
}

@media (min-width: 992px) {
    .info-nav {
        display: block;
    }
}

.info-nav h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.info-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-nav-list li {
    margin-bottom: 0.5rem;
}

.info-nav-link {
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    display: block;
    transition: var(--transition-base);
}

.info-nav-link:hover {
    background-color: var(--hover-color);
    color: var(--accent-color);
    transform: translateX(4px);
    text-decoration: none;
}

.info-nav-link.active {
    background-color: var(--accent-color);
    color: var(--white);
    font-weight: 600;
}

/* ========================================
   CONTENT AREA
   ======================================== */

.info-content {
    flex: 1;
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.info-section {
    margin-bottom: 3rem;
    scroll-margin-top: 20px;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent-color);
    display: inline-block;
}

.info-section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.info-section h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}

.info-section p {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: justify;
}

.info-section ul,
.info-section ol {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.info-section li {
    margin-bottom: 0.75rem;
}

.info-section a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: var(--transition-base);
}

.info-section a:hover {
    border-bottom-color: var(--accent-color);
}

/* ========================================
   SPECIAL BOXES
   ======================================== */

.highlight-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.highlight-box p {
    margin: 0;
    color: var(--text-color);
}

.info-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.warning-box {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 4px solid #ff9800;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.success-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 4px solid #4caf50;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.contact-box {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-purple-dark) 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    text-align: center;
}

.contact-box h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.contact-box p {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
}

.contact-box a {
    color: var(--white);
    font-weight: 600;
    text-decoration: underline;
}

.contact-box a:hover {
    opacity: 0.9;
}

/* ========================================
   FAQ ACCORDION
   ======================================== */

.faq-accordion {
    margin-top: 2rem;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-base);
}

.faq-question:hover {
    background: var(--light-bg);
}

.faq-question:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: -2px;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer-content {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   MOBILE NAVIGATION
   ======================================== */

.mobile-nav-toggle {
    display: block;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    width: 100%;
    cursor: pointer;
    transition: var(--transition-base);
}

.mobile-nav-toggle:hover {
    background: #2980b9;
}

.mobile-nav-toggle:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

@media (min-width: 992px) {
    .mobile-nav-toggle {
        display: none;
    }
}

.info-nav.mobile-open {
    display: block;
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}

/* ========================================
   LABELS & BADGES
   ======================================== */

.subsection-label {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.badge-new {
    background: #4caf50;
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 991px) {
    .info-layout {
        flex-direction: column;
    }

    .info-hero {
        padding: 3rem 1.5rem;
    }

    .info-hero h1 {
        font-size: 2rem;
    }

    .info-content {
        padding: 1.5rem;
    }

    .info-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .info-hero {
        padding: 2rem 1rem;
        border-radius: 12px;
    }

    .info-hero h1 {
        font-size: 1.75rem;
    }

    .info-hero p {
        font-size: 1rem;
    }

    .info-content {
        padding: 1.25rem;
        border-radius: 8px;
    }

    .info-section {
        margin-bottom: 2rem;
    }

    .info-section h2 {
        font-size: 1.25rem;
    }

    .info-section p,
    .info-section li {
        font-size: 0.95rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 1.25rem;
    }

    .faq-icon {
        font-size: 1.25rem;
    }
}

/* ========================================
   RESPONSIVE - HERO SECTION
   ======================================== */

@media (max-width: 768px) {
    .info-hero .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.75rem;
    }

    .info-hero h1 {
        font-size: 1.85rem;
    }

    .info-hero.centered h1 {
        font-size: 2rem;
    }

    .info-hero p {
        font-size: 0.95rem;
    }

    .info-hero::after {
        width: 40px;
        height: 2px;
    }
}

@media (max-width: 480px) {
    .info-hero .badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.65rem;
        margin-bottom: 0.75rem;
    }

    .info-hero h1 {
        font-size: 1.6rem;
    }

    .info-hero.centered h1 {
        font-size: 1.75rem;
    }

    .info-hero p {
        font-size: 0.9rem;
    }

    .info-hero::after {
        width: 35px;
    }
}

/* ========================================
   UTILITIES
   ======================================== */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

/* ========================================
   ANIMATIONS
   ======================================== */

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in {
    animation: slideIn 0.4s ease-out;
}
