/* ══════════════════════════════════════════
     ROBOTS PAGE — estilos en modo claro
  ══════════════════════════════════════════ */

  /* ── PAGE HERO ── */
  .page-hero {
    min-height: 42vh;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-left: 80px;
    padding-right: 80px;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
  }

  .page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 70% 60% at 50% 50%, rgba(227,27,27,0.05) 0%, transparent 70%),
      repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(0,0,0,0.02) 39px, rgba(0,0,0,0.02) 40px),
      repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(0,0,0,0.02) 39px, rgba(0,0,0,0.02) 40px);
    pointer-events: none;
  }

  /* ── WATERMARK logo en el page-hero — igual que hero-logo-watermark de index ── */
  .page-hero-logo-watermark {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: none;
    user-select: none;
  }

  .page-hero-logo-watermark img {
    width: clamp(140px, 15vw, 200px);
    height: auto;
    object-fit: contain;
    opacity: 0.08;
    filter: grayscale(100%);
    animation: watermarkPulse 8s ease-in-out infinite;
  }

  @keyframes watermarkPulse {
    0%, 100% { opacity: 0.08; }
    50%       { opacity: 0.13; }
  }

  @media (max-width: 900px) {
    .page-hero-logo-watermark { bottom: 8px; }
    .page-hero-logo-watermark img {
      width: clamp(160px, 40vw, 240px);
      opacity: 0.07;
    }
  }

  @media (max-width: 600px) {
    .page-hero-logo-watermark img {
      width: clamp(90px, 30vw, 130px);
      opacity: 0.06;
    }
  }

  .page-hero-content {
    position: relative; z-index: 2;
    max-width: 700px;
  }
  .page-hero .section-label { justify-content: center; }
  .page-hero .section-label::before { display: none; }
  .page-hero .section-title { font-size: clamp(2rem, 4vw, 3.6rem); margin-bottom: 18px; }
  .page-hero .section-sub { margin: 0 auto; font-size: .95rem; color: var(--text-secondary); }

  .page-hero-title-line {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    margin-bottom: 20px; margin-top: -8px;
  }
  .page-hero-title-line::before,
  .page-hero-title-line::after {
    content: '';
    display: block; height: 2px; width: 48px;
    background: var(--red); border-radius: 2px;
    box-shadow: 0 0 8px rgba(227,27,27,0.35);
  }
  .page-hero-title-line span {
    width: 6px; height: 6px;
    background: var(--red); border-radius: 50%;
    box-shadow: 0 0 8px var(--red);
  }

  /* ── ROBOT DETAIL SECTIONS ── */
  .robot-detail-section {
    padding: 90px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
    position: relative;
    overflow: hidden;
  }
  .robot-detail-section:nth-child(odd)  { background: var(--bg-primary); }
  .robot-detail-section:nth-child(even) { background: var(--bg-secondary); }

  .robot-detail-section.reverse { direction: rtl; }
  .robot-detail-section.reverse > * { direction: ltr; }

  .robot-detail-img-wrap {
    display: flex; align-items: center; justify-content: center;
    position: relative;
  }

  .robot-detail-img-frame {
    width: 440px; height: 440px;
    border-radius: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 1;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: border-color .35s, box-shadow .35s;
    overflow: hidden;
  }

  .robot-detail-img-frame:hover {
    border-color: rgba(227,27,27,0.55);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 0 0 3px rgba(227,27,27,0.10), 0 0 22px rgba(227,27,27,0.18);
  }

  .robot-detail-img-frame::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(0,0,0,0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    border-radius: 28px;
  }

  .robot-detail-img-frame img {
    width: 86%; height: 86%;
    object-fit: contain;
    position: relative; z-index: 1;
    animation: float 5s ease-in-out infinite;
    filter: drop-shadow(0 10px 22px rgba(0,0,0,0.10));
    transition: filter .35s;
  }

  .robot-detail-img-frame:hover img {
    filter: drop-shadow(0 14px 32px rgba(0,0,0,0.14));
  }

  /* ── CARRUSEL ── */
  .robot-detail-img-frame.has-carousel {
    display: block;
    padding: 0;
  }

  .robot-carousel {
    display: flex;
    width: 440px; height: 440px;
    overflow: hidden;
    transition: none;
  }

  .robot-carousel-inner {
    display: flex;
    height: 100%;
    transition: transform .7s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
  }

  .robot-carousel-slide {
    width: 440px;
    min-width: 440px;
    height: 440px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
  }

  .robot-carousel-slide img {
    width: 86%; height: 86%;
    object-fit: contain;
    animation: float 5s ease-in-out infinite;
    filter: drop-shadow(0 10px 22px rgba(0,0,0,0.10));
  }

  @media (max-width: 900px) {
    .robot-carousel { width: 300px; height: 300px; }
    .robot-carousel-slide { width: 300px; min-width: 300px; height: 300px; }
  }
  @media (max-width: 400px) {
    .robot-carousel { width: 260px; height: 260px; }
    .robot-carousel-slide { width: 260px; min-width: 260px; height: 260px; }
    .robot-detail-img-frame { width: 260px !important; height: 260px !important; }
  }

  .carousel-dots {
    display: flex; gap: 8px;
    justify-content: center;
    margin-top: 14px;
  }
  .carousel-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--border-medium);
    transition: background .3s, transform .3s;
    cursor: pointer;
    border: none; padding: 0;
  }
  .carousel-dot.active {
    background: var(--red);
    transform: scale(1.25);
  }

  /* ── BRAND TAG ── */
  .section-brand-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 2px;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1.5px solid var(--border-medium);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
    align-self: flex-start;
    margin-top: 4px;
    margin-bottom: 18px;
    line-height: 1;
  }
  .section-brand-tag .tech { color: var(--red); }
  .section-brand-tag .home { color: var(--black); }

  /* Logo imagen dentro del brand tag — un poco más grande que el texto */
  .section-brand-tag .brand-tag-logo {
    height: 2.4em;
    width: auto;
    object-fit: contain;
    display: block;
    opacity: 0.88;
  }

  .robot-detail-content { position: relative; z-index: 2; }

  .robot-detail-desc {
    font-size: 1.0rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 22px;
  }
  .robot-detail-desc strong { color: var(--black); font-weight: 700; }

  .robot-info-tags {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-bottom: 24px;
  }
  .robot-info-tag {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    padding: 9px 16px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: border-color .25s, box-shadow .25s, transform .25s;
  }
  .robot-info-tag:hover {
    border-color: rgba(227,27,27,0.3);
    box-shadow: var(--shadow-red);
    transform: translateY(-2px);
  }
  .robot-info-tag svg { color: var(--red); flex-shrink: 0; }
  .robot-info-tag .tag-label {
    font-size: .8.5rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--red);
    display: block;
    margin-bottom: 2px;
  }
  .robot-info-tag-inner { display: flex; flex-direction: column; }

  .skills-list {
    display: flex; flex-direction: column; gap: 8px;
    margin-bottom: 0;
  }
  .skill-item {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    box-shadow: var(--shadow-sm);
    transition: border-color .25s, box-shadow .25s;
  }
  .skill-item:hover {
    border-color: rgba(227,27,27,0.2);
    box-shadow: var(--shadow-red);
  }
  .skill-icon {
    width: 28px; height: 28px; flex-shrink: 0;
    background: var(--red-light);
    border: 1px solid rgba(227,27,27,0.18);
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    color: var(--red);
  }
  .skill-item-text {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-primary);
  }

  .robots-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-medium) 30%, var(--red) 50%, var(--border-medium) 70%, transparent);
  }

  /* ══════════════════════════════════════════
     COMANDOS — CARRUSEL NUEVO
  ══════════════════════════════════════════ */
  #comandos {
    background: var(--bg-primary);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
  }

  #comandos::before {
    content: '';
    position: absolute;
    bottom: -180px; right: -180px;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(227,27,27,0.04) 0%, transparent 70%);
    pointer-events: none;
  }

  /* ── Cabecera ── */
  .commands-header {
    text-align: center;
    margin-bottom: 56px;
    padding: 0 80px;
  }
  .commands-header .section-label { justify-content: center; }
  .commands-header .section-label::before { display: none; }
  .commands-header .section-title { margin-bottom: 12px; }
  .commands-header p {
    font-size: .9rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.75;
  }

  /* Imagen RFID sobre el carrusel */
  .commands-rfid-img {
    display: block;
    margin: 0 auto 24px;
    height: 102px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(227,27,27,0.15));
    animation: float 5s ease-in-out infinite;
  }

  @media (max-width: 900px) {
    .commands-rfid-img { height: 74px; margin-bottom: 18px; }
  }
  @media (max-width: 560px) {
    .commands-rfid-img { height: 74px; margin-bottom: 14px; }
  }

  /* ── Outer wrapper ── */
  .cmd-outer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 10px 0 28px;
  }

  /* ── Botones de navegación ── */
  .cmd-nav-btn {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1.5px solid var(--border-medium);
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    flex-shrink: 0;
    transition: background .25s, border-color .25s, box-shadow .25s, transform .2s, color .25s;
  }
  .cmd-nav-btn:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    box-shadow: 0 6px 22px rgba(227,27,27,0.30);
    transform: scale(1.08);
  }
  .cmd-nav-btn:active { transform: scale(0.96); }

  /* ── Viewport y track ── */
  .cmd-carousel-viewport {
    overflow: hidden;
    flex: 1;
    max-width: 1130px;
    padding: 28px 0;
  }

  .cmd-carousel-track {
    display: flex;
    gap: 16px;
    transition: transform .52s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
    align-items: center;
  }

  /* ── Tarjeta individual ── */
  .cmd-card {
    flex: 0 0 clamp(170px, 20vw, 220px);
    background: var(--bg-card);
    border: 1.5px solid var(--border-subtle);
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition:
      transform .52s cubic-bezier(0.77, 0, 0.175, 1),
      opacity   .52s cubic-bezier(0.77, 0, 0.175, 1),
      border-color .3s,
      box-shadow .3s;
    position: relative;
    cursor: pointer;
    opacity: 0.38;
    transform: scale(0.82);
  }

  .cmd-card:hover { border-color: rgba(227,27,27,0.35); }

  /* Activa */
  .cmd-card.active {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(227,27,27,0.38);
    box-shadow: 0 12px 38px rgba(0,0,0,0.13), 0 0 0 3px rgba(227,27,27,0.09);
    cursor: default;
  }

  /* Barra roja superior en la activa */
  .cmd-card.active::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red) 0%, #ff6b6b 100%);
    border-radius: 0;
  }

  /* Laterales inmediatas */
  .cmd-card.side1 { opacity: 0.65; transform: scale(0.91); }

  /* Laterales lejanas */
  .cmd-card.side2 { opacity: 0.38; transform: scale(0.82); }

  /* Número flotante */
  .cmd-num {
    position: absolute;
    top: 10px; right: 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: .50rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: rgba(227,27,27,0.35);
    z-index: 3;
  }

  /* Imagen */
  .cmd-img-wrap {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
  }

  .cmd-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 0;
    transition: transform .35s cubic-bezier(0.22,1,.36,1);
  }

  .cmd-card.active .cmd-img-wrap img {
    transform: scale(1.04);
  }

  /* Separador */
  .cmd-sep {
    height: 1px;
    margin: 0 14px;
    background: linear-gradient(90deg, transparent, var(--border-medium) 40%, var(--border-medium) 60%, transparent);
  }

  /* Cuerpo de texto */
  .cmd-body {
    padding: 10px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .cmd-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .cmd-icon {
    width: 26px; height: 26px;
    background: var(--red-light, rgba(227,27,27,0.08));
    border: 1px solid rgba(227,27,27,0.18);
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    color: var(--red);
    flex-shrink: 0;
    transition: background .25s, box-shadow .25s;
  }
  .cmd-card.active .cmd-icon {
    background: rgba(227,27,27,0.13);
    box-shadow: 0 0 10px rgba(227,27,27,0.15);
  }

  .cmd-body h4 {
    font-family: 'Poppins', sans-serif;
    font-size: .80rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
  }

  .cmd-body p {
    font-size: .70rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
    padding-left: 34px;
  }

  /* ── Puntos ── */
  .cmd-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
  }
  .cmd-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--border-medium);
    border: none; padding: 0;
    cursor: pointer;
    transition: background .3s, transform .3s, width .3s;
  }
  .cmd-dot.active {
    background: var(--red);
    transform: scale(1.3);
    width: 20px;
    border-radius: 4px;
  }

  /* ══════════════════════════════════════════
     FOOTER — logo imagen (igual que index.html)
  ══════════════════════════════════════════ */
  footer .footer-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s;
  }

  footer .footer-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    opacity: 0.95;
    transition: opacity 0.3s, transform 0.3s;
  }

  footer .footer-logo-link:hover .footer-logo-img {
    opacity: 1;
    transform: scale(1.06) translateY(-3px);
  }

  @media (max-width: 900px) {
    footer .footer-logo-img { height: 36px; }
    footer .footer-logo-link { align-self: center; }
  }

  @media (max-width: 600px) {
    footer .footer-logo-img {
      height: 50px;
      opacity: 1;
    }
  }

  /* ══════════════════════════════════════════
     RESPONSIVE
  ══════════════════════════════════════════ */

  /* Badges móviles — ocultos por defecto, visibles solo en móvil encima de imagen */
  .robot-mobile-top {
    display: none;
  }

  @media (max-width: 1024px) {
    .commands-header { padding: 0 40px; }
  }
  @media (max-width: 900px) {
    .page-hero { padding: 120px 28px 60px; min-height: auto; }
    .robot-detail-section {
      grid-template-columns: 1fr;
      padding: 70px 28px; gap: 24px;
    }
    .robot-detail-section.reverse { direction: ltr; }
    .robot-detail-img-frame { width: 300px; height: 300px; margin: 0 auto; }
    .robot-detail-img-frame.has-carousel { overflow: hidden; }
    .robot-detail-img-wrap > div { display: flex; flex-direction: column; align-items: center; }

    /* Mostrar bloque móvil encima de la imagen */
    .robot-mobile-top {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      margin-bottom: 12px;
      text-align: center;
    }
    .robot-mobile-top .robot-badge {
      font-size: .72rem;
    }
    .robot-mobile-top .section-brand-tag {
      align-self: center;
      margin: 0;
    }

    /* Ocultar badge y brand-tag originales en móvil */
    .robot-detail-content > .robot-badge,
    .robot-detail-content > .section-brand-tag {
      display: none;
    }

    #comandos { padding: 70px 0 60px; }
    .commands-header { padding: 0 28px; margin-bottom: 36px; }
    .cmd-outer { gap: 10px; }
    .cmd-nav-btn { width: 40px; height: 40px; }
    .cmd-card { flex: 0 0 clamp(150px, 40vw, 210px); }
  }
  @media (max-width: 560px) {
    .robot-info-tags { flex-direction: column; }
    .cmd-card { flex: 0 0 clamp(160px, 65vw, 260px); }
    .cmd-nav-btn { width: 36px; height: 36px; }
  }
  @media (max-width: 400px) {
    .cmd-card { flex: 0 0 74vw; }
  }







  

