/*=====================================================
  Centro de Arbitraje CIP - CDSM Tarapoto
  Hoja de estilos principal

  01. Tokens (paleta institucional, tipografía, sombras)
  02. Base
  03. Botones y títulos de sección
  04. Preloader
  05. Cabecera y navegación
  06. Hero
  07. Tarjetas de características / documentos
  08. Nosotros (about)
  09. Tarjetas de categorías (opciones)
  10. Equipo / listados
  11. Testimonios (Misión / Visión)
  12. Blog / eventos / preguntas frecuentes
  13. Contacto
  14. Modal y acordeón
  15. Pie de página
  16. Volver arriba
  17. Accesibilidad y movimiento reducido
=====================================================*/

/*===== 01. TOKENS =====*/
:root {
  --c-primary: #E31E24;
  --c-primary-dark: #B8171C;
  --c-primary-soft: #FDECEC;
  --c-gold: #D7B56D;
  --c-gold-dark: #A8873E;
  --c-gold-soft: #F6EEDC;
  --c-ink: #2A2A29;
  --c-ink-2: #3A3A38;
  --c-text: #4F4E4B;
  --c-muted: #77746F;
  --c-bg: #FFFFFF;
  --c-bg-alt: #F6F5F3;
  --c-border: #E7E4DF;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(42, 42, 41, .06), 0 2px 8px rgba(42, 42, 41, .05);
  --shadow: 0 1px 2px rgba(42, 42, 41, .05), 0 12px 32px -12px rgba(42, 42, 41, .18);
  --shadow-lg: 0 2px 4px rgba(42, 42, 41, .06), 0 24px 48px -16px rgba(42, 42, 41, .28);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: .25s var(--ease);
}

/*===== 02. BASE =====*/
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: normal;
  color: var(--c-text);
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

a:focus,
a:hover {
  text-decoration: none;
}

input:focus,
textarea:focus,
button:focus {
  outline: none;
}

i,
span,
a {
  display: inline-block;
  text-decoration: none;
}

a {
  color: var(--c-primary);
  transition: color var(--t);
}

a:hover {
  color: var(--c-primary-dark);
}

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--c-ink);
  margin: 0;
  letter-spacing: -.01em;
  line-height: 1.25;
  overflow-wrap: break-word;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

ul, ol {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--c-text);
  margin: 0;
}

::selection {
  background-color: var(--c-primary);
  color: #fff;
}

/* El texto justificado crea huecos en columnas estrechas */
@media (max-width: 767px) {
  [style*="text-align: justify"] {
    text-align: left !important;
  }
}

.bg_cover {
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
}

.text-danger {
  color: var(--c-primary) !important;
}

.lni-32 {
  font-size: 32px;
}

/*===== 03. BOTONES Y TÍTULOS =====*/
.main-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 0;
  padding: 0 32px;
  min-height: 52px;
  line-height: 1;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  position: relative;
  z-index: 5;
  background-color: var(--c-primary);
  box-shadow: 0 8px 20px -8px rgba(227, 30, 36, .55);
  transition: background-color var(--t), transform var(--t), box-shadow var(--t);
}

.main-btn:hover {
  background-color: var(--c-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(227, 30, 36, .6);
}

.main-btn:active {
  transform: translateY(0);
}

.section_title .title {
  font-size: 36px;
  font-weight: 700;
  position: relative;
}

.section_title .title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 16px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--c-primary) 0 60%, var(--c-gold) 60% 100%);
}

.section_title.text-center .title::after {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 991px) {
  .section_title .title {
    font-size: 30px;
  }
}

@media (max-width: 767px) {
  .section_title .title {
    font-size: 24px;
  }
}

.section_title p {
  margin-top: 16px;
  font-size: 17px;
  color: var(--c-muted);
}

@media (max-width: 767px) {
  .section_title p {
    font-size: 15px;
  }
}

.section_title.section_title_2 .title,
.section_title.section_title_2 p {
  color: #fff;
}

.section_title.section_title_2 p {
  color: rgba(255, 255, 255, .8);
}

/* Enlace de descarga dentro de títulos (p. ej. Resolución en Nosotros) */
.section_title a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 14px 22px;
  border-radius: var(--radius);
  background-color: var(--c-primary-soft);
  transition: background-color var(--t), transform var(--t);
}

