* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #000;
    color: #fff;
    height: 100vh;
    overflow: hidden;
}

#app {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#presentacion {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
}

#diapositiva {
    width: 100%;
    max-width: 1200px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
}

#diapositiva h1, #diapositiva h2, #diapositiva h3 {
    margin-bottom: 30px;
    color: #ffcc00;
    font-size: 3rem;
}

#diapositiva p, #diapositiva li {
    font-size: 1.8rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

#diapositiva table {
    width: 80%;
    margin: 30px auto;
    border-collapse: collapse;
}

#diapositiva th, #diapositiva td {
    padding: 15px;
    border: 1px solid #ffcc00;
    font-size: 1.5rem;
}

#contador {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffcc00;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 15px;
    border-radius: 20px;
}

#mensaje-espera {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 50px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 15px;
    z-index: 1000;
}

#mensaje-espera h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffcc00;
}

#mensaje-espera p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Estilos para el moderador */
#controles {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid #333;
    transition: transform 0.3s ease;
}

#controles.oculto {
    transform: translateY(100%);
}

.control-group {
    display: flex;
    gap: 10px;
}

.control-group button {
    background: #4caf50;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.control-group button:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.control-group button:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

#toggleControles {
    background: #9c27b0 !important;
}

#toggleControles:hover {
    background: #7b1fa2 !important;
}

.estadisticas {
    display: flex;
    gap: 30px;
}

.estadistica {
    text-align: center;
}

.estadistica .valor {
    font-size: 1.8rem;
    font-weight: bold;
    color: #3498db;
    display: block;
}

.estadistica div:last-child {
    font-size: 0.9rem;
    color: #aaa;
}

/* Estilos para PDF y videos */
.pdf-container, .video-container {
    width: 100%;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #000;
}

.pdf-iframe, .video-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    background: #000;
}

/* Estilos adicionales para el modo pantalla completa */
body.pdf-mode, body.video-mode {
    background: #000;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body.pdf-mode #diapositiva, body.video-mode #diapositiva {
    padding: 0;
    height: 100vh;
    width: 100vw;
    max-width: none;
    margin: 0;
    background: #000;
}

body.pdf-mode .pdf-container, body.video-mode .video-container {
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}
body.video-mode .video-iframe {
    border: none;
}
body.pdf-mode .pdf-iframe {
    width: 100%;
    height: 100%;
    border: none;
    margin: 0;
    padding: 0;
    background: #000;
}

/* Ocultar elementos en modo pantalla completa */
body.pdf-mode #contador, 
body.video-mode #contador,
body.pdf-mode #mensaje-espera, 
body.video-mode #mensaje-espera {
    display: none !important;
}

/* Estilos para el carrusel de imágenes */
.carrusel-container {
    width: 100%;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.carrusel {
    width: 90%;
    max-width: 1200px;
    height: 70vh;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carrusel-track {
    display: flex;
    height: 100%;
    position: relative;
}

.carrusel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.carrusel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carrusel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.carrusel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 1.2rem;
    z-index: 3;
}

.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.carrusel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carrusel-btn.prev {
    left: 20px;
}

.carrusel-btn.next {
    right: 20px;
}

.carrusel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carrusel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.carrusel-indicator.active {
    background: white;
}

/* Modo carrusel a pantalla completa */
body.carrusel-mode #diapositiva {
    padding: 0;
    height: 100vh;
    width: 100vw;
    max-width: 100%;
}

body.carrusel-mode .carrusel-container {
    height: 100vh;
    width: 100vw;
}

body.carrusel-mode .carrusel {
    height: 100vh;
    width: 100vw;
}

body.carrusel-mode .carrusel-slide {
    height: 100vh;
}

/* Ocultar elementos en modo carrusel */
body.carrusel-mode #contador,
body.carrusel-mode #mensaje-espera {
    display: none !important;
}

/* Estilos para diapositivas minimalistas con imágenes */
.slide-minimalista {
    width: 100%;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.slide-minimalista img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.8);
}

.slide-minimalista::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    z-index: -1;
}

.slide-minimalista h1 {
    font-size: 4rem;
    font-weight: 100;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
}

.slide-minimalista p {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.8;
    max-width: 800px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.8s;
}

.slide-minimalista .autor {
    font-size: 1rem;
    font-style: italic;
    color: rgba(255,255,255,0.7);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1.1s;
}

/* Variante con dos imágenes */
.slide-doble {
    width: 100%;
    height: 80vh;
    display: flex;
    padding: 40px;
    box-sizing: border-box;
}

.slide-doble .imagen-izquierda {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 10px 0 0 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.slide-doble .imagen-izquierda img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-doble .contenido-derecha {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    background: rgba(0,0,0,0.7);
    border-radius: 0 10px 10px 0;
}

.slide-doble .contenido-derecha h2 {
    font-size: 3rem;
    font-weight: 100;
    margin-bottom: 30px;
    color: #ffcc00;
    letter-spacing: 2px;
}

.slide-doble .contenido-derecha p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}

/* Variante con imagen circular */
.slide-circular {
    width: 100%;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    box-sizing: border-box;
}

.slide-circular .circulo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border: 5px solid rgba(255,255,255,0.2);
    animation: float 6s ease-in-out infinite;
}

.slide-circular .circulo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-circular h2 {
    font-size: 3rem;
    font-weight: 100;
    margin-bottom: 20px;
    color: #ffcc00;
    letter-spacing: 2px;
}

.slide-circular p {
    font-size: 1.3rem;
    line-height: 1.8;
    max-width: 600px;
    color: rgba(255,255,255,0.9);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Modo imagen a pantalla completa */
body.imagen-mode #diapositiva {
    padding: 0;
    height: 100vh;
    width: 100vw;
    max-width: 100%;
}

body.imagen-mode .slide-minimalista,
body.imagen-mode .slide-doble,
body.imagen-mode .slide-circular {
    height: 100vh;
    width: 100vw;
}

/* Ocultar elementos en modo imagen */
body.imagen-mode #contador,
body.imagen-mode #mensaje-espera {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    #diapositiva h1, #diapositiva h2, #diapositiva h3 {
        font-size: 2rem;
    }
    
    #diapositiva p, #diapositiva li {
        font-size: 1.3rem;
    }
    
    #controles {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .estadisticas {
        gap: 20px;
    }
    
    .control-group {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .slide-doble {
        flex-direction: column;
        height: auto;
    }
    
    .slide-doble .imagen-izquierda {
        height: 40vh;
        border-radius: 10px 10px 0 0;
    }
    
    .slide-doble .contenido-derecha {
        border-radius: 0 0 10px 10px;
    }
    
    .slide-circular .circulo {
        width: 200px;
        height: 200px;
    }
    
/* para gestionar retrasos iniciales de video */
.video-placeholder {
    width: 100%;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    text-align: center;
}

.video-placeholder p {
    margin-top: 20px;
    font-size: 1.2rem;
    color: #ffffff;
}

body.video-mode .video-placeholder {
    height: 100vh;
    width: 100vw;
    border-radius: 0;
}

div.outer {
  height: 200px;
  width: 100px;
  border: solid 1px black;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

div.inner {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

div.inner,
img {
  max-width: 100%;
  max-height: 100%;
}

}