/*
================================================
PORTAL ESPACIAL - FORMATO PAINT SIMPLE
================================================
Círculo con video arriba, texto abajo
================================================
*/

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

body {
    font-family: 'Comic Sans', sans-serif;
    background: #0c0c2e;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

#video-background {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    max-width: 80%;
    max-height: 80vh;
    z-index: -1;
    opacity: 1;
    transition: opacity 0.5s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 12, 46, 0.05);
    z-index: 0;
    pointer-events: none;
}

body.modal-open {
    overflow: hidden;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}

.shooting-star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #fff, #4fc3f7);
    border-radius: 50%;
    box-shadow: 0 0 10px #4fc3f7;
    animation: shoot 4s linear infinite;
}

@keyframes shoot {
    0% { transform: translateX(-100px) translateY(100px); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(100vw) translateY(-100px); opacity: 0; }
}

.container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.title-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    animation: fadeInDown 1s ease-out;
    box-shadow: 0 0 30px rgba(79, 195, 247, 0.2);
}

.title {
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(79, 195, 247, 0.8);
    margin-bottom: 10px;
    background: linear-gradient(45deg, #fff, #4fc3f7, #e1bee7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

.subtitle {
    color: #b0bec5;
    font-size: 1.2rem;
    font-style: italic;
}

@keyframes glow {
    from { filter: brightness(1); }
    to { filter: brightness(1.3); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.circular-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding: 80px 40px 40px;
    min-height: 700px;
}

.main-circle {
    position: relative;
    display: grid;
    grid-template-columns: 200px 500px 200px;
    gap: 125px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.left-circles, .right-circles {
    display: flex;
    flex-direction: column;
    gap: 60px;
    justify-content: center;
}

.center-image {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/3;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
}

#centerImg {
    display: block !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

.center-placeholder {
    display: none !important;
}

.section-circle {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.12);
    border: 3px solid rgba(76, 175, 80, 0.45);
    backdrop-filter: blur(15px);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    /* Forma más ovalada como en Paint */
    transform: scale(1, 1);
}

.section-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 40%, rgba(76, 175, 80, 0.08) 100%);
    border-radius: 50%;
    animation: pulse-ring 3s infinite;
}

@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1); opacity: 0.1; }
}

/* Colores de secciones */
.section-1, .section-2, .section-4, .section-5 {
    background: rgba(76, 175, 80, 0.12);
    border-color: rgba(76, 175, 80, 0.45);
}

.section-1 .section-icon, .section-2 .section-icon, 
.section-4 .section-icon, .section-5 .section-icon {
    background: rgba(76, 175, 80, 0.18);
}

.section-3 {
    background: rgba(33, 150, 243, 0.12);
    border-color: rgba(33, 150, 243, 0.45);
    width: 100px;
    height: 100px;
    position: absolute;
    top: -170px;
    left: 0;
    z-index: 15;
}

.section-circle:hover {
    transform: scale(1.1, 1.045);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.section-circle.active {
    transform: scale(1.15, 1.0925);
    z-index: 10;
}

.section-1.active, .section-2.active, .section-4.active, .section-5.active {
    box-shadow: 0 25px 50px rgba(76, 175, 80, 0.5);
    border-color: rgba(76, 175, 80, 0.8);
}

.section-3.active {
    box-shadow: 0 25px 50px rgba(33, 150, 243, 0.5);
    border-color: rgba(33, 150, 243, 0.8);
}

/* ESTILO PAINT: Video arriba, texto abajo */
.section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 15px;
    position: relative;
    z-index: 2;
}

/* Círculo del video/imagen - Forma ovalada como Paint */
.section-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(76, 175, 80, 0.18);
    flex-shrink: 0;
    position: relative;
}

/* Video dentro del círculo pequeño */
.section-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    mix-blend-mode: screen;
    opacity: 0.95;
}

/* Imagen dentro del círculo pequeño (mismo estilo que video) */
.section-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    mix-blend-mode: screen;
    opacity: 0.95;
}

/* Texto abajo del círculo */
.section-content h3 {
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    line-height: 1.2;
    margin: 0;
    margin-top: 5px;
}

.section-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: 4;
}

/* Settings especial */
.section-3 .section-icon {
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
}

.section-3 .section-content h3 {
    font-size: 0.7rem;
}

.navigation-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 20;
    padding: 0 20px;
}

.nav-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.nav-btn:hover {
    background: rgba(79, 195, 247, 0.3);
    border-color: rgba(79, 195, 247, 0.6);
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(79, 195, 247, 0.4);
}

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

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

.indicator:hover {
    background: rgba(79, 195, 247, 0.5);
    border-color: rgba(79, 195, 247, 0.8);
    transform: scale(1.2);
}

