:root {
  --blue: #0e2842;
  --gray: #b4b4b4;
  --accent: #0e2842;
  --bg: #ffffff;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

:root {
  --bg-color: #0e2842;
  --text-color: #ffffff;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 1s ease, color 1s ease;
}

body {
  margin: 0;
  font-family: "Figtree", "Inter", sans-serif;
  line-height: 1.6;
}

.figtree {
  font-family: "Figtree", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
}

.hero {
  position: relative;
  min-height: 100vh;
  background: url("images/hero.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14, 40, 66, 0.9) 0%,
    rgba(14, 40, 66, 0.9) 75%,
    rgba(14, 40, 66, 0.6) 85%,
    rgba(255, 255, 255, 1) 100%
  );
}

@media (min-width: 900px) {
  .hero-logo {
    padding: 2rem;
  }
}

.logo {
  width: min(80vw, 300px);
  max-width: 100%;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .logo {
    width: 300px;
  }
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  margin: 0.8rem 0;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  color: #444;
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 2rem;
  z-index: 1;
}

.btn-primary {
  background: var(--accent);
  color: white;
  padding: 0.9rem 1.6rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.section {
  padding: 3rem 1.5rem;
}

h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.text-center {
  max-width: 600px;
  margin: auto;
  text-align: center;
}

.carousel {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  padding: 1rem;
}
.carousel-track img {
  width: min(80vw, 420px);
  height: 260px;
  border-radius: 10px;
  object-fit: cover;
}

.carousel-track > * {
  scroll-snap-align: start;
}

.card {
  min-width: 260px;
  background: white;
  padding: 1.2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.card span {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--gray);
}

.contact-form {
  max-width: 420px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--gray);
  font-family: inherit;
}

.contact-form textarea {
  resize: none;
  min-height: 120px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  padding: 2rem;
  font-size: 0.9rem;
  background-color: #0e2842;
  color: white;
  filter: drop-shadow(0 -10px 20px rgba(0, 0, 0, 0.472));
}

@media (max-width: 600px) {
  .footer {
    flex-direction: column;
    align-items: center;
  }
}

[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

[data-animate].show {
  opacity: 1;
  transform: translateY(0);
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  top: 0;
  background: rgb(255, 255, 255);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.5rem;
  border-bottom: 1px solid #eee;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.472));
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--blue);
  font-weight: 700;
}

.nav-logo img {
  width: 36px; 
  height: auto;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--blue);
  font-weight: 600;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

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

.carousel::-webkit-scrollbar {
  display: none;
}
.carousel {
  scrollbar-width: none;
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-item img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 20%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 900px) {
  .hero-content {
    grid-template-columns: auto 1fr;
    text-align: left;
    max-width: 1100px;
  }

  .hero-logo {
    display: flex;
    justify-content: center;
  }

  .hero-text {
    padding-left: 2rem;
  }
}

.hero-logo {
  background: white;
  padding: 1.5rem;
  border-radius: 18px;
  display: inline-flex;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn {
  background: var(--accent);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}

.photos {
  margin-bottom: 5rem;
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
  display: block;
  pointer-events: none;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
}

.carousel-dots button.active {
  background: var(--accent);
}

.opinions-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .opinions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hero-text h1,
.hero-text p {
  color: #ffffff;
}

.hero-text p {
  opacity: 0.9;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--blue);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }
}

body.dark {
  --bg-color: #0e2842;
  --text-color: #ffffff;
}

body.light {
  --bg-color: #ffffff;
  --text-color: #0e2842;
}

body.light .hero-text h1,
body.light .hero-text p {
  color: #0e2842;
}

body.dark .hero-text h1,
body.dark .hero-text p {
  color: #ffffff;
}

.footer a {
  text-decoration: none;
  color: inherit;
}