.section_title a:hover {
  background-color: #FAD9DA;
  transform: translateY(-2px);
}

.section_title a p {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
}

/*===== 04. PRELOADER =====*/
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  display: table;
  height: 100%;
  width: 100%;
  background: #fff;
  z-index: 99999;
}

.preloader .loader {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

.preloader .loader .ytp-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  margin-left: -28px;
  z-index: 18;
  pointer-events: none;
}

.preloader .loader .ytp-spinner .ytp-spinner-container {
  pointer-events: none;
  position: absolute;
  width: 100%;
  padding-bottom: 100%;
  top: 50%;
  left: 50%;
  margin-top: -50%;
  margin-left: -50%;
  animation: ytp-spinner-linspin 1568.2353ms linear infinite;
}

.preloader .loader .ytp-spinner .ytp-spinner-container .ytp-spinner-rotator {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: ytp-spinner-easespin 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
}

.preloader .loader .ytp-spinner .ytp-spinner-container .ytp-spinner-rotator .ytp-spinner-left {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  overflow: hidden;
  right: 50%;
}

.preloader .loader .ytp-spinner .ytp-spinner-container .ytp-spinner-rotator .ytp-spinner-right {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  left: 50%;
}

.preloader .loader .ytp-spinner-circle {
  box-sizing: border-box;
  position: absolute;
  width: 200%;
  height: 100%;
  border-style: solid;
  border-color: var(--c-primary) var(--c-primary) var(--c-bg-alt);
  border-radius: 50%;
  border-width: 5px;
}

.preloader .loader .ytp-spinner-left .ytp-spinner-circle {
  left: 0;
  right: -100%;
  border-right-color: var(--c-bg-alt);
  animation: ytp-spinner-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
}

.preloader .loader .ytp-spinner-right .ytp-spinner-circle {
  left: -100%;
  right: 0;
  border-left-color: var(--c-bg-alt);
  animation: ytp-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
}

@keyframes ytp-spinner-linspin {
  to { transform: rotate(360deg); }
}

@keyframes ytp-spinner-easespin {
  12.5% { transform: rotate(135deg); }
  25% { transform: rotate(270deg); }
  37.5% { transform: rotate(405deg); }
  50% { transform: rotate(540deg); }
  62.5% { transform: rotate(675deg); }
  75% { transform: rotate(810deg); }
  87.5% { transform: rotate(945deg); }
  to { transform: rotate(1080deg); }
}

@keyframes ytp-spinner-left-spin {
  0% { transform: rotate(130deg); }
  50% { transform: rotate(-5deg); }
  to { transform: rotate(130deg); }
}

@keyframes ytp-right-spin {
  0% { transform: rotate(-130deg); }
  50% { transform: rotate(5deg); }
  to { transform: rotate(-130deg); }
}

/*===== 05. CABECERA Y NAVEGACIÓN =====*/
.header_area {
  position: relative;
}

.header_navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  transition: background-color var(--t), box-shadow var(--t), border-color var(--t);
}

.sticky {
  position: fixed;
  z-index: 999;
  background-color: rgba(42, 42, 41, .96);
  border-bottom-color: transparent;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45);
}

@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .sticky {
    background-color: rgba(42, 42, 41, .88);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    backdrop-filter: saturate(140%) blur(10px);
  }
}

/* Línea institucional bajo la cabecera fija */
.sticky::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary) 0 70%, var(--c-gold) 70% 100%);
}

.navbar {
  padding: 18px 0;
  position: relative;
  transition: padding var(--t);
}

.sticky .navbar {
  padding: 8px 0;
}

.navbar-brand {
  padding: 0;
  margin-right: 24px;
}

.navbar-brand img {
  width: 280px;
  transition: width var(--t);
}

.sticky .navbar-brand img {
  width: 240px;
}

@media (min-width: 992px) and (max-width: 1199px) {
  .navbar-brand img,
  .sticky .navbar-brand img {
    width: 210px;
  }
}

@media (max-width: 767px) {
  .navbar-brand img,
  .sticky .navbar-brand img {
    width: 210px;
  }
}

@media (max-width: 359px) {
  .navbar-brand img,
  .sticky .navbar-brand img {
    width: 180px;
  }
}