.indicator.active {
    background: rgba(79, 195, 247, 0.8);
    border-color: rgba(79, 195, 247, 1);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(79, 195, 247, 0.6);
}

/* Contenedores inferiores */
.bottom-left-container {
    position: absolute;
    bottom: -150px;
    left: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 15;
}

.bottom-left-container img {
    width: 180px !important;
    height: 180px !important;
    object-fit: cover;
    border-radius: 50%;
}

.bottom-right-container {
    position: absolute;
    bottom: -150px;
    right: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 15;
}

.circle-image-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
}

.circle-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botones */
.who-we-are-btn, .project-btn {
    padding: 15px 30px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.who-we-are-btn {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.3), rgba(79, 195, 247, 0.2));
    border: 2px solid rgba(79, 195, 247, 0.5);
}

.who-we-are-btn:hover {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.5), rgba(79, 195, 247, 0.3));
    border-color: rgba(79, 195, 247, 0.8);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(79, 195, 247, 0.4);
}

.project-btn {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.3), rgba(156, 39, 176, 0.2));
    border: 2px solid rgba(156, 39, 176, 0.5);
}

.project-btn:hover {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.5), rgba(156, 39, 176, 0.3));
    border-color: rgba(156, 39, 176, 0.8);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(156, 39, 176, 0.4);
}

.who-icon, .project-icon {
    font-size: 1.5rem;
}

.who-text {
    color: #4fc3f7;
    font-size: 1.1rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(79, 195, 247, 0.8);
}

.project-text {
    color: #ce93d8;
    font-size: 1.1rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(156, 39, 176, 0.8);
}

/* ================================================
   MODALES - ESTILOS COMPLETOS
   ================================================ */

.section-modal, .config-modal, .warning-modal, .inclusion-modal,
.about-modal, .project-modal, .vocab-modal, .braille-cards-modal,
.animated-story-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.section-modal.show, .config-modal.show, .warning-modal.show,
.inclusion-modal.show, .about-modal.show, .project-modal.show,
.vocab-modal.show, .braille-cards-modal.show, .animated-story-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    z-index: 1001;
    background: rgba(20, 20, 50, 0.95);
    border: 2px solid rgba(255, 152, 0, 0.5);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s ease-out;
}

.section-modal-content {
    max-width: 600px;
}

.inclusion-modal-content,
.vocab-modal-content,
.braille-cards-modal-content {
    max-width: 600px;
    border-color: rgba(156, 39, 176, 0.5);
}

.about-modal-content,
.animated-story-modal-content {
    max-width: 600px;
    border-color: rgba(79, 195, 247, 0.5);
}

.project-modal-content {
    max-width: 700px;
    border-color: rgba(156, 39, 176, 0.5);
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: rgba(255, 152, 0, 0.2);
    padding: 20px 25px;
    border-radius: 18px 18px 0 0;
    border-bottom: 1px solid rgba(255, 152, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inclusion-modal .modal-header,
.vocab-modal .modal-header,
.braille-cards-modal .modal-header,
.project-modal .modal-header {
    background: rgba(156, 39, 176, 0.2);
    border-bottom: 1px solid rgba(156, 39, 176, 0.3);
}

.about-modal .modal-header,
.animated-story-modal .modal-header {
    background: rgba(79, 195, 247, 0.2);
    border-bottom: 1px solid rgba(79, 195, 247, 0.3);
}

.modal-header h3,
.modal-header h2 {
    color: #ff9800;
    font-size: 1.4rem;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 152, 0, 0.6);
}

.inclusion-modal .modal-header h3,
.vocab-modal .modal-header h3,
.braille-cards-modal .modal-header h3,
.project-modal .modal-header h3 {
    color: #ce93d8;
    text-shadow: 0 0 10px rgba(156, 39, 176, 0.6);
}

.about-modal .modal-header h3,
.animated-story-modal .modal-header h3 {
    color: #4fc3f7;
    text-shadow: 0 0 10px rgba(79, 195, 247, 0.6);
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
}

.modal-body p {
    color: white;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

.modal-body {
    padding: 40px 35px;
    color: #e0e0e0;
    line-height: 1.8;
    background: linear-gradient(180deg, rgba(30, 35, 55, 0.95) 0%, rgba(25, 30, 50, 0.95) 100%);
    max-height: calc(85vh - 100px);
    overflow-y: auto;
}

.modal-body h3 {
    color: #4fc3f7;
    font-size: 1.5rem;
    margin-top: 25px;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(79, 195, 247, 0.4);
}

.modal-body p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #d0d0d0;
}

.modal-body ul {
    padding-left: 25px;
    margin-bottom: 15px;
}

.modal-body li {
    margin-bottom: 10px;
    list-style-type: disc;
}

.modal-body a {
    color: #4fc3f7;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.modal-body a:hover {
    color: #81d4fa;
    text-shadow: 0 0 10px rgba(79, 195, 247, 0.8);
}

.close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-weight: 300;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Estilos específicos del modal de Story */
.story-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

.story-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

.story-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 30px;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.2), rgba(79, 195, 247, 0.1));
    border: 2px solid rgba(79, 195, 247, 0.4);
    border-radius: 15px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 180px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.story-btn:hover {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.3), rgba(79, 195, 247, 0.2));
    border-color: rgba(79, 195, 247, 0.7);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(79, 195, 247, 0.4);
}

