

/* =========================
   1. VARIABLES (Unificadas)
   ========================= */
:root {
  /* Colors */
  --bg: #030610;
  --card: #11181f;
  --accent: #ffd166;         /* Amarillo original */
  --primary: #818cf8;        /* Indigo kovertiz */
  --text: #ffffff;
  --text-muted: #94a3b8;
  --muted: rgba(255, 255, 255, 0.6);
  --border: rgba(129, 140, 248, 0.2);
  --dark: #0f172a;
  --gray: #64748b;
  --header-height: 70px;

  
/* Agrega esto para controlar el ancho de todas las secciones */
.container, .sc-container, .ed-container {
    max-width: 1200px; /* El estándar de kovertiz */
    margin: 0 auto;    /* Centra el contenido */
    padding: 0 24px;   /* Margen de seguridad para móviles */
    width: 100%;
    box-sizing: border-box;
}

footer, .related-tools {
    width: 100%;
    background-color: var(--bg);
    border-top: 1px solid var(--border);
}

/* Esto frena el contenido del footer */
footer .container, .related-tools .container {
    max-width: 1200px;
    margin: 0 auto;
    display: block; /* O grid si quieres columnas */
}


  /* Effects */
  --primary-glow: radial-gradient(circle, rgba(129, 140, 248, 0.15) 0%, transparent 70%);
  --radius: 14px;
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.6);
}

/* =========================
   2. RESET & BASE
   ========================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-height);
}

/* Tipografía SEO-Friendly */
h1, h2, h3, h4, h5, h6 { line-height: 1.25; margin-bottom: 1rem; }
p { margin-bottom: 1rem; }

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover { text-decoration: none; color: var(--primary); }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

ul, ol { list-style: none; }

/* Header Sticky */
.utz-header.utz-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99999 !important; /* Valor máximo para dominar la pantalla */
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px); /* Efecto cristal moderno */
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.utz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
}

/* Logo kovertiz */
.utz-logo a {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  text-decoration: none;
}
.utz-logo span { color: var(--primary); }

/* Menu Principal */
.utz-menu {
  display: flex;
  list-style: none;
  gap: 10px;
}

.utz-menu > li > a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  padding: 10px 15px;
  border-radius: 6px;
  transition: 0.2s;
}

.utz-menu > li:hover > a {
  background: #f1f5f9;
  color: var(--primary);
}

/* --- MEGA MENU CLUSTER VERSION: HIGH CONTRAST & READABILITY --- */

.has-mega { position: static; }

.utz-mega {
  position: fixed;
  top: var(--header-height);
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1100px;
  background: #ffffff;
  border: 1px solid #cbd5e1; /* Borde más visible */
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  z-index: 100000 !important;
}

.has-mega:hover .utz-mega {
  opacity: 1;
  visibility: visible;
}

.utz-mega-wrapper {
  display: flex;
  min-height: 480px; /* Un poco más de aire vertical */
}

/* Sidebar: Ahora más oscura y profesional */
.utz-mega-sidebar {
  width: 240px;
  background: #f1f5f9; /* Gris azulado suave para contraste */
  border-right: 1px solid #e2e8f0;
  padding: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.utz-tab-btn {
  background: transparent;
  border: none;
  border-left: 4px solid transparent;
  padding: 14px 24px;
  text-align: left;
  font-size: 1rem; /* Letra más grande */
  font-weight: 700; /* Más negrita */
  color: #334155; /* Texto oscuro, no gris */
  cursor: pointer;
  transition: 0.2s;
}

.utz-tab-btn:hover {
  background: #e2e8f0;
  color: var(--primary);
}

.utz-tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  border-left-color: var(--primary);
  box-shadow: -5px 0 15px rgba(0,0,0,0.05);
}

/* Contenido: Tipografía mejorada */
.utz-mega-content {
  flex: 1;
  padding: 35px;
  background: #ffffff;
}

.utz-grid-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 25px; /* Más espacio entre filas para no agobiar */
}

.utz-tab-pane { display: none; }
.utz-tab-pane.active { display: block; animation: utzFade 0.25s ease; }

/* Títulos de grupos: Ahora legibles y con color de marca */
.utz-col-group h4 {
  font-size: 0.9rem; /* Más grande */
  font-weight: 800;
  text-transform: uppercase;
  color: #818cf8; /* Casi negro para legibilidad */
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 15px;
  padding-bottom: 8px;
  letter-spacing: 0.5px;
}

.utz-col-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Enlaces de herramientas: El alma del menú */
.utz-col-group ul li a {
  display: block;
  padding: 7px 0;
  font-size: 0.95rem; 
  color: #252525;    /* Más oscuro para mayor contraste */
  text-decoration: none;
  font-weight: 600;  /* Cambiado de 500 a 700 para máximo grosor */
  transition: 0.2s all;
}

