﻿/* ===== HERO ===== */
.ep-hero {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 165px 20px 50px;
  background: rgba(21,88,160,0.88);
}
.ep-hero-overlay {
  max-width: 700px;
}
.ep-hero-tag {
  display: inline-block;
  background: #2E86DE;
  color: #1558A0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.ep-hero h1 {
  color: #fff;
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 14px;
}
.ep-hero p {
  color: #c8dff0;
  font-size: 15px;
  margin: 0;
  line-height: 1.7;
}

/* ===== SECCIONES ===== */
.ep-section {
  padding: 60px 0;
}
.ep-section--alt {
}

.ep-section-header {
  text-align: center;
  margin-bottom: 44px;
  padding-top: 8px;
  position: relative;
}
.ep-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #DBEAFE 0%, #EBF3FB 100%);
  color: #1558A0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(21,88,160,0.12);
}
.ep-section-header h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  color: #0b2a6b;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
  line-height: 1.15;
  text-transform: uppercase;
}
.ep-section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, #1558A0 0%, #2E86DE 100%);
  border-radius: 4px;
}
.ep-section-header p {
  font-size: 15px;
  color: #475569;
  margin: 0 auto;
  max-width: 640px;
  line-height: 1.55;
  font-weight: 500;
}

/* ===== CARDS ===== */
.ep-cards {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

/* Wrapper tarjeta + panel */
.ep-lugar-wrap {
  position: relative;
  width: 560px;
  max-width: 100%;
  min-height: 320px;
  margin: 0 auto;
  display: flex;
}

/* Tarjeta — la imagen interior se estira con flex para igualar al popup */
.ep-card--banner {
  flex: 1;
  width: 100%;
  margin: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.09);
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* En desktop todas las tarjetas se desplazan a la izquierda para dejar
   espacio al popup (mismo tamaño, 560px) a la derecha. */
.ep-lugar-wrap:hover .ep-card--banner,
.ep-lugar-wrap:hover ~ .ep-lugar-wrap .ep-card--banner,
.ep-lugar-wrap:has(~ .ep-lugar-wrap:hover) .ep-card--banner {
  transform: translateX(-290px);
}

/* Panel inline a la derecha — mismo ancho que la tarjeta (560px) */
.ep-inline-panel {
  position: absolute;
  top: 50%;
  left: 290px;
  width: 560px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.13);
  border-left: 4px solid #1558A0;
  z-index: 100;
  overflow: hidden;
  opacity: 0;
  transform: translate(18px, -50%);
  pointer-events: none;
  transition: opacity 0.28s ease 0.08s, transform 0.28s ease 0.08s;
  box-sizing: border-box;
}
.ep-inline-panel.active {
  opacity: 1;
  transform: translate(0, -50%);
  pointer-events: auto;
}
.ep-inline-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: rgba(0,0,0,0.45);
  border: none;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.ep-inline-close:hover { background: rgba(0,0,0,0.7); }
.ep-inline-img { display: none; }
.ep-inline-body {
  padding: 28px 28px 24px;
  width: 100%;
}

/* ===== RESPONSIVE ===== */
/* Tablet (<1200px): el popup pasa a overlay sobre la tarjeta */
@media (max-width: 1200px) {
  .ep-lugar-wrap { width: 100%; max-width: 560px; }
  .ep-lugar-wrap:hover .ep-card--banner,
  .ep-lugar-wrap:hover ~ .ep-lugar-wrap .ep-card--banner,
  .ep-lugar-wrap:has(~ .ep-lugar-wrap:hover) .ep-card--banner {
    transform: none;
  }
  .ep-inline-panel {
    left: 0;
    width: 100%;
    border-left: none;
    border-top: 4px solid #1558A0;
    transform: translateY(8px);
  }
  .ep-inline-panel.active {
    transform: translateY(0);
  }
}

/* Móvil (<900px): panel flota desde abajo en pantalla completa */
@media (max-width: 900px) {
  .ep-inline-panel {
    position: fixed;
    left: 50%;
    top: auto;
    bottom: 0;
    transform: translateX(-50%) translateY(100%);
    width: min(520px, 96vw) !important;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 32px rgba(0,0,0,0.18);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
    opacity: 0;
    z-index: 1300;
  }
  .ep-inline-panel.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  .ep-inline-body {
    width: 100% !important;
  }
}
.ep-inline-tag {
  display: inline-block;
  background: #EBF3FB;
  color: #2E86DE;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.ep-inline-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1558A0;
  margin: 0 0 10px;
}
.ep-inline-body p {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  margin: 0 0 14px;
}
.ep-inline-detail {
  font-size: 12px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.ep-inline-detail i { color: #2E86DE; }
.ep-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.08);
  padding: 22px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.2s, box-shadow 0.2s;
  border-left: 4px solid #2E86DE;
}
.ep-section--alt .ep-card {
  background: #ffffff;
}
.ep-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}
.ep-card-icon {
  width: 42px;
  height: 42px;
  background: #EBF3FB;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2E86DE;
  font-size: 18px;
  flex-shrink: 0;
}
.ep-card-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1558A0;
  margin: 0 0 6px;
}
.ep-card-body p {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin: 0 0 10px;
}
.ep-card-detail {
  font-size: 12px;
  color: #777;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}
.ep-card-detail i { color: #2E86DE; }

/* ===== TIKTOK BUBBLES ===== */
.ep-tt-thumb {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #0f0f0f 0%, #1a1a2e 60%, #0f0f0f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.10);
  font-size: 52px;
}

/* Modal TikTok */
.tt-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tt-modal-box {
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  width: min(380px, 92vw);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.tt-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.tt-modal-close:hover { background: #2E86DE; }
.tt-modal-title {
  padding: 12px 46px 10px 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.tt-modal-frame {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
}
.tt-modal-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Tarjeta banner (solo imagen + nombre) */
.ep-card--banner {
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  gap: 0;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.ep-card--banner .ep-card-photo {
  flex: 1 1 0;
  width: 100%;
  height: 0;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}
.ep-card--banner:hover .ep-card-photo {
  transform: scale(1.03);
}
.ep-card-banner-label {
  flex-shrink: 0;
  background: #1558A0;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  letter-spacing: 0.5px;
}

/* ── Migrated from inline <style> ── */

    /* Flecha dropdown en navbar */
    .nav-arrow {
      font-size: 10px;
      margin-left: 3px;
      transition: transform 0.2s ease;
      vertical-align: middle;
    }
    .dropdown:hover .nav-arrow,
    .dropdown.open .nav-arrow { transform: rotate(180deg); }

    /* Logo INICIO en navbar */
    .nav-inicio-logo {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-decoration: none !important;
      margin-right: -8px;
      padding: 4px 0px 4px 4px;
      gap: 2px;
      flex-shrink: 0;
    }
    .nav-inicio-logo img {
      height: 32px;
      width: auto;
      object-fit: contain;
    }
    .nav-inicio-logo span {
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 1px;
      color: #1558A0;
      text-transform: uppercase;
      line-height: 1;
    }
    .nav-inicio-logo:hover span { color: #2E86DE; }
  