/* ===== VARIABLES CSS ===== */


:root {
  --verde-esmeralda: rgba(46, 204, 113, 0.8);
  --azul-cielo-tech: rgba(52, 152, 219, 0.8);
  --teal-profundo: #0f6d75;
  --azul-petroleo: #0b3e44;
  --naranja-energia: #f45d01;
  --amarillo-led: #ffca3a;
  --gris-claro: #f5f5f5;
  --texto-oscuro: #222222;
  --color-claro: #ecf0f1;
  --blanco-puro: #ffffff;

  --font-main: "Segoe UI", Tahoma, Verdana, sans-serif;
  --text-base: 1rem;
}


/* ===== FIN VARIABLES CSS ===== */


/* ===== RESET Y CONFIGURACIÓN GLOBAL ===== */


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

html, body { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--texto-oscuro);
  background-color: var(--color-claro);
  font-size: var(--text-base);
  min-width: 300px !important;
}


/* ===== FIN RESET Y CONFIGURACIÓN GLOBAL ===== */


/* ===== HEADER Y NAVEGACIÓN (MOBILE FIRST) ===== */


header {
  background: linear-gradient(var(--verde-esmeralda), var(--azul-cielo-tech)) center/cover no-repeat;
  color: var(--color-claro);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

nav {
  display: flex;
  align-items: center;
  margin: 0 auto;
  justify-content: space-between;
  max-width: 767px;
}

/* Logo del nav */
.logo {
  display: flex;
  margin-right: 5%;
}

.logo img {
  max-width: 75px;
  height: auto;
  border-radius: 50%;
  padding: 5px;
  transition: opacity 1s ease;
}

/* Navegación móvil */
.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  width: 100%;
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(var(--teal-profundo), var(--azul-petroleo)) center/cover no-repeat;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}

.nav-list.active {
  max-height: 600px;
}

.nav-list li {
  text-align: center;
}

.nav-list a, .nav-list div {
  display: block;
  padding: 1em 1em;
  color: var(--color-claro);
  text-decoration: none;
  transition: background-color 0.5s ease;
}

.nav-list a:hover {
  color: var(--amarillo-led);
  text-decoration: underline;
}

/* Menú hamburguesa */
.menu-toggle {
  display: block;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  z-index: 1001;
  margin-left: 5%;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: whitesmoke;
  transition: all 0.5s ease-in-out;
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

#languageSelector {
  background: transparent;
  border: none;
  color: inherit;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px; /* 16px mínimo en móvil para evitar zoom en iOS */
  font-family: inherit;
  transition: all 0.3s ease;
  outline: none;
  width: 100%;
  text-align: center;
  margin: 5px 0;
}

#languageSelector:hover {
  opacity: 0.8;
}

#languageSelector option {
  background: white;
  color: #333;
  padding: 10px;
  font-size: 1em;
}

/* Ocultar banner molesto de Google */
.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

body {
  top: 0 !important;
}

.skiptranslate {
  display: none !important;
}

/* Ocultar el widget de Google (solo usamos su funcionalidad) */
#google_translate_element {
  display: none !important;
}

/* ===== FIN HEADER Y NAVEGACIÓN (MOBILE FIRST) ===== */


/* ===== CONTENIDO PRINCIPAL (MOBILE FIRST) ===== */


main {
  padding: 1em 1em;
}

section {
  padding: 1em 1em;
  margin-bottom: 2em;
  border-radius: 1em;
  background-color: var(--blanco-puro);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
  /* border-left: 4px solid var(--teal-profundo); */
}

/* Títulos */
h1 {
  color: var(--teal-profundo);
  font-size: 2rem;
  border-bottom: 2px solid var(--verde-esmeralda);
  padding-bottom: 0.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

h2 {
  color: var(--azul-petroleo);
  margin: 1.5em 0 1em 0;
  font-size: 1.5rem;
}

section h3 {
  color: var(--teal-profundo);
  margin: 1em 0 0.5em 0;
  font-size: 1rem;
}

h4 {
  color: var(--azul-petroleo);
}

p {
  color: #555;
  margin: 10px 0;
}

.contenedor-flecha {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2em auto;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: #3498db;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.5rem;
  transition: all .5s ease;
  cursor: pointer;
  margin-left: 1em;
  margin-right: 1em;
}

.summary-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 30px;
  overflow: hidden;
}

.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(var(--verde-esmeralda), var(--azul-cielo-tech)) center/cover no-repeat;
  color: white;
  cursor: pointer;
  user-select: none;
  transition: background .5s ease;
}

.summary-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.summary-toggle {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.summary-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 20px;
}

.summary-content.active {
  max-height: 500px;
  padding: 20px;
}

.summary-content p {
  margin: 0 0 15px 0;
  line-height: 1.6;
  color: #555;
}

