/* ============================================================
   EMDR Iberoamérica Argentina — estilos v2
   Bootstrap 5 + Font Awesome 6 + Google Fonts (Inter)
   ============================================================ */

/* --- Variables de color corporativo --- */
:root {
  --emdr-blue:    #1a5276;
  --emdr-teal:    #17a589;
  --emdr-light:   #d4efdf;
  --emdr-gray:    #f4f6f9;
  --emdr-text:    #333;
  --emdr-muted:   #6c757d;
  --nav-height:   64px;
}

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--emdr-text);
  background: #fff;
  font-size: 15px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { color: var(--emdr-teal); text-decoration: none; }
a:hover { color: var(--emdr-blue); text-decoration: underline; }

/* --- Topbar --- */
.topbar {
  background: var(--emdr-blue);
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
}
.topbar a { color: #cfe2ff; }
.topbar a:hover { color: #fff; text-decoration: none; }
.topbar .topbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  margin-left: 4px;
  transition: background .2s;
}
.topbar .topbar-social a:hover { background: var(--emdr-teal); }

/* --- Navbar principal --- */
.navbar-main {
  background: #fff;
  border-bottom: 3px solid var(--emdr-teal);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  padding: .2rem 0;
  min-height: 84px;
}
.navbar-main .navbar-brand { padding: .2rem 0; }
.navbar-main .nav-link {
  font-weight: 500;
  font-size: 12.5px;
  color: var(--emdr-blue) !important;
  padding: .55rem .55rem !important;
  transition: color .2s;
  white-space: nowrap;
}
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active { color: var(--emdr-teal) !important; }

/* Item especial "Terapeutas EMDR" resaltado */
.navbar-main .nav-item .nav-link.nav-highlight {
  color: var(--emdr-teal) !important;
  font-weight: 700;
}
.navbar-main .nav-item .nav-link.nav-highlight:hover { color: var(--emdr-blue) !important; }

.navbar-main .dropdown-menu {
  border: 1px solid rgba(26,82,118,.15);
  border-top: 3px solid var(--emdr-teal);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  min-width: 230px;
  background: #f0f7f5;
}
.navbar-main .dropdown-item {
  font-size: 13px;
  padding: .45rem 1rem;
  color: var(--emdr-blue);
  border-bottom: 1px solid rgba(26,82,118,.07);
}
.navbar-main .dropdown-item:last-child { border-bottom: none; }
.navbar-main .dropdown-item:hover {
  background: var(--emdr-teal);
  color: #fff;
}
.navbar-main .dropdown-item:hover i { color: #fff; }
.navbar-main .dropdown-divider { border-color: rgba(26,82,118,.15); }

/* --- Submenú anidado --- */
.navbar-main .dropdown-submenu { position: relative; }
.navbar-main .dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -4px;
  display: none;
}
/* Hover en desktop */
@media (min-width: 992px) {
  .navbar-main .dropdown-submenu:hover > .dropdown-menu { display: block; }
}
/* Clase .show para mobile (toggle JS) */
.navbar-main .dropdown-submenu > .dropdown-menu.show { display: block; }

/* --- Hero / Page header --- */
.page-hero {
  background: linear-gradient(135deg, var(--emdr-blue) 0%, var(--emdr-teal) 100%);
  color: #fff;
  padding: .9rem 0 .7rem;
}
.page-hero h2 { font-weight: 700; margin: 0; font-size: 1.25rem; }
.page-hero h1 { font-weight: 700; margin: 0; font-size: 1.35rem; }
.page-hero .breadcrumb { background: transparent; padding: 0; margin-top: .3rem; }
.page-hero .breadcrumb-item, .page-hero .breadcrumb-item a { color: rgba(255,255,255,.8); font-size: 12px; }
.page-hero .breadcrumb-item.active { color: #fff; }
.page-hero .breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,.6); }

/* --- Sección de contenido general --- */
.content-section { padding: 3rem 0; }
.content-section.bg-gray { background: var(--emdr-gray); }

