/* =======================================================
    antecedentes.css - VERSIÓN CON NUEVA PESTAÑA HISTORIA
    ======================================================= */

:root {
    --color-primary: #5888A6;
    --color-accent: #F25C05;
    --color-secondary: #F28705;
    --color-highlight: #F29F05;
    --color-light: #C2DCF2;
    --color-dark: #343230;
    --color-light-gray: #bdbcbc;
    --color-white: #ffffff;
    --color-black: #000000;
}

.container1 {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: justify;
    background: transparent;
}

/* =======================================================
    HERO SECTION
    ======================================================= */
.antecedentes-hero {
    background-color: var(--color-light-gray);
    color: var(--color-dark);
    padding: 60px 20px;
    text-align: center;
}

.antecedentes-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.antecedentes-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* =======================================================
    SECCIONES DE FONDO - CON LA MISMA ALTURA
    ======================================================= */
.intro-section,
.videos-section {
    padding: 4rem 1rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
    
    background-color: var(--color-dark);
}

/* =======================================================
    INTRO SECTION - SOLO CAMBIA LA IMAGEN
    ======================================================= */
.intro-section {
    background-image: url('../img/background/background-mobile.png');
}

/* =======================================================
    VIDEOS SECTION - SOLO CAMBIA LA IMAGEN
    ======================================================= */
.videos-section {
    background-image: url('../img/background/background-mobile-v2.png');
}

/* =======================================================
    BREAKPOINTS - MISMAS IMÁGENES PARA CADA RESOLUCIÓN
    ======================================================= */
@media (min-width: 768px) {
    .intro-section,
    .videos-section {
        min-height: 70vh;
    }
    
    .intro-section {
        background-image: url('../img/background/background-small.png');
    }
    
    .videos-section {
        background-image: url('../img/background/background-small-v2.png');
    }
}

@media (min-width: 1280px) {
    .intro-section,
    .videos-section {
        min-height: 80vh;
    }
    
    .intro-section {
        background-image: url('../img/background/background-medium.png');
    }
    
    .videos-section {
        background-image: url('../img/background/background-medium-v2.png');
    }
}

@media (min-width: 1920px) {
    .intro-section,
    .videos-section {
        min-height: 90vh;
    }
    
    .intro-section {
        background-image: url('../img/background/background-large.png');
    }
    
    .videos-section {
        background-image: url('../img/background/background-large-v2.png');
    }
}

/* =======================================================
    CONTENIDO DE INTRO
    ======================================================= */
.intro-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-white);
    padding: 2rem;
    border-radius: 8px;
    backdrop-filter: blur(1px);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.intro-content p {
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.highlight-link {
    color: var(--color-highlight);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--color-secondary);
    transition: all 0.3s ease;
    padding: 0 2px;
}

.highlight-link:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    background-color: rgba(242, 135, 5, 0.2);
    text-shadow: 0 0 8px rgba(242, 135, 5, 0.4);
}

/* =======================================================
    TÍTULOS DE SECCIÓN
    ======================================================= */
.section-title {
    text-align: center;
    color: var(--color-primary);
    padding-top: 130px;
    font-size: 2.5rem;
    margin-bottom: .5rem;
    font-weight: 700;
    border-bottom: 3px solid var(--color-secondary);
    display: inline-block;
    width: 100%;
}

.section-subtitle {
    text-align: center;
    color: var(--color-white);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* =======================================================
    VIDEOS GRID
    ======================================================= */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.video-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(88, 136, 166, 0.1);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: var(--color-dark);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 2rem;
}

.video-info h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.video-info p {
    color: var(--color-dark);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.video-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #4a7595 100%);
    color: var(--color-white);
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(88, 136, 166, 0.3);
}

