/* =========================
   EFECTOS
========================= */
.zoom img {
  transition: transform 0.3s ease;
  will-change: transform;
}
.zoom:hover img {
  transform: scale(1.1);
}

/* =========================
   RESPONSIVE VISIBILIDAD
========================= */
@media (max-width: 480px) {
  .ocultar-movil {
    display: none;
  }
}

.mostrar-movil {
  display: none;
}
@media (max-width: 480px) {
  .mostrar-movil {
    display: inline-block;
  }
}

/* =========================
   SCROLL
========================= */
html {
  scroll-behavior: smooth;
}

/* =========================
   FUENTES
========================= */
@font-face {
  font-family: 'tipografia-regular';
  src: url('CenturyRegular.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'tipografia-bold';
  src: url('CenturyBold.woff2') format('woff2');
  font-display: swap;
}

.tipo {
  font-family: 'tipografia-regular', system-ui, -apple-system, sans-serif;
}
.tipo-bold {
  font-family: 'tipografia-bold', system-ui, -apple-system, sans-serif;
}

/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
}

/* =========================
   BASE
========================= */
body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #1F2937;
  background: #ffffff;
}

/* =========================
   TITULOS
========================= */
h1 { font-size: 2.2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p { font-size: 1rem; }

/* =========================
   CONTENEDOR
========================= */
.container {
  max-width: 1400px;
  margin: auto;
  padding: 0 10px;
}

/* =========================
   BOTONES
========================= */

/* NEGRO (neutral) */
.link-animado-negro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 20px;
  text-decoration: none;
  color: #1E3A5F;
  background-color: #ffffff;
  border: 1px solid #CBD5E1;
  border-radius: 15px;
  transition: all 0.3s ease;
}
.link-animado-negro:hover {
  background-color: #1E3A5F;
  color: #ffffff;
}

/* PRINCIPAL AZUL */
.link-animado-verde {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 20px;
  text-decoration: none;
  color: #1E3A5F;
  background-color: #ffffff;
  border: 1px solid #4FA3D1;
  border-radius: 15px;
  transition: all 0.3s ease;
}
.link-animado-verde:hover {
  background-color: #4FA3D1;
  color: white;
  box-shadow: 0 4px 15px rgba(79,163,209,0.4);
}

/* SECUNDARIO */
.link-animado-naranja {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 20px;
  text-decoration: none;
  color: #1E3A5F;
  background-color: white;
  border: 1px solid #93C5FD;
  border-radius: 15px;
  transition: all 0.3s ease;
}
.link-animado-naranja:hover {
  background-color: #1E3A5F;
  color: white;
}

/* CTA CON PULSO */
.link-animado-rojo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 20px;
  text-decoration: none;
  color: #1E3A5F;
  background-color: white;
  border: 1px solid #4FA3D1;
  border-radius: 15px;
  animation: pulso-borde 2.2s infinite;
}
.link-animado-rojo:hover {
  background-color: #1E3A5F;
  color: white;
  animation: none;
}

@keyframes pulso-borde {
  0% { box-shadow: 0 0 0 rgba(79,163,209,0); }
  50% { box-shadow: 0 0 12px rgba(79,163,209,0.5); }
  100% { box-shadow: 0 0 0 rgba(79,163,209,0); }
}

/* =========================
   COLORES TEXTO
========================= */
.color-verde {
  background: linear-gradient(45deg, #1E3A5F, #4FA3D1, #A7D8F5);
  background-size: 300% 300%;
  animation: moverDegradado1 6s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes moverDegradado1 {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.color-naranja {
  background: linear-gradient(135deg, #0F172A, #1E3A5F, #4FA3D1, #93C5FD);
  background-size: 400% 400%;
  animation: moverDegradado2 8s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes moverDegradado2 {
  0% { background-position: 100% 0%; }
  50% { background-position: 0% 100%; }
  100% { background-position: 100% 0%; }
}

/* =========================
   CARDS
========================= */
.grid-services {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.card {
  background-color: white;
  border-radius: 20px;
  padding: 20px;
  flex: 1 1;
  min-width: 400px;
  border: 1px solid #E5E7EB;
  transition: transform 0.3s ease;
}

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

/* =========================
   SOMBRAS
========================= */
.sombra {
  box-shadow: 0 4px 20px rgba(30,58,95,0.1);
}

/* =========================
   RESPONSIVE GRID
========================= */
@media (max-width: 900px) {
  .grid-services {
    flex-direction: column;
  }
}

/* =========================
   FONDOS
========================= */

/* HERO */
.fondo-verde {
  color: white;
  background: linear-gradient(-35deg, #1E3A5F, #0F172A, #4FA3D1);
  background-size: 400% 400%;
  animation: gradientMove 18s ease infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* SECCIONES SUAVES */
.fondo-azul-suave {
  background: linear-gradient(to bottom, #ffffff, #EAF4FB, #ffffff);
}

/* =========================
   GALERIA / SLIDER
========================= */
.slider-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.slider {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  padding: 30px 20px;
}

.galeria {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.galeria img {
  width: calc(33% - 5px);
  border-radius: 20px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media (max-width: 992px) {
  .galeria img {
    width: calc(50% - 5px);
  }
}

@media (max-width: 576px) {
  .galeria img {
    width: 100%;
  }
}