/*
Theme Name:   Infoconectados
Description:  Child theme de Hello Elementor — Infoconectados Rufino. Estética dark editorial.
Template:     hello-elementor
Version:      2.1.0
Author:       Infoconectados
License:      GPL-2.0+
Text Domain:  infoconectados
*/

/* ═══════════════════════════════════════════════
   DESIGN SYSTEM — DARK EDITORIAL
   Tipografía : Fraunces (títulos) + Outfit (cuerpo)
   Paleta     : Azul noche #0B1623 · Naranja #E8622A
   Tono       : Editorial, territorial, contrastado
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,700;0,9..144,900;1,9..144,400&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --ic-bg:         #0B1623;
  --ic-bg2:        #0F1E32;
  --ic-bg3:        #152540;
  --ic-bg4:        #060E1A;
  --ic-azul:       #0B1623;
  --ic-azul-med:   #0F1E32;
  --ic-azul-soft:  rgba(255,255,255,.06);
  --ic-naranja:    #E8622A;
  --ic-naranja-v:  #FF7035;
  --ic-naranja-s:  rgba(232,98,42,.14);
  --ic-verde:      #2ECC8A;
  --ic-texto:      #FFFFFF;
  --ic-gris:       rgba(255,255,255,.62);
  --ic-blanco:     #FFFFFF;
  --ic-linea:      rgba(255,255,255,.10);
  --ic-arena:      rgba(255,255,255,.35);

  --ic-ff-t: 'Fraunces', Georgia, serif;
  --ic-ff-c: 'Outfit', system-ui, sans-serif;
  --ic-r:    12px;
  --ic-r-sm: 8px;
  --ic-s:    0 4px 32px rgba(0,0,0,.5);
  --ic-sm:   0 8px 56px rgba(0,0,0,.7);
  --ic-tr:   .2s ease;
}

/* ── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--ic-ff-c);
  background: var(--ic-bg) !important;
  color: var(--ic-blanco);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4 {
  font-family: var(--ic-ff-t);
  color: var(--ic-blanco);
  line-height: 1.12;
  letter-spacing: -.02em;
}

a { color: var(--ic-naranja); text-decoration: none; transition: color var(--ic-tr); }
a:hover { color: var(--ic-naranja-v); }
img { max-width: 100%; height: auto; display: block; }

/* ── Scrollbar ──────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ic-bg4); }
::-webkit-scrollbar-thumb { background: var(--ic-naranja); border-radius: 3px; }

/* ── Hello Elementor overrides ──────────────── */
.site-header, #site-header,
.elementor-section.elementor-section-boxed > .elementor-container {
  background: var(--ic-bg4) !important;
}
.site-header, #site-header {
  border-bottom: 3px solid var(--ic-naranja) !important;
  box-shadow: 0 2px 24px rgba(0,0,0,.5) !important;
}

/* Logo */
.site-logo a, .site-title a, .elementor-site-title a,
.custom-logo-link {
  font-family: var(--ic-ff-t) !important;
  font-weight: 900 !important;
  color: var(--ic-blanco) !important;
  font-size: 1.3rem !important;
  letter-spacing: -.02em !important;
}
.elementor-site-title span,
.site-title span { color: var(--ic-naranja) !important; }

/* Nav links */
.main-navigation a,
.elementor-nav-menu a,
.elementor-nav-menu--main .elementor-item,
.menu-item a {
  font-family: var(--ic-ff-c) !important;
  color: rgba(255,255,255,.72) !important;
  font-weight: 500 !important;
  font-size: .9rem !important;
  transition: color var(--ic-tr) !important;
}
.main-navigation a:hover,
.elementor-nav-menu a:hover,
.elementor-nav-menu--main .elementor-item:hover,
.menu-item a:hover {
  color: var(--ic-naranja) !important;
}

/* Dropdown */
.main-navigation .sub-menu,
.elementor-nav-menu .sub-menu {
  background: var(--ic-bg4) !important;
  border: 1px solid var(--ic-linea) !important;
  box-shadow: var(--ic-sm) !important;
}

/* Mobile menu */
.main-navigation .menu-toggle,
.elementor-menu-toggle {
  color: var(--ic-blanco) !important;
}

/* Footer */
.site-footer, #site-footer,
footer.elementor-section {
  background: var(--ic-bg4) !important;
  border-top: 3px solid var(--ic-naranja) !important;
  color: rgba(255,255,255,.5) !important;
}
.site-footer a, #site-footer a, footer a {
  color: rgba(255,255,255,.45) !important;
  transition: color var(--ic-tr) !important;
}
.site-footer a:hover, footer a:hover { color: var(--ic-naranja) !important; }
.site-footer p, footer p { color: rgba(255,255,255,.4) !important; }