.story-btn .btn-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(79, 195, 247, 0.6));
    animation: float-icon 3s ease-in-out infinite;
}

.story-btn .btn-text {
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    color: #4fc3f7;
    text-shadow: 0 0 10px rgba(79, 195, 247, 0.8);
    line-height: 1.3;
}

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

.read-story-btn {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.2), rgba(79, 195, 247, 0.1));
    border-color: rgba(79, 195, 247, 0.4);
}

.read-story-btn:hover {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.3), rgba(79, 195, 247, 0.2));
    border-color: rgba(79, 195, 247, 0.7);
}

.animated-story-btn {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.2), rgba(79, 195, 247, 0.1));
    border-color: rgba(79, 195, 247, 0.4);
}

.animated-story-btn:hover {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.3), rgba(79, 195, 247, 0.2));
    border-color: rgba(79, 195, 247, 0.7);
}

/* Galería de aplicaciones */
.applications-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
}

.application-item {
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(156, 39, 176, 0.3);
    background: rgba(0, 0, 0, 0.3);
}

.application-item:hover {
    transform: translateY(-5px);
    border-color: rgba(156, 39, 176, 0.6);
    box-shadow: 0 10px 30px rgba(156, 39, 176, 0.3);
}

.application-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.application-caption {
    padding: 15px;
    text-align: center;
    color: #ce93d8;
    background: rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

/* Estilos para modales de Inclusive Logbook */
.inclusion-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.inclusion-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), rgba(156, 39, 176, 0.1));
    border: 2px solid rgba(156, 39, 176, 0.4);
    border-radius: 15px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    min-width: 150px;
    text-decoration: none;
}

.inclusion-btn:hover {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.3), rgba(156, 39, 176, 0.2));
    border-color: rgba(156, 39, 176, 0.6);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(156, 39, 176, 0.3);
}

.inclusion-btn .icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(156, 39, 176, 0.5));
}

.inclusion-btn .text {
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    color: #ce93d8;
    text-shadow: 0 0 10px rgba(156, 39, 176, 0.8);
}

/* Estilos para modales de Braille Language */
.vocab-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.vocab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), rgba(156, 39, 176, 0.1));
    border: 2px solid rgba(156, 39, 176, 0.4);
    border-radius: 15px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    min-width: 200px;
}

.vocab-btn:hover {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.3), rgba(156, 39, 176, 0.2));
    border-color: rgba(156, 39, 176, 0.6);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(156, 39, 176, 0.3);
}

.vocab-btn .icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(156, 39, 176, 0.5));
}

.vocab-btn .text {
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    color: #ce93d8;
    text-shadow: 0 0 10px rgba(156, 39, 176, 0.8);
}

/* Estilos para Braille Cards modal */
.braille-cards-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.braille-card-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), rgba(156, 39, 176, 0.1));
    border: 2px solid rgba(156, 39, 176, 0.4);
    border-radius: 15px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    min-width: 200px;
}

.braille-card-btn:hover {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.3), rgba(156, 39, 176, 0.2));
    border-color: rgba(156, 39, 176, 0.6);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(156, 39, 176, 0.3);
}

.braille-card-btn .icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(156, 39, 176, 0.5));
}

.braille-card-btn .text {
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    color: #ce93d8;
    text-shadow: 0 0 10px rgba(156, 39, 176, 0.8);
}

/* Estilos para Animated Story modal */
.story-version-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.version-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px 35px;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.2), rgba(79, 195, 247, 0.1));
    border: 2px solid rgba(79, 195, 247, 0.4);
    border-radius: 15px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 200px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.version-btn:hover {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.3), rgba(79, 195, 247, 0.2));
    border-color: rgba(79, 195, 247, 0.7);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(79, 195, 247, 0.4);
}

.version-btn .btn-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(79, 195, 247, 0.6));
}

.version-btn .btn-text {
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    color: #4fc3f7;
    text-shadow: 0 0 10px rgba(79, 195, 247, 0.8);
}

