/* ============================================================
   RESPONSIVE SHYRO NETWORK
   Organizado por tamaños de pantalla
   ============================================================ */

/* ========== 1400px - PANTALLAS GRANDES ========== */
@media (max-width: 1400px) {
  .container {
    max-width: 1200px;
  }
}

/* ========== 1200px - LAPTOPS GRANDES ========== */
@media (max-width: 1200px) {
  /* GALERÍA FULL */
  .gallery-grid-full {
    grid-template-columns: repeat(4, 1fr) !important;
    grid-auto-rows: 180px !important;
    gap: 1rem !important;
  }
  .gallery-grid-full .gallery-item-large {
    grid-column: span 2 !important;
    grid-row: span 1 !important;
    min-height: 180px !important;
    height: 180px !important;
  }
  .gallery-grid-full .gallery-item-large img {
    min-height: 180px !important;
    height: 180px !important;
  }
}

/* ========== 1024px - TABLETS ========== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-logo-img {
    max-width: 260px;
  }
  
  .modes-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .mode-card-large {
    min-height: 320px;
  }
  
  .hero-ip-block {
    max-width: 100%;
  }
  
  .platforms-wrapper {
    padding: 2.5rem 2rem;
  }
  
  .platforms-grid {
    gap: 1.5rem;
  }
  
  .platform-item {
    padding: 1.2rem 1.5rem;
  }
  
  .hosting-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 2.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2rem;
  }

  /* GALERÍA HOME */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    gap: 1rem;
  }
  .gallery-item-large {
    grid-column: span 2;
    grid-row: span 1;
  }
}

/* ========== 992px - TABLETS PEQUEÑAS ========== */
@media (max-width: 992px) {
  .gallery-grid-full {
    grid-template-columns: repeat(3, 1fr) !important;
    grid-auto-rows: 160px !important;
    gap: 0.8rem !important;
  }
  .gallery-grid-full .gallery-item-large {
    grid-column: span 2 !important;
    grid-row: span 1 !important;
    min-height: 160px !important;
    height: 160px !important;
  }
  .gallery-grid-full .gallery-item-large img {
    min-height: 160px !important;
    height: 160px !important;
  }
}