.footer-link {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-link:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.footer-link:hover span {
  text-decoration: underline;
}

.btn-primary {
  padding: 0.9rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

body.dark .btn-primary {
  background-color: #ffffff;
  color: #0e2842;
}

body.dark .btn-primary:hover {
  transform: translateY(-2px);
  background-color: #f2f2f2;
}

body.light .btn-primary {
  background-color: #0e2842;
  color: #ffffff;
}

body.light .btn-primary:hover {
  transform: translateY(-2px);
  background-color: #163a5f;
}

.btn-primary {
  transition: background-color 0.4s ease, color 0.4s ease, transform 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

@media (min-width: 900px) {
  .logo {
    width: 300px;
  }

  .hero-text h1 {
    font-size: clamp(4.2rem, 5vw, 5.5rem);
  }

  .hero-text p {
    font-size: 1.3rem;
    max-width: 560px;
  }

  .btn-primary {
    font-size: 1.5rem;
    padding: 1rem 2.4rem;
  }
}

.wave-divider {
  position: relative;
  margin-top: -30px;
}

.wave-divider svg {
  width: 100%;
  height: 100px;
  display: block;
}

.wave-divider path {
  stroke-width: 30px;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 1s ease;
}

body.dark .wave-divider path {
  stroke: #ffffff;
}

body.light .wave-divider path {
  stroke: #0e2842;
}

@media (max-width: 768px) {
  .wave-divider {
    margin-top: 10px;
  }
  .wave-divider svg {
    height: 70px;
  }

  .wave-divider path {
    stroke-width: 70px;
  }
}

.services-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
  justify-content: center;
  max-width: 1000px;
  margin: auto;
  margin-bottom: 3rem;
}

.services-grid > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
}

.service-card {
  max-width: 360px;
  width: 100%;
}



.service-card h3 {
  margin-bottom: 0.5rem;
}

#About {
  box-shadow: 0px 60px 55px rgba(0, 0, 0, 0.648);
  z-index: 10;
  position: relative;
  padding-bottom: 10rem;
  padding-top: 7.5rem;
}


#Obras {
  box-shadow: 0px -60px 55px rgba(0, 0, 0, 0.648);
  z-index: 10;
  position: relative;
}
.about-layout {
  display: grid;
  gap: 5rem;
  max-width: 1000px;
  margin: auto;
}

.about-text {
  max-width: 650px;
  margin: auto;
  text-align: justify;
}

@media (min-width: 900px) {
  .about-layout {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }

  .about-text {
    text-align: justify;
    margin: 0;
  }

  .about-ceo {
    margin-top: 0;
    align-self: flex-start;
  }
}

.about-ceo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-text {
  max-width: 650px;
  margin: auto;
  text-align: justify;
}

.about-layout {
  gap: 5.5rem;
}


.about-ceo img {
  width: 123px;
  height: 140px;
  object-fit: contain;  
  background: white; 
  border-radius: 12px;
}
.about-ceo {
  padding: 1.5rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.108);
}

@media (min-width: 900px) {
  .about-layout {
    gap: 3.5rem;
  }
}

@media (max-width: 600px) {
  .about-ceo {
    flex-direction: column;
    text-align: center;
  }
}

.floating-actions {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  z-index: 999;
}

.floating-actions a {
  width: 52px;
  height: 52px;
  background: #0e2842;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.floating-actions a:hover {
  transform: scale(1.2);
}

.floating-actions img {
  width: 26px;
}

body.light .floating-actions a {
  background-color: var(--blue);
}

body.dark .floating-actions a {
  background-color: white;
}