.video-btn:hover {
    background: linear-gradient(135deg, var(--color-accent) 0%, #e85504 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(242, 92, 5, 0.4);
    color: var(--color-white);
}

/* =======================================================
    TABS Y OTROS ESTILOS
    ======================================================= */
.tabs-section {
    padding: 4rem 0;
    background: var(--color-light-gray);
}

.tabs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.tabs-sidebar {
    flex: 0 0 250px;
    background: var(--color-dark);
    padding: 2rem 0;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.tab-btn:hover {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.tab-btn.active {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.15);
    border-left-color: var(--color-accent);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.tabs-content {
    flex: 1;
    padding: 2.5rem;
    min-height: 500px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-pane h2 {
    color: var(--color-primary);
    font-size: 2.2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 3px solid var(--color-secondary);
    padding-bottom: 10px;
}

.tab-pane h2 i {
    color: var(--color-accent);
}

/* =======================================================
    ESTILOS PARA LA PESTAÑA DE HISTORIA
    ======================================================= */
.historia-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.historia-texto {
    text-align: justify;
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.historia-imagen-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(88, 136, 166, 0.1) 0%, rgba(242, 92, 5, 0.05) 100%);
    border-radius: 12px;
    border: 2px dashed var(--color-primary);
}

.historia-imagen {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.historia-imagen:hover {
    transform: scale(1.05);
}

/* =======================================================
    OBJETIVOS GRID
    ======================================================= */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.objective-step {
    background: var(--color-white);
    border: 2px solid var(--color-light);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.objective-step:hover {
    border-color: var(--color-accent);
    background-color: #fef8f0;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 24px rgba(242, 92, 5, 0.15);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary) 100%);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    box-shadow: 0 6px 12px rgba(88, 136, 166, 0.3);
}

.objective-step h3 {
    color: var(--color-primary);
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
}

.objective-step p {
    color: var(--color-dark);
    line-height: 1.6;
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

/* =======================================================
    MISIÓN CATEGORÍAS
    ======================================================= */
.mission-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.category-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--color-light);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
    border-color: var(--color-accent);
}

.category-header {
    background: var(--color-light-gray);
    color: var(--color-white);
    padding: 1.5rem;
    text-align: center;
}

.category-badge {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.category-header h3 {
    color: var(--color-white);
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
}

.category-content {
    padding: 1.8rem;
}

.category-content p {
    color: var(--color-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    opacity: 0.9;
}

.category-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.category-features span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-light);
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.category-features span i {
    color: var(--color-accent);
    font-size: 0.9rem;
}

/* =======================================================
    LINEAMIENTOS
    ======================================================= */
.lineamientos-content {
    max-width: 100%;
}

.lineamientos-intro {
    background: var(--color-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.lineamientos-intro p {
    color: var(--color-dark);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

.lineamientos-lista {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.lineamiento-item {
    background: var(--color-white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(88, 136, 166, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lineamiento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(242, 92, 5, 0.3);
}

.lineamiento-item h3 {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 2px solid var(--color-light);
    padding-bottom: 0.8rem;
}

.lineamiento-item h3 i {
    color: var(--color-accent);
    font-size: 1.2rem;
}

.lineamiento-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lineamiento-item ul li {
    color: var(--color-dark);
    padding: 0.5rem 0;
    line-height: 1.5;
    position: relative;
    padding-left: 1.5rem;
    opacity: 0.9;
}

.lineamiento-item ul li::before {
    content: '•';
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0.4rem;
}

.lineamientos-nota {
    background: linear-gradient(135deg, var(--color-highlight) 0%, #f2b005 100%);
    color: var(--color-white);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 2rem;
    box-shadow: 0 4px 12px rgba(242, 159, 5, 0.3);
}

.lineamientos-nota i {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.lineamientos-nota p {
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
}

.lineamientos-nota strong {
    font-weight: 700;
}

/* =======================================================
    RESPONSIVE DESIGN
    ======================================================= */
@media (max-width: 1280px) {
    .intro-section,
    .videos-section {
        min-height: 70vh;
    }
    
    .intro-content {
        max-width: 800px;
        padding: 1.75rem;
    }
}

@media (max-width: 1024px) {
    .tabs-container {
        flex-direction: column;
    }
    
    .tabs-sidebar {
        flex: none;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        padding: 0;
        background: var(--color-dark);
    }
    
    .tab-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
        border-left: none;
        border-bottom: 4px solid transparent;
        padding: 1.2rem 0.5rem;
        text-align: center;
    }
    
    .tab-btn.active {
        border-left: none;
        border-bottom-color: var(--color-accent);
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .objectives-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .mission-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .antecedentes-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .intro-section,
    .videos-section {
        min-height: 60vh;
        padding: 1.5rem 0.75rem;
    }
    
    .intro-content {
        padding: 1.5rem;
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .antecedentes-hero h1 {
        font-size: 2rem;
    }
    
    .antecedentes-hero p {
        font-size: 1.1rem;
    }
    
    .tab-pane h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .video-card {
        margin-bottom: 1.5rem;
    }
    
    .objectives-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tabs-content {
        padding: 1.5rem;
    }
    
    .lineamiento-item {
        padding: 1.2rem;
    }
    
    .lineamiento-item h3 {
        font-size: 1.2rem;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }
    
    .objective-step h3 {
        font-size: 1.2rem;
    }
    
    .category-header h3 {
        font-size: 1.3rem;
    }
    
    .category-content {
        padding: 1.5rem;
    }
    
    .category-features {
        gap: 0.5rem;
    }
    
    .category-features span {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .historia-imagen-container {
        padding: 1rem;
    }
    
    .historia-imagen {
        max-height: 150px;
    }
}

@media (max-width: 480px) {
    .intro-section,
    .videos-section {
        min-height: 50vh;
        padding: 1.25rem 0.5rem;
    }
    
    .intro-content {
        padding: 1.25rem;
        font-size: 0.95rem;
        line-height: 1.6;
        margin: 0 0.5rem;
    }
    
    .antecedentes-hero {
        padding: 40px 15px;
    }
    
    .antecedentes-hero h1 {
        font-size: 1.8rem;
    }
    
    .antecedentes-hero p {
        font-size: 1rem;
    }
    
    .video-info h3 {
        font-size: 1.3rem;
    }
    
    .tab-btn span {
        font-size: 0.9rem;
    }
    
    .videos-grid {
        gap: 1rem;
    }
    
    .video-info {
        padding: 1.5rem;
    }
    
    .container1 {
        width: 95%;
        padding: 0 10px;
    }
    
    .objectives-grid {
        gap: 1rem;
    }
    
    .objective-step {
        padding: 1.5rem 1rem;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .mission-categories {
        gap: 1rem;
    }
    
    .category-header {
        padding: 1.2rem;
    }
    
    .category-header h3 {
        font-size: 1.2rem;
    }
    
    .category-content {
        padding: 1.2rem;
    }
    
    .category-features {
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .historia-texto {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .historia-imagen-container {
        padding: 0.75rem;
    }
    
    .historia-imagen {
        max-height: 120px;
    }
}