/* ========== 768px - MÓVILES GRANDES ========== */
@media (max-width: 768px) {
  /* === NAVBAR === */
  .hamburger {
    display: flex !important;
    z-index: 1001;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 18, 26, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-menu a {
    font-size: 1.3rem;
    color: rgba(184, 234, 255, 0.6);
  }

  .nav-menu a:hover {
    color: #ffffff;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
    padding: 0.8rem 1.5rem;
    margin-top: 0.5rem;
  }

  /* === HERO === */
  .hero-logo-img {
    max-width: 200px;
  }
  
  .hero-sub {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    text-align: center;
  }
  
  .hero-ip-block {
    padding: 1rem;
  }
  
  .ip-block-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  /* === SLIDER ARROWS === */
  .slider-arrow {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
    opacity: 0.5;
    visibility: visible;
  }
  .hero:hover .slider-arrow {
    opacity: 0.5;
  }
  .slider-arrow-left { left: 1rem; }
  .slider-arrow-right { right: 1rem; }

  /* === MODALIDADES === */
  .modes-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .mode-card-large {
    min-height: 320px;
  }

  /* === SECTION === */
  .section {
    padding: 2rem 0;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  /* === GALERÍA HOME === */
  .gallery-section {
    padding: 2rem 0 3rem;
  }
  
  .gallery-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
    gap: 0.7rem;
  }
  
  .gallery-item-large {
    grid-column: span 1;
    grid-row: span 1;
  }
  
  .gallery-sub {
    font-size: 0.95rem;
  }
  
  .gallery-cta-text {
    font-size: 0.95rem;
  }

  /* === GALERÍA FULL === */
  .gallery-grid-full {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-rows: 140px !important;
    gap: 0.7rem !important;
    padding: 1rem !important;
    min-height: 300px !important;
  }
  .gallery-grid-full .gallery-item {
    min-height: 140px !important;
    height: 140px !important;
    grid-column: span 1 !important;
  }
  .gallery-grid-full .gallery-item img {
    min-height: 140px !important;
  }
  .gallery-grid-full .gallery-item-large {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    min-height: 140px !important;
    height: 140px !important;
  }
  .gallery-grid-full .gallery-item-large img {
    min-height: 140px !important;
    height: 140px !important;
  }

  /* === FILTROS === */
  .gallery-filters {
    gap: 0.3rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.3rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
  }
  
  .gallery-filters::-webkit-scrollbar {
    display: none;
  }
  
  .filter-btn {
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
    flex-shrink: 0;
  }

  /* === LIGHTBOX === */
  .lightbox {
    padding: 1rem;
  }
  
  .lightbox-content {
    max-width: 95vw;
    max-height: 90vh;
  }
  
  .lightbox-content img {
    max-height: 55vh;
    border-radius: 8px;
  }
  
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
  }
  
  .lightbox-prev {
    left: 0.5rem;
  }
  
  .lightbox-next {
    right: 0.5rem;
  }
  
  .lightbox-close {
    top: 0.8rem;
    right: 0.8rem;
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
  
  .lightbox-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
  }
  
  .lightbox-details {
    align-items: center;
  }
  
  .lightbox-title {
    font-size: 0.95rem;
  }
  
  .lightbox-desc {
    font-size: 0.75rem;
  }
  
  .lightbox-counter {
    font-size: 0.7rem;
  }

  /* === PLATAFORMAS === */
  .platforms-wrapper {
    padding: 2rem 1.5rem;
  }
  
  .platforms-grid {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .platform-item {
    max-width: 100%;
    width: 100%;
  }
  
  .platform-divider {
    width: 80%;
    height: 1px;
  }
  
  .platforms-header h2 {
    font-size: 1.6rem;
  }

  /* === COMUNIDAD === */
  .community-hero-title {
    font-size: 2.2rem;
  }
  
  .community-hero-sub {
    font-size: 1rem;
  }
  
  .community-hero-bg {
    min-height: 40vh;
  }
  
  .community-hero-icon {
    font-size: 3rem;
  }
  
  .community-hero-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  .community-hero-separator {
    display: none;
  }
  
  .community-hero-links .btn-large {
    width: 100%;
    justify-content: center;
  }

  /* === HOSTING === */
  .hosting-section {
    padding: 3rem 0;
  }
  
  .hosting-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 2rem;
  }
  
  .hosting-title {
    font-size: 2rem;
  }
  
  .hosting-desc {
    font-size: 1rem;
  }
  
  .hosting-server-grid {
    gap: 1rem;
  }
  
  .server-block {
    padding: 1.5rem 1rem;
    min-width: 70px;
  }
  
  .server-block i {
    font-size: 1.8rem;
  }
  
  .server-block span {
    font-size: 0.65rem;
  }
  
  .hosting-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hosting-buttons .btn-primary,
  .hosting-buttons .btn-secondary {
    width: 100%;
    text-align: center;
  }

  /* === CTA === */
  .cta-title {
    font-size: 2.2rem;
  }
  
  .cta-sub {
    font-size: 1rem;
  }
  
  .cta-background {
    min-height: 50vh;
  }

  /* === FOOTER === */
  .footer {
    padding: 2rem 0 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding-bottom: 1.5rem;
  }

  .footer-col-brand {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }

  .footer-col {
    align-items: center;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }

  .footer-ips {
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.8rem;
    gap: 0.8rem;
  }

  .footer-copy {
    font-size: 0.75rem;
  }
  
  .footer-legal-note {
    align-items: center;
    text-align: center;
  }
  
  .footer-copy-note {
    text-align: center;
  }

  /* === MOBILE MENU OVERRIDE === */
  .mobile-menu {
    display: flex !important;
  }
}

