/* ===================================================================
   Specific Styles for different page types
   Article pages, education pages, professional pages, etc.
   =================================================================== */

/* ===================================================================
   Article Pages
   =================================================================== */
.article-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    line-height: 1.3;
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
    padding-left: 20px;
    border-left: 4px solid var(--primary-color);
}

.subsection-heading {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 1rem 0;
}

/* Lists for articles */
ul.article-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

ul.article-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-tertiary);
    text-align: justify;
}

ul.article-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Highlighted sections */
.highlight-box {
    background: var(--bg-main);
    border-radius: var(--radius-md);
    padding: 25px;
    margin: 2rem 0;
    box-shadow: var(--shadow-inset-md);
    border-left: 4px solid var(--primary-color);
}

/* Author info */
.author-info {
    text-align: center;
    margin: 2rem 0;
    padding: 20px;
    background: var(--bg-main);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-inset-sm);
}

.author-info p {
    margin: 0;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ===================================================================
   Experience Items (for profesional.html)
   =================================================================== */
.experience-item {
    background: var(--bg-main);
    border-radius: var(--radius-md);
    padding: 25px;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-inset-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.experience-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gradient-primary);
    transition: height var(--transition-normal);
}

.experience-item:hover::before {
    height: 100%;
}

.experience-item:hover {
    box-shadow: var(--shadow-inset-sm);
    transform: translateX(5px);
}

.experience-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.experience-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-tertiary);
    text-align: justify;
}

/* ===================================================================
   Strengths Grid (for fortalezas.html)
   =================================================================== */
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.strength-item {
    background: var(--bg-main);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-inset-md);
    transition: all var(--transition-normal);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.strength-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.strength-item:hover::before {
    opacity: 0.05;
}

.strength-item:hover {
    box-shadow: var(--shadow-inset-sm);
    transform: translateY(-5px);
}

.strength-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    animation: float 3s ease-in-out infinite;
}

.strength-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.strength-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-tertiary);
    position: relative;
    z-index: 1;
}

/* ===================================================================
   News Sections (for noticias.html)
   =================================================================== */
.news-section {
    margin: 2rem 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-left: 20px;
    border-left: 4px solid var(--primary-color);
}

.news-item {
    background: var(--bg-main);
    border-radius: var(--radius-md);
    padding: 25px;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-inset-md);
    transition: all var(--transition-normal);
}

.news-item:hover {
    box-shadow: var(--shadow-inset-sm);
    transform: translateY(-3px);
}

.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
    padding: 10px 0;
    transition: all var(--transition-normal);
    position: relative;
}

.news-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-normal);
}

.news-link:hover::after {
    width: 100%;
}

.news-link:hover {
    color: var(--text-primary);
    padding-left: 10px;
}

/* ===================================================================
   Video Player (for noticias.html)
   =================================================================== */
.video-player {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: var(--z-modal);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.video-container {
    position: relative;
    width: 80%;
    height: 80%;
    max-width: 800px;
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 20px;
    animation: scaleIn 0.3s ease;
}

#customVideo {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    color: var(--text-primary);
    font-size: 30px;
    background: var(--bg-main);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-round);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.close-btn:hover {
    box-shadow: var(--shadow-inset-md);
    transform: rotate(90deg);
}

/* ===================================================================
   Back to Top Button
   =================================================================== */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-round);
    background: var(--bg-main);
    border: none;
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all var(--transition-normal);
    z-index: 999;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    box-shadow: var(--shadow-inset-md);
    transform: translateY(-5px);
}

/* ===================================================================
   Course Page Styles (curso-IA.html)
   =================================================================== */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-main);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-inset-md);
    transition: all var(--transition-normal);
}

.info-item:hover {
    box-shadow: var(--shadow-inset-sm);
    transform: translateY(-3px);
}

.info-item img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-round);
    box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
    flex-shrink: 0;
}

.info-item p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.info-item strong {
    color: var(--primary-color);
    font-weight: 700;
}

.info-item small {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.enhanced-list {
    list-style: none;
    padding: 0;
}

.enhanced-list li {
    background: var(--bg-main);
    margin: 1rem 0;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-inset-sm);
    transition: all var(--transition-normal);
}

.enhanced-list li:hover {
    box-shadow: inset 2px 2px 4px var(--shadow-dark), inset -2px -2px 4px var(--shadow-light);
}

.enhanced-list h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.bonus-section {
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.bonus-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-sunset);
}

.bonus-section h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.bonus-section ul {
    list-style: none;
    padding: 0;
}

.bonus-section li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.bonus-section li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.register {
    text-align: center;
    margin: 3rem 0;
}

.register a {
    display: inline-block;
    padding: 15px 40px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.register a:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px) scale(1.05);
}

/* ===================================================================
   Responsive Design for Page-Specific Elements
   =================================================================== */

/* Tablet and below */
@media screen and (max-width: 991px) {
    .strengths-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .info-grid {
        gap: 1.2rem;
    }
}

/* Mobile */
@media screen and (max-width: 767px) {
    .article-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .section-heading {
        font-size: 1.3rem;
        padding-left: 15px;
    }

    .subsection-heading {
        font-size: 1.1rem;
    }

    .strengths-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .strength-item {
        padding: 20px;
    }

    .strength-icon {
        font-size: 2.5rem;
    }

    .experience-item {
        padding: 20px;
    }

    .experience-title {
        font-size: 1.2rem;
    }

    .news-item {
        padding: 20px;
    }

    .news-link {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        padding-left: 15px;
    }

    .video-container {
        width: 95%;
        height: 70%;
        padding: 15px;
    }

    .info-item {
        flex-direction: row;
        text-align: left;
        padding: 15px;
    }

    .bonus-section {
        padding: 20px;
    }

    .enhanced-list li {
        padding: 15px;
    }
}

/* Small Mobile */
@media screen and (max-width: 479px) {
    .article-title {
        font-size: 1.5rem;
    }

    .section-heading {
        font-size: 1.2rem;
    }

    .strength-item,
    .experience-item,
    .news-item {
        padding: 15px;
    }

    .strength-icon {
        font-size: 2rem;
    }

    .back-to-top-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
    }

    .info-item img {
        width: 40px;
        height: 40px;
    }

    .bonus-section {
        padding: 15px;
    }

    .bonus-section h3 {
        font-size: 1.3rem;
    }

    .register a {
        padding: 12px 30px;
        font-size: 1rem;
        width: 100%;
    }

    /* Fix long URLs in articles */
    .content-text a,
    .news-link,
    ul li a {
        word-break: break-all;
        overflow-wrap: anywhere;
    }
}