/* Botón hamburguesa */
.navbar-toggler {
  padding: 10px 8px;
  border: 0;
  border-radius: var(--radius-sm);
  transition: background-color var(--t);
}

.navbar-toggler:hover {
  background-color: rgba(255, 255, 255, .08);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler .toggler-icon {
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background-color: #fff;
  display: block;
  margin: 6px 0;
  position: relative;
  transition: transform var(--t), opacity var(--t), top var(--t);
}

.navbar-toggler.active .toggler-icon:nth-of-type(1) {
  transform: rotate(45deg);
  top: 8px;
}

.navbar-toggler.active .toggler-icon:nth-of-type(2) {
  opacity: 0;
}

.navbar-toggler.active .toggler-icon:nth-of-type(3) {
  transform: rotate(135deg);
  top: -8px;
}

/* Enlaces de primer nivel */
.navbar-nav > .nav-item {
  position: relative;
}

.navbar-nav > .nav-item > a {
  display: block;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, .92);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  position: relative;
  white-space: nowrap;
  transition: color var(--t), background-color var(--t);
}

.navbar-nav > .nav-item > a.nav-link {
  padding: 10px 14px;
}

.navbar-nav > .nav-item > a::before {
  position: absolute;
  content: '';
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--c-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t);
}

.navbar-nav > .nav-item > a:hover,
.navbar-nav > .nav-item > a.show,
.navbar-nav > .nav-item > a.active {
  color: #fff;
}

.navbar-nav > .nav-item > a:hover::before,
.navbar-nav > .nav-item > a.show::before,
.navbar-nav > .nav-item > a.active::before {
  transform: scaleX(1);
}

.navbar-nav > .nav-item > a.active {
  color: var(--c-gold);
}

.navbar-nav .dropdown-toggle::after {
  border-top-width: .32em;
  border-right-width: .32em;
  border-left-width: .32em;
  margin-left: .45em;
  vertical-align: .18em;
  opacity: .8;
  transition: transform var(--t);
}

.navbar-nav > .nav-item > a.show::after {
  transform: rotate(180deg);
}

@media (min-width: 992px) and (max-width: 1199px) {
  .navbar-nav > .nav-item > a,
  .navbar-nav > .nav-item > a.nav-link {
    font-size: 13.5px;
    padding: 10px 8px;
  }

  .navbar-nav > .nav-item > a::before {
    left: 8px;
    right: 8px;
  }
}

/* Menús desplegables */
.navbar-nav .dropdown-menu {
  min-width: 250px;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background-color: #fff;
  box-shadow: var(--shadow-lg);
}

.navbar-nav .dropdown-menu li {
  position: relative;
}

.navbar-nav .dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-ink);
  white-space: normal;
  transition: background-color var(--t), color var(--t), padding var(--t);
}

.navbar-nav .dropdown-menu .dropdown-item:hover,
.navbar-nav .dropdown-menu .dropdown-item:focus,
.navbar-nav .dropdown-menu .dropdown-item.show,
.navbar-nav .dropdown-menu .dropdown-item.active {
  background-color: var(--c-primary-soft);
  color: var(--c-primary);
}

.navbar-nav .dropdown-menu .dropdown-item.active {
  font-weight: 600;
}

/* Flecha de submenú hacia la derecha en escritorio */
.navbar-nav .dropdown-menu .dropdown-item.dropdown-toggle::after {
  margin-left: auto;
  transform: rotate(-90deg);
}

/* Submenús de segundo nivel */
.dropdown-menu .dropdown-submenu {
  display: none;
  position: absolute;
  left: calc(100% + 8px);
  top: -9px;
  margin-top: 0;
}

/* Puente invisible para no perder el hover al cruzar el espacio */
.dropdown-menu .dropdown-submenu::before {
  content: '';
  position: absolute;
  top: 0;
  left: -12px;
  width: 12px;
  height: 100%;
}

.dropdown-menu .dropdown-submenu-left {
  right: 100%;
  left: auto;
}

.dropdown-menu > li:hover > .dropdown-submenu,
.dropdown-menu .dropdown-submenu.show {
  display: block;
}

