body {
  background-color: #000;
  color: #fff;
  font-family: 'Arial', sans-serif;
}

.service-card {
  border: 1px solid #666;
  border-radius: 15px;
  padding: 25px;
  height: 100%;
  transition: 0.3s ease;
}

.service-card:hover {
  border-color: #fff;
  transform: translateY(-5px);
  background-color: #fff;
}

.service-card .fw-bold {
  transition: color 0.3s ease;
  font-size: 30px;
}

.service-card p {
  transition: color 0.3s ease;
  font-size: 17px;
}

.service-card:hover .fw-bold {
  color: #000 !important;
}

.service-card:hover p {
  color: #000;
}

.thin-line {
  width: 80%;
  height: 1px;
  background: #7a7a7a;
  margin: 20px auto;
}

.icon-social {
  font-size: 20px;
  margin: 0 12px;
  color: #fff;
  transition: 0.3s;
}

.icon-social:hover {
  color: #ccc;
}



/* VIDEO DE FONDO */
.hero-nosotros {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

/* Video ocupando el fondo completo */
.hero-nosotros .hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
}

/* Capa negra semi transparente */
.hero-nosotros .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

/* Texto del hero */
.hero-nosotros h2 {
  font-size: 2.4rem;
  font-weight: bold;
  z-index: 3;
}

.hero-nosotros p {
  max-width: 600px;
  font-size: 1.1rem;
  z-index: 4;
}

/* Flecha */
.scroll-down {
  font-size: 2rem;
  margin-top: 25px;
  animation: bounce 1.5s infinite;
  cursor: pointer;
  z-index: 5;
}

/* Animación de rebote */
@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

.servicios {
  padding: 0px !important;
}

.servicios .hero-nosotros h2 {
  font-size: 50px;
  font-weight: 600;
}

.servicios .hero-nosotros>.mt-3.px-3 {
  max-width: 900px;
  font-size: 23px;
}

.container-servicios {
  padding: 15vh 40px;
  max-width: 1080px;
  margin: auto;
}

.section-servi-cards {
  padding-top: 10vh;
}

.section-servi-cards .service-card {
  padding: 50px 25px;
}









/* ================================
   RESPONSIVE: SERVICIOS
   Pegar al FINAL de /assets/css/servicios.css
================================ */

/* Mejor altura real en móvil (evita saltos por barra del navegador) */
.hero-nosotros {
  height: 100svh;
  min-height: 100svh;
}

/* ===== Tablet ===== */
@media (max-width: 992px) {

  .servicios .hero-nosotros h2 {
    font-size: 40px;
    letter-spacing: .5px;
  }

  .servicios .hero-nosotros>.mt-3.px-3 {
    font-size: 18px;
    max-width: 780px;
  }

  .container-servicios {
    padding: 10vh 24px;
  }

  .section-servi-cards {
    padding-top: 6vh;
  }

  .section-servi-cards .service-card {
    padding: 34px 22px;
  }

  .service-card .fw-bold {
    font-size: 24px;
  }

  .service-card p {
    font-size: 16px;
  }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {

  /* Hero */
  .servicios .hero-nosotros h2 {
    font-size: 30px;
    line-height: 1.08;
    padding: 0 12px;
  }

  .servicios .hero-nosotros>.mt-3.px-3 {
    font-size: 16px;
    max-width: 92%;
  }

  /* Flecha: más premium en móvil (sin bounce) */
  .scroll-down {
    font-size: 28px;
    margin-top: 16px;
    animation: none;
  }

  /* Contenedor: menos vh, más consistente */
  .container-servicios {
    padding: 56px 16px;
  }

  .thin-line {
    width: 70%;
    opacity: .8;
  }

  /* Cards */
  .section-servi-cards {
    padding-top: 28px;
  }

  .section-servi-cards .service-card {
    padding: 24px 18px;
    border-radius: 14px;
  }

  .service-card {
    transform: none;
    /* evita “brinco” raro en mobile */
  }

  .service-card:hover {
    transform: none;
  }

  .service-card .fw-bold {
    font-size: 20px;
  }

  .service-card p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
  }
}

/* ===== Mobile pequeño ===== */
@media (max-width: 576px) {

  .servicios .hero-nosotros h2 {
    font-size: 26px;
  }

  .servicios .hero-nosotros>.mt-3.px-3 {
    font-size: 15px;
  }

  .section-servi-cards .service-card {
    padding: 22px 16px;
  }

  .service-card .fw-bold {
    font-size: 18px;
  }
}


/* HERO (Servicios): chevron abajo + movimiento visible */
.servicios .hero-nosotros .scroll-down {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  margin-top: 0 !important;
  z-index: 6;
  font-size: 34px;
  cursor: pointer;
  animation: vsqChevronServ 1.15s ease-in-out infinite;
}

@keyframes vsqChevronServ {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: .95;
  }

  50% {
    transform: translateX(-50%) translateY(10px);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .servicios .hero-nosotros .scroll-down {
    bottom: 18px;
    font-size: 30px;
    animation: vsqChevronServ 1.15s ease-in-out infinite;
    /* sí se mantiene, el cliente lo pidió */
  }
}