.service-card {
  padding: 1.5rem;
  border-radius: 18px;
  border: 1.5px solid rgb(14 40 66);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  filter: brightness(150%) contrast(120%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  box-shadow: 0 20px 40px rgb(0, 0, 0);
  transform: translateY(-5px);
}

@media (max-width: 768px) {
  .about-layout {
    gap: 3rem;
  }

  .about-ceo {
    margin-top: 1rem;
  }
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form input.error,
.contact-form textarea.error {
  border-color: #c0392b;
}

.form-status {
  text-align: center;
  margin-top: 0.8rem;
  font-size: 0.95rem;
  min-height: 1.2em;
}

.form-status.success {
  color: #2ecc71;
}

.form-status.error {
  color: #e74c3c;
}
.wave-divider {
  overflow: hidden;
}

html,
body {
  width: 100%;
  overflow-x: hidden !important;
}

.carousel {
  max-width: 100%;
  overflow-x: auto;
}

.carousel-track {
  max-width: 100%;
}

.floating-actions {
  right: max(20px, env(safe-area-inset-right));
}

:focus-visible {
  outline: 3px solid #0e2842;
  outline-offset: 3px;
}

.hero {
  padding-top: 4rem;
}

#Servicios {
  background-color: #c3c6c9;
  background-image: url("images/34.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
}

#Servicios::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 0; 
}

#Servicios h2 {
  color: white;
}

.before-after-grid {
  display: grid;
  gap: 2.5rem;
  max-width: 500px;
  margin: auto;
}

.before-after {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
}

.before-after img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.before-after .after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 100% 0 0); 
  transition: none;
}

.before-after input[type="range"] {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  z-index: 10;
  accent-color: var(--accent);
}

.before-after-playground {
  background: #0e2842;
  color: white;
  text-align: center;
  margin-top: 4rem;
  padding-top: 1rem;
}

.before-after-playground h2 {
  margin-bottom: 0.3rem;
  font-size: 2rem;
}

.before-after-playground .subtitle {
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

.before-after-playground select {
  padding: 0.7rem 1rem;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
  margin-bottom: 2rem;
  cursor: pointer;
}

.playground-view {
  max-width: 420px;
  margin: auto;
}


.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.859); 
    z-index: 0; 
    border-radius: 18px;
}

.carousel-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 2rem;
  
}
.carousel-counter {
  font-weight: 600;
  font-size: 1rem;
  min-width: 60px;
  text-align: center;
  color: var(--text-color);
}


#Obras {
  padding-top: 8rem;
  padding-bottom: 5rem;
}

.service-card h3{
  position: relative;
  z-index: 10;
  color: #0e2842;
  font-weight: 800;
  font-size: 1.2rem;
}

.service-card p {
  color: #091929;
  position: relative;
  z-index: 10;
  font-weight: 600;
}

#Servicios h2 {
  position: relative;
  z-index: 10;
  
}


.before-after-section {
  background: #0e2842;
  color: white;
  text-align: center;
}

.before-after-section .subtitle {
  opacity: 0.85;
  margin-bottom: 2rem;
}

.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: auto;
}

.ba-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}

.ba-item::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: white;
  transform: translateX(-50%);
  z-index: 5;
}

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

.ba-label {
  position: absolute;
  bottom: 10px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.6);
}

.ba-label.before {
  left: 10px;
}

.ba-label.after {
  right: 10px;
}

.ba-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.ba-pagination button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: white;
  color: #0e2842;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
}
.ba-pagination button {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 2rem;
}
  

.ba-pagination span {
  min-width: 80px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .ba-grid {
    grid-template-columns: 1fr;
  }

  .ba-item img {
    height: 200px;
  }
}
.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 2.5rem;
  max-width: 1200px;
  margin: 2.5rem auto;
}

.ba-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.ba-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

@media (min-width: 1000px) {
  .ba-item img {
    height: 360px;
  }
  .ba-placeholder {
    height: 360px; 
  }
}

.ba-item::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: white;
  transform: translateX(-50%);
  z-index: 5;
}



@media (max-width: 768px) {
  .ba-grid {
    grid-template-columns: 1fr;
  }

  .ba-item {
    grid-template-columns: 1fr;
  }

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

  .ba-item::after {
    display: none; 
  }
}

.ba-placeholder {
  align-items: center;
  justify-content: center;
  height: 360px; 
  border-radius: 18px;
  background: #0e2842; 
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  text-align: center;
  padding: 2rem;
  padding-top: 9rem;
  border: 2px dashed rgba(255, 255, 255, 0.35);
}



