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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
}

h1 {
  font-family: kaisei Tokomin;
}

/* Header base */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  transition: all 0.4s ease;
  padding: 1rem 0; /* más alto inicialmente */
}

/* Tamaño reducido al hacer scroll */
.header.shrink {
  padding: 0.5rem 0;
  background-color: rgba(0, 0, 0, 0.98); /* fondo más sólido al hacer scroll */
}

/* Logo base */
.logo-header {
  height: 60px;
  transition: height 0.4s ease;
}

/* Logo reducido */
.header.shrink .logo-header {
  height: 40px;
}

/* Texto navegación base */
.nav a {
  font-size: 1.2rem;
  transition: font-size 0.4s ease;
}

/* Texto reducido */
.header.shrink .nav a {
  font-size: 1rem;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
}

.container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-header {
  height: 90px;
}

.logo {
  font-weight: bold;
  font-size: 1.2rem;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  color: white;
  position: relative;
  padding-bottom: 4px;
}

.nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: white;
  transition: width 0.3s;
}

.nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.hero {
  margin: 0 auto;
  max-width: 100%;
  height: 100vh;
  background-image: url("../img/hero.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
}

.hero-content {
  color: white;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 2rem;
  border-radius: 12px;
  animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
}

.button {
  background-color: #00a99d;
  color: white;
  padding: 0.9rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 3em;
  text-decoration: none;
  font-weight: 500;
}

.button:hover {
  background-color: #088d84;
  transform: translateY(-2px);
}

/* Asegura que el botón esté centrado */
.hero {
  flex-direction: column;
}

.quienes-somos {
  background-color: #f9f9f9;
  padding: 5rem 2rem;
}

.qs-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 3rem;
}

.qs-image {
  flex: 1 1 400px;
}

.qs-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.qs-texto {
  flex: 1 1 500px;
}

