@import url("https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Raleway", "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  color: #333;
}

p {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.6;
  max-width: 72ch;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  letter-spacing: 0.5px;
}

h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  letter-spacing: 1.5px;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: 1px;
}

h3 {
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  font-weight: 400;
}

h4 {
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  font-weight: 600;
}

.section-placeholder {
  border-bottom: 1px solid #f4f6fb;
}

section[id] {
  scroll-margin-top: 100px;
}

.header {
  background-color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  border-bottom: 2px solid #0cb7f2;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .container {
  padding: 0 30px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.header .logo img {
  height: 150px;
  width: auto;
  display: block;
}
.header .logo img:hover {
  transform: scale(1.1);
  transition: transform 0.2s;
}
.header .nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.header .nav a {
  text-decoration: none;
  color: #000000;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 16px;
  border: 2px solid #0cb7f2;
  border-radius: 999px;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.header .nav a:hover {
  border-color: #1f3774;
}
.header .nav a.active {
  color: #000000;
  border-color: #0cb7f2;
  background-color: #def7ff;
  box-shadow: 0 8px 24px rgba(20, 66, 160, 0.2);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #0cb7f2;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-item {
  position: relative;
}
.nav-item.open .nav-arrow {
  transform: rotate(180deg);
}
.nav-item.open .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-arrow {
  font-size: 10px;
  margin-left: 4px;
  display: inline-block;
  transition: transform 0.2s;
  vertical-align: middle;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  background: #ffffff;
  border: 1px solid #0cb7f2;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  min-width: 160px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
}

.dropdown-item {
  border-radius: 999px !important;
  display: block;
  white-space: nowrap;
  text-align: center;
}

@keyframes heroSlideDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes heroZoomIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes heroSlideRight {
  from {
    opacity: 0;
    transform: translateX(50px) rotate(8deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
}
@keyframes heroSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.primeraVista {
  background-color: #1f3774;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  gap: 24px;
}

.tituloServicios {
  text-align: center;
  padding: 12px 26px;
  border: 2px solid #0cb7f2;
  border-radius: 999px;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(20, 66, 160, 0.8);
  background-color: #1f3774;
  animation: heroSlideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.tituloServicios h1 {
  font-weight: 500;
}

.slogan {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
}
.slogan h2 {
  color: #ffffff;
  font-weight: 500;
  animation: heroZoomIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
.slogan img {
  display: block;
  max-width: 100%;
  width: auto;
  height: 70px;
  border-radius: 12px;
  animation: heroSlideRight 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.slogan2 {
  background-color: #f4f6fb;
  width: 100%;
  padding: 28px 40px 36px;
  display: flex;
  justify-content: center;
}
.slogan2 p {
  color: #333;
  text-align: center;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 980px;
  border: 1px solid #0cb7f2;
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(31, 55, 116, 0.1);
  padding: 24px 36px;
}

.botonesContacto {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  animation: heroSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.btn-call {
  background: #ffffff;
  color: #1f3774;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}
.btn-call:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.btn-mail {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}
.btn-mail:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  transform: translateY(-3px);
}

.carrusel {
  position: relative;
  width: 100%;
  background: #f4f6fb;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  overflow: hidden;
}

.carrusel-track-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 0;
}

.carrusel-track {
  display: flex;
  gap: 0;
  transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: transform;
}

.carrusel-slide {
  flex: 0 0 33.3333333333%;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  overflow: hidden;
}
.carrusel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carrusel-slide img[src=""],
.carrusel-slide img:not([src]) {
  display: none;
}

.carrusel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: #ffffff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
  color: #1f3774;
  transition: background 0.15s, transform 0.15s;
}
.carrusel-btn:hover {
  background: #1f3774;
  color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.carrusel-prev {
  left: 16px;
}

.carrusel-next {
  right: 16px;
}

.carrusel-dots {
  display: flex;
  gap: 8px;
  padding: 12px 0;
}

.carrusel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c0c8de;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.carrusel-dot.active {
  background: #1f3774;
  transform: scale(1.3);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#sobre-nosotros {
  background-color: #f4f6fb;
}

.titulo-sn {
  background-color: #1f3774;
  padding: 48px 20px 40px;
  text-align: center;
  color: #ffffff;
}
.titulo-sn h2 {
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}
.titulo-sn h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #0cb7f2;
  border-radius: 3px;
}

.linea-sn {
  width: calc(100% - 80px);
  max-width: 900px;
  height: 3px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, #1f3774 25%, #1f3774 75%, transparent);
  border-radius: 3px;
}

.container-info-sn {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #f4f6fb;
}

.info-sn {
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  gap: 16px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.info-sn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1f3774, #0cb7f2);
  border-radius: 16px 16px 0 0;
}
.info-sn::after {
  content: none;
}
.info-sn.visible {
  animation: fadeInUp 0.6s ease forwards;
}
.info-sn:nth-child(2).visible {
  animation-delay: 0.15s;
}
.info-sn:nth-child(3).visible {
  animation-delay: 0.3s;
}
.info-sn:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(12, 183, 242, 0.15);
  border-color: #0cb7f2;
}
.info-sn h3 {
  color: #1f3774;
  font-weight: 700;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  letter-spacing: 1px;
  padding: 8px 20px;
  border-radius: 999px;
  align-self: center;
  background: #f4f6fb;
  border: 1px solid rgba(31, 55, 116, 0.12);
}
.info-sn p {
  align-self: stretch;
  color: #555;
  font-size: 0.92rem;
  line-height: 1.65;
  text-align: justify;
  text-justify: inter-word;
  -moz-text-align-last: left;
  -webkit-text-align-last: left;
  text-align-last: left;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  margin-top: auto;
}

@keyframes slideFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.titulo-servicios {
  background-color: #1f3774;
  padding: 48px 20px 40px;
  text-align: center;
  color: #ffffff;
}
.titulo-servicios h2 {
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}
.titulo-servicios h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #0cb7f2;
  border-radius: 3px;
}

.titulo-subseccion {
  text-align: center;
  padding: 32px 20px 20px;
  background-color: #f4f6fb;
}
.titulo-subseccion h3 {
  font-weight: 600;
  color: #1f3774;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.titulo-subseccion h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #0cb7f2, #1f3774);
  border-radius: 3px;
}

#multiservicios,
#reformas {
  background-color: #f4f6fb;
}

.container-servicios {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 32px 40px 48px;
  max-width: 1300px;
  background-color: #f4f6fb;
  margin: 0 auto;
}
.container-servicios.grid-3col {
  grid-template-columns: repeat(3, 1fr);
}

.servicio-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  opacity: 0;
}
.servicio-card:nth-child(odd).visible {
  animation: slideFromLeft 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.servicio-card:nth-child(even).visible {
  animation: slideFromRight 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.servicio-card:nth-child(2).visible {
  animation-delay: 0.1s;
}
.servicio-card:nth-child(3).visible {
  animation-delay: 0.2s;
}
.servicio-card:nth-child(4).visible {
  animation-delay: 0.3s;
}
.servicio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(12, 183, 242, 0.15);
  border-color: #0cb7f2;
}
.servicio-card h4 {
  color: #1a1a2e;
  font-weight: 700;
  margin: 0;
}
.servicio-card p {
  color: #555;
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  line-height: 1.55;
  max-width: 100%;
}

.card-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.card-back {
  width: 100%;
  text-align: center;
}

.servicio-icono {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d6f0ff 0%, #a3d9f5 50%, #7ec8ed 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 4px;
  box-shadow: 0 4px 16px rgba(12, 183, 242, 0.4);
}
.servicio-icono img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.servicio-lista {
  list-style: none;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.servicio-lista li {
  font-size: 0.9rem;
  color: #333;
  padding-left: 20px;
  position: relative;
  line-height: 1.4;
  text-align: left;
}
.servicio-lista li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0cb7f2;
}

@media (hover: hover) and (min-width: 769px) {
  .servicio-card {
    perspective: 1000px;
    background: transparent;
    box-shadow: none;
    border: 1px solid transparent;
    padding: 0;
    overflow: visible;
    min-height: 280px;
  }
  .servicio-card:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
  }
  .servicio-card:hover .card-front {
    transform: rotateY(180deg);
  }
  .servicio-card:hover .card-back {
    transform: rotateY(0deg);
  }
  .card-front,
  .card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.6s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 36px 28px 28px;
    border: 1px solid transparent;
  }
  .card-front {
    transform: rotateY(0deg);
    gap: 16px;
  }
  .card-back {
    transform: rotateY(180deg);
    background: #1f3774;
  }
  .card-back p {
    color: #ffffff;
    font-size: clamp(0.88rem, 1.1vw, 0.97rem);
    line-height: 1.65;
  }
}
@keyframes fadeInPop {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
#contacto {
  background-color: #f4f6fb;
}

.titulo-contacto {
  background-color: #1f3774;
  padding: 48px 20px 40px;
  text-align: center;
  color: #ffffff;
}
.titulo-contacto h2 {
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}
.titulo-contacto h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #0cb7f2;
  border-radius: 3px;
}