.summary-content p:last-child {
  margin-bottom: 0;
}

.summary-content strong {
  color: #2c3e50;
}

/* Ejemplo de contenido de la vista */
.main-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.main-content h2 {
  color: #2c3e50;
  margin-top: 0;
}


/* ===== FIN CONTENIDO PRINCIPAL (MOBILE FIRST) ===== */


/* ===== SECCIÓN INICIO - INTERACCIÓN DEL USUARIO (MOBILE FIRST) =====*/


/* Elementos de contenido */
#inicio .intro-text {
  font-size: 1em;
  text-align: center;
  background: linear-gradient(45deg, var(--verde-esmeralda), var(--azul-cielo-tech));
  padding: 1em;
  border-radius: .5em;
  margin: 1em 0;
}

.intro-text img {
  max-width: 90%;
}

/* Logos en inicio e interacción */
.logo-showcase {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-item {
  max-width: 200px;
  max-height: 200px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid var(--teal-profundo);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.logo-item.show {
  opacity: 1;
  transform: scale(1);
}

.logo-item.final-show {
  opacity: 1;
  transform: scale(1);
  animation: gentle-pulse 2s ease-in-out infinite alternate;
}

@keyframes gentle-pulse {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.05);
  }
}

.logo-title {
  text-align: center;
  color: var(--teal-profundo);
  margin-bottom: 1em;
  font-size: 1.25em;
  font-weight: bold;
}

.intro-points {
  display: grid;
  gap: 20px;
  margin: 30px 0;
}
.point {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

/* Carrusel */
.simple-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 400px;
  border-radius: 1em;
}

.simple-carousel-slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.simple-carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.simple-carousel-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* ESTO ES LO CLAVE */
  object-position: center; /* Centra la imagen al recortarla */
}

.objetivo-item {
  background-color: var(--gris-claro);
  padding: 1em;
  margin: 0.5em 0;
  border-radius: 0.5em;
  border-left: 4px solid var(--naranja-energia);
}


/* ===== FIN SECCIÓN INICIO - INTERACCIÓN DEL USUARIO (MOBILE FIRST) ===== */


/* ===== SECCIÓN TEÓRICO - INTERACCIÓN DEL USUARIO (MOBILE FIRST) ===== */

.microbit-gallery-container {
  max-width: 100%;
  width: 100%;
  margin-top: 2rem;
}

