/*
Theme Name: GeneratePress Child
Theme URI: https://example.com
Description: Tema hijo para Fichas Técnicas SUBTEL
Author: German Campos
Template: generatepress
Version: 1.0.0
Text Domain: subtel
*/


/* ===============================
   ESTILO GENERAL HOME SUBTEL
   =============================== */

:root {
  --azul-subtel: #0F3A5F; 
 /* --rojo-PRUEBAS: #FF0000; /* creado para diferencias ambiente de prueba */
  --gris-claro: #F4F6F8;
  --gris-medio: #DADADA;
  --texto-oscuro: #2E2E2E;
  --blanco: #ffffff;
}

/* Tipografía base */
body {
  font-family: "Inter", "Roboto", "Source Sans Pro", Arial, Helvetica, sans-serif;
  color: var(--texto-oscuro);
  line-height: 1.6;
}

/* ===============================
   Contenedor general de la Home
Esto alinea todo con GeneratePress:
   =============================== */
.subtel-home-hero,
.subtel-home-contexto,
.subtel-home-problema,
.subtel-home-servicios,
.subtel-home-publico,
.subtel-home-buscador,
.subtel-home-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}



/* ===============================
    HERO (encabezado principal)
   =============================== */
.subtel-home-hero {
  background: var(--azul-subtel);
/*  background: var(--rojo-PRUEBAS); */
  color: var(--blanco); 
  text-align: center;
  padding: 4rem 2rem;
}

.subtel-home-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.subtel-home-hero p {
  max-width: 800px;
  margin: 0.5rem auto;
  font-size: 1.05rem;
}
/* =====================================
   HERO — FORZAR CONTRASTE DE TEXTO
   ===================================== */

.subtel-home-hero h1,
.subtel-home-hero p {
  color: #ffffff !important;
}



/* ===============================
    Secciones de contenido estándar
   =============================== */
.subtel-home-contexto,
.subtel-home-servicios, 
.subtel-home-buscador
{
  background: var(--gris-claro);
  border-top: 1px solid var(--gris-medio);
}

.subtel-home-publico,
.subtel-home-problema
{
  background: var(--blanco);
}

.subtel-home-contexto h2,
.subtel-home-problema h2,
.subtel-home-servicios h2,
.subtel-home-publico h2,
.subtel-home-buscador h2 {
  color: var(--azul-subtel);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}


/* ===============================
   Listas (Espaciados)(muy importante para claridad regulatoria)
   =============================== */
.subtel-home-servicios ul,
.subtel-home-problema ul,
.subtel-home-publico ul {
  padding-left: 1.2rem;
}

.subtel-home-servicios li,
.subtel-home-problema li,
.subtel-home-publico li {
  margin-bottom: 0.6rem;
}


/* ===============================
  Sección buscador (conexión visual del botón)
   =============================== */
.subtel-home-buscador a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: var(--azul-subtel);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.subtel-home-buscador a:hover {
  background: #092b47;
}


/* ===============================
    Footer institucional
   =============================== */

Footer institucional
.subtel-home-footer {
  background: var(--gris-medio);
  text-align: center;
  font-size: 0.9rem;
}


/* CSS – Estilo regulatorio del buscador. Contenedor general
*/
    .buscador-equipos {
        max-width: 1200px;
        margin: 0 auto;
        padding: 2rem 1rem;
        font-family: Arial, Helvetica, sans-serif;
        color: #000;
    }

/* Formulario (sobrio, institucional)
*/
    .buscador-form {
        border: 1px solid #ccc;
        padding: 1.5rem;
        margin-bottom: 2rem;
        background: #f9f9f9;
    }
    
    .buscador-form h1 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .buscador-form label {
        display: block;
        font-weight: bold;
        margin-top: 0.8rem;
    }
    
    .buscador-form select,
    .buscador-form input[type="text"] {
        width: 100%;
        max-width: 400px;
        padding: 6px;
        margin-top: 4px;
    }
    
    .buscador-form button {
        margin-top: 1rem;
        padding: 6px 14px;
        font-size: 0.95rem;
        cursor: pointer;
    }


    /*==========================================
        TABLA DE RESULTADOS — SUBTEL
      ========================================== */
    
    .tabla-resultados {
      width: 100%;
      border-collapse: collapse;
      margin-top: 1.5rem;
      font-size: 0.9rem;
    }
    
    .tabla-resultados thead th {
      background: #F4F6F8;
      border: 1px solid #DADADA;
      padding: 10px;
      text-align: left;
      color: #0F3A5F;
    }
    
    .tabla-resultados tbody td {
      border: 1px solid #DADADA;
      padding: 10px;
    }
    
    .tabla-resultados tbody tr:nth-child(even) {
      background: #fafafa;
    }
    
    .tabla-resultados a {
      color: #0F3A5F;
      text-decoration: underline;
    }

    
    