/* Widgets en sidebar/footer */
.widget-title, .widgettitle {
  font-family: var(--ic-ff-t) !important;
  color: var(--ic-blanco) !important;
  border-bottom: 2px solid var(--ic-naranja) !important;
  padding-bottom: 8px !important;
}

/* ── Contenedores ───────────────────────────── */
.ic-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 32px;
}

/* ── Botones ────────────────────────────────── */
.ic-btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--ic-r-sm);
  font-family: var(--ic-ff-c);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  transition: all var(--ic-tr);
  cursor: pointer;
  border: 2px solid transparent;
}
.ic-btn-prim {
  background: var(--ic-naranja);
  color: white;
}
.ic-btn-prim:hover {
  background: var(--ic-naranja-v);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,98,42,.4);
}
.ic-btn-sec {
  background: transparent;
  color: rgba(255,255,255,.80);
  border-color: rgba(255,255,255,.25);
}
.ic-btn-sec:hover {
  border-color: rgba(255,255,255,.70);
  color: white;
}
.ic-btn-azul {
  background: rgba(255,255,255,.10);
  color: white;
  border-color: rgba(255,255,255,.20);
}
.ic-btn-azul:hover {
  background: rgba(255,255,255,.18);
  color: white;
  transform: translateY(-2px);
}
.ic-btn-ghost-w {
  background: transparent;
  color: rgba(255,255,255,.80);
  border-color: rgba(255,255,255,.30);
}
.ic-btn-ghost-w:hover {
  border-color: white;
  color: white;
}

/* Botones Elementor */
.elementor-button {
  font-family: var(--ic-ff-c) !important;
  font-weight: 600 !important;
  border-radius: var(--ic-r-sm) !important;
  transition: all var(--ic-tr) !important;
}

/* ── Tipografía ─────────────────────────────── */
.ic-pretitulo {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ic-naranja);
  margin-bottom: 10px;
}
.ic-titulo {
  font-family: var(--ic-ff-t);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--ic-blanco);
  margin-bottom: 14px;
}
.ic-subtitulo {
  font-size: 1rem;
  color: var(--ic-gris);
  line-height: 1.75;
  max-width: 600px;
}
.ic-seccion-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ic-linea);
}
.ic-ver-todos {
  font-size: .86rem;
  font-weight: 600;
  color: var(--ic-naranja);
  text-decoration: none;
}
.ic-ver-todos:hover { text-decoration: underline; color: var(--ic-naranja-v); }

/* ── Cards ──────────────────────────────────── */
.ic-card {
  background: var(--ic-bg2);
  border-radius: var(--ic-r);
  border: 1px solid var(--ic-linea);
  box-shadow: var(--ic-s);
  transition: transform var(--ic-tr), box-shadow var(--ic-tr), border-color var(--ic-tr);
  overflow: hidden;
}
.ic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ic-sm);
  border-color: rgba(255,255,255,.18);
}

/* ── Badges ─────────────────────────────────── */
.ic-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .04em;
}
.ic-badge-naranja { background: var(--ic-naranja); color: white; }
.ic-badge-azul    { background: rgba(255,255,255,.10); color: rgba(255,255,255,.80); }
.ic-badge-verde   { background: rgba(46,204,138,.15); color: var(--ic-verde); }
.ic-badge-arena   { background: rgba(255,255,255,.08); color: rgba(255,255,255,.55); }

/* ── Forms ──────────────────────────────────── */
.ic-form .ic-field { margin-bottom: 20px; }
.ic-form label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.80);
  margin-bottom: 6px;
}
.ic-form input,
.ic-form select,
.ic-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid rgba(255,255,255,.12);
  border-radius: var(--ic-r-sm);
  font-family: var(--ic-ff-c);
  font-size: .95rem;
  color: var(--ic-blanco);
  background: rgba(255,255,255,.06);
  transition: border-color var(--ic-tr), background var(--ic-tr);
}
.ic-form input::placeholder,
.ic-form textarea::placeholder { color: rgba(255,255,255,.30); }
.ic-form input:focus,
.ic-form select:focus,
.ic-form textarea:focus {
  outline: none;
  border-color: var(--ic-naranja);
  background: rgba(255,255,255,.09);
}
.ic-form select option { background: var(--ic-bg2); color: white; }
.ic-form .ic-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ic-error   { color: #ff6b6b; font-size: .85rem; margin-top: 8px; display: none; }
.ic-error.visible { display: block; }
.ic-success { color: var(--ic-verde); font-size: .85rem; margin-top: 8px; display: none; }
.ic-success.visible { display: block; }

/* ── Auth box ───────────────────────────────── */
.ic-auth-box {
  max-width: 460px;
  margin: 0 auto;
  background: var(--ic-bg2);
  border: 1px solid var(--ic-linea);
  border-radius: var(--ic-r);
  padding: 40px;
  box-shadow: var(--ic-sm);
}
.ic-auth-box h2 {
  font-family: var(--ic-ff-t);
  font-size: 1.8rem;
  color: var(--ic-blanco);
  margin-bottom: 24px;
  text-align: center;
}
.ic-auth-link {
  text-align: center;
  margin-top: 20px;
  font-size: .88rem;
  color: rgba(255,255,255,.45);
}
.ic-auth-link a { color: var(--ic-naranja); }

/* ── Alert ──────────────────────────────────── */
.ic-alert {
  padding: 14px 18px;
  border-radius: var(--ic-r-sm);
  font-size: .9rem;
  margin-bottom: 20px;
}
.ic-alert-warning { background: rgba(249,168,37,.10); color: #f9c74f; border-left: 4px solid #f9a825; }
.ic-alert-error   { background: rgba(231,76,60,.10);  color: #ff6b6b; border-left: 4px solid #e74c3c; }
.ic-alert-success { background: rgba(46,204,138,.10); color: var(--ic-verde); border-left: 4px solid var(--ic-verde); }

/* ── Table ──────────────────────────────────── */
.ic-table-wrap { overflow-x: auto; }
.ic-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ic-table th {
  text-align: left;
  padding: 12px 16px;
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.55);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ic-linea);
}
.ic-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  color: rgba(255,255,255,.80);
}
.ic-table tr:hover td { background: rgba(255,255,255,.03); }

