@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --main-color: #799d7d;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #fff;
  color: #1a1a1a;
}

h1,
h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Header */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #1a1a1a;
  text-transform: uppercase;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.logo img {
  max-width: 200px;
}

.logo span {
  color: #799d7d;
}

.social a {
  display: inline-block;
  margin-left: 20px;
  color: #999;
  font-size: 20px;
  text-decoration: none;
  transition: color 0.3s;
}

.social a:hover {
  color: #799d7d;
}

.social svg {
  width: 24px;
  height: 24px;
  fill: #799d7d;
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 6vw, 60px);
  background-color: #ddcaba8a;
}

.hero-content {
  flex: 1;
  padding-left: 45px;
}

.hero-content h1 {
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.hero-content h1 span {
  color: #799d7d;
}

.hero-content p {
  font-size: clamp(15px, 2.2vw, 18px);
  color: #666;
  line-height: 1.6;
  margin-bottom: 36px;
}

.btn {
  display: inline-block;
  padding: 11px 40px;
  background: #799d7d;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s;
}

.btn:hover {
  background: #618a65;
}

.hero-images {
  flex: 1;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

.hero-images .img {
  width: clamp(100px, 18vw, 160px);
  height: clamp(300px, 55vw, 520px);
  object-fit: cover;
  background: #e8f0e9;
}

.hero-images .img:nth-child(1) {
  background: linear-gradient(135deg, #799d7d, #4d7a52);
  background-image: url(../img/img_hero_1.webp);
}

.hero-images .img:nth-child(2) {
  background: linear-gradient(135deg, #a3c4a7, #6d9a72);
  background-image: url(../img/img_hero_2.webp);
}

.hero-images .img:nth-child(3) {
  background: linear-gradient(135deg, #c8dfcb, #8fb894);
  background-image: url(../img/img_hero_3.webp);
}

/* Seccion Te ofrecemos */
.ofrecemos {
  padding: clamp(40px, 8vw, 70px) 0;
}

.ofrecemos h2 {
  font-size: clamp(28px, 4vw, 35px);
  font-weight: 800;
  margin-bottom: clamp(30px, 6vw, 60px);
  color: #1a1a1a;
}

.sub-feat {
  color: #799d7d;
}

.cards {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  background: #f5f8f5;
  border-radius: 16px;
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  flex: 1;
  min-width: 280px;
  max-width: 560px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(121, 157, 125, 0.15);
}

.card-icon {
  width: 200px;
  height: 200px;
  object-fit: cover;
}

.card-icon svg {
  width: 40px;
  height: 40px;
  fill: #fff;
}

.card-icon img {
  max-width: 100%;
}

.card-body {
  flex: 1;
  text-align: center;
}

.card-body h3 {
  font-size: clamp(22px, 3vw, 27px);
  line-height: 1.2;
  font-weight: 900;
  margin-bottom: 25px;
  color: var(--main-color);
}

.card-body .btn-small {
  display: inline-block;
  padding: 10px 28px;
  background: transparent;
  color: #799d7d;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid #799d7d;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.card-body .btn-small:hover {
  background: #799d7d;
  color: #fff;
}

/* Seccion Economia Circular */

.pasos {
  padding: clamp(50px, 10vw, 100px) 0;
  display: flex;
  align-items: center;
  gap: clamp(32px, 8vw, 80px);
}

.pasos-content {
  flex: 1;
  max-width: 450px;
}

.section-title {
  text-align: center;
  max-width: 900px;
  margin: auto;
}

.section-title p {
  font-style: italic;
}

.section-title h2 {
  font-size: clamp(32px, 5.5vw, 48px);
  font-weight: 800;
  margin-bottom: 12px;
  color: #1a1a1a;
  text-align: center;
}

.section-title h2 span {
  color: #799d7d;
}

.pasos-content>p {
  font-size: 18px;
  color: #666;
  margin-bottom: 48px;
  line-height: 1.6;
}

.paso {
  display: flex;
  gap: 20px;
  margin-bottom: 36px;
}

.paso-numero {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #799d7d;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.paso-texto h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #1a1a1a;
}

.paso-texto p {
  font-size: 16px;
  color: #666;
  line-height: 1.5;
}

.pasos-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.pasos-image .img-circle {
  width: min(440px, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, #799d7d, #a3c4a7, #c8dfcb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 600;
  text-align: center;
  padding: 40px;
  line-height: 1.6;
}

/* Seccion Galeria */
.galeria {
  padding: clamp(40px, 8vw, 70px) 0;
}

.galeria-header {
  background: #799d7d;
  padding: clamp(24px, 4vw, 35px) 16px;
  text-align: center;
}

.galeria-header h2 {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.galeria-header h2 span {
  color: #c8dfcb;
}

.galeria-header p {
  font-size: 18px;
  color: #e8f0e9;
  line-height: 1.6;
  font-style: italic;
}

.galeria-grid {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
}

.galeria-item {
  width: 320px;
  overflow: hidden;
}

.galeria-item .img {
  position: relative;
  width: 100%;
  height: clamp(280px, 50vw, 420px);
}

.galeria-titulo {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  z-index: 2;
  transition: opacity 0.3s ease;
}

.galeria-item:hover .galeria-titulo {
  opacity: 0;
}

.galeria-item:nth-child(1) .img {
  background: url('../img/coleccion-1.webp') center/cover no-repeat;
}

.galeria-item:nth-child(2) .img {
  background: url('../img/coleccion-2.webp') center/cover no-repeat;
}

.galeria-item:nth-child(3) .img {
  background: url('../img/coleccion-3.webp') center/cover no-repeat;
}

.galeria-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.galeria-item:hover .galeria-overlay {
  opacity: 1;
}

.galeria-overlay h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.galeria-overlay p {
  font-size: 15px;
  color: #e8f0e9;
  line-height: 1.5;
  margin-bottom: 20px;
  max-width: 260px;
}

.btn-galeria {
  display: inline-block;
  padding: 10px 28px;
  background: #799d7d;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 25px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-galeria:hover {
  background: #618a65;
}

/* Seccion Proyectos */
.proyectos-header {
  background: #799d7d;
  padding: 35px 0 35px;
  text-align: center;
  color: #fff;
}

.proyectos-header h2 {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
}

.proyectos-header h2 span {
  color: #c8dfcb;
}

.proyectos-desc {
  font-size: 18px;
  color: #666;
  text-align: center;
  margin: 48px 0;
  line-height: 1.6;
}

.proyectos-track {
  counter-reset: none;
}

.proyecto-card {
  flex: 0 0 calc((100% - 48px) / 3);
  background: #f5f8f5;
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}

.proyecto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(121, 157, 125, 0.15);
}

.proyecto-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #799d7d, #a3c4a7);
}

.proyecto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proyecto-card:nth-child(even) .proyecto-img {
  background: linear-gradient(135deg, #a3c4a7, #c8dfcb);
}

.proyecto-card h4 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 20px 20px 8px;
}

.proyecto-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0 20px 16px;
}

.proyecto-year {
  display: block;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: #799d7d;
  padding: 0 20px 20px;
}

/* Logros */
.logros {
  padding: clamp(40px, 8vw, 70px) 0;
  text-align: center;
}

.logros h2 {
  font-size: clamp(28px, 5.5vw, 48px);
  font-weight: 800;
  margin-bottom: clamp(24px, 5vw, 48px);
  color: #1a1a1a;
}

.logros h2 span {
  color: #799d7d;
}

.logos-circle {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.logo-circle-item {
  width: 120px;
  height: 120px;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-circle-item img {
  border-radius: 50%;
}

/* Colaboraciones */
.colaboraciones {
  padding: clamp(40px, 8vw, 70px) 0;
  text-align: center;
}

.colaboraciones h2 {
  font-size: clamp(28px, 5.5vw, 48px);
  font-weight: 800;
  margin-bottom: clamp(24px, 5vw, 48px);
  color: #1a1a1a;
}

.colaboraciones h2 span {
  color: #799d7d;
}

.logos-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.logo-rect {
  width: 150px;
  height: 80px;
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-rect:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(121, 157, 125, 0.15);
}

/* Seccion Equipo */
.equipo {
  padding: 70px 0;
  text-align: center;
}

.equipo h2 {
  font-size: 35px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.equipo h2 span {
  color: #799d7d;
}

.equipo>.container>p {
  font-size: 18px;
  color: #666;
  margin-bottom: 48px;
}

.carousel-wrapper {
  position: relative;
}

.carousel-track-container {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease;
}

.carousel-card {
  flex: 0 0 calc((100% - 72px) / 4);
  background: #f5f8f5;
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.carousel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(121, 157, 125, 0.15);
}

.carousel-img {
  width: 150px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto 16px;
}

.carousel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: #799d7d;
  margin-bottom: 4px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.carousel-btn.prev {
  left: 8px;
}

.carousel-btn.next {
  right: 8px;
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
  fill: #799d7d;
  transition: fill 0.3s;
}

.carousel-btn:hover {
  background: #799d7d;
}

.carousel-btn:hover svg {
  fill: #fff;
}

/* Contacto */
.contacto {
  padding: 70px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.contacto-inner {
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.contacto-info {
  flex: 1;
  background: #799d7d;
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.contacto-info .logo {
  font-size: 32px;
  color: #fff;
  margin-bottom: 20px;
}

.contacto-info .logo img {
  max-width: 150px;
  margin: auto;
}

.contacto-info .logo span {
  color: #c8dfcb;
}

.contacto-info h2 {
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.contacto-info p {
  font-size: 18px;
  color: #e8f0e9;
  line-height: 1.6;
  font-style: italic;
}

.contacto-form {
  flex: 1;
  background: #f5f8f5;
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contacto-form input,
.contacto-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e0e8e1;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: #1a1a1a;
  transition: border-color 0.3s;
  outline: none;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
  border-color: #799d7d;
}

.contacto-form textarea {
  resize: vertical;
}

.contacto-form .btn {
  align-self: flex-start;
  border: none;
  cursor: pointer;
}

.contacto-form .btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

#toaster {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.5;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 4s forwards;
  max-width: 380px;
}

.toast.ok {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.toast.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

.btn-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp svg {
  width: 28px;
  height: 28px;
}

/* Footer */
.footer {
  padding: 40px 0 40px;
}

.footer-grid {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding: 20px 0;
}

.footer-col {
  flex: 1;
  min-width: 160px;
}

.footer-col .logo {
  color: #fff;
  margin-bottom: 20px;
}

.footer-col .logo span {
  color: #799d7d;
}

.footer-col .social a {
  margin-left: 0;
  margin-right: 16px;
  color: #666;
}

.footer-col .social a:hover {
  color: #799d7d;
}

.footer-col h4 {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #888;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: #799d7d;
}

.footer-copyright {
  border-top: 2px solid #799d7d;
  text-align: right;
  padding: 10px 0;
}

.footer-copyright a {
  text-decoration: none;
  color: #000;
  padding: 10px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    min-height: auto;
    padding: 32px 24px;
  }

  .hero-content {
    max-width: 100%;
    padding: 0;
  }

  .hero-images .img {
    width: 100px;
    height: 280px;
  }

  .card {
    flex-direction: column;
    text-align: center;
  }

  .pasos {
    flex-direction: column;
    text-align: center;
  }

  .paso {
    flex-direction: column;
    align-items: center;
  }

  .pasos-image .img-circle {
    width: 260px;
    height: 260px;
  }

  .galeria-item {
    width: 240px;
  }

  .galeria-item .img {
    height: 300px;
  }

  .carousel-card,
  .proyecto-card {
    flex: 0 0 calc((100% - 24px) / 2);
  }

  .logo-circle-item {
    width: 90px;
    height: 90px;
  }

  .logo-rect {
    width: 120px;
    height: 60px;
  }

  .contacto {
    padding: 40px 20px;
  }

  .contacto-info {
    padding: 36px 28px;
  }

  .contacto-form {
    padding: 36px 28px;
  }

  .footer-grid {
    gap: 32px;
  }

  .contacto-inner {
    display: block;
  }
}

@media (max-width: 500px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    padding: 15px 30px;
  }

  .hero {
    padding: 24px 16px;
  }

  .hero-images .img {
    width: 80px;
    height: 220px;
  }

  .social a {
    margin-left: 12px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .pasos-image .img-circle {
    width: 200px;
    height: 200px;
    font-size: 13px;
    padding: 24px;
  }

  .galeria-header h2 {
    font-size: 28px;
  }

  .galeria-item {
    width: 100%;
    max-width: 100%;
  }

  .galeria-item .img {
    height: 260px;
  }

  .galeria-titulo {
    font-size: 20px;
  }

  .equipo h2,
  .proyectos-header h2 {
    font-size: 28px;
  }

  .card {
    max-width: 100%;
    min-width: 0;
  }

  .carousel-card,
  .proyecto-card {
    flex: 0 0 100%;
  }

  .carousel-card {
    padding: 24px 16px;
  }

  .carousel-btn {
    width: 34px;
    height: 34px;
  }

  .carousel-btn svg {
    width: 18px;
    height: 18px;
  }

  .proyecto-img {
    height: 180px;
  }

  .logo-circle-item {
    width: 70px;
    height: 70px;
  }

  .logo-rect {
    width: 100px;
    height: 50px;
  }

  .contacto {
    padding: 40px 16px;
  }

  .contacto-info {
    padding: 32px 20px;
  }

  .contacto-info h2 {
    font-size: 28px;
  }

  .contacto-form {
    padding: 32px 20px;
  }

  .footer-grid {
    flex-direction: column;
    gap: 24px;
  }

  .footer {
    padding: 24px 0;
  }

  .card-icon {
    width: 130px;
    height: 130px;
  }

  .logo img {
    max-width: 150px;
  }

  .card-body h3 {
    font-size: 19px;
    line-height: 1.1;
  }

  .btn {
    font-size: 13px;
    line-height: 1.1;
  }
}