/* --- Tarjetas de sección --- */
.emdr-card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(0,0,0,.08);
  transition: transform .2s, box-shadow .2s;
  overflow: hidden;
}
.emdr-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.13); }
.emdr-card .card-header {
  background: var(--emdr-blue);
  color: #fff;
  font-weight: 600;
  border: none;
  font-size: 15px;
}
.emdr-card .card-icon {
  font-size: 2.4rem;
  color: var(--emdr-teal);
  margin-bottom: .6rem;
}

/* --- Divisor de sección con título --- */
.section-heading {
  text-align: center;
  margin-bottom: 2rem;
}
.section-heading h3 {
  display: inline-block;
  font-weight: 700;
  color: var(--emdr-blue);
  border-bottom: 3px solid var(--emdr-teal);
  padding-bottom: .3rem;
}

/* --- Botones --- */
.btn-emdr-primary {
  background: var(--emdr-blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: .55rem 1.4rem;
  font-weight: 600;
  font-size: 14px;
  transition: background .2s;
}
.btn-emdr-primary:hover { background: var(--emdr-teal); color: #fff; }

.btn-emdr-outline {
  border: 2px solid var(--emdr-blue);
  color: var(--emdr-blue);
  border-radius: 6px;
  padding: .5rem 1.4rem;
  font-weight: 600;
  font-size: 14px;
  background: transparent;
  transition: all .2s;
}
.btn-emdr-outline:hover { background: var(--emdr-blue); color: #fff; }

/* --- Formularios --- */
.form-label { font-weight: 500; font-size: 14px; }
.form-control:focus {
  border-color: var(--emdr-teal);
  box-shadow: 0 0 0 .2rem rgba(23,165,137,.2);
}

/* --- Alertas personalizadas --- */
.alert-emdr {
  border-left: 4px solid var(--emdr-teal);
  background: var(--emdr-light);
  color: var(--emdr-blue);
  border-radius: 6px;
}

/* --- Tabs (panel socio) --- */
.nav-tabs-emdr { border-bottom: 2px solid var(--emdr-teal); flex-wrap: wrap; }
.nav-tabs-emdr .nav-link {
  color: var(--emdr-blue);
  font-weight: 500;
  border: none;
  border-radius: 6px 6px 0 0;
  padding: .55rem 1rem;
  margin-right: 2px;
}
.nav-tabs-emdr .nav-link:hover { background: var(--emdr-light); }
.nav-tabs-emdr .nav-link.active {
  background: var(--emdr-teal);
  color: #fff;
}

/* --- Tablas --- */
.table-emdr thead th {
  background: var(--emdr-blue);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
}
.table-emdr tbody td { vertical-align: middle; font-size: 14px; }
.table-emdr tbody tr:hover { background: var(--emdr-light); }

/* --- Ficha de datos del socio --- */
.data-list { list-style: none; padding: 0; margin: 0; }
.data-list li {
  display: flex;
  gap: .5rem;
  padding: .5rem 0;
  border-bottom: 1px solid #e9ecef;
  font-size: 14px;
}
.data-list li:last-child { border: none; }
.data-list .label { font-weight: 600; color: var(--emdr-muted); min-width: 200px; }
.data-list .value { color: var(--emdr-text); }

/* --- Footer --- */
.site-footer {
  background: var(--emdr-blue);
  color: rgba(255,255,255,.8);
  padding: 2rem 0 1rem;
  margin-top: 3rem;
}
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  margin-right: 6px;
  transition: background .2s;
}
.site-footer .footer-social a:hover { background: var(--emdr-teal); }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 1.5rem;
  padding-top: 1rem;
  font-size: 12px;
  color: rgba(255,255,255,.55);
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .navbar-main .dropdown-submenu > .dropdown-menu {
    left: 0; top: 100%;
  }
  .data-list .label { min-width: 160px; }
}
@media (max-width: 575px) {
  .page-hero { padding: .75rem 0 .6rem; }
  .page-hero h2 { font-size: 1.15rem; }
  .data-list li { flex-direction: column; gap: .1rem; }
  .data-list .label { min-width: unset; }
}

/* --- Highlight especial (cursos en rojo) --- */
.text-highlight-red { color: #c0392b; font-weight: 600; }
