/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/

/* =========================================================
   ECI CONFERENCE 2027 — Custom CSS
   Versión limpia · sin duplicados · organizada por bloques
========================================================= */

/* =========================================================
   0. VARIABLES
========================================================= */
:root {
  --ls-tight:      -0.02em;
  --ls-normal:      0;
  --ls-wide:        0.01em;
  --ls-extra-wide:  0.03em;
  --color-text:    #263784;
  --color-primary: #005fcc;
  --color-background: #FCF9F4;
}

/* =========================================================
   1. RESET Y BASE GLOBAL
========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #FCF9F4 !important;
}

body {
  font-family: 'Inter Tight', sans-serif;
  letter-spacing: var(--ls-normal);
  line-height: 1.6;
  color: #263784;
  margin: 0;
}

img, svg, video, iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

input, textarea, select, button {
  max-width: 100%;
  font: inherit;
}

/* =========================================================
   2. COLOR GLOBAL — textos
========================================================= */
body, p, li, td, th {
  color: #263784;
}

h1, h2, h3, h4, h5, h6 {
  color: #263784;
}

/* Fix: .eci-member-cta inside <a> hereda color de Salient */
.eci-member-cta {
  color: #263784 !important;
}

/* =========================================================
   3. UTILIDADES
========================================================= */
.mobile     { display: none  !important; }
.escritorio { display: block !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* =========================================================
   4. ACCESIBILIDAD — SKIP LINK
========================================================= */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #263784;
  color: #fff;
  padding: 10px 20px;
  z-index: 100000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* =========================================================
   5. NAVEGACIÓN Y MENÚ
========================================================= */
.main-navigation a,
.menu a {
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.main-navigation a:hover,
.menu a:hover {
  color: var(--color-primary) !important;
}

.main-navigation a:focus,
.menu a:focus,
#header-outer a:focus {
  outline: 3px solid var(--color-primary) !important;
  outline-offset: 2px !important;
  background-color: rgba(0, 95, 204, 0.1);
  border-radius: 4px;
}

.menu-item-has-children:focus-within > .sub-menu,
.menu-item-has-children:focus-within > ul {
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
}

.menu-item-has-children.is-focused > .sub-menu,
.menu-item-has-children.is-focused > ul {
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
  transform: translateY(0) !important;
}

/* =========================================================
   6. HERO — MÁRGENES
========================================================= */
.wpb_column h1,
.wpb_column h2,
.wpb_column h3 {
  margin-top: 0px !important;
  margin-bottom: 20px !important;
}

/* =========================================================
   7. WIDGET DE ACCESIBILIDAD
========================================================= */
#a11y-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
  isolation: isolate;
}

#a11y-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: #263784;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s ease;
}

#a11y-toggle::before {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background-image: url("https://www.accesibilidadprimero.com/wp-content/uploads/2026/03/icono_aprimero.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

#a11y-panel {
  position: fixed;
  right: 24px;
  bottom: 90px;
  width: 320px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 100000;
  display: none;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  visibility: hidden;
  pointer-events: none;
}

#a11y-panel.is-open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0s;
}

#a11y-panel button {
  width: 100%;
  padding: 12px;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #263784;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  margin-bottom: 0;
}

#a11y-results {
  margin-top: 15px;
  padding: 10px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 13px;
  display: none;
}

#a11y-results.visible { display: block; }
#a11y-results h4 { margin: 0 0 8px 0; color: #263784; }
#a11y-results ul  { margin: 0; padding-left: 20px; list-style: disc; }

/* =========================================================
   8. MODOS DE LECTURA Y SIMULACIÓN VISUAL
========================================================= */
body.a11y-read > *:not(#a11y-widget) {
  max-width: 70ch;
  margin-inline: auto;
  font-size: 1.25em;
  line-height: 1.8;
}

body.a11y-contrast {
  background: #263784 !important;
  color: #fff !important;
}

body.a11y-contrast a {
  color: #4da3ff !important;
}

body.a11y-protanopia,
body.a11y-daltonismo  { filter: grayscale(1) !important; }
body.a11y-lowvision,
body.a11y-baja-vision  { filter: contrast(0.6) brightness(1.2) !important; }
body.a11y-blur,
body.a11y-borroso      { filter: blur(2px) !important; }

body.a11y-blur #a11y-widget,
body.a11y-borroso #a11y-widget,
body.a11y-lowvision #a11y-widget,
body.a11y-baja-vision #a11y-widget,
body.a11y-protanopia #a11y-widget,
body.a11y-daltonismo #a11y-widget {
  filter: none;
}