@media (min-width: 992px) {
  .navbar-nav .dropdown-menu.show {
    animation: dropdownIn .2s var(--ease);
  }
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Navegación móvil y tablet */
@media (max-width: 991px) {
  .navbar-collapse {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    z-index: 9;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 8px;
    border-radius: var(--radius);
    background-color: var(--c-ink);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: var(--shadow-lg);
  }

  .navbar-nav > .nav-item + .nav-item {
    border-top: 1px solid rgba(255, 255, 255, .06);
  }

  .navbar-nav > .nav-item > a,
  .navbar-nav > .nav-item > a.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 14px;
    font-size: 15px;
    white-space: normal;
  }

  .navbar-nav > .nav-item > a::before {
    display: none;
  }

  .navbar-nav > .nav-item > a:hover,
  .navbar-nav > .nav-item > a.show {
    background-color: rgba(255, 255, 255, .06);
  }

  .navbar-nav .dropdown-menu {
    margin: 4px 0 8px;
    padding: 4px;
    border: 0;
    border-left: 2px solid var(--c-gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background-color: rgba(255, 255, 255, .04);
    box-shadow: none;
  }

  .navbar-nav .dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, .88);
    padding: 11px 14px;
  }

  .navbar-nav .dropdown-menu .dropdown-item:hover,
  .navbar-nav .dropdown-menu .dropdown-item:focus,
  .navbar-nav .dropdown-menu .dropdown-item.show,
  .navbar-nav .dropdown-menu .dropdown-item.active {
    background-color: rgba(227, 30, 36, .16);
    color: #fff;
  }

  .navbar-nav .dropdown-menu .dropdown-item.dropdown-toggle::after {
    transform: none;
  }

  .navbar-nav .dropdown-menu .dropdown-item.dropdown-toggle.show::after {
    transform: rotate(180deg);
  }

  /* En pantallas táctiles el submenú se abre por toque, no por hover */
  .dropdown-menu > li:hover > .dropdown-submenu {
    display: none;
  }

  .dropdown-menu .dropdown-submenu {
    position: static;
    margin: 2px 0 4px 12px;
  }

  .dropdown-menu > li > .dropdown-submenu.show,
  .dropdown-menu > li:hover > .dropdown-submenu.show {
    display: block;
  }

  .dropdown-menu .dropdown-submenu::before {
    display: none;
  }
}

/*===== 06. HERO =====*/
.single_hero {
  min-height: 520px;
  height: auto;
  padding: 140px 0 90px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  background-image: url("../images/slide-bg-4.png");
}

.single_hero::before {
  position: absolute;
  content: '';
  inset: 0;
  background:
    linear-gradient(180deg, rgba(42, 42, 41, .82) 0%, rgba(42, 42, 41, .62) 45%, rgba(42, 42, 41, .88) 100%);
  z-index: -1;
}

/* Filete institucional inferior */
.single_hero::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--c-primary) 0 70%, var(--c-gold) 70% 100%);
}

@media (max-width: 991px) {
  .single_hero {
    min-height: 400px;
    padding: 130px 0 70px;
  }
}

@media (max-width: 767px) {
  .single_hero {
    min-height: 320px;
    padding: 128px 0 56px;
  }
}

.hero_content {
  padding-top: 0;
}

.hero_content .hero_title {
  font-family: var(--font-head);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0;
}

.hero_content .hero_title::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  margin: 22px auto 0;
  border-radius: 4px;
  background-color: var(--c-gold);
}

@media (min-width: 992px) and (max-width: 1199px) {
  .hero_content .hero_title {
    font-size: 46px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .hero_content .hero_title {
    font-size: 40px;
  }
}

@media (max-width: 767px) {
  .hero_content .hero_title {
    font-size: 30px;
  }
}

.hero_content .hero_title span {
  display: contents;
  color: var(--c-primary);
}

.hero_content p {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .88);
  margin-top: 22px;
}

@media (max-width: 767px) {
  .hero_content p {
    font-size: 15px;
    margin-top: 16px;
  }
}

.hero_content .main-btn {
  margin-top: 40px;
}

/*===== 07. TARJETAS DE CARACTERÍSTICAS / DOCUMENTOS =====*/
.features_area {
  padding-top: 70px;
}

.single_features {
  position: relative;
  padding: 36px 28px 32px;
  background-color: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  overflow: hidden;
}