/* Resaltado del término buscado (<mark>) */
    mark {
        background: #ffeb3b;
        padding: 0 2px;
    }
    
    /* Paginación (simple y clara) */
    .paginacion {
        margin-top: 1.5rem;
    }
    
    .paginacion a,
    .paginacion span {
        margin-right: 6px;
        padding: 4px 8px;
        border: 1px solid #000;
        text-decoration: none;
    }
    
    .paginacion .current {
        background: #000;
        color: #fff;
    }
    
/* =========================================
   ESTILO GLOBAL SUBTEL
========================================= */

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #2E2E2E;
    background-color: #F4F6F8;
}

/* Encabezados */
h1, h2, h3 {
    color: #0F3A5F;
    font-weight: 600;
}

/* Contenedor general */
.subtel-home {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    background: #ffffff;
}

/* Texto */
.subtel-home p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ===============================
   SISTEMA DE DISEÑO (mínimo viable)
  Home, Buscador y Ficha Técnica deben vivir dentro de este contenedor
   =============================== */
/* 1. Contenedores estándar. Usaremos una clase base común: */
.subtel-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* 2. Títulos institucionales unificados */
.subtel-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #0F3A5F;
  margin-bottom: 1rem;
}

.subtel-subtitle {
  font-size: 1.1rem;
  color: #2E2E2E;
  margin-bottom: 2rem;
}

/* 3. Cajas reguladoras (Home / Ficha / Buscador) */
.subtel-card {
  background: #ffffff;
  border: 1px solid #DADADA;
  padding: 2rem;
  margin-bottom: 2rem;
}

/* 4. Botones coherentes */
.subtel-btn {
  background: #0F3A5F;
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  font-size: 0.95rem;
  cursor: pointer;
}

.subtel-btn:hover {
  background: #092b47;
}

/* ========== FIN SISTEMA DE DISEÑO ========= */


/* ==========================================
   BUSCADOR — Integración visual SUBTEL
   ========================================== */

.buscador-equipos {
  font-family: inherit; /* usa la tipografía global */
  color: #2E2E2E;
}

/* Tarjeta del buscador */
.buscador-equipos .subtel-card {
  background: #ffffff;
}

/* Formulario */
.buscador-form {
  border: none;
  padding: 0;
  background: transparent;
}

/* Campos */
.buscador-form select,
.buscador-form input[type="text"] {
  border: 1px solid #DADADA;
  padding: 8px;
  font-size: 0.95rem;
}

/* Botón */
.buscador-form button {
  margin-top: 1rem;
  background: #0F3A5F;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
}

.buscador-form button:hover {
  background: #092b47;
}
/* ======= FIN BUSCADOR — Integración visual ===== */



/* ==========================================
   FICHA TÉCNICA — DISEÑO UNIFICADO SUBTEL
   ========================================== */

.ficha-tecnica {
  font-size: 0.95rem;
}

/* Header */
.ficha-header {
  margin-bottom: 2rem;
}

.ficha-identificador {
  margin-top: 0.5rem;
  color: #555;
}

/* Secciones */
.ficha-seccion {
  margin-bottom: 2rem;
}

.ficha-seccion h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #0F3A5F;
  border-bottom: 1px solid #DADADA;
  padding-bottom: 4px;
}

/* Tabla de datos */
.ficha-tabla {
  width: 100%;
  border-collapse: collapse;
}

.ficha-tabla th,
.ficha-tabla td {
  border: 1px solid #DADADA;
  padding: 8px 10px;
  text-align: left;
}

.ficha-tabla th {
  background: #F4F6F8;
  width: 30%;
  color: #0F3A5F;
}

/* Documentos */
.ficha-seccion ul {
  margin: 0;
  padding-left: 18px;
}

.ficha-seccion li {
  margin-bottom: 6px;
}

/* Confidencial */
.ficha-confidencial {
  background: #fbfcfd;
  border-left: 4px solid #0F3A5F;
}

/* QR */
.ficha-qr img {
  max-width: 200px;
  border: 1px solid #DADADA;
  padding: 6px;
  background: #fff;
}

/* Botón de acceso confidencial (alinearlo al diseño) == */
.subtel-btn {
  background: #0F3A5F;
  color: #fff;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.9rem;
}

.subtel-btn:hover {
  background: #092b47;
}
/* ======= FIN FICHA TÉCNICA — DISEÑO UNIFICADO ===== */



/* ==========================================
   FICHA — SECCIONES COMO TARJETAS VISUALES
   Para separación visual clara entre secciones (A, B, C, QR), estandarización visual
   ========================================== */

