/* ===== DETALLE DE PROYECTO (versión refinada) ===== */
:root {
  --green: #017A3F;
  --green-dark: #015e30;
  --ink: #1f1f1f;
  --muted: #6b7280;
  --bg: #fafcfb;
  --card: #ffffff;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  --font-base: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--font-base);
}

/* Fondo y estructura */
.proyecto-detalle {
  background: radial-gradient(1200px 300px at 50% -120px, rgba(1, 122, 63, 0.08), transparent 60%), var(--bg);
  padding: 3.5rem 0 3rem;
}

/* ===== ENCABEZADO ===== */
.proyecto-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.proyecto-header h1 {
  color: var(--green);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.2px;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  margin-bottom: 0.6rem;
  text-wrap: balance;
}

.proyecto-header p {
  color: #3d3d3d;
  max-width: 820px;
  margin: 0.25rem auto 0;
  font-size: clamp(1rem, 1.15vw, 1.08rem);
}

.chip-servicio{
  display:inline-block;
  background:var(--green);
  color:white;
  font-weight:600;
  padding:.28rem .8rem;
  border-radius:999px;
  font-size:.9rem;
  margin-right:.25rem;
  margin-bottom:.25rem;
}

/* ===== META (ubicación, año, región) ===== */
.proyecto-meta {
  display: flex;
  justify-content: center;
  gap: 0.6rem 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.proyecto-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #eef7f1;
  color: #244d37;
  border: 1px solid #e1efe6;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
}

.proyecto-meta i {
  color: var(--green);
}

/* ===== CARRUSEL ANTES / DESPUÉS ===== */
.ab-toggle {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.ab-toggle button {
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-weight: 700;
  background: #eef7f1;
  color: #1f3b2b;
  transition: all 0.2s ease;
}

.ab-toggle button:hover {
  background: #e3f3ea;
}

.ab-toggle button.active {
  background: var(--green);
  color: #fff;
}

.ab-toggle button.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Contenedor principal del carrusel */
#proyectoCarousel{
  position: relative;
  overflow: visible;            /* deja ver los puntos por fuera */
  max-width: 1100px;            /* opcional: evita que se vaya enorme */
  margin-inline: auto;          /* centrado */
}

#proyectoCarousel .carousel-inner{
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
  background: #fff;
}

/* La imagen define la altura del carrusel */
#proyectoCarousel .carousel-item{ line-height: 0; }
#proyectoCarousel .carousel-item img{
  width: 100%;
  height: clamp(340px, 65vh, 720px);
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

/* Indicadores “flotando” por fuera, debajo, sin alterar altura */
#proyectoCarousel .carousel-indicators{
  position: absolute;
  bottom: -30px;                /* los coloca fuera, debajo */
  left: 50%;
  transform: translateX(-50%);
  margin: 0;                    /* sin margen que empuje */
  gap: 8px;
  display: flex;
  justify-content: center;
  pointer-events: auto;
}

#proyectoCarousel .carousel-indicators [data-bs-target]{
  width: 10px;
  height: 10px;
  border-radius: 50%;           /* círculo perfecto */
  background-color: rgba(1,149,63,.45);
  border: 0;
  box-shadow: 0 0 0 0 transparent;
  transition: transform .2s ease, background-color .2s ease;
}

#proyectoCarousel .carousel-indicators .active{
  background-color: #017A3F;
  transform: scale(1.15);
}

/* Flechas con sombra, sin afectar tamaño */
#proyectoCarousel .carousel-control-prev-icon,
#proyectoCarousel .carousel-control-next-icon{
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.45));
}

/* ===== SOLUCIONES + DATOS EN LÍNEA ===== */
.proyecto-info-linea {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}

/* Caja de soluciones */
.proyecto-info-linea .caja-info {
  flex: 1 1 340px;
  background: var(--card);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #eef2ee;
}

.proyecto-info-linea .caja-info h3 {
  color: var(--green);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.proyecto-info-linea .caja-info p {
  color: #3d3d3d;
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Datos del proyecto */
.proyecto-info-linea .proyecto-dato {
  flex: 0 1 220px;
  background: var(--card);
  border-radius: 12px;
  padding: 1.2rem 1.8rem;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #eef2ee;
}

.proyecto-info-linea .proyecto-dato strong {
  color: var(--green);
  font-size: 1.6rem;
  font-weight: 700;
  display: block;
}

.proyecto-info-linea .proyecto-dato div {
  color: #555;
  font-size: 0.95rem;
  margin-top: 0.3rem;
  font-weight: 600;
}

/* ===== CTA FINAL ===== */
.cta-proyecto {
  background: linear-gradient(0deg, #eaf4ee, #eef7f1);
  border: 1px solid #e3efe7;
  border-radius: 16px;
  text-align: center;
  padding: 2.2rem 1.2rem;
  margin-top: 5rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.cta-proyecto h2 {
  color: var(--green-dark);
  font-weight: 800;
  margin-bottom: 0.4rem;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  text-wrap: balance;
}

.cta-proyecto p {
  color: #3d3d3d;
  margin-bottom: 1.2rem;
}

.cta-proyecto a.btn {
  background: var(--green);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.7rem 1.8rem;
  box-shadow: 0 10px 22px rgba(1, 122, 63, 0.18);
  transition: transform 0.08s ease, background-color 0.2s ease;
}

.cta-proyecto a.btn:hover {
  background: #0c7f44;
}

.cta-proyecto a.btn:active {
  transform: translateY(1px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .proyecto-info-linea {
    flex-direction: column;
    align-items: center;
  }

  .proyecto-info-linea .caja-info,
  .proyecto-info-linea .proyecto-dato {
    width: 100%;
    max-width: 480px;
  }
}

.nuestro-trabajo h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color:  var(--green) ;
}

.nuestro-trabajo p {
  color: #3d3d3d;
  max-width: 820px;
  margin: 0.25rem auto 0;
  font-size: clamp(1rem, 1.15vw, 1.08rem);
}


.spin {
  display: inline-block;
  animation: spin 1.4s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}