/* Las tarjetas de una misma fila igualan su altura */
.single_features.mt-30 { height: calc(100% - 30px); }
.single_features.mt-60 { height: calc(100% - 60px); }

.single_features::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary) 0 70%, var(--c-gold) 70% 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s var(--ease);
}

.single_features:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.single_features:hover::before {
  transform: scaleX(1);
}

.single_features > a {
  display: block;
  color: inherit;
}

.single_features i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  color: var(--c-primary);
  background-color: var(--c-primary-soft);
  transition: background-color var(--t), color var(--t), transform var(--t);
}

.single_features:hover i {
  color: #fff;
  background-color: var(--c-primary);
  transform: scale(1.05);
}

.single_features .features_title {
  color: var(--c-ink);
  margin-top: 22px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  transition: color var(--t);
}

@media (min-width: 992px) and (max-width: 1199px) {
  .single_features {
    padding: 32px 20px 28px;
  }

  .single_features .features_title {
    font-size: 17px;
  }
}

.single_features:hover .features_title {
  color: var(--c-primary);
}

.single_features p {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--c-muted);
}

/* Lista de valores (Cultura) */
.single_features ul {
  margin-top: 16px;
}

.single_features ul li p {
  margin-top: 0;
  padding: 7px 0;
  border-bottom: 1px dashed var(--c-border);
  color: var(--c-text);
}

.single_features ul li:last-child p {
  border-bottom: 0;
}

/*===== 08. NOSOTROS (ABOUT) =====*/
.about_area {
  background-color: var(--c-bg-alt);
  position: relative;
}

.about_image {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
}

@media (max-width: 991px) {
  .about_image {
    width: 100%;
    height: 440px;
    position: relative;
  }
}

@media (max-width: 767px) {
  .about_image {
    height: 280px;
  }
}

.about_image .image_content {
  width: 190px;
  height: 190px;
  padding: 18px;
  background-color: var(--c-primary);
  border-bottom: 6px solid var(--c-gold);
  border-radius: 0 0 var(--radius) 0;
  display: table;
  text-align: center;
  position: relative;
  left: -95px;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 992px) and (max-width: 1199px) {
  .about_image .image_content {
    width: 150px;
    height: 150px;
    left: -75px;
  }
}

@media (max-width: 991px) {
  .about_image .image_content {
    left: 0;
    width: 150px;
    height: 150px;
  }
}

.about_image .image_content .experience {
  font-size: 19px;
  line-height: 1.35;
  color: #fff;
  font-weight: 600;
  display: table-cell;
  vertical-align: middle;
}

@media (max-width: 1199px) {
  .about_image .image_content .experience {
    font-size: 15px;
  }
}

.about_image .image_content .experience span {
  font-size: 44px;
  font-weight: 700;
}

.about_content {
  padding-right: 56px;
}

@media (max-width: 991px) {
  .about_content {
    padding-right: 0;
    padding-top: 70px !important;
    padding-bottom: 70px !important;
  }
}

.about_content .section_title p {
  font-size: 16px;
  color: var(--c-text);
}

.about_content .main-btn {
  margin-top: 30px;
}

/*===== 09. TARJETAS DE CATEGORÍAS =====*/
#opciones .about_area {
  background-color: #fff;
}

.cat-item {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 2;
  transition: box-shadow var(--t), transform var(--t);
}

.cat-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.cat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.cat-item:hover img {
  transform: scale(1.08);
}

.cat-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(180deg, rgba(42, 42, 41, .05) 20%, rgba(42, 42, 41, .88) 100%);
  z-index: 1;
  transition: background-color var(--t);
}

.cat-overlay::before {
  content: '';
  width: 40px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 3px;
  background-color: var(--c-gold);
  transition: width .35s var(--ease), background-color var(--t);
}

.cat-item:hover .cat-overlay::before {
  width: 72px;
  background-color: var(--c-primary);
}

.cat-overlay h4 {
  font-size: 22px;
  letter-spacing: .04em;
}

.cat-overlay span {
  margin-top: 6px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, .85);
}

.cat-overlay span::after {
  content: "\ea5c";
  font-family: 'LineIcons';
  font-size: 12px;
  margin-left: 8px;
  display: inline-block;
  transition: transform var(--t);
}