.ficha-subtel section {
  background: #ffffff;
  border: 1px solid #DADADA;
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Títulos de sección */
.ficha-subtel section > h2 {
  margin-top: 0;
  font-size: 1.15rem;
  color: #0F3A5F;
  border-bottom: 1px solid #DADADA;
  padding-bottom: 6px;
  margin-bottom: 1.2rem;
}
/* ======= FIN DE FICHA — SECCIONES COMO TARJETAS VISUALES ===== */


/* ==========================================
   Dar énfasis especial a “Confidencial”
   Bloque confidencial destacado
   ========================================== */
.conf-acceso-subtel {
  background: #fbfcfd;
  border-left: 4px solid #0F3A5F;
  padding: 1.5rem;
  margin-top: 1rem;
}
/* ======= FIN DE Dar énfasis especial a “Confidencial”  ===== */


/* 
=====================================
* Encabezado (Header) de GeneratePress. El header que estás usando (Identidad del sitio) es: Básico, Poco flexible, NO responsive avanzado (sobre todo logo + texto) propio de GeneratePress gratuito
* Dejar de usar “Identidad del sitio” para el header visual y crear un header institucional propio, pero SIN perder GeneratePress
===================================== */  
/* Ocultar header nativo GeneratePress */
.site-header {
  display: none;
}


/* ==========================================
   HEADER INSTITUCIONAL SUBTEL
 * Encabezado (Header) de GeneratePress (Identidad del sitio) es: Básico, Poco flexible, NO responsive avanzado (sobre todo logo + texto) propio de GeneratePress gratuito
 * Dejar de usar “Identidad del sitio” para el header visual y crear un header institucional propio, pero SIN perder GeneratePress
   ========================================== */
/* CSS responsive del header */
.subtel-header {
  background: #ffffff;
  border-bottom: 1px solid #DADADA;
}

.subtel-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.subtel-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.subtel-brand img {
  max-height: 50px;
  width: auto;
}

.subtel-brand-text strong {
  display: block;
  font-size: 1.1rem;
  color: #0F3A5F;
}

.subtel-brand-text span {
  font-size: 0.85rem;
  color: #666;
}

/* Responsive */
@media (max-width: 768px) {
  .subtel-brand {
    flex-direction: column;
    text-align: center;
  }
}
/* =========== FIN de HEADER INSTITUCIONAL SUBTEL ====== */



/* =========== CSS mínimo para el menú ====== */
/* Menú Header SUBTEL */
.subtel-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.subtel-nav .subtel-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.subtel-nav .subtel-menu li a {
  text-decoration: none;
  font-weight: 500;
  color: #0F3A5F;
}

.subtel-nav .subtel-menu li a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .subtel-header-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .subtel-nav .subtel-menu {
    flex-direction: column;
    align-items: center;
  }
}
/* =========== CSS mínimo para el menú ====== */


/* ==========================================
   BUSCADOR — TEXTO INSTITUCIONAL
   ========================================== */

/* Texto introductorio */
.buscador-intro {
  font-size: 0.95rem;
  color: #2E2E2E;
  margin-bottom: 1.5rem;
  max-width: 900px;
}

/* Nota legal / aclaratoria */
.buscador-nota-legal {
  font-size: 0.85rem;
  color: #666;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #DADADA;
  max-width: 900px;
}

/* Mensaje sin resultados */
.buscador-sin-resultados {
  font-size: 0.9rem;
  color: #444;
  background: #F4F6F8;
  border-left: 4px solid #0F3A5F;
  padding: 1rem 1.2rem;
  margin-top: 1.5rem;
}

/* Contenedor de resultados */
.buscador-resultados {
  margin-top: 2rem;
}

/* Nota explicativa sobre los resultados */
.buscador-resultados-nota {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
  max-width: 900px;
}
/* =========== FIN de CSS de BUSCADOR — TEXTO INSTITUCIONAL ======== */


/* ==========================================
   HOME — CTA (Call To Action) institucional — CONTACTO
   ========================================== */
.subtel-home-cta {
  background: #ffffff;
  border-top: 1px solid #DADADA;
  text-align: center;
  padding: 3.5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.subtel-home-cta h2 {
  color: #0F3A5F;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.subtel-home-cta p {
  max-width: 800px;
  margin: 0.5rem auto 1.5rem;
  font-size: 1rem;
}

.subtel-btn-cta {
  font-size: 1rem;
  padding: 12px 24px;
}
/* =========== FIN de CTA (Call To Action) ======== */



/* ==========================================
   HOME — FORZAR CENTRADO EN DESKTOP (GeneratePress)
   ========================================== */
.home #primary {
  width: 100%;
  max-width: none;
}
/* =========== FIN de FORZAR CENTRADO EN DESKTOP ======== */


/* ==========================================
   SELECTOR DE IDIOMA — HEADER SUBTEL
   ========================================== */
.subtel-lang-switcher {
  font-size: 0.85rem;
  white-space: nowrap;
}

.subtel-lang-switcher a {
  text-decoration: none;
  color: #0F3A5F;
  font-weight: 600;
  margin: 0 4px;
}

.subtel-lang-switcher a:hover {
  text-decoration: underline;
}
/* =========== FIN de SELECTOR DE IDIOMA — HEADER SUBTEL ======== */
