/* ============================================================
   RESPONSIVE GLOBAL.CSS
   Archivo unificado para todas las páginas (seguidores, likes, viewers, etc.)
   ============================================================ */

/* ==================== */
/* ESTILOS GENERALES PARA TABS */
/* ==================== */
.tab-section {
  display: none;
  padding: 10px 0;
}

.tab-section.active {
  display: block;
}

/* ==================== */
/* ESTILOS GLOBALES PARA TABS DE SERVICIO */
/* ==================== */
.service-tabs-container {
  width: 100%;
  border-bottom: 1px solid #e0e0e0;
  background-color: #f9fafb;
  padding: 5px 0;
}

.service-tabs {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  padding: 0 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.service-tabs::-webkit-scrollbar {
  display: none;
}

.service-tab {
  flex: 0 0 auto;
  padding: 12px 18px;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease-in-out;
  text-align: center;
}

.service-tab:hover {
  background-color: #f9fafb;
  color: #111827;
}

.service-tab.active {
 
  font-weight: 600;
 
}

/* ==================== */
/* ESTILOS PARA TABLET */
/* ==================== */
@media (max-width: 1024px) and (min-width: 601px) {
  body {
    padding: 70px 20px 20px;
  }

  .main {
    flex-direction: row;
    gap: 12px;
  }

  .col-left {
    width: 55%;
  }

  .col-right {
    width: 43%;
    padding: 15px;
    box-sizing: border-box;
  }

  .card {
    padding: 12px;
    border-radius: 8px;
  }

  h3 {
    font-size: 1.1rem;
  }

  .range-labels {
    padding: 0 40px;
  }

  .output span {
    font-size: 1.6rem;
  }

  .buttons button {
    font-size: 0.95rem;
    padding: 10px;
  }

  /* Tabs horizontales */
  .tabs, .tabs2 {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
    margin-bottom: 10px;
    border-bottom: 2px solid #eee;
    height: auto;
    white-space: nowrap;
  }

  .tabs .tab,
  .tabs2 .tab {
    padding: 8px 15px;
    font-size: 0.8rem;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    flex: 0 0 auto;
  }

  .tabs .tab.active,
  .tabs2 .tab.active {
    border-bottom: 3px solid;
    font-weight: bold;
  }

  .instructions .tab-content {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .instructions ol,
  .instructions ul {
    padding-left: 20px;
    margin: 10px 0;
  }

  .instructions li {
    margin-bottom: 8px;
  }
}

/* ==================== */
/* ESTILOS PARA MÓVIL */
/* ==================== */
@media (max-width: 600px) {
  body {
    padding: 70px 10px 20px;
  }

  .header {
    padding: 10px;
  }

  .header h2 {
    font-size: 1.3rem;
  }

  .header p {
    font-size: 0.9rem;
  }

  .main {
    flex-direction: column;
    padding: 10px;
    gap: 15px;
  }

  .col-left,
  .col-right {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }

  .col-right {
    margin-top: 15px;
  }

  .col-right .card {
    padding: 15px;
    margin: 0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .card {
    padding: 12px;
  }

  h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .col-right h3 {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 15px;
  }

  .col-right .resumen {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .col-right .line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
  }

  .col-right .line.total {
    font-weight: bold;
    font-size: 1rem;
    margin-top: 10px;
    border-top: 1px solid #ddd;
    padding-top: 12px;
  }

  .col-right .buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
  }

  .col-right .buttons button {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border-radius: 6px;
  }

  .range-group {
    gap: 5px;
  }

  .btn-round {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .range-labels {
    padding: 0 30px;
    font-size: 0.8rem;
  }

  .output span {
    font-size: 1.5rem;
  }

  .switch {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .input-group input {
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
  }

  /* Tabs horizontales scrollables */
  .tabs, .tabs2 {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    white-space: nowrap;
  }

  .tab {
    padding: 8px 12px;
    font-size: 0.8rem;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    flex: 0 0 auto;
    min-width: 100px;
    text-align: center;
  }

  .tab.active {
    border-bottom: 3px solid;
    
    font-weight: bold;
  }

  .tab-content {
    font-size: 0.85rem;
    margin-top: 8px;
    line-height: 1.5;
    padding: 0 5px;
  }

  .instructions ol,
  .instructions ul {
    padding-left: 20px;
    margin: 10px 0;
  }

  .instructions li {
    margin-bottom: 8px;
  }

  .service-tabs-container {
    padding: 5px 10px;
  }

  .service-tab {
    padding: 8px 12px;
    font-size: 0.8rem;
    margin-right: 5px;
  }
}

/* ============================= */
/* MÓVILES PEQUEÑOS (≤400px) */
/* ============================= */
@media (max-width: 400px) {
  .range-labels {
    padding: 0 20px;
  }

  .output span {
    font-size: 1.3rem;
  }

  .col-right .card {
    padding: 12px;
  }

  .col-right h3 {
    font-size: 1.1rem;
  }

  .col-right .line {
    font-size: 0.85rem;
  }

  .col-right .buttons button {
    padding: 10px;
    font-size: 0.9rem;
  }

  .tabs .tab,
  .tabs2 .tab {
    padding: 6px 10px;
    font-size: 0.75rem;
    min-width: 80px;
  }

  .tab-content {
    font-size: 0.8rem;
  }

  .service-tab {
    padding: 6px 8px;
    font-size: 0.7rem;
  }
}

/* ============================= */
/* OPCIONAL: PERSONALIZACIÓN POR RED */
/* ============================= */
/* Puedes usar un atributo en el body, ejemplo:
   <body data-network="instagram"> */

body[data-network="instagram"] .header i {
  color: #E1306C;
}

body[data-network="youtube"] .header i {
  color: #FF0000;
}

body[data-network="tiktok"] .header i {
  color: #000000;
}


/* ==================== */
/* ESTILOS PARA TABLET */
/* ==================== */
@media (max-width: 1024px) and (min-width: 601px) {
  /* ... (tus estilos existentes para tablet) ... */

  /* --- Responsive Select Dropdown --- */
  select.region {
    padding: 10px 30px 10px 12px; /* Aumenta ligeramente el padding para mejor tacto */
    font-size: 0.95rem;           /* Coincide con el tamaño de fuente de los botones */
  }
}

/* ==================== */
/* ESTILOS PARA MÓVIL */
/* ==================== */
@media (max-width: 600px) {
  /* ... (tus estilos existentes para móvil) ... */

  /* --- Responsive Select Dropdown --- */
  select.region {
    padding: 12px 30px 12px 12px; /* Padding generoso para facilidad de uso en móviles */
    font-size: 0.9rem;          /* Coincide con otros campos de entrada */
  }
}

/* ============================= */
/* MÓVILES PEQUEÑOS (≤400px) */
/* ============================= */
@media (max-width: 400px) {
  /* ... (tus estilos existentes para móviles pequeños) ... */

  /* --- Responsive Select Dropdown --- */
  select.region {
    padding: 10px 28px 10px 12px; /* Reduce el padding para ahorrar espacio */
    font-size: 0.85rem;         /* Coincide con el tamaño de fuente del resumen */
    background-size: 16px;      /* Hace la flecha un poco más pequeña */
  }
}