body {
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
    background: #f7fbfa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }

.proyectos-section {
    max-width: 1700px;
    margin: 0 auto;
    padding: 30px 0 40px 0;
}
.proyectos-section h1 {
   font-family: 'Dancing Script', 'Montserrat', Arial, sans-serif !important;
   font-size: 4.7rem;
   color: #189d47;
 
   background: none;
   letter-spacing: 0.03em;
   margin-bottom: 14px;
   text-transform: none;
   text-align: center;
}
.proyectos-desc {
    text-align: center;
    font-size: 1.18rem;
    color: #222;
    margin-bottom: 2em;
    line-height: 1.4;
}
.proyectos-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 80vh;
    margin: 0; /* asegurate de que no tenga márgenes */
}
.carousel-btn {
    background: rgba(44,80,56,0.8);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    font-size: 2.7rem;
    box-shadow: 0 4px 18px #1112;
    cursor: pointer;
    z-index: 3;
    transition: background .16s, box-shadow .18s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    outline: none;
}
.carousel-btn.left {
    left: 1.5vw;
}
.carousel-btn.right {
    right: 1.5vw;
}
.carousel-btn:hover {
    background: #18bb5e;
    color: #fff;
    box-shadow: 0 6px 24px #167e3b44;
}
.carousel-track {
    display: flex;
    overflow: hidden;
    width: 100%;
    max-width: 1700px;
    /* Cambiamos el alto para que la imagen se vea más alta */
    height: 60vw;           /* Más alto que antes */
    max-height: 940px;      /* Subí el máximo si tu pantalla lo permite */
    min-height: 500px;      /* Opcional: subí el mínimo para PC */
    border-radius: 2.2rem;
    box-shadow: 0 10px 48px #0002;
    position: relative;
    scroll-behavior: smooth;
    background: #fff;
    margin: 0;
}
.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    position: relative;
}
.slide-img {
    width: 100%;
    height: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 2.1rem;
    overflow: hidden;
    transition: box-shadow .22s;
}


.slide-info {
    width: 100%; /* Usá 100% para que siga el ancho de la imagen */
    max-width: 100vw;
    background: linear-gradient(180deg,rgba(0,0,0,0.10) 60%,rgba(0,0,0,0.85) 100%);
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 26px 0 24px 0; /* Menos padding lateral para centrar */
    text-align: center;
    color: #fff;
    z-index: 2;
    display: flex;         /* NUEVO: flex para centrar el texto en vertical */
    flex-direction: column;
    align-items: center;   /* Centra horizontalmente */
    justify-content: center; /* Centra verticalmente el contenido */
}

.slide-info h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 6px 24px #000c, 0 2px 8px #0008;
    letter-spacing: .04em;
    line-height: 1.13;
     text-align: center;
}

/* Responsive */
@media (max-width: 1400px) {
    .carousel-track {
        height: 54vw;
        max-height: 670px;
    }
    .slide-info h3 { font-size: 1.42rem; }
}
@media (max-width: 900px) {
    .carousel-track {
        height: 65vw;
        max-height: 390px;
        min-height: 160px;
        border-radius: 1.3rem;
    }
    .carousel-slide,
    .slide-img,
    .slide-info {
        min-width: 100vw;
        width: 100vw;
    }
}
@media (max-width: 600px) {
    @media (max-width: 600px) {
    .carousel-track {
        height: 80vh !important;   /* 70% del alto de la pantalla */
        max-height: 70vh;
        min-height: 160px;
    }
}

    .carousel-slide,
    .slide-img,
    .slide-info {
        min-width: 100vw;
        width: 100vw;
    }
    .slide-info { padding: 12px 3vw 12px 3vw; }
    .slide-info h3 { font-size: 0.92rem; }
    .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 1.35rem;
    }
    .carousel-btn.left { left: 3vw; }
    .carousel-btn.right { right: 3vw; }
}
.no-proyectos {
    text-align: center;
    color: #777;
    font-size: 1.13em;
    padding: 40px 0;
}
.footer-proyectos {
    width: 100vw;
    background: #151515;
    color: #fff;
    text-align: center;
    padding: 14px 0 10px 0;
    font-size: 1.11rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    border-top: 1px solid #222;
    margin-top: 28px;
    position: relative;
    left: 0; bottom: 0;
}
:root {
  --verde: #16c175;
  --negro: #141414;
  --blanco: #fff;
  --transparente: rgba(20,20,20,0.95);
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  right: -260px;
  width: 240px;
  height: 100vh;
  background: var(--transparente);
  box-shadow: -2px 0 24px rgba(0,0,0,0.08);
  transition: right 0.35s cubic-bezier(.75,0,.24,1);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 38px;
}
.sidebar.active { right: 0; }