/* ========== 480px - MÓVILES PEQUEÑOS ========== */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .btn-large {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }

  .hero-logo-img {
    max-width: 160px;
  }
  
  .cta-title {
    font-size: 1.8rem;
  }
  
  .cta-logo-img {
    width: 60px;
    height: 60px;
  }
  
  /* === SLIDER === */
  .slider-arrow {
    width: 32px;
    height: 32px;
    font-size: 0.7rem;
    opacity: 0.4;
  }
  .slider-arrow-left { left: 0.5rem; }
  .slider-arrow-right { right: 0.5rem; }
  
  /* === GALERÍA HOME === */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 130px;
    gap: 0.5rem;
  }
  
  .gallery-sub {
    font-size: 0.85rem;
  }
  
  /* === GALERÍA FULL === */
  .gallery-grid-full {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-rows: 100px !important;
    gap: 0.5rem !important;
    padding: 0.8rem !important;
    min-height: 200px !important;
  }
  .gallery-grid-full .gallery-item {
    min-height: 100px !important;
    height: 100px !important;
  }
  .gallery-grid-full .gallery-item img {
    min-height: 100px !important;
  }
  .gallery-grid-full .gallery-item-large {
    min-height: 100px !important;
    height: 100px !important;
  }
  .gallery-grid-full .gallery-item-large img {
    min-height: 100px !important;
    height: 100px !important;
  }
  
  /* === PLATAFORMAS === */
  .platforms-wrapper {
    padding: 1.5rem 1rem;
  }
  
  .platforms-header h2 {
    font-size: 1.3rem;
  }
  
  .platforms-sub {
    font-size: 0.85rem;
  }
  
  .platform-item {
    padding: 1rem;
    gap: 1rem;
  }
  
  .platform-item-icon {
    font-size: 1.8rem;
    width: 40px;
  }
  
  .platform-item-title {
    font-size: 0.95rem;
  }
  
  .platform-item-ip {
    font-size: 0.8rem;
  }
  
  /* === COMUNIDAD === */
  .community-hero-title {
    font-size: 1.8rem;
  }
  
  .community-hero-icon {
    font-size: 2.5rem;
  }
  
  .community-hero-store {
    font-size: 0.9rem;
  }
  
  /* === HOSTING === */
  .hosting-section {
    padding: 2rem 0;
  }
  
  .hosting-wrapper {
    padding: 1.5rem 1.5rem;
    gap: 1.5rem;
  }
  
  .hosting-title {
    font-size: 1.5rem;
  }
  
  .hosting-desc {
    font-size: 0.9rem;
  }
  
  .hosting-badge-wrapper {
    font-size: 0.65rem;
    padding: 0.3rem 0.8rem;
  }
  
  .hosting-server-grid {
    gap: 0.6rem;
  }
  
  .server-block {
    padding: 1rem 0.6rem;
    min-width: 50px;
  }
  
  .server-block i {
    font-size: 1.4rem;
  }
  
  .server-block span {
    font-size: 0.55rem;
  }
  
  /* === FOOTER === */
  .footer {
    padding: 1.5rem 0 1.2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-col {
    align-items: center;
    text-align: center;
  }

  .footer-col-links {
    align-items: center;
  }

  .footer-col-links a {
    font-size: 0.85rem;
  }

  .footer-brand-name {
    font-size: 1rem;
  }

  .footer-ips {
    font-size: 0.7rem;
    gap: 0.5rem;
  }

  .footer-ips i {
    font-size: 0.7rem;
  }

  .social-link {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  .footer-col-title {
    font-size: 0.7rem;
  }

  .mobile-menu-links a {
    font-size: 1.2rem;
    padding: 0.6rem 0.5rem;
  }
  
  .mobile-menu-close {
    font-size: 1.3rem;
  }
  
  .mobile-menu {
    padding: 1.5rem;
  }
  
  .mobile-menu-container {
    max-height: 100%;
  }
}

/* ========== 390px - MÓVILES MUY PEQUEÑOS ========== */
@media (max-width: 390px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 110px;
    gap: 0.4rem;
  }
  
  .gallery-grid-full {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-rows: 90px !important;
    gap: 0.4rem !important;
    padding: 0.6rem !important;
    min-height: 180px !important;
  }
  .gallery-grid-full .gallery-item {
    min-height: 90px !important;
    height: 90px !important;
  }
  .gallery-grid-full .gallery-item img {
    min-height: 90px !important;
  }
  .gallery-grid-full .gallery-item-large {
    min-height: 90px !important;
    height: 90px !important;
  }
  .gallery-grid-full .gallery-item-large img {
    min-height: 90px !important;
    height: 90px !important;
  }
}

/* ========== 360px - MÓVILES EXTRA PEQUEÑOS ========== */
@media (max-width: 360px) {
  .container {
    padding: 0 0.8rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 90px;
    gap: 0.3rem;
  }
  
  .gallery-grid-full {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-rows: 80px !important;
    gap: 0.3rem !important;
    padding: 0.5rem !important;
    min-height: 160px !important;
  }
  .gallery-grid-full .gallery-item {
    min-height: 80px !important;
    height: 80px !important;
  }
  .gallery-grid-full .gallery-item img {
    min-height: 80px !important;
  }
  .gallery-grid-full .gallery-item-large {
    min-height: 80px !important;
    height: 80px !important;
  }
  .gallery-grid-full .gallery-item-large img {
    min-height: 80px !important;
    height: 80px !important;
  }
}

/* ========== 769px - ESCRITORIO (ocultar menú móvil) ========== */
@media (min-width: 769px) {
  .hamburger {
    display: none !important;
  }
  
  .mobile-menu {
    display: none !important;
  }
}