/*============Estilo de proyectos mejorado==*/
.proyecx-section {
  background: #111;
  color: #fff;
  padding: 100px 20px;
  display: flex;
  justify-content: center;
}

.proyecx-container {
  max-width: 1300px;
  width: 100%;
  text-align: center;
}

.proyecx-title {
  font-size: 2.2rem;
  color: #f97316;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.proyecx-subtitle {
  color: #ccc;
  max-width: 700px;
  margin: 0 auto 50px;
  font-size: 1rem;
  line-height: 1.6;
}

/* ====== GRID ====== */
.proyecx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 25px;
}

.proyecx-card {
  position: relative;
  background: #1a1a1a;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s, box-shadow 0.4s;
}

.proyecx-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.proyecx-card:hover img {
  transform: scale(1.1);
  filter: brightness(0.7);
}

.proyecx-card h3 {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1rem;
  transition: background 0.3s;
}

.proyecx-card:hover h3 {
  background: #f97316b3;
}

/* ====== MODAL ====== */
.proyecx-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.proyecx-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.proyecx-modal {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 14px;
  max-width: 800px;
  width: 90%;
  text-align: center;
  animation: proyecx-fadeIn 0.4s ease;
  box-shadow: 0 0 25px rgba(249,115,22,0.3);
}

@keyframes proyecx-fadeIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.proyecx-modal-img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}

.proyecx-modal-title {
  color: #f97316;
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.proyecx-modal-desc {
  color: #ccc;
  margin-bottom: 25px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.proyecx-modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.proyecx-modal-btn {
  background: #f97316;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.25s, transform 0.2s;
  text-decoration: none;
}

.proyecx-modal-btn:hover {
  background: #ff9d4c;
  transform: translateY(-2px);
}

.proyecx-modal-btn.close {
  background: #333;
}

.proyecx-modal-btn.close:hover {
  background: #555;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .proyecx-title { font-size: 1.7rem; }
  .proyecx-card img { height: 180px; }
}



/* ==========================
   CARRUSEL PERSONALIZADO NEXO
   ========================== */

.sectioncarrucel {
  margin-top: 130px;  /* escritorio */
  background: #111;
  color: #ffffff;
  margin-bottom: -40px;
}

.nexo-carousel {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  background: #000;
}

.nexo-title {
  padding: 20px;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #f97316b3;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.nexo-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.nexo-slide {
  min-width: 100%;
  user-select: none;
}

.nexo-slide img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

/* Botones */
.nexo-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s;
}

.nexo-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.nexo-btn-prev {
  left: 10px;
}

.nexo-btn-next {
  right: 10px;
}

/* Indicadores */
.nexo-dots {
  position: absolute;
  bottom: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nexo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.3s;
}

.nexo-dot.active {
  background: #fff;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  /* tablet */
  .sectioncarrucel {
    margin-top: 150px;
  }
}

@media (max-width: 600px) {
  /* celular */
  .sectioncarrucel {
    margin-top: 164px;
  }

  .nexo-slide img {
    height: 250px;
  }

  .nexo-title {
    font-size: 20px;
  }
}