.cat-item:hover .cat-overlay span::after {
  transform: translateX(4px);
}

/*===== 10. EQUIPO / LISTADOS =====*/
.team_area {
  position: relative;
}

.team_area > .container-fluid {
  max-width: 1320px;
  padding-left: 24px;
  padding-right: 24px;
}

.single_team {
  position: relative;
  height: calc(100% - 30px);
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.single_team:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.single_team img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-color: var(--c-bg-alt);
}

.single_team .team_content {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 22px;
  border-top: 3px solid var(--c-primary);
  background-color: #fff;
}

.single_team .team_content .team_name {
  font-size: inherit;
  line-height: 1.35;
}

.single_team .team_content .team_name a {
  display: inline;
  font-size: 17px;
  font-weight: 600;
  color: var(--c-ink);
  transition: color var(--t);
}

.single_team .team_content .team_name a:hover {
  color: var(--c-primary);
}

.single_team .team_content p {
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--c-muted);
}

.single_team .team_content p + p {
  margin-top: 2px;
}

.single_team .team_content .social {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.single_team .team_content .social li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 15px;
  color: var(--c-ink);
  background-color: var(--c-bg-alt);
  transition: background-color var(--t), color var(--t), transform var(--t);
}

.single_team .team_content .social li a:hover {
  color: #fff;
  background-color: var(--c-primary);
  transform: translateY(-2px);
}

/* Separador entre listados (p. ej. "Árbitros") */
.team_divider {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 56px 0 8px !important;
}

.team_divider::before,
.team_divider::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background-color: var(--c-border);
}

.team_divider p {
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .12em;
  background-color: var(--c-primary-soft);
}

/*===== 11. TESTIMONIOS (MISIÓN / VISIÓN) =====*/
.testimonial_area {
  position: relative;
}

.testimonial_area::before {
  position: absolute;
  content: '';
  inset: 0;
  background-color: rgba(42, 42, 41, .9);
}

.testimonial_area .container {
  position: relative;
}

.testimonial_active_wrapper {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding-bottom: 64px;
}

.testimonial_active_wrapper .tns-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
}

.testimonial_active_wrapper .tns-nav button {
  margin: 0 5px;
  width: 10px;
  height: 10px;
  border-radius: 50px;
  font-size: 0;
  border: 0;
  background-color: rgba(255, 255, 255, .35);
  transition: width var(--t), background-color var(--t);
}

.testimonial_active_wrapper .tns-nav button:hover {
  background-color: rgba(255, 255, 255, .6);
}

.testimonial_active_wrapper .tns-nav button.tns-nav-active {
  width: 32px;
  background-color: var(--c-primary);
}

.single_testimonial {
  padding: 0 12px;
}

.single_testimonial::before {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  margin: 0 auto;
  border-radius: 3px;
  background-color: var(--c-primary);
}

.single_testimonial img {
  display: inline-block;
  border-radius: 50%;
}

@media (max-width: 767px) {
  .single_testimonial img {
    width: 120px;
  }
}

.single_testimonial .author_name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .06em;
  color: var(--c-gold);
  margin-top: 22px;
}

.single_testimonial span {
  font-size: 14px;
  color: #fff;
}

.single_testimonial p {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .88);
  margin-top: 18px;
}

@media (max-width: 767px) {
  .single_testimonial .author_name {
    font-size: 15px;
  }

  .single_testimonial p {
    font-size: 15px;
  }
}

/*===== 12. BLOG / EVENTOS / PREGUNTAS FRECUENTES =====*/
.single_blog {
  background-color: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}

.single_blog:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Proporción natural: los afiches contienen texto que no debe recortarse */
.single_blog .blog_image {
  overflow: hidden;
  background-color: var(--c-bg-alt);
}

.single_blog .blog_image img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .6s var(--ease);
}

.single_blog:hover .blog_image img {
  transform: scale(1.05);
}

.single_blog .blog_content {
  margin-top: 0;
  padding: 26px 28px 28px;
}

.single_blog .blog_content .blog_title {
  line-height: 1.35;
}

.single_blog .blog_content .blog_title a {
  display: inline;
  font-size: 21px;
  font-weight: 600;
  color: var(--c-ink);
  transition: color var(--t);
}

