*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:'Poppins',sans-serif;
color:#1f2937;
line-height:1.6;
}

.container{
width:90%;
max-width:1200px;
margin:auto;
}

header{
position:fixed;
width:100%;
background:#fff;
box-shadow:0 2px 10px rgba(0,0,0,.08);
z-index:100;
}

nav{
display:flex;
justify-content:space-between;
align-items:center;
padding:20px 0;
}

.logo{
font-size:1.2rem;
font-weight:700;
}

.hero{
background:linear-gradient(135deg,#0f172a,#2563eb);
color:white;
padding:180px 0 120px;
text-align:center;
}

.hero h1{
font-size:3rem;
margin-bottom:20px;
}

.hero p{
max-width:700px;
margin:auto;
margin-bottom:30px;
}

.hero-list{
list-style:none;
margin-bottom:30px;
}

.hero-list li{
margin:10px 0;
}

.btn-primary,
.btn-menu{
display:inline-block;
padding:15px 30px;
background:#f59e0b;
color:white;
text-decoration:none;
border-radius:10px;
font-weight:600;
transition:.3s;
}

.btn-primary:hover,
.btn-menu:hover{
transform:translateY(-3px);
}

section{
padding:80px 0;
}

h2{
text-align:center;
margin-bottom:40px;
font-size:2rem;
}

.grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:25px;
}

.card{
padding:25px;
border-radius:15px;
background:#f8fafc;
box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.timeline{
display:grid;
gap:15px;
}

.timeline div{
padding:18px;
background:#eef2ff;
border-left:5px solid #2563eb;
border-radius:8px;
}

.instructor,
.cta{
text-align:center;
}

.cta{
background:#0f172a;
color:white;
}

footer{
background:#111827;
color:white;
padding:30px;
text-align:center;
}
.table_talleres {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.733);
    color: #1f2937;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); 
    border: 0px;
    padding: 10px;
}

/* Envoltorio opcional para pruebas (Simula la sección o columna de tu web) */

.page-demo-wrapper {
    width: min(100%, 1100px);
    margin: 0 auto 40px;
    position: relative;
    clear: both;
}
/* =========================================================
   COMPONENTE: SLIDER EN CAJA / TARJETA (Embeddable Box)
   ========================================================= */
.slider-container,
.slider-box {
    position: relative;
    width: 100%;
    height: 520px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    background-color: #1a1d24;
}

.slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Slide Individual */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.7s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Imagen dentro de la caja */
.image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    transition: transform 5s ease-out;
}

.slide.active .image-container img {
    transform: scale(1);
}

/* Sombra/Gradiente para la parte inferior de la caja */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(10, 12, 16, 0.95) 0%,
        rgba(10, 12, 16, 0.6) 40%,
        rgba(0, 0, 0, 0.05) 100%
    );
}

/* Bloque de Texto (Adaptado al tamaño de la caja) */
.caption-container {
    position: relative;
    z-index: 2;
    padding: 0 40px 40px 40px;
    max-width: 700px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s ease-out 0.2s, opacity 0.6s ease-out 0.2s;
}

.slide.active .caption-container {
    transform: translateY(0);
    opacity: 1;
}

.subtitle {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #4f9cf9;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.description {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.5;
    color: #d1d5db;
}

/* Botones de Navegación (Flechas dentro de la caja) */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.08);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* Indicadores de Puntos */
.dots-container {
    position: absolute;
    bottom: 25px;
    right: 40px;
    z-index: 10;
    display: flex;
    gap: 10px;
    align-items: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover { background: rgba(255, 255, 255, 0.75); }

.dot.active {
    width: 26px;
    border-radius: 10px;
    background: #4f9cf9;
}

/* Ajustes Responsivos */
@media (max-width: 768px) {
    .slider-container,
    .slider-box {
        height: 450px;
        border-radius: 16px;
    }

    .caption-container { padding: 0 24px 35px 24px; }
    .title { font-size: 1.5rem; }
    .description { font-size: 0.85rem; }
    .nav-btn { width: 38px; height: 38px; font-size: 0.9rem; }
    .prev-btn { left: 12px; }
    .next-btn { right: 12px; }

    .dots-container {
        right: 50%;
        transform: translateX(50%);
        bottom: 15px;
    }
}