/* =========================================================
   9. PÁGINA DE ACCESIBILIDAD
========================================================= */
.page-template-accessibility-php article,
.post-type-archive-accessibility article {
  max-width: 80ch;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-template-accessibility-php h3 {
  border-left: 5px solid var(--color-primary);
  padding-left: 15px;
  margin-top: 2em;
}

/* =========================================================
   10. RESPONSIVE
========================================================= */
@media (max-width: 768px) {
  .escritorio { display: none  !important; }
  .mobile     { display: block !important; }

  #a11y-panel {
    right: 16px;
    left: 16px;
    bottom: 72px;
    width: auto;
  }

  /* Overlay del hero en móvil — decisión de diseño del 16/06/2026 (degradado, no plano) */
  .home-section .nectar-slider .slide-bg-image::after,
  .home-section .full-width-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
    z-index: 1;
    pointer-events: none; /* evita que el overlay bloquee clics en CTAs debajo */
  }
}

/* =========================================================
   11. PREFERENCIAS DEL SISTEMA
========================================================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (prefers-color-scheme: dark) {
  #a11y-panel {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
  }

  #a11y-panel button {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
  }
}
/* ============================================
   FLUENT FORMS — ECI Conference 2027
   Full accessible styles — WCAG 2.1 AA
   Brand: #005FCC blue / #0A1628 dark navy
   ============================================ */

/* --- Labels --- */
.fluentform .ff-el-input--label label,
.fluentform .ff-el-input--label,
.fluentform label {
    color: #0A1628 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    display: block !important;
    margin-bottom: 0.375rem !important;
}

/* Required asterisk */
.fluentform .ff-el-input--label label .ff-asterisk,
.fluentform .ff-el-input--label .ff-asterisk {
    color: #005FCC !important;
    margin-left: 0.25rem !important;
}

/* --- Inputs y Textarea --- */
.fluentform input[type="text"],
.fluentform input[type="email"],
.fluentform input[type="tel"],
.fluentform input[type="url"],
.fluentform input[type="number"],
.fluentform input[type="search"],
.fluentform input[type="password"],
.fluentform select,
.fluentform textarea,
.fluentform .ff-el-form-control {
    color: #0A1628 !important;
    background-color: #FFFFFF !important;
    border: 1.5px solid #6B7280 !important;
    border-radius: 0.5rem !important;
    font-size: 1rem !important;
    padding: 0.75rem 1rem !important;
    width: 100% !important;
    min-height: 2.75rem !important; /* 44px touch target */
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    font-family: inherit !important;
}

/* Placeholder */
.fluentform input::placeholder,
.fluentform textarea::placeholder {
    color: #6B7280 !important;
    opacity: 1 !important;
}

/* Focus state — azul con outline WCAG */
.fluentform input[type="text"]:focus,
.fluentform input[type="email"]:focus,
.fluentform input[type="tel"]:focus,
.fluentform input[type="url"]:focus,
.fluentform input[type="number"]:focus,
.fluentform input[type="search"]:focus,
.fluentform input[type="password"]:focus,
.fluentform select:focus,
.fluentform textarea:focus,
.fluentform .ff-el-form-control:focus {
    border-color: #005FCC !important;
    outline: 3px solid #005FCC !important;
    outline-offset: 2px !important;
    box-shadow: none !important;
}

/* Error state */
.fluentform input.ff_has_error,
.fluentform select.ff_has_error,
.fluentform textarea.ff_has_error,
.fluentform .ff-el-form-control.ff_has_error {
    border-color: #C0392B !important;
    outline: none !important;
}

/* Error message */
.fluentform .error.text-danger,
.fluentform .ff-el-is-error .ff-el-form-check-label,
.fluentform .ff_errors_show,
.fluentform span.error {
    color: #C0392B !important;
    font-size: 0.875rem !important;
    margin-top: 0.25rem !important;
    display: block !important;
}

/* Textarea altura mínima */
.fluentform textarea {
    min-height: 8rem !important;
    resize: vertical !important;
}

/* Select — icono flecha accesible */
.fluentform select {
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23005FCC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.875rem center !important;
    padding-right: 2.5rem !important;
}

/* --- Checkbox y Radio --- */
.fluentform .ff-el-form-check,
.fluentform .ff_checkbox_field,
.fluentform .ff_radio_field {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.625rem !important;
    margin-bottom: 0.5rem !important;
}