@media (max-width: 767px) {
  .single_blog .blog_content {
    padding: 22px 20px 24px;
  }

  .single_blog .blog_content .blog_title a {
    font-size: 18px;
  }
}

.single_blog .blog_content .blog_title a:hover {
  color: var(--c-primary);
}

.single_blog .blog_content p {
  margin-top: 14px;
}

.single_blog .blog_content .more {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-primary);
  margin-top: 18px;
  transition: color var(--t);
}

.single_blog .blog_content .more::after {
  content: "\ea5c";
  font-family: 'LineIcons';
  font-size: 12px;
  margin-left: 8px;
  transition: transform var(--t);
}

.single_blog .blog_content .more:hover {
  color: var(--c-primary-dark);
}

.single_blog .blog_content .more:hover::after {
  transform: translateX(4px);
}

.single_blog.blog_2 {
  border-left: 4px solid var(--c-gold);
}

.single_blog.blog_2 .blog_content {
  padding-left: 28px;
}

@media (max-width: 767px) {
  .single_blog.blog_2 .blog_content {
    padding-left: 20px;
  }
}

.single_blog.blog_2 .blog_content .blog_title a {
  font-size: 19px;
}

.single_blog.blog_2 .blog_content p {
  margin-top: 14px;
}

/*===== 13. CONTACTO =====*/
.contact_area {
  position: relative;
  z-index: 5;
}

.contact_area::before {
  position: absolute;
  content: '';
  inset: 0;
  background-color: rgba(42, 42, 41, .9);
  z-index: -1;
}

.contact_area form {
  max-width: 920px;
  margin: 0 auto;
  padding: 16px 36px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, .12);
  background-color: rgba(255, 255, 255, .05);
}

@media (max-width: 767px) {
  .contact_area form {
    padding: 4px 18px 28px;
  }
}

p.form-message.success,
p.form-message.error {
  font-size: 15px;
  color: var(--c-ink);
  padding: 12px 16px;
  margin-top: 30px;
  border-radius: var(--radius-sm);
  background-color: #fff;
  border-left: 4px solid var(--c-gold);
}

p.form-message.error {
  color: var(--c-primary);
  border-left-color: var(--c-primary);
}

.single_form {
  margin-top: 24px;
}

.single_form input,
.single_form textarea {
  width: 100%;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius-sm);
  padding: 0 20px;
  font-family: var(--font-body);
  font-size: 15px;
  color: #fff;
  background-color: rgba(255, 255, 255, .06);
  transition: border-color var(--t), background-color var(--t), box-shadow var(--t);
}

.single_form input::placeholder,
.single_form textarea::placeholder {
  color: rgba(255, 255, 255, .7);
  opacity: 1;
}

.single_form input:hover,
.single_form textarea:hover {
  border-color: rgba(255, 255, 255, .5);
}

.single_form input:focus,
.single_form textarea:focus {
  border-color: var(--c-gold);
  background-color: rgba(255, 255, 255, .1);
  box-shadow: 0 0 0 3px rgba(215, 181, 109, .25);
}

.single_form textarea {
  height: 170px;
  resize: vertical;
  padding-top: 16px;
}

.single_form .main-btn {
  min-width: 200px;
  margin-top: 8px;
}

/*===== 14. MODAL Y ACORDEÓN =====*/
.modal-content {
  border: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  padding: 20px 24px;
  background-color: var(--c-ink);
  border-bottom: 3px solid var(--c-primary);
}

.modal-header .modal-title {
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: .02em;
}

.modal-header .btn-close {
  filter: invert(1) grayscale(1) brightness(2);
  opacity: .8;
}

.modal-header .btn-close:hover {
  opacity: 1;
}

.modal-body {
  padding: 12px 24px 24px;
}

.accordion-button {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--c-ink);
  padding: 18px 4px;
}

.accordion-button:not(.collapsed) {
  color: var(--c-primary);
  background-color: transparent;
  box-shadow: inset 0 -1px 0 var(--c-border);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.accordion-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(215, 181, 109, .45);
}

.accordion-body {
  padding: 14px 4px 18px;
}

.accordion-body li {
  font-size: 14.5px;
  line-height: 1.6;
  padding: 4px 0;
  color: var(--c-text);
}