/* ─── HEADER: LOGOS WRAPPER IZQUIERDA ─── */
.header-left-logos {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* ─── LOGO TECHHOME DESKTOP (extremo derecho) ─── */
.header-techhome-desktop {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  margin-left: auto; /* empuja al extremo derecho si nav no lo llena */
}
.header-techhome-desktop img {
  height: 46px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.header-techhome-desktop:hover img {
  opacity: 1;
  transform: scale(1.07) translateY(-2px);
}

/* ─── LOGO TECHHOME MÓVIL (junto a EduBot, oculto en desktop) ─── */
.header-techhome-mobile {
  display: none;
  align-items: center;
  text-decoration: none;
}
.header-techhome-mobile img {
  height: 38px;
  width: auto;
  object-fit: contain;
  opacity: 0.88;
}

/* ─── LOGO EDUBOT RESPONSIVE ─── */
.logo-edubot-img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 900px) {
  .header-techhome-desktop {
    display: none;
  }
  .header-techhome-mobile {
    display: flex;
  }
  .logo-edubot-img {
    height: 60px;
  }
  .header-techhome-mobile img {
    height: 44px;
  }
  .header-left-logos {
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .logo-edubot-img {
    height: 44px;
  }
  .header-techhome-mobile img {
    height: 44px;
  }
  .header-left-logos {
    gap: 6px;
  }
}

/* ─── NAV CENTRADO EN HEADER (desktop) ─── */
header nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
}

.header-left-logos {
  position: relative;
  z-index: 1;
}

.header-techhome-desktop {
  position: relative;
  z-index: 1;
}

.hamburger {
  position: relative;
  z-index: 1;
}