.fluentform .ff-el-form-check input[type="checkbox"],
.fluentform .ff-el-form-check input[type="radio"],
.fluentform input[type="checkbox"],
.fluentform input[type="radio"] {
    width: 1.25rem !important;
    height: 1.25rem !important;
    min-width: 1.25rem !important;
    margin-top: 0.125rem !important;
    accent-color: #005FCC !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

.fluentform .ff-el-form-check input[type="checkbox"]:focus,
.fluentform .ff-el-form-check input[type="radio"]:focus,
.fluentform input[type="checkbox"]:focus,
.fluentform input[type="radio"]:focus {
    outline: 3px solid #005FCC !important;
    outline-offset: 2px !important;
}

/* Label de checkbox/radio visible */
.fluentform .ff-el-form-check label,
.fluentform .ff-el-form-check .ff-el-form-check-label,
.fluentform .ff_checkbox_field label,
.fluentform .ff_radio_field label {
    color: #0A1628 !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    cursor: pointer !important;
    display: inline !important;
}

/* Links dentro del label (ej: "acepto los términos") */
.fluentform .ff-el-form-check label a,
.fluentform .ff_checkbox_field label a {
    color: #005FCC !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}

.fluentform .ff-el-form-check label a:hover,
.fluentform .ff_checkbox_field label a:hover {
    color: #004AAA !important;
}

/* --- Botón submit --- */
.fluentform .ff-btn-submit,
.fluentform button[type="submit"],
.fluentform .ff-btn {
    background-color: #005FCC !important;
    border: 2px solid #005FCC !important;
    color: #FFFFFF !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding: 0.875rem 2rem !important;
    min-height: 2.75rem !important;
    border-radius: 0.5rem !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s ease, border-color 0.2s ease !important;
    font-family: inherit !important;
    letter-spacing: 0.01em !important;
}

.fluentform .ff-btn-submit:hover,
.fluentform button[type="submit"]:hover {
    background-color: #004AAA !important;
    border-color: #004AAA !important;
}

.fluentform .ff-btn-submit:focus,
.fluentform button[type="submit"]:focus {
    background-color: #004AAA !important;
    border-color: #004AAA !important;
    outline: 3px solid #005FCC !important;
    outline-offset: 3px !important;
}

/* --- Mensaje de éxito --- */
.fluentform .ff-message-success,
.fluentform .ff-errors-head {
    background-color: #EBF5FF !important;
    border-left: 4px solid #005FCC !important;
    color: #0A1628 !important;
    padding: 1rem 1.25rem !important;
    border-radius: 0.375rem !important;
    font-size: 1rem !important;
}

/* --- Espaciado entre campos --- */
.fluentform .ff-el-group {
    margin-bottom: 1.5rem !important;
}

/* --- Step form progress (si lo usas) --- */
.fluentform .step-nav .ff-btn {
    background-color: #005FCC !important;
    border-color: #005FCC !important;
    color: #FFFFFF !important;
}
/* ─── ECI FOOTER ─────────────────────────────────────────────────── */
.eci-footer {
  background: #263784;
  font-family: inherit;
  padding: 3rem 4rem 2rem;
}
.eci-footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}
.eci-footer-logo-text { font-size: 0.9375rem; font-weight: 500; color: #fff; margin: 0 0 0.125rem !important; }
.eci-footer-logo-sub { font-size: 0.75rem; color: #F0B429; margin: 0 0 0.75rem !important; }
.eci-footer-tagline { font-size: 0.875rem; color: #fff; line-height: 1.65; margin: 0 0 1.5rem !important; max-width: 260px; }
.eci-footer-dates { display: flex; flex-direction: column; gap: 0.5rem; }
.eci-footer-date-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: #fff; }
.eci-footer-date-dot { width: 5px; height: 5px; background: #F0B429; border-radius: 50%; flex-shrink: 0; }
.eci-footer-col-title { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; margin: 0 0 1rem !important; }
.eci-footer-links { list-style: none; padding: 0 !important; margin: 0 !important; display: flex; flex-direction: column; gap: 0.625rem; }
.eci-footer-links a { font-size: 0.875rem; color: #fff; text-decoration: none; transition: color 0.15s ease; }
.eci-footer-links a:hover { color: #F0B429; }
.eci-footer-links a:focus { outline: 2px solid #F0B429; outline-offset: 2px; border-radius: 2px; }
.eci-footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.eci-footer-copy { font-size: 0.75rem; color: #fff; margin: 0 !important; }
.eci-footer-legal { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.eci-footer-legal a { font-size: 0.75rem; color: #fff; text-decoration: none; transition: color 0.15s ease; }
.eci-footer-legal a:hover { color: #F0B429; }
.eci-footer-legal a:focus { outline: 2px solid #F0B429; outline-offset: 2px; border-radius: 2px; }
.eci-footer-credit { font-size: 0.75rem; color: #fff; }
.eci-footer-credit a { color: #fff; text-decoration: underline; transition: color 0.15s ease; }
.eci-footer-credit a:hover { color: #F0B429; }
.eci-footer-credit a:focus { outline: 2px solid #F0B429; outline-offset: 2px; border-radius: 2px; }
.eci-footer-separator { color: rgba(255,255,255,0.4); }
.eci-footer-support-text { color: #fff; font-size: 0.8125rem; }

@media (max-width: 768px) {
  .eci-footer { padding: 2.5rem 1.5rem 1.5rem; }
  .eci-footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .eci-footer-bottom { flex-direction: column; align-items: flex-start; }
}