/*===== 15. PIE DE PÁGINA =====*/
.footer_area {
  position: relative;
  background-color: var(--c-ink);
  padding-top: 64px;
  padding-bottom: 48px !important;
  border-top: 4px solid var(--c-primary);
}

.footer_area::before {
  content: '';
  position: absolute;
  top: -4px;
  right: 0;
  width: 30%;
  height: 4px;
  background-color: var(--c-gold);
}

.footer_wrapper {
  text-align: left !important;
}

.footer_wrapper .row > [class*="col-"] {
  margin-bottom: 24px;
}

.footer_area .navbar-brand img {
  width: 260px;
}

.footer_area p.text-white {
  color: rgba(255, 255, 255, .78) !important;
  font-size: 14.5px;
  line-height: 1.75;
  text-align: left;
  max-width: 640px;
}

.footer_area h4 {
  position: relative;
  margin-top: 16px !important;
  margin-bottom: 22px !important;
  font-size: 15px;
  letter-spacing: .12em;
  text-align: left !important;
  color: var(--c-gold) !important;
}

.footer_area h4::after {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  margin-top: 12px;
  background-color: var(--c-primary);
}

.footer_area .contact-details li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px !important;
}

.footer_area .contact-details li::before {
  font-family: 'LineIcons';
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin-right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 13px;
  color: var(--c-gold);
  background-color: rgba(255, 255, 255, .06);
}

.footer_area .contact-details a[href^="tel:"] {
  font-variant-numeric: tabular-nums;
}

.footer_area .contact-details li:has(a[href^="tel:"])::before {
  content: "\eb4b";
}

.footer_area .contact-details li:has(a[href^="mailto:"])::before {
  content: "\eaab";
}

.footer_area .contact-details a,
.footer_area .contact-details p {
  font-size: 14.5px;
  line-height: 30px;
  overflow-wrap: anywhere;
}

.footer_area .contact-details a.text-white {
  color: rgba(255, 255, 255, .82) !important;
  transition: color var(--t);
}

.footer_area .contact-details a.text-white:hover {
  color: #fff !important;
}

.footer_area #red {
  margin-top: 70px !important;
}

@media (max-width: 767px) {
  .footer_area #red {
    margin-top: 0 !important;
  }
}

.footer_menu ul li {
  display: inline-block;
  padding-top: 5px;
}

.footer_menu ul li + li {
  margin-left: 30px;
}

.footer_menu ul li a {
  font-size: 16px;
  color: rgba(255, 255, 255, .8);
}

.footer_menu ul li a:hover {
  color: #fff;
}

.credit {
  font-size: 16px;
  color: #fff;
  padding-top: 0;
  margin-bottom: 18px;
}

.credit a {
  color: #fff;
}

.footer_social ul li {
  display: inline-block;
}

.footer_social ul li + li {
  margin-left: 16px;
}

.footer_social ul li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: #fff;
  border: 1px solid rgba(215, 181, 109, .55);
  transition: background-color var(--t), border-color var(--t), color var(--t);
}

.footer_social ul li a i {
  font-size: 18px;
  color: var(--c-gold);
  transition: color var(--t);
}

.footer_social ul li a:hover {
  color: var(--c-ink);
  background-color: var(--c-gold);
  border-color: var(--c-gold);
}

.footer_social ul li a:hover i {
  color: var(--c-ink);
}

/*===== 16. VOLVER ARRIBA =====*/
.back-to-top {
  font-size: 18px;
  color: #fff;
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  line-height: 46px;
  border-radius: 50%;
  background-color: var(--c-primary);
  text-align: center;
  z-index: 99;
  box-shadow: 0 10px 24px -8px rgba(227, 30, 36, .6);
  transition: background-color var(--t), transform var(--t);
  display: none;
}

.back-to-top:hover {
  color: #fff;
  background-color: var(--c-primary-dark);
  transform: translateY(-3px);
  cursor: pointer;
}

/*===== 17. ACCESIBILIDAD Y MOVIMIENTO REDUCIDO =====*/
a:focus-visible,
button:focus-visible,
.main-btn:focus-visible,
.dropdown-item:focus-visible {
  outline: 3px solid var(--c-gold);
  outline-offset: 2px;
  box-shadow: none;
}

.single_form input:focus-visible,
.single_form textarea:focus-visible {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
