@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding-bottom: 40px;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

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

  .scroll-indicator {
    justify-content: center;
  }

  .hero-visual {
    min-height: 500px;
  }

  .stats-grid,
  .cards-grid.three,
  .cards-grid.four,
  .contact-section {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-groups,
  .projects-showcase {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .tech-group {
    padding: 22px;
  }

  .tech-group-header {
    align-items: flex-start;
  }

  .tech-group-title {
    align-items: flex-start;
  }

  .tech-row {
    padding: 16px;
  }

  .tech-row-main {
    align-items: flex-start;
  }

  .tech-row-icon {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 650px) {
  main,
  .navbar,
  .footer {
    width: min(100% - 24px, 1180px);
  }

  main {
    padding-top: 90px;
  }

  .hero h1 {
    font-size: 52px;
    letter-spacing: -2px;
  }

  .hero h2 {
    font-size: 22px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .stats-grid,
  .cards-grid.three,
  .cards-grid.four,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .info-card,
  .blog-card,
  .tech-group {
    padding: 22px;
  }

  .contact-section {
    padding: 24px;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo,
  .footer-link {
    justify-self: center;
  }

  .scroll-top {
    right: 18px;
    bottom: 88px;
  }
}


/* RC3 - Ajuste final tecnologías móvil */
@media (max-width: 768px) {
  .tech-filter-bar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
  }

  .tech-filter {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .tech-group-header,
  .tech-group-title {
    min-width: 0;
  }

  .tech-group h3 {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.2;
  }

  .tech-row-main {
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
  }

  .tech-row-icon {
    width: 48px;
    height: 48px;
  }

  .tech-row strong {
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  .tech-group {
    padding: 18px;
  }

  .tech-row {
    padding: 14px;
  }

  .tech-row-main {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }

  .tech-row-icon {
    width: 42px;
    height: 42px;
  }
}


/* =========================================================
   SPRINT FINAL - AJUSTES RESPONSIVE
========================================================= */
@media (max-width: 768px) {
  .tech-control-panel {
    margin-bottom: 18px;
  }

  .tech-search-box {
    max-width: none;
  }

  .tech-filter-bar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .tech-filter {
    flex: 0 0 auto;
  }

  .tech-row-main {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .tech-row strong {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (max-width: 480px) {
  .project-content {
    padding: 24px;
  }

  .project-actions a,
  .project-techs span {
    font-size: 12px;
  }
}


/* =========================================================
   Ajustes SOLO móvil - Tecnologías del portfolio
   - El filtro pasa a select.
   - Cada categoría muestra 4 tecnologías y permite desplegar.
========================================================= */
.tech-filter-select-label,
.tech-filter-select {
    display: none;
}



  .tech-show-more {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 42px;
    margin-top: 12px;
    border: 1px solid rgba(56, 189, 248, .35);
    border-radius: 999px;
    background: rgba(56, 189, 248, .10);
    color: var(--primary);
    font-weight: 900;
    cursor: pointer;
  }
    .tech-show-more[hidden] {
    display: none !important;
  }
@media (max-width: 768px) {
  .tech-filter-bar {
    display: none !important;
  }

  .tech-filter-select-label {
    display: block;
    margin: 2px 0 -8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
  }

  .tech-filter-select {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 0 44px 0 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--card);
    color: var(--text);
    font-weight: 800;
    outline: none;
    box-shadow: var(--shadow);
  }

  .tech-filter-select:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow), 0 0 0 4px rgba(56, 189, 248, .12);
  }

  .tech-list {
    gap: 10px;
  }

  .tech-row {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }

  .tech-row-main {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .tech-row-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .tech-level {
    display: none;
  }



}
