/* --- NUEVO style.css --- */
/* Importa una fuente moderna de Google */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700;14..32,800&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

/* --- Estilos Globales --- */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
}

.section {
    min-height: 100vh;
    padding: 100px 2rem 4rem;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
.section:nth-child(5) { animation-delay: 0.5s; }

/* --- HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2.5rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    font-size: 1.4rem;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.logo-container .logo-text span {
    color: #f97316;
}

.main-menu {
    display: flex;
    gap: 0.5rem;
    background: rgba(241, 245, 249, 0.6);
    padding: 0.4rem;
    border-radius: 100px;
}

.menu-item {
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    transition: all 0.2s ease;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #0f172a;
}

.menu-item.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2.5px;
    background: #1e293b;
    border-radius: 2px;
    transition: 0.3s;
}

/* --- HOME / COVERFLOW --- */
/* #home {
    padding-top: 80px;
    background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 0 0 3rem 3rem;
    margin-bottom: 2rem;
}

.coverflow-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.info {
    text-align: center;
    padding: 0 1rem;
}

.info h2 {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0f172a, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info p {
    font-size: 1.1rem;
    color: #475569;
    max-width: 600px;
    margin: 0 auto;
}

.coverflow-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    min-height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    padding: 2rem 0;
}

.coverflow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0px;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    padding: 0 20px;
}

.coverflow-item {
    flex: 0 0 200px;
    height: 260px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    margin: 0 -20px;
    transform-style: preserve-3d;
}

.coverflow-item .cover {
    width: 100%;
    height: 100%;
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: #ffffff;
}

.coverflow-item .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.coverflow-item:hover .cover img {
    transform: scale(1.05);
}

.coverflow-item .reflection {
    width: 80%;
    height: 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), transparent);
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.4;
    margin-top: 10px;
    transition: all 0.5s ease;
}

/* Estilos para el item activo en el coverflow 
.coverflow-item.active {
    flex: 0 0 280px;
    height: 340px;
    z-index: 10;
    margin: 0 -10px;
}

.coverflow-item.active .cover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border-color: #f97316;
}

.coverflow-item.active .reflection {
    opacity: 0.7;
    width: 90%;
} */

/* --- NUEVO HERO SECTION --- */
#home {
    padding: 120px 2rem 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
    border-radius: 0 0 3rem 3rem;
    margin-bottom: 2rem;
}

.hero-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

/* Columna Izquierda - Contenido */
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(249, 115, 22, 0.12);
    color: #ea580c;
    padding: 0.4rem 1.2rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    width: fit-content;
    border: 1px solid rgba(249, 115, 22, 0.15);
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.hero-highlight {
    background: linear-gradient(135deg, #f97316, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: #475569;
    max-width: 520px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.hero-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    padding: 0.9rem 2.2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.2);
    border: none;
    cursor: pointer;
}

.hero-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.3);
    background: linear-gradient(135deg, #1e293b, #334155);
}

.hero-cta-primary svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.hero-cta-primary:hover svg {
    transform: translateX(4px);
}

.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 1.8rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    color: #1e293b;
    border: 1.5px solid #e2e8f0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
}

.hero-cta-secondary:hover {
    border-color: #94a3b8;
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Estadísticas */
.hero-stats {
    display: flex;
    gap: 2.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 0.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

/* Columna Derecha - Imagen */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 550px;
    aspect-ratio: 4 / 3;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: #e2e8f0;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Tarjetas flotantes decorativas */
.hero-float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: float 6s ease-in-out infinite;
}

.hero-float-card span {
    font-size: 1.2rem;
}

.float-card-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.float-card-2 {
    bottom: 15%;
    right: -5%;
    animation-delay: 2s;
}

.float-card-3 {
    top: 50%;
    right: -8%;
    transform: translateY(-50%);
    animation-delay: 4s;
}

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

/* --- RESPONSIVE DEL HERO --- */
@media (max-width: 1024px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .hero-content {
        align-items: center;
        order: 2;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image-wrapper {
        order: 1;
    }

    .hero-image-container {
        max-width: 450px;
        aspect-ratio: 4 / 3;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .float-card-1 { left: 0%; }
    .float-card-2 { right: 0%; }
    .float-card-3 { right: 0%; }
}

@media (max-width: 640px) {
    #home {
        padding: 100px 1rem 3rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta-primary,
    .hero-cta-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .hero-image-container {
        max-width: 100%;
        border-radius: 1.5rem;
    }

    .float-card-1,
    .float-card-2,
    .float-card-3 {
        display: none;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.3rem 1rem;
    }
}




/* Botones de navegación */
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #1e293b;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 20;
}

.nav-button:hover {
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-50%) scale(1.05);
}

.nav-button.prev { left: 10px; }
.nav-button.next { right: 10px; }

.dots-container {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dot.active {
    background: #f97316;
    width: 30px;
    border-radius: 5px;
}

.play-pause-button {
    position: absolute;
    bottom: -10px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    color: #1e293b;
    font-size: 1.2rem;
}

.play-pause-button:hover {
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* --- SECCIONES DE CONTENIDO (About) --- */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 2rem;
    padding: 2.5rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
}

.about-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.3rem;
}

.about-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #fb923c);
    border-radius: 2px;
    margin-top: 0.5rem;
}

.about-header p {
    font-size: 1.1rem;
    color: #475569;
    margin-top: 0.5rem;
}