.qs-texto h2 {
  font-family: "Kaisei Tokumin", serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.qs-texto p {
  font-family: "Inter", sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #555;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 1s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

.reveal-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

.servicios {
  background: #0e3a37;
  padding: 6rem 2rem;
  color: #fff;
  text-align: center;
}

.servicios-header h2 {
  font-family: "Kaisei Tokumin", serif;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.servicios-header p {
  font-family: "Inter", sans-serif;
  color: #cfdedc;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.servicios-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.servicio-card {
  background: white;
  border-left: 6px solid #00a99d;
  border-radius: 12px;
  overflow: hidden;
  color: #333;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease;
}

.servicio-card:hover {
  transform: translateY(-6px);
}

.servicio-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.servicio-card .contenido {
  padding: 1.5rem;
  text-align: left;
}

.servicio-card h3 {
  font-family: "Kaisei Tokumin", serif;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.servicio-card ul {
  list-style: none;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  padding: 0;
  margin: 0;
}

.servicio-card li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.servicio-card li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #00a99d;
  font-weight: bold;
}

.reveal-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

.proceso {
  background: linear-gradient(rgba(14, 58, 55, 0.9), rgba(14, 58, 55, 0.9)),
    url("../img/bg-proceso1.png");
  background-size: cover;
  background-position: center;
  padding: 5rem 2rem;
  text-align: center;
}

.proceso-header h2 {
  font-family: "Kaisei Tokumin", serif;
  font-size: 2.5rem;
  color: white;
  margin-bottom: 0.5rem;
}

.proceso-header p {
  font-family: "Inter", sans-serif;
  color: white;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Mobile: slider horizontal */
.proceso-slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  -webkit-overflow-scrolling: touch;
}

/* Ocultar scroll horizontal en mobile */
.proceso-slider {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}
.proceso-slider::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

/* Estilo de puntos indicadores */
.slider-dots {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 0.5rem;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #bcd3d1;
  transition: background 0.3s ease;
}

.slider-dots .dot.active {
  background: #00a99d;
}

.slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  color: #2e2e2e;
  border-left: 4px solid #00a99d;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.slide h3 {
  font-family: "Kaisei Tokumin", serif;
  font-size: 1.2rem;
  color: #00766d; /* versión más fuerte del verde institucional */
  margin-bottom: 0.5rem;
}

.slide p {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  color: #2e2e2e;
}

/* colores por slide, si querés diferenciarlos */
.slide:nth-child(1) {
  border-left-color: #00a99d;
} /* consultoría */
.slide:nth-child(2) {
  border-left-color: #3db9ac;
} /* diseño */
.slide:nth-child(3) {
  border-left-color: #529c91;
} /* ejecución */
.slide:nth-child(4) {
  border-left-color: #6eafa6;
} /* entrega */

/* Tablet: 2 por fila */
@media (min-width: 768px) {
  .proceso-slider {
    overflow: visible;
    flex-wrap: wrap;
    justify-content: center;
  }

  .slide {
    flex: 0 0 45%;
    max-width: 45%;
  }

  .slider-dots {
    display: none;
  }
}

/* Desktop: 4 por fila */
@media (min-width: 1024px) {
  .slide {
    flex: 0 0 22%;
    max-width: 22%;
  }
}

.elegirnos-section {
  background-color: #f9f9f9;
  padding: 4rem 1rem;
}

.elegirnos-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.elegirnos-texto {
  flex: 1 1 400px;
  max-width: 500px;
}

.elegirnos-texto h2 {
  font-family: "Kaisei Tokumin", serif;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: #0e3a37;
}

.elegirnos-texto ul {
  list-style: none;
  padding: 0;
}

.elegirnos-texto li {
  margin-bottom: 1rem;
  font-family: "Inter", sans-serif;
  font-size: 1.05rem;
  color: #333;
  line-height: 1.6;
}

.elegirnos-texto ul li::before {
  content: "✦";
  color: #0e3a37;
  margin-right: 0.6rem;
  font-size: 1.2rem;
}

.elegirnos-texto li span {
  color: #061a18;
  font-weight: 600;
}
/* Galería de imágenes en patrón creativo */
.elegirnos-gallery {
  flex: 1 1 500px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 150px;
  gap: 1rem;
  position: relative;
}

.elegirnos-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.elegirnos-gallery img:hover {
  transform: scale(1.03);
}

/* Patrón irregular para hacerla más original */
.elegirnos-gallery img:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.elegirnos-gallery img:nth-child(2) {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.elegirnos-gallery img:nth-child(3) {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.elegirnos-gallery img:nth-child(4) {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
}

.elegirnos-gallery img:nth-child(5) {
  grid-column: 2 / 3;
  grid-row: 3 / 4;
}

/* Responsive para tablet */
@media (max-width: 1024px) {
  .elegirnos-container {
    flex-direction: column;
    align-items: center;
  }

  .elegirnos-texto {
    text-align: center;
  }

  .elegirnos-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
    gap: 0.5rem;
  }
}

.compromiso {
  background: #0e3a37;
  padding: 5rem 2rem;
  color: white;
  text-align: center;
}

.compromiso-header h2 {
  font-family: "Kaisei Tokumin", serif;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.compromiso-header p {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  color: #cfdedc;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.compromiso-lista {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 0 auto;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
}

.compromiso-lista li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.compromiso-lista li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #00a99d;
  font-weight: bold;
}

/* Animación escalonada */
.reveal-stagger {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--delay, 0s);
}

.reveal-stagger.visible {
  opacity: 1;
  transform: translateY(0);
}

.contacto-formulario {
  position: relative;
  background-image: url("../img/construir9.jpg"); /* Reemplazá con tu imagen */
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 5rem 1rem;
  overflow: hidden;
}

.contacto-formulario .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Capa oscura */
  z-index: 1;
}

.contacto-container {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contacto-container h2 {
  font-family: "Kaisei Tokumin", serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.contacto-container p {
  font-family: "Inter", sans-serif;
  margin-bottom: 2rem;
  color: #e0e0e0;
}

.contacto-container form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contacto-container input,
.contacto-container textarea {
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  backdrop-filter: blur(3px);
}

.contacto-container input::placeholder,
.contacto-container textarea::placeholder {
  color: #ccc;
}

.contacto-container button {
  background-color: #00a99d;
  color: white;
  padding: 0.9rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contacto-container button:hover {
  background-color: #088d84;
}

#mensaje-exito {
  color: #90ee90;
  margin-top: 1rem;
  font-weight: 500;
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-minimal {
  background-color: #000;
  color: #ccc;
  padding: 2.5rem 1.5rem;
}

.footer-container {
  max-width: 800px; /* MÁS angosto */
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-logo img {
  max-width: 160px;
}

.footer-contacto {
  text-align: right;
}

.footer-contacto p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
}

.btn-instagram {
  display: inline-block;
  margin-top: 0.7rem;
  padding: 0.5rem 1.2rem;
  background-color: #20cfc4;
  color: #000;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-instagram:hover {
  background-color: #1ab6ac;
  color: #fff;
}

.footer-whatsapp-icon {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 100;
  padding: 0.4rem;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background: transparent;
}

.whatsapp-icon {
  height: 50px;
  max-width: 100%;
  width: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.footer-whatsapp-icon:hover .whatsapp-icon {
  transform: scale(1.1);
}

@media (max-width: 500px) {
  .whatsapp-icon {
    height: 40px;
  }
}

@supports (padding: max(0px)) {
  .footer-whatsapp-icon {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-contacto {
    text-align: center;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-contacto,
  .footer-redes {
    flex: 1 1 100%;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95); /* ✅ fondo negro */
    backdrop-filter: blur(10px); /* (opcional) efecto vidrio */
    text-align: center;
    padding: 1rem 0;
    z-index: 999;
  }

  .nav.open {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .nav a {
    display: block;
    color: white; /* ✅ texto blanco */
    padding: 1rem;
    font-size: 1.2rem;
  }

  .menu-toggle {
    display: block;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 1000;
  }

  .container {
    padding: 0 1.5rem;
  }

  .hero-content {
    margin-top: 3.5em;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}