.sidebar-menu {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sidebar-menu li a {
  display: block;
  padding: 10px 0;
  color: var(--blanco);
  font-weight: 700;
  font-size: 1.07rem;
  text-decoration: none;
  position: relative;
  text-align: center;
  background: none;
  transition: color 0.2s;
  overflow: hidden;
}
.sidebar-menu li a::before {
  content: "";
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--verde), transparent);
  transition: left 0.35s cubic-bezier(.4,1,.7,1);
  z-index: 1;
}
.sidebar-menu li a:hover, .sidebar-menu li a.active { color: var(--verde); }
.sidebar-menu li a:hover::before, .sidebar-menu li a.active::before {
  left: 100%;
  animation: brillo 0.8s linear;
}
@keyframes brillo {
  from { left: -100%; }
  to { left: 100%; }
}

/* Botón hamburguesa */
.hamburger {
  position: fixed;
  top: 28px;
  right: 28px;
  width: 42px;
  height: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
}
.hamburger span {
  display: block;
  width: 32px;
  height: 4px;
  margin: 2px 0;
  background: var(--negro);
  border-radius: 2px;
  transition: all 0.3s;
}
.sidebar.active ~ .hamburger span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.sidebar.active ~ .hamburger span:nth-child(2) { opacity: 0; }
.sidebar.active ~ .hamburger span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}
.btn-volver-izq {
  position: fixed;
  top: 34px;
  left: 18px;
  z-index: 10010;
  width: 44px;
  height: 44px;
  background: rgba(22,193,117,0.09);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px -4px var(--negro);
  transition: background 0.17s, box-shadow 0.17s, transform 0.15s;
  text-decoration: none;
  cursor: pointer;
  border: 2.5px solid var(--verde);
  opacity: 0.82;
}

.btn-volver-izq span {
  color: var(--verde);
  font-size: 2.3rem;
  line-height: 1;
  font-weight: 800;
  transition: color 0.16s, transform 0.14s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-volver-izq:hover, .btn-volver-izq:focus {
  background: var(--verde);
  box-shadow: 0 6px 24px -6px var(--verde);
  transform: translateY(-2px) scale(1.07);
  opacity: 1;
}

.btn-volver-izq:hover span,
.btn-volver-izq:focus span {
  color: #fff;
  transform: translateX(-3px) scale(1.14);
}

/* Opcional: solo mostrar en mobile 
@media (min-width: 901px) {
  .btn-volver-izq { display: none; }
}
*/
@media (max-width: 900px) {
  .carousel-slide,
  .slide-img,
  .slide-info {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}
@media (max-width: 600px) {
  .slide-info {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    left: 0 !important;
    right: 0 !important;
    text-align: center !important;
    box-sizing: border-box;
    padding-left: 0 !important;
    padding-right: 0 !important;
    font-size: 0.85rem !important;
  }
  .slide-info * {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    font-size: 0.85rem !important;
  }
}
html, body {
  overflow-x: hidden !important;
}
.footer-redes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  font-size: 1.19rem;
}

.footer-redes span {
  font-weight: 900;
  color: #fff;
  margin-right: 10px;
  font-size: 1.28em;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 12px #000a;
  text-transform: uppercase;
  filter: brightness(1.7) drop-shadow(0 2px 4px #0006);
}

.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: none;
  border: none;
  border-radius: 7px;
  transition: color .2s, transform .2s;
  margin-left: 3px;
  padding: 3px;
  font-size: 1.21em;
}

.footer-icon svg {
  fill: #fff !important;
  filter: drop-shadow(0 2px 5px #1118);
  transition: fill .17s, filter .17s;
}

.footer-icon:hover svg,
.footer-icon:focus svg {
  fill: #16c175 !important;
  filter: drop-shadow(0 2px 8px #16c175cc);
  transform: scale(1.13) rotate(-8deg);
}
@media (min-width: 901px) {
  .slide-img {
    background-size: contain !important;    /* Esto es la clave */
    background-repeat: no-repeat;
    background-position: center center;
    width: 100%;
    height: 100%;
    border-radius: 2.1rem;
    background-color: #fff;
  }
  .carousel-slide img,
  .slide-img img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    background: #fff;
    border-radius: 2.1rem;
    display: block;
  }
}