.microbit-img-wrapper {
  position: relative;
  width: 100%;
  border-radius: .25em;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.microbit-img-wrapper:hover {
  transform: translateY(-1em);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.microbit-img-wrapper:active {
  transform: translateY(-1em);
}

.microbit-gallery-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.microbit-img-wrapper.microbit-changing .microbit-gallery-img {
  opacity: 0.7;
}

.microbit-click-hint {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(52, 152, 219, 0.9);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.microbit-img-wrapper.microbit-hide-hint .microbit-click-hint {
  opacity: 0;
}

.microbit-img-info {
  text-align: center;
  margin-top: 15px;
  color: #7f8c8d;
  font-size: 14px;
}

.microbit-img-counter {
  display: inline-flex;
  gap: 8px;
  margin-top: 10px;
}

.microbit-official-link {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background: var(--azul-petroleo);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
}

.microbit-official-link:hover {
  background: var(--azul-cielo-tech);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.microbit-link-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.material-card {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

.material-card strong {
  color: #2c3e50;
  display: block;
  margin-bottom: 5px;
}

.material-card p {
  margin: 0;
}

.tools-list {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-top: 15px;
}

.tools-list ul {
  margin: 10px 0;
  padding-left: 25px;
}

.tools-list li {
  margin: 8px 0;
  color: #555;
}

.highlight {
  background: #e8f4f8;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #3498db;
  margin: 15px 0;
}



/* ===== FIN SECCIÓN TEÓRICO - INTERACCIÓN DEL USUARIO (MOBILE FIRST) ===== */


/*  ===== SECCIÓN AVANCES - INTERACCIÓN DEL USUARIO (MOBILE FIRST) =====*/


       /* Acordeón de meses */
       .avances-month-container {
        background: white;
        border-radius: 8px;
        margin-bottom: 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        overflow: hidden;
    }

    .avances-month-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        background: var(--verde-esmeralda);
        color: white;
        cursor: pointer;
        user-select: none;
        transition: background 0.3s ease;
    }

    .avances-month-header h3 {
        margin: 0;
        font-size: 1.3em;
    }

    .avances-month-toggle {
        font-size: 24px;
        transition: transform 0.3s ease;
    }

    .avances-month-toggle.avances-rotated {
        transform: rotate(180deg);
    }

    .avances-month-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .avances-month-content.avances-active {
        max-height: 5000px;
    }

    /* Grid de días */
    .avances-days-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
        padding: 20px;
    }

    .avances-day-card {
        background: #f8f9fa;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        cursor: pointer;
    }

    .avances-day-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .avances-day-preview {
        width: 100%;
        height: 200px;
        object-fit: cover;
        background: #e0e0e0;
    }

    .avances-day-info {
        padding: 15px;
    }

    .avances-day-date {
        font-weight: 600;
        color: #2c3e50;
        margin: 0 0 8px 0;
        font-size: 1.1em;
    }

    .avances-day-description {
        color: #666;
        font-size: 0.9em;
        margin: 0;
        line-height: 1.4;
    }

    /* Modal */
    .avances-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.9);
        z-index: 1000;
        overflow-y: auto;
    }

    .avances-modal.avances-modal-active {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding: 40px 20px;
    }

    .avances-modal-content {
        background: white;
        border-radius: 12px;
        max-width: 900px;
        width: 100%;
        position: relative;
        animation: avancesSlideDown 0.3s ease;
    }

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

    .avances-modal-close {
        position: absolute;
        top: 15px;
        right: 15px;
        background: #e74c3c;
        color: white;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 24px;
        cursor: pointer;
        z-index: 10;
        transition: background 0.3s ease;
    }

    .avances-modal-close:hover {
        background: #c0392b;
    }

    .avances-modal-header {
        padding: 30px;
        border-bottom: 2px solid #ecf0f1;
    }


    .avances-modal-gallery {
        padding: 30px;
    }

    .avances-modal-gallery img {
      cursor: zoom-in;
      transition: opacity 0.2s ease;
  }
  
  .avances-modal-gallery img:hover {
      opacity: 0.9;
  }

    .avances-gallery-item {
        margin-bottom: 30px;
    }

    .avances-gallery-item:last-child {
        margin-bottom: 0;
    }

    .avances-gallery-item img,
    .avances-gallery-item video {
        max-width: 100%;
        border-radius: 1em;
    }

    .avances-gallery-caption {
        color: #555;
        font-size: 0.95em;
        line-height: 1.5;
        padding: 10px;
        background: #f8f9fa;
        border-radius: 6px;
    }

    .avances-gallery-caption:empty {
      display: none;
  }

/* ===== FIN SECCIÓN AVANCES - INTERACCIÓN DEL USUARIO (MOBILE FIRST) ===== */


/* ===== SECCIÓN PRÁCTICO - INTERACCIÓN DEL USUARIO (MOBILE FIRST) ===== */


/* Placeholder para cuando no hay contenido */
#practico .placeholder {
  text-align: center;
  padding: 2rem;
  color: var(--teal-profundo);
  background: linear-gradient(45deg, var(--gris-claro), white);
  border: 2px dashed var(--teal-profundo);
  border-radius: 0.5rem;
}

.placeholder-media {
  background: linear-gradient(45deg, var(--gris-claro), white);
  border: 2px dashed var(--teal-profundo);
  padding: 2em;
  text-align: center;
  color: var(--teal-profundo);
  margin: 1em 0;
  border-radius: 0.5em;
}

.codigo-section {
  max-width: 1200px;
  margin: 0 auto;
}

.codigo-section h2 {
  color: #2c3e50;
  border-bottom: 3px solid #3498db;
  padding-bottom: 10px;
  margin-bottom: 30px;
  font-size: 2em;
}

.codigo-intro {
  background: white;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  text-align: center;
}

.codigo-intro p {
  color: #555;
  font-size: 1.1em;
  line-height: 1.6;
  margin: 0;
}

.codigo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.codigo-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.codigo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #3498db, #2ecc71);
}

