/* =========================
   EMPRENDIMIENTOS HERO
========================= */

.emprendimientos-hero {
  position: relative;
  height: 55vh;
  min-height: 350px;
  background: url('../assets/images/emprendimientos/emprendimientos.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emprendimientos-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
}

.emprendimientos-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.emprendimientos-hero h1 {
  font-family: 'GT Walsheim Bold', sans-serif;
  font-size: clamp(28px, 6vw, 72px);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  max-width: 90vw;
  margin: 0 auto;
}

/* =========================
   SECCIÓN EMPRENDIMIENTOS
========================= */
.emprendimientos-proyectos {
  position: relative;
  padding: 60px 0;
  background: #1C2249;
  color: #fff;
  font-family: 'GT Walsheim', sans-serif;
  z-index: 1;
}

/* =========================
   FILTROS
========================= */
.ep-filtros {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.ep-filtros .ep-btn {
  background: #1C2249;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 1px solid #007BFF;
}

.ep-filtros .ep-btn:hover,
.ep-filtros .ep-btn.active {
  background: #00D6FF;
  color: #1C2249;
  border: none;
}

.blur {
  filter: blur(3px);
  transition: all 0.4s ease, filter 0.3s ease;
  pointer-events: none;
}

/* =========================
   GRID DE CARDS
========================= */
.ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 30px;
  justify-items: center;
  position: relative;
}

@media (min-width: 768px) {
  .ep-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .ep-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================
   CARD INDIVIDUAL
========================= */
.ep-card {
  background: #1C2249;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
  height: 100%;
  border: 1px solid #007BFF;
}

.ep-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 214, 255, 0.4);
  border: none;
}

.ep-card .ep-img img {
  width: 100%;
  display: block;
  height: 200px;
  object-fit: cover;
}

.ep-card .ep-content {
  padding: 20px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
}

.ep-card h3 {
  font-family: 'GT Walsheim Bold';
  font-size: 28px;
  line-height: 1.2;
  color: #fff;
}

.ep-card h4 {
  font-size: 16px;
  color: #a3a3a3;
  font-weight: normal;
}

.ep-servicios-title {
  font-weight: bold;
  font-size: 15px;
  margin-top: 10px;
}

.ep-servicios-list {
  min-height: 2.8em;
  line-height: 1.4;
  font-size: 15px;
  color: #00D6FF;
  margin-bottom: 12px;
}

.ep-card.ep-no-detalle {
  cursor: default;
}

.ep-card.ep-no-detalle .ep-ver-mas {
  display: none;
}

.ep-ver-mas {
  display: inline-block;
  align-self: flex-start;
  padding: 8px 16px;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: bold;
  background: #00D6FF;
  color: #1C2249;
  cursor: pointer;
  transition: 
    background-color 0.3s ease, 
    color 0.3s ease, 
    border-color 0.3s ease;
  transform: none;
  margin-top: auto;
}

.ep-ver-mas:hover {
  background: #1C2249;
  color: #00D6FF;
  transform: none;
  border-color: #00D6FF;
}

@media (max-width: 500px) {

  .ep-card[data-proyecto="01"] .ep-img img,
  .ep-card[data-proyecto="02"] .ep-img img,
  .ep-card[data-proyecto="08"] .ep-img img {
    object-position: right 70%;
  }

}

/* =========================
   DETALLE 
========================= */
.ep-detalle-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(8px);
  padding-top: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 10000;
}

.ep-detalle-view.active {
  opacity: 1;
  pointer-events: auto;
}

.ep-detalle-container {
  background: #1C2249;
  border-radius: 16px;
  width: 90%;
  max-width: 1100px;
  height: 90%;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  transform-origin: center center;
  transition: transform 0.5s ease;
  z-index: 10001;
}

.ep-detalle-ubicacion {
  display: flex;
  align-items: center;
  font-size: 18px;
  color: #00D6FF;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.ep-detalle-ubicacion .ep-icono-ubicacion {
  display: flex;
  align-items: center;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.ep-cerrar {
  position: sticky;
  top: 20px;
  margin-left: auto;
  margin-right: 20px;
  background: #00D6FF;
  color: #1C2249;
  border: none;
  padding: 10px 16px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  z-index: 20;
}

.ep-detalle-media img,
.ep-detalle-media video {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 16px;
  margin-top: 30px;
}

.ep-detalle-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.ep-detalle-info h2 {
  font-size: 42px;
  font-family: 'GT Walsheim Bold';
  color: #fff;
}

.ep-detalle-texto {
  font-size: 20px;
  line-height: 1.6;
  margin-top: 40px;
  color: #a3a3a3;
}

.ep-detalle-video video {
  width: 100%;
  border-radius: 16px;
  margin-top: 16px;
}

.ep-detalle-extra {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.ep-detalle-extra-left {
  flex: 1;
  text-align: right;
  padding-right: 1.5rem;
  padding-left: 0.5rem;
}

.ep-detalle-extra-right {
  flex: 1;
  text-align: left;
  padding-left: 1.5rem;
  padding-right: 0.5rem;
}

.ep-detalle-extra::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: #fff;
}

.ep-servicios-listado {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #00D6FF;
  font-size: 16px;
}

.ep-servicios-listado li {
  margin-bottom: 4px;
}

.ep-bloque-extra {
  background-color: transparent;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  box-shadow: none !important;
}

.ep-bloque-extra h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  margin-bottom: 15px;
}

.ep-boton-extra {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 10px 20px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  box-shadow: none !important;
  transform: none !important;
  margin-top: 10px;
}

.ep-boton-extra:hover {
  background-color: #1C2249;
  color: #fff;
  border-color: #fff;
  box-shadow: none !important;
  transform: none !important;
}

.ep-bloque-extra .ep-boton-extra {
  display: inline-block;
  padding: 10px 25px;
  background-color: #fff;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.ep-bloque-extra .ep-boton-extra:hover {
  background-color: #1C2249;
  color: #fff;
  border-color: #fff;
  transform: none !important;
  box-shadow: none !important;
}

.ep-carousel {
  position: relative;
  width: 100%;
}

.ep-slide {
  display: none;
}

.ep-slide.active {
  display: block;
}

.ep-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.ep-prev,
.ep-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  font-size: 28px;
  padding: 8px 14px;
  cursor: pointer;
}

.ep-prev { left: 10px; }
.ep-next { right: 10px; }

.ep-pdf-link {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid white;
  border-radius: 25px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
}

.ep-pdf-link:hover {
  background-color: #007BFF;
  border-color: white;
  color: white;
}

@media (max-width: 425px) {

  .ep-caracteristicas {
    font-size: 0.85rem;
    line-height: 1.6;
  }

}
/* =========================
   TRANSICIONES
========================= */
.ep-card-flip {
  position: absolute;
  z-index: 10002;
  border-radius: 16px;
  overflow: hidden;
  background: #1C2249;
}

.ep-flip-image {
  position: fixed;
  object-fit: cover;
  z-index: 20000;
  transition: all 0.7s ease;
  pointer-events: none;
}

.ep-mapa-bloque{
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}


.ep-mapa-link,
.ep-recorrido3d-link{
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid white;
  border-radius: 25px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
}

.ep-mapa-link:hover,
.ep-recorrido3d-link:hover{
  background-color: #007BFF;
  border-color: white;
  color: white;
}

@media (max-width: 768px) {
  .ep-card h3 {
    font-size: 20px;
  }

  .ep-card .ep-img img {
    height: 180px;
  }
  .ep-detalle-info h2 {
    font-size: 24px;
  }
  .ep-detalle-texto {
    font-size: 14px;
  }
}