.utz-col-group ul li a:hover {
  color: var(--primary);
  padding-left: 5px;
}

/* Scrollbar estética para el contenido */
.utz-mega-content::-webkit-scrollbar { width: 6px; }
.utz-mega-content::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

@keyframes utzFade {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Estilo de las columnas */
.utz-col {
    flex: 1;
    min-width: 150px; /* Evita que se amontonen demasiado */
}

/* Títulos de categorías (Letra más pequeña) */
.utz-col h4 {
    font-size: 0.85rem; /* Aprox 13-14px */
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: #818cf8; /* Asegúrate que contraste con tu fondo */
    padding-bottom: 5px;
}


/* Enlaces de las herramientas (Letra más pequeña) */
.utz-col a {
    display: block;
    font-size: 0.8rem; /* Aprox 12-13px */
    color: #555;
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.2s ease;
}

/* Efecto hover para los links */
.utz-col a:hover {
    color: #007bff; /* Cambia al color de tu marca */
    text-decoration: underline;
}

/* Flecha */
.arrow-down {
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 2px;
  transform: rotate(45deg);
  margin-bottom: 3px;
}

/* =========================
   4. COMPONENTES GLOBALES
   ========================= */
.btn-primary {
  width: 100%;
  padding: 10px 12px;
  background: linear-gradient(90deg, var(--accent), #ffb86b);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  color: #000;
  transition: transform 0.2s;
}

.btn-primary:hover { transform: translateY(-2px); }

/* =========================
   5. FOOTER kovertiz
   ========================= */
.kovertiz-footer {
  background-color: var(--bg);
  padding: 100px 0 40px 0;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.kovertiz-footer::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: var(--primary-glow);
  filter: blur(120px);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.5;
}

.utz-footer-main {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
}

.utz-footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 20px;
}

.utz-footer-logo .dot {
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--primary);
}

.utz-footer-bio {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 280px;
}

.utz-footer-group h4 {
  color: var(--text);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 25px;
}