/* ── Tabs ───────────────────────────────────── */
.ic-tabs {
  display: flex;
  border-bottom: 1px solid var(--ic-linea);
  margin-bottom: 32px;
}
.ic-tab {
  padding: 12px 22px;
  font-family: var(--ic-ff-c);
  font-weight: 600;
  font-size: .88rem;
  color: rgba(255,255,255,.45);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: all var(--ic-tr);
}
.ic-tab:hover { color: rgba(255,255,255,.80); }
.ic-tab.activo { color: var(--ic-naranja); border-bottom-color: var(--ic-naranja); }
.ic-tab-content { display: none; }
.ic-tab-content.activo { display: block; }

/* ── Filtros ─────────────────────────────────── */
.ic-filtros { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.ic-filtros input,
.ic-filtros select {
  padding: 10px 14px;
  border: 2px solid rgba(255,255,255,.12);
  border-radius: var(--ic-r-sm);
  font-family: var(--ic-ff-c);
  font-size: .9rem;
  background: rgba(255,255,255,.06);
  color: white;
  transition: border-color var(--ic-tr);
}
.ic-filtros input { flex: 1; min-width: 200px; }
.ic-filtros input::placeholder { color: rgba(255,255,255,.30); }
.ic-filtros input:focus,
.ic-filtros select:focus { outline: none; border-color: var(--ic-naranja); }
.ic-filtros select option { background: var(--ic-bg2); }

/* ── Grillas ─────────────────────────────────── */
.ic-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.ic-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.ic-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

/* ── Modal ──────────────────────────────────── */
.ic-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.ic-modal-overlay.abierto { display: flex; }
.ic-modal {
  background: var(--ic-bg2);
  border: 1px solid var(--ic-linea);
  border-radius: var(--ic-r);
  padding: 36px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: var(--ic-sm);
  animation: ic-modal-in .22s ease both;
}
@keyframes ic-modal-in {
  from { opacity:0; transform:scale(.96); }
  to   { opacity:1; transform:scale(1); }
}
.ic-modal h3 { font-family: var(--ic-ff-t); color: var(--ic-blanco); margin-bottom: 12px; }
.ic-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: rgba(255,255,255,.40);
  transition: color var(--ic-tr);
}
.ic-modal-close:hover { color: white; }

/* ── Empty state ─────────────────────────────── */
.ic-empty { text-align: center; padding: 56px 20px; color: rgba(255,255,255,.35); font-style: italic; }
.ic-empty a { color: var(--ic-naranja); }

/* ── Sección wrappers ───────────────────────── */
.ic-seccion-blanca { background: var(--ic-bg2); padding: 80px 32px; }
.ic-seccion-oscura { background: var(--ic-bg4); padding: 80px 32px; }
.ic-seccion-media  { background: var(--ic-bg3); padding: 80px 32px; }

/* ── Responsive ──────────────────────────────── */
@media(max-width:1100px) { .ic-grid-4 { grid-template-columns: repeat(2,1fr); } }
@media(max-width:900px)  { .ic-grid-3 { grid-template-columns: repeat(2,1fr); } }
@media(max-width:640px)  {
  .ic-page { padding: 48px 16px; }
  .ic-grid-2, .ic-grid-3, .ic-grid-4 { grid-template-columns: 1fr; }
  .ic-form .ic-form-row { grid-template-columns: 1fr; }
  .ic-auth-box { padding: 28px 20px; }
}