.about-main {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.about-visual {
    position: relative;
}

.showcase-display {
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    background: #1e293b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.showcase-main {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.showcase-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-contenidos {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    width: 90%;
    pointer-events: none;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.showcase-contenidos h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.showcase-contenidos p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.7;
}

.corner-decoration {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    pointer-events: none;
}

.corner-decoration.top-left {
    top: 15px;
    left: 15px;
    border-right: 0;
    border-bottom: 0;
    border-radius: 4px 0 0 0;
}

.corner-decoration.bottom-right {
    bottom: 15px;
    right: 15px;
    border-left: 0;
    border-top: 0;
    border-radius: 0 0 4px 0;
}

.about-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0f172a;
}

.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
    padding: 0;
}

.feature-list li {
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-list li a {
    font-size: 0.95rem;
    color: #334155;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: left;
    gap: 0.5rem;
}

.feature-list li a::before {
    content: '▹';
    color: #f97316;
    font-size: 0.9rem;
}

.feature-list li a:hover {
    color: #f97316;
    transform: translateX(4px);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
    border: none;
    cursor: pointer;
    width: fit-content;
    margin-top: 0.5rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.2);
    background: linear-gradient(135deg, #1e293b, #334155);
}

.cta-button svg {
    width: 20px;
    height: 20px;
}

/* --- FOOTER --- */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 2rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 3rem;
}

.footer-copyright {
    font-size: 0.9rem;
}

.footer-copyright span {
    color: #f97316;
    font-weight: 600;
}

/* --- SCROLL TO TOP --- */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0f172a;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: none;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #f97316;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.3);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .about-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.8rem 1.5rem;
    }

    .main-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        padding: 1rem;
        border-radius: 0 0 1.5rem 1.5rem;
        box-shadow: 0 20px 30px rgba(0, 0, 0, 0.05);
        gap: 0.3rem;
    }

    .main-menu.open {
        display: flex;
    }

    .menu-item {
        padding: 0.8rem 1.2rem;
        border-radius: 0.8rem;
    }

    .menu-toggle {
        display: flex;
    }

    .coverflow-item {
        flex: 0 0 150px;
        height: 200px;
        margin: 0 -15px;
    }

    .coverflow-item.active {
        flex: 0 0 200px;
        height: 260px;
    }

    .info h2 {
        font-size: 2rem;
    }

    .about-content {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }

    .about-header h2 {
        font-size: 2rem;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .nav-button {
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
    }

    .play-pause-button {
        bottom: -5px;
        right: 10px;
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}


/* AREA DELS EXERCICIS --------------------------------------------------- */
.container {
    display: flex;
    flex: 1;
    flex-direction: row;
    gap: 5px;
    max-width: 100%;
    width: 90%;
    margin: auto;
    margin-top: 7%;
    /* margin-bottom: 5%; */
    /* margin-left: 10%;
    margin-right: 10%; */ */
    /* border: solid 1px;
   
    /* Espacio entre container y footer */
    min-height: calc(100vh - 150px);
    /* Ajusta 150px según altura header+footer */
    /* margin-top: 70px; */
  
    /* Nuevos estilos para el borde y sombra */
    border: 1px solid #ddd;
    /* Borde sutil */
  
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Efecto sombra */
  
    border-radius: 20px;
    /* Esquinas redondeadas (opcional) */
   
    padding: 20px;
    /* Espacio interno para que el contenido no toque los bordes */
   
    background-color: #fff;
    /* Fondo blanco para que la sombra se vea mejor */
}

table, td, th{
    border: solid 0.5px black;
    
}

td, th{
    padding: 5px;
}

.tablaGrande{
    width: 100%;
    background-color: rgb(241, 248, 166);
}

.celdaCentrada{
    text-align: center;
}

.celdaDerecha{
    text-align: right;
}

.center {
    text-align: justify;
}

.centrado {
    text-align: center;
}

.justificado {
    text-align: justify;
}

.gris {
    color: cadetblue;
}

form {

    width: 100%;
}

button {
    width: 100%;
    height: 35px;
    margin-top: 5px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    /* padding: 0.8rem 2rem; */
    border-radius: 100px;
    /* font-weight: 600;*/
    font-size: 0.95rem; 
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
    border: none;
    cursor: pointer;
    /* width: fit-content; */
    margin-top: 0.5rem;
}

input {
    width: 100%;
}

.iframe-container {
    flex: 1;
    margin-right: 5px;
}

.instructions-container {
    flex: 1;
    /* padding-left: 10px; */
    margin-top: 0px;
}

.form-container {
    margin-top: 0px;
}

#missatgeResposta {
    font-weight: bold;
    margin-top: 10px;
}

.solucion{
    color: rgb(2, 19, 255);
    font-size: 12px;
}

.escenario {
    background-color: #f0f0f0;
    padding: 12px;
    border-radius: 6px;
    margin: 10px 0;
    border-left: 4px solid #4CAF50;
}

.nota-importante {
    background-color: #E8F5E9;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    border-left: 4px solid #4CAF50;
}

.input-group input,
.input-group select {
    width: 100%;
    /* Mismo ancho para ambos campos */
    padding: 8px;
    box-sizing: border-box;
    /* Incluye padding en el ancho total */
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Estils per a dispositius mòbils */
@media (max-width: 768px) {

    .container {
        display: flex;
        width: 100%;
        margin: auto;
        margin-top: 15%;
        
        flex-direction: column;  /* vertical, apiladas */

        .instructions-container{
            order: 1;
        }

        .iframe-container{
            order: 2;

        }
        iframe{
            width: 100%;
        }

    }
}

/* Estils per a tauletes */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        display: flex;
        width: 100%;
        margin: auto;
        margin-top: 15%;
        
        flex-direction: column;  /* vertical, apiladas */

        .instructions-container{
            order: 1;
        }

        .iframe-container{
            order: 2;
        }

    }
}

#excelFrame{
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* CARGADOR DEL IFRAME DE EXCEL */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}