.codigo-card.github::before {
  background: linear-gradient(90deg, #333, #666);
}

.codigo-card.docs::before {
  background: linear-gradient(90deg, #e74c3c, #e67e22);
}

.codigo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.codigo-icon {
  font-size: 3.5em;
  margin-bottom: 15px;
}

.codigo-card h3 {
  color: #2c3e50;
  margin: 0 0 15px 0;
  font-size: 1.5em;
}

.codigo-card p {
  color: #7f8c8d;
  line-height: 1.6;
  margin-bottom: 20px;
}

.codigo-button {
  display: inline-block;
  padding: 12px 30px;
  background: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.codigo-button:hover {
  background: #2980b9;
  transform: scale(1.05);
}

.codigo-button.disabled {
  background: #95a5a6;
  cursor: not-allowed;
  pointer-events: none;
}

.codigo-button.github {
  background: #333;
}

.codigo-button.github:hover {
  background: #000;
}

.codigo-button.docs {
  background: #e74c3c;
}

.codigo-button.docs:hover {
  background: #c0392b;
}

.codigo-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #e8f4f8;
  color: #3498db;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 600;
  margin-top: 10px;
}

.codigo-badge.pronto {
  background: #fef5e7;
  color: #f39c12;
}

/* Tech Stack */
.codigo-tech-section {
  background: white;
  border-radius: 12px;
  padding: 35px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.codigo-tech-section h3 {
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 25px;
  font-size: 1.8em;
  text-align: center;
}

.codigo-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.codigo-tech-item {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.codigo-tech-item:hover {
  background: #e8f4f8;
  transform: translateY(-3px);
}

.codigo-tech-icon {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.codigo-tech-item h4 {
  margin: 0 0 8px 0;
  color: #2c3e50;
  font-size: 1.1em;
}

.codigo-tech-item p {
  margin: 0;
  color: #7f8c8d;
  font-size: 0.9em;
  line-height: 1.4;
}

/* Código de objetivo-item está en SECCIÓN INICIO */


/* ===== FIN SECCIÓN PRÁCTICO - INTERACCIÓN DEL USUARIO (MOBILE FIRST) ===== */


/* ===== SECCIÓN EPÍLOGO - INTERACCIÓN DEL USUARIO (MOBILE FIRST) ===== */


#epilogo .team-container {
  text-align: center;
  margin: 1em 0;
}

.team-photo {
  margin: 0 auto 1.5em auto;
  display: block;
}

.team-photo img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 2px solid var(--verde-esmeralda);
}

.integrantes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1em;
  margin: 0;
  padding: 0 1em;
}

.linkedin-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 10px;
  background-color: #0077B5; /* Color oficial de LinkedIn */
  color: white;
  text-decoration: none;
  border-radius: 100%;
}
.linkedin-btn i {

  font-size: 20px;
}
.linkedin-btn:hover {
  background-color: #005983;
}

.integrante {
  background-color: white;
  padding: .5em;
  border-radius: 0.8em;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--verde-esmeralda);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.integrante em {
  color: var(--azul-petroleo);
  font-size: 0.8em;
}

.integrante:active {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

#epilogo .intro-text {
  font-size: 1em;
  text-align: center;
  background: linear-gradient(45deg, var(--verde-esmeralda), var(--azul-cielo-tech));
  padding: 1em;
  border-radius: .5em;
  margin: 1em 0;
}


/* ===== FIN SECCIÓN EPÍLOGO - INTERACCIÓN DEL USUARIO (MOBILE FIRST) ===== */


/* ===== MEDIA QUERIES PARA TABLET Y DESKTOP ===== */


@media (min-width: 768px) {

  /* Navegación desktop */
  .menu-toggle {
    display: none;
  }

  .nav-list {
    flex-direction: row;
    position: static;
    max-height: none;
    justify-content: center;
    background: none;
    width: auto;
    margin: 0;
  }

  .nav-list li {
    margin-left: 1.5em;
  }

  .nav-list a {
    padding: 1em 1em;
  }

  .logo img {
    max-width: 100px;
  }

  #languageSelector {
    width: auto;
    padding: 8px 12px;
    margin: 0;
    text-align: left;
  }

  #languageSelector:hover {
    transform: scale(1.05);
  }

  #languageSelector option {
    font-size: 1em;
  }

  /* Layout principal desktop */
  main {
    max-width: 1200px;
    margin: 1em auto;
  }

  section {
    padding: 2em 2em;
  }

  .logo-item {
    max-width: 300px;
    max-height: 300px;
  }

  .simple-carousel-wrapper {
    max-width: 600px;
    height: 600px; /* Altura fija en desktop */
    margin: 0 auto;
  }
  
  .arrow-link:hover {
    background: #2980b9;
    transform: translateX(5px) scale(1.5);
  }

  .microbit-gallery-container {
    max-width: 500px;
    margin: 2rem auto;
}

.microbit-click-hint {
    font-size: 14px;
    padding: 10px 20px;
}

.microbit-counter-dot {
    width: 10px;
    height: 10px;
}

.microbit-counter-dot.microbit-active {
    width: 30px;
}
 
.avances-gallery-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 1em;
}

.avances-gallery-item img,
.avances-gallery-item video {
    max-width: 400px;
    border-radius: 1em;
    margin-bottom: 1em;
}

  .team-container {
    margin: 2em 0;
  }
  
  .team-photo {
    margin: 0 auto 2.5em auto;
  }
  
  .team-photo img {
    max-width: 600px;
    border-radius: 2rem;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
    border: 3px solid var(--verde-esmeralda);
  }
  
  .integrantes-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    padding: 0 1em;
  }
  
  .integrante:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  }

}


/* ===== FIN MEDIA QUERIES PARA TABLET Y DESKTOP ===== */