/* ================================
   FLIP CARDS: Servicios (click en título)
================================ */

.flip-card {
  perspective: 1100px;
  cursor: default;
}

.flip-card .flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  /* respeta tamaño visual y evita brincar */
  transform-style: preserve-3d;
  transition: transform .6s ease;
}

/* estado flip (se activa con JS) */
.flip-card.is-flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-card .flip-front,
.flip-card .flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px 12px;
  border-radius: 15px;
}

/* FRONT: hereda estilo actual */
.flip-card .flip-front {
  background: transparent;
}

/* BACK: texto centrado/legible */
.flip-card .flip-back {
  transform: rotateY(180deg);
  background: #fff;
  color: #000;
  border: 1px solid #fff;
}

/* Título clickeable */
.flip-title {
  margin: 0;
  text-align: center;
  width: 100%;
  cursor: pointer;
}

/* En back, el párrafo */
.flip-card .flip-back p {
  margin: 0;
  text-align: center;
  max-width: 520px;
}

/* En móvil: padding más compacto (respeta tu responsive) */
@media (max-width: 768px) {

  .flip-card .flip-front,
  .flip-card .flip-back {
    padding: 24px 18px;
    border-radius: 14px;
  }
}

/* ============ FIX: hover NO debe afectar flip-cards ============ */
.flip-card:hover {
  background-color: transparent !important;
  transform: none !important;
}

.flip-card:hover .fw-bold,
.flip-card:hover p {
  color: inherit !important;
}

/* Opcional: que el borde sí se vea un poquito más en hover sin cambiar fondo */
.flip-card:hover {
  border-color: #fff;
}

/* ============ Layout: 2 columnas en md/lg, 1 en móvil ============ */
.section-servi-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* móvil: 1 columna */
@media (max-width: 768px) {
  .section-servi-cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}


/* Servicios: título hero en 2 líneas (sin <br>) */
.hero-title-split {
  line-height: 1.15;
}

.hero-title-break {
  display: block;
  margin-top: 6px;
}


/* =========================================
   SERVICE CARDS – EFECTOS (elige 1 por clase)
   .services-effect--down | --flip | --pulse
========================================= */

/* Base: transición suave (no interfiere con flip interno) */
.servicios .service-card{
  will-change: transform;
  transition: transform .25s ease, border-color .25s ease, background-color .25s ease;
}

/* --------- 1) Movimiento hacia abajo (como la flecha) --------- */
@keyframes vsqCardDown{
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}

.servicios.services-effect--down .service-card:hover{
  animation: vsqCardDown 1.05s ease-in-out infinite;
}

/* --------- 2) Giro (hint en hover + flip por click ya existente) --------- */
/* “Hint” sutil en hover: se inclina (NO hace flip completo, para no pelear con click) */
.servicios.services-effect--flip .service-card:hover{
  transform: rotateY(6deg) rotateX(2deg);
}

/* --------- 3) Palpitación --------- */
@keyframes vsqCardPulse{
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}

.servicios.services-effect--pulse .service-card:hover{
  animation: vsqCardPulse .85s ease-in-out infinite;
}

/* Mobile / touch: evitar “brincos” por hover */
@media (max-width: 768px){
  .servicios.services-effect--down .service-card:hover,
  .servicios.services-effect--flip .service-card:hover,
  .servicios.services-effect--pulse .service-card:hover{
    animation: none !important;
    transform: none !important;
  }
}




@keyframes vsqAutoDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

.servicios.services-effect--down .service-card {
  animation: vsqAutoDown 2.5s ease-in-out infinite;
}

/* Desfase para que no se muevan iguales */
.servicios.services-effect--down .service-card:nth-child(2) {
  animation-delay: .3s;
}
.servicios.services-effect--down .service-card:nth-child(3) {
  animation-delay: .6s;
}
.servicios.services-effect--down .service-card:nth-child(4) {
  animation-delay: .8s;
}


@keyframes vsqAutoTilt {
  0%, 100% { transform: rotateY(0deg) rotateX(0deg); }
  50% { transform: rotateY(6deg) rotateX(2deg); }
}

.servicios.services-effect--flip .service-card {
  animation: vsqAutoTilt 5s ease-in-out infinite;
  transform-style: preserve-3d;
}

.servicios.services-effect--flip .service-card:nth-child(2) {
  animation-delay: .6s;
}
.servicios.services-effect--flip .service-card:nth-child(3) {
  animation-delay: 1.2s;
}
.servicios.services-effect--flip .service-card:nth-child(4) {
  animation-delay: 1.8s;
}


@keyframes vsqAutoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.servicios.services-effect--pulse .service-card {
  animation: vsqAutoPulse 3s ease-in-out infinite;
}

.servicios.services-effect--pulse .service-card:nth-child(2) {
  animation-delay: .5s;
}
.servicios.services-effect--pulse .service-card:nth-child(3) {
  animation-delay: 1s;
}
.servicios.services-effect--pulse .service-card:nth-child(4) {
  animation-delay: 1.5s;
}


@media (max-width: 768px) {
  .servicios .service-card {
    animation-duration: 6s !important;
  }
}