/* Estilos del modal de configuración */
.config-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.config-option {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.config-option label {
    color: #e0e0e0;
    font-size: 1rem;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-switch.active {
    background: rgba(76, 175, 80, 0.6);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-switch.active::after {
    transform: translateX(30px);
}

/* Estilos para modal de configuración de idioma */
.language-selector {
    padding: 20px 0;
}

.language-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.lang-btn {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    padding: 30px 25px;
    border-radius: 20px;
    border: 3px solid rgba(79, 195, 247, 0.4);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(33, 100, 180, 0.3), rgba(20, 60, 120, 0.4));
    color: #4fc3f7;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lang-btn:hover::before {
    opacity: 1;
}

.lang-btn:hover {
    background: linear-gradient(135deg, rgba(33, 100, 180, 0.5), rgba(20, 60, 120, 0.6));
    border-color: rgba(79, 195, 247, 0.7);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(33, 150, 243, 0.3);
}

.lang-btn.active {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.6), rgba(20, 80, 150, 0.7));
    border-color: rgba(79, 195, 247, 0.9);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

.lang-btn .flag {
    font-size: 3rem;
}

.lang-btn .lang-text {
    font-size: 1.1rem;
    font-weight: bold;
}

/* Estilos para modal de advertencia de idioma */
.warning-modal .modal-content {
    max-width: 500px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    background: linear-gradient(135deg, rgba(40, 40, 60, 0.6), rgba(30, 30, 50, 0.6));
}

.btn-cancel, .btn-confirm {
    padding: 12px 30px;
    border-radius: 15px;
    border: 2px solid;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.3), rgba(200, 50, 40, 0.4));
    border-color: rgba(244, 67, 54, 0.5);
    color: #ef5350;
}

.btn-cancel:hover {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.5), rgba(200, 50, 40, 0.6));
    border-color: rgba(244, 67, 54, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 67, 54, 0.3);
}

.btn-confirm {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(50, 130, 60, 0.4));
    border-color: rgba(76, 175, 80, 0.5);
    color: #81c784;
}

.btn-confirm:hover {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.5), rgba(50, 130, 60, 0.6));
    border-color: rgba(76, 175, 80, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

/* Modal de visor de imágenes */
.image-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-viewer-modal.show {
    opacity: 1;
    visibility: visible;
}

.image-viewer-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.image-viewer-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.image-viewer-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.image-viewer-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

/* Story buttons específicos */
.story-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.story-buttons .story-btn {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

/* Modal action button genérico */
.modal-action-btn {
    display: inline-block;
    padding: 15px 40px;
    margin-top: 20px;
    border-radius: 15px;
    border: 2px solid rgba(79, 195, 247, 0.5);
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.3), rgba(33, 150, 243, 0.2));
    color: #4fc3f7;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modal-action-btn:hover {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.5), rgba(33, 150, 243, 0.3));
    border-color: rgba(79, 195, 247, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(33, 150, 243, 0.4);
}

/* Estilos para scrollbar personalizado en modales */
.modal-content::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.applications-gallery::-webkit-scrollbar {
    width: 10px;
}

.modal-content::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track,
.applications-gallery::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb,
.applications-gallery::-webkit-scrollbar-thumb {
    background: rgba(255, 152, 0, 0.6);
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

.modal-content::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover,
.applications-gallery::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 152, 0, 0.8);
}

/* Responsive */
@media (max-width: 1200px) {
    .main-circle { grid-template-columns: 180px 450px 180px; gap: 50px; }
    .section-circle { width: 180px; height: 180px; }
    .section-icon { width: 100px; height: 100px; }
    .section-video { width: 100px; height: 100px; }
}

@media (max-width: 1024px) {
    .main-circle { grid-template-columns: 150px 400px 150px; gap: 40px; }
    .section-circle { width: 150px; height: 150px; }
    .section-icon { width: 80px; height: 80px; }
    .section-video { width: 80px; height: 80px; }
    
    .modal-content {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .main-circle { grid-template-columns: 140px 1fr 140px; gap: 20px; }
    .section-circle { width: 140px; height: 140px; }
    .section-icon { width: 70px; height: 70px; }
    .section-video { width: 70px; height: 70px; }
    .section-3 { position: relative !important; top: auto !important; left: auto !important; width: 140px !important; height: 140px !important; }
    
    .modal-content {
        max-width: 95%;
        max-height: 90vh;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .story-options {
        flex-direction: column;
    }
    
    .story-btn {
        min-width: 100%;
    }
    
    .applications-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section-circle { width: 110px; height: 110px; }
    .section-icon { width: 60px; height: 60px; }
    .section-video { width: 60px; height: 60px; }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
}