.contacto-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 48px 40px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #f4f6fb;
  align-items: stretch;
}

.contacto-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
}

.contacto-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
  opacity: 0;
}
.contacto-card.visible {
  animation: fadeInPop 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.contacto-card:nth-child(2).visible {
  animation-delay: 0.1s;
}
.contacto-card:nth-child(3).visible {
  animation-delay: 0.2s;
}
.contacto-card:nth-child(4).visible {
  animation-delay: 0.3s;
}
.contacto-card:hover {
  border-color: #0cb7f2;
  box-shadow: 0 4px 24px rgba(12, 183, 242, 0.12);
}

.contacto-icono {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f4f6fb 0%, #cceeff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #1f3774;
}

.contacto-card-texto {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contacto-card-texto h4 {
  color: #1a1a2e;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0;
}
.contacto-card-texto p {
  color: #555;
  font-size: 0.82rem;
  margin: 0;
  max-width: 100%;
}

.contacto-link {
  color: #0cb7f2;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.contacto-link:hover {
  color: #1f3774;
  text-decoration: underline;
}

.contacto-cta {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 4px 32px rgba(31, 55, 116, 0.1);
  border: 1px solid rgba(12, 183, 242, 0.2);
  align-self: stretch;
  opacity: 0;
}
.contacto-cta.visible {
  animation: fadeInPop 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}
.contacto-cta h3 {
  color: #1a1a2e;
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.2;
  margin: 0;
}
.contacto-cta > p {
  color: #555;
  font-size: 0.9rem;
  margin: 0;
  max-width: 100%;
}

.contacto-lista {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contacto-lista li {
  font-size: 0.9rem;
  color: #333;
  padding: 10px 16px;
  background: #f4f6fb;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contacto-lista li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0cb7f2;
  flex-shrink: 0;
}

.contacto-cta-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.cta-btn-primary {
  background-color: #1f3774;
  color: #ffffff;
  border: 2px solid #1f3774;
  box-shadow: 0 4px 20px rgba(31, 55, 116, 0.3);
}
.cta-btn-primary:hover {
  background-color: #172f63;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(31, 55, 116, 0.4);
}

.cta-btn-secondary {
  background-color: #ffffff;
  color: #1f3774;
  border: 2px solid #1f3774;
}
.cta-btn-secondary:hover {
  background-color: #f4f6fb;
  transform: translateY(-2px);
}

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

.footer-main {
  background-color: #1f3774;
  padding: 60px 0 40px;
}

.footer-container > .footer-col:first-child,
.footer-brand {
  max-width: 280px;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand .footer-logo {
  height: 70px;
  width: auto;
  display: block;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}
.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 260px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.footer-social a:hover {
  background-color: #0cb7f2;
  border-color: #0cb7f2;
  color: #ffffff;
}

.footer-col h5 {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
}
.footer-col h5::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: #0cb7f2;
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links li a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}
.footer-links li a:hover {
  color: #0cb7f2;
  padding-left: 4px;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
}
.footer-contact-list li svg {
  flex-shrink: 0;
  color: #0cb7f2;
}
.footer-contact-list li a, .footer-contact-list li span {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact-list li a:hover, .footer-contact-list li span:hover {
  color: #0cb7f2;
}

.footer-bottom {
  background-color: #152b60;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
}
.footer-bottom .footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-template-columns: unset;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  margin: 0;
  max-width: 100%;
}
.footer-bottom p a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom p a:hover {
  color: #0cb7f2;
}

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.whatsapp-float svg {
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .carrusel-slide {
    flex: 0 0 50%;
    height: 380px;
  }
  .container-servicios {
    grid-template-columns: repeat(2, 1fr);
    padding: 28px 28px 40px;
  }
  .container-servicios.grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: 1/-1;
  }
}
@media (max-width: 900px) {
  .container-info-sn {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-brand {
    grid-column: 1/-1;
  }
}
@media (max-width: 768px) {
  .header .container {
    height: 90px;
    justify-content: center;
  }
  .header .logo img {
    height: 90px;
  }
  .nav-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
  }
  section[id] {
    scroll-margin-top: 90px;
  }
  .nav-toggle {
    display: flex;
  }
  .header .nav .nav-item {
    display: flex;
    flex-direction: column;
  }
  .header .nav .nav-dropdown-toggle {
    width: 100%;
    box-sizing: border-box;
    text-align: left;
  }
  .header .nav {
    display: none;
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    gap: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e0e0e0;
    z-index: 99;
  }
  .header .nav.open {
    display: flex;
  }
  .nav-dropdown {
    display: none;
    position: static;
    opacity: 1;
    pointer-events: all;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 4px 0 0 28px;
    min-width: auto;
    transition: none;
  }
  .nav-item.open .nav-dropdown {
    display: flex;
    transform: none;
  }
  .dropdown-item {
    text-align: left !important;
    white-space: normal;
    padding: 8px 16px !important;
  }
  .carrusel-slide {
    flex: 0 0 100%;
    height: 280px;
  }
  .carrusel-btn {
    width: 36px;
    height: 36px;
  }
  .carrusel-track-wrapper {
    width: 100%;
  }
  .titulo-sn {
    padding: 28px 20px;
  }
  .linea-sn {
    width: calc(100% - 40px);
  }
  .container-info-sn {
    padding: 20px 16px;
  }
  .tituloServicios {
    padding: 10px 18px;
  }
  .container-servicios {
    grid-template-columns: 1fr;
    padding: 20px 16px 32px;
    gap: 20px;
  }
  .titulo-servicios {
    padding: 28px 20px;
  }
  .titulo-subseccion {
    padding: 24px 16px 16px;
  }
  .contacto-wrapper {
    grid-template-columns: 1fr;
    padding: 28px 16px;
    gap: 24px;
  }
  .contacto-info {
    gap: 16px;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 0 20px;
  }
  .footer-brand {
    grid-column: 1/-1;
  }
  .footer-bottom .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}
@media (max-width: 520px) {
  .btn {
    width: 100%;
    justify-content: center;
  }
  .primeraVista {
    padding: 28px 16px;
  }
  .slogan {
    padding: 0 12px;
  }
  .info-sn {
    padding: 20px 16px;
  }
  .servicio-card {
    padding: 28px 20px 24px;
  }
  .container-servicios {
    padding: 16px 12px 28px;
  }
  .contacto-cta {
    padding: 28px 20px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    padding: 0 16px;
    gap: 20px;
  }
  .footer-brand {
    grid-column: auto;
  }
  .footer-main {
    padding: 22px 0 14px;
  }
  .footer-col h5 {
    margin-bottom: 10px;
  }
  .footer-container > .footer-col:nth-child(2),
  .footer-container > .footer-col:nth-child(3) {
    display: none;
  }
}