.utz-footer-group nav a {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.utz-footer-group nav a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.utz-footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.utz-legal { display: flex; gap: 25px; }



/* ==================== PLUS JAKARTA SANS SELF-HOSTED ==================== */

/* Extra Light 200 */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/plus-jakarta-sans-v12-latin-200.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

/* Light 300 */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/plus-jakarta-sans-v12-latin-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Regular 400 */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/plus-jakarta-sans-v12-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Medium 500 */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/plus-jakarta-sans-v12-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Semi-Bold 600 */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/plus-jakarta-sans-v12-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Bold 700 */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/plus-jakarta-sans-v12-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Extra-Bold 800 */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/plus-jakarta-sans-v12-latin-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ==================== Aplicar la fuente ==================== */
body {
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
}

/* ============================================================
   6. RESPONSIVE CONSOLIDADO - KOVERTIZ.COM
   ============================================================ */

@media (max-width: 991px) {
    /* Eliminamos el display none anterior que rompía el menú */
    .has-mega .utz-mega {
        display: none; 
    }
    /* Clase que se activa al hacer clic en Herramientas */
    .has-mega.utz-touch-open .utz-mega {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* --- SMARTPHONES (EL RESCATE MAESTRO) --- */
@media (max-width: 768px) {
    
    /* 1. ESPACIO PARA EL CONTENIDO */
    body {
        padding-top: 130px !important; 
    }

    /* 2. HEADER Y NAV */
    header, .utz-header-main, .utz-header, .utz-sticky { 
        height: auto !important; 
        position: fixed !important;
        top: 0 !important;
        width: 100% !important;
        z-index: 10000 !important; 
        overflow: visible !important; 
    }

    .utz-nav {
        display: flex !important;
        flex-direction: column !important;
        padding: 10px 0 !important;
        gap: 8px !important;
        font-size: 14px !important; /* Ajusta este valor a tu gusto */
         font-weight: 600;
}
    

   /* 4. EL MEGAMENÚ - LIMPIEZA TOTAL */
    .utz-mega {
        position: absolute !important;
        top: 100% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 100vw !important;
        max-height: 75vh !important;
        z-index: 10001 !important; 
        overflow-y: auto !important;
        background: #ffffff !important;
        border-radius: 0 0 15px 15px !important;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

    .utz-mega-content {
        padding: 10px 20px !important; /* Reducido para que no flote tanto */
    }

    /* Contenedor de grupos para que se apilen bien */
    .utz-grid-compact {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    .utz-col-group {
        border-bottom: 1px solid #f1f5f9 !important; /* Línea divisoria sutil */
    }

    .utz-col-group h4 {
        font-size: 12px !important; 
        font-weight: 700 !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin: 0 !important;
        padding: 15px 0 !important; /* Más espacio para tocar con el dedo */
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #1e293b !important;
    }

    /* El símbolo ahora es más elegante */
    .utz-col-group h4::after {
        content: '›'; 
        font-size: 18px;
        color: #94a3b8;
        transition: transform 0.2s;
    }

    /* Ocultar herramientas por defecto */
    .utz-col-group ul {
        display: none !important; 
        list-style: none !important;
        padding: 0 0 10px 10px !important;
        margin: 0 !important;
    }

    /* Estado Abierto */
    .utz-col-group.is-active {
        background: #f8fafc; /* Fondo sutil cuando está abierto */
        margin: 0 -20px; /* Expande el fondo a los bordes */
        padding: 0 20px;
    }

    .utz-col-group.is-active ul {
        display: block !important;
    }

    .utz-col-group.is-active h4::after {
        transform: rotate(90deg); /* La flecha apunta abajo */
        color: var(--primary);
    }

    .utz-col-group ul li a {
        font-size: 13px !important;
        padding: 12px 0 !important;
        display: block;
        color: #475569 !important;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .utz-col-group ul li:last-child a {
        border-bottom: none;
    }
  
    /* Añade esto dentro del bloque de 768px */
.utz-mega-sidebar .utz-tab-btn {
    font-size: 14px !important; /* <--- AQUÍ controlas el tamaño */
    padding: 10px 15px !important; /* Opcional: para ajustar el espacio del botón */
}

}

/* Arreglos específicos para Móvil */
@media (max-width: 768px) {
  .sc-header-wrapper {
    padding-top: 30px; /* Separa el título del Hero si están pegados */
    position: relative !important;
    display: block !important;
  }

  .sc-title {
    font-size: 1.8rem !important; /* Tamaño legible en móvil */
    line-height: 1.3;
    display: block !important;
  }

  .sc-subtitle {
    font-size: 1rem !important;
    margin-top: 10px;
    position: relative !important; /* Evita que "baje contigo" */
  }
}

/* Optimizaciones de Footer para Móvil - kovertiz.com */
@media (max-width: 768px) {
    /* 1. Reset y Contenedor General */
    .kovertiz-footer {
        padding: 40px 15px !important;
        text-align: center !important;
        overflow-x: hidden;
    }

    .kovertiz-footer .container {
        width: 100% !important;
        padding: 0 !important;
    }

    .utz-footer-main {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 40px !important; /* Espacio equilibrado entre secciones */
    }

    /* 2. Sección Logo y Bio */
    .utz-footer-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100% !important;
    }

   .utz-footer-logo {
        font-size: 1.8rem !important;
        font-weight: 800 !important;
        color: var(--text) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important; /* Centrado en móvil */
        gap: 5px !important;
        margin-bottom: 20px !important;
        text-decoration: none;
    }

    .utz-footer-logo .dot {
        width: 8px !important;
        height: 8px !important;
        background: var(--primary) !important;
        border-radius: 50% !important;
        box-shadow: 0 0 15px var(--primary) !important;
        display: inline-block;
    }

    .utz-footer-bio {
        max-width: 290px;
        margin: 0 auto !important;
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* 3. MEJORA DE LINKS (Grid de 2 columnas) */
    .utz-footer-group {
        width: 100% !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

/* Títulos pequeños y elegantes tipo 'tag' */
    .utz-footer-group h4 {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 8px !important;
        color: #888;
    }

    /* Navegación compacta en una sola línea fluida o lista cerrada */
    .utz-footer-group nav {
        display: flex;
        flex-wrap: wrap; /* Los links se acomodan solos */
        justify-content: center;
        gap: 8px 12px;
        max-width: 90%;
        margin: 0 auto;
    }

    .utz-footer-group nav a {
        font-size: 0.85rem;
        text-decoration: none;
        padding: 2px 0;
        border-bottom: 1px solid transparent;
    }
    
    /* Separador visual sutil entre grupos si lo prefieres */
    .utz-footer-group:not(:last-child) {
        border-bottom: 1px solid rgba(0,0,0,0.05);
        padding-bottom: 5px;
    }

    /* 4. Footer Inferior (Copyright y Legal) */
    .utz-footer-bottom {
        margin-top: 30px !important;
        padding-top: 20px !important;
        border-top: 1px solid rgba(128, 128, 128, 0.2);
        display: flex;
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px;
    }

    .utz-copy {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .utz-legal {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        font-size: 0.85rem;
    }
}