:root {
  --azul: #194c8e;
  --celeste: #2ab2e6;
}

body {
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  /* background: linear-gradient(135deg, var(--azul), var(--celeste)); */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(
    0,
    0,
    0,
    0.45
  ); /* oscurece el video para mejorar contraste */
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.hero .row {
  width: 100%;
}

.hero .col-lg-6 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.25rem;
  margin-top: 20px;
  opacity: 0.9;
}

.btn {
  background: #fff;
  color: var(--azul);
  font-weight: 600;
  border: none;
  margin-top: 30px;
  padding: 12px 28px;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--celeste);
  color: #fff;
}

/* ---------- SERVICIOS ---------- */
.servicios {
  padding: 100px 0;
  background: #f9fbfd;
  /* background: linear-gradient(135deg, var(--azul), var(--celeste)); */
  background: url("./assets/servicios.png") no-repeat center center/cover;
}

.servicios h2 {
  text-align: center;
  color: var(--azul);
  /* color: white; */
  margin-bottom: 60px;
  font-weight: 700;
}

.servicio-card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 270px !important;
  min-height: fit-content;
}

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

.servicio-card .card-body h5 {
  color: var(--azul);
  font-weight: 600;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

.portfolio-card h5 {
  font-size: 2.3rem;
}

.portfolio-card img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.portfolio-card:hover img {
  transform: scale(1.05);
}

.portfolio-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  padding: 20px;
}

.portfolio-card:hover .overlay {
  opacity: 1;
}

.portfolio-card .overlay h5 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.portfolio-card .overlay p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.portfolio-card .overlay .btn {
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 20px;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 100px 0;
  background: #fff;
}

.faq h2 {
  text-align: center;
  color: var(--azul);
  font-weight: 700;
  /* margin-bottom: 40px; */
}

.footer-dark {
  background-color: #2c2c2c; /* gris oscuro */
  color: #fff;
}

.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-nav .nav-link {
  color: #194c8e;
  font-weight: 500;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #2ab2e6;
}

.navbar-toggler {
  border-color: rgba(0, 0, 0, 0.1);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar.scrolled {
  background-color: #fff !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.hero .btn {
  display: inline-block;
  margin-top: 1.5rem;
}

.icon-container {
  top: -25px;
  left: 44%;
  background-color: #2ab2e6;
  color: white;
}

.text-primary {
  color: var(--celeste) !important;
}

.contact-icon {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.contact-icon:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* ---------- SECCIÓN ---------- */
.timeline-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.timeline-container {
  position: relative;
  width: 100%;
  padding: 40px 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(var(--azul), var(--celeste));
  z-index: 1;
}

/* ---------- ITEMS ---------- */
.timeline-item {
  position: relative;
  margin-bottom: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  z-index: 2;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 30px;
  width: 45%;
  z-index: 3;
}

.timeline-content h3 {
  color: var(--azul);
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.timeline-content p {
  color: #444;
  margin: 0;
}

.timeline-img {
  width: 40%;
  border-radius: 15px;
  overflow: hidden;
  z-index: 3;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.timeline-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- NÚMEROS ---------- */
.timeline-number {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--celeste);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  z-index: 4;
}

.ubo-background {
  background-color: #2ab2e6 !important;
  transition: background-color 0.3s ease;
  border: none;
}

.ubo-background:hover {
  background-color: #219bc8 !important;
}

.uboton {
  font-weight: 600;
  text-decoration: none;
  color: white;
  padding: 0.5rem 1rem;
  border: 2px solid white;
  border-radius: 5px;
  background: none;
  transition: all 0.3s ease; /* transición suave */
}

.hero .uboton {
  font-size: 1.1rem;
}

.uboton:hover {
  background: white;
  color: #333; /* gris oscuro */
  border-color: white; /* mantiene el borde */
}

/* Contenedor botón flotante */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  cursor: pointer;
  display: flex;
  flex-direction: column; /* Ahora en columna */
  align-items: center;
}

/* Globo arriba */
.whatsapp-bubble {
  background: white;
  color: black;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  position: relative;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  margin-bottom: 10px;
  user-select: none;
  text-decoration: none;
}
.whatsapp-float:hover .whatsapp-bubble {
  opacity: 1;
  pointer-events: auto;
}

/* Triángulo apuntando hacia abajo */
.whatsapp-bubble::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 7px;
  border-style: solid;
  border-color: white transparent transparent transparent;
}

/* Ícono WhatsApp */
.whatsapp-icon {
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 12px rgb(37 211 102 / 0.5);
  transition: background 0.3s ease;
}
.whatsapp-icon:hover {
  background: #1ebe57;
}
.whatsapp-icon svg {
  width: 32px;
  height: 32px;
  fill: white;
}

.accordion-button {
  transition: background-color 0.4s ease, color 0.4s ease;
}

.accordion-button:not(.collapsed) {
  background-color: #2ab2e6;
  color: white;
  font-weight: 600;
}

.accordion-item {
  opacity: 0;
  transform: translateY(150px); /* más distancia */
}

.contacto .col-md-6:first-child {
  opacity: 0;
  transform: translateX(-150px); /* texto desde la izquierda */
}

.contacto .col-md-6:last-child {
  opacity: 0;
  transform: translateX(150px); /* formulario desde la derecha */
}

.contacto {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("./assets/final.jpeg") no-repeat center center/cover;
}

input,
textarea {
  color: white !important;
  background: none !important;
  border: white 2px solid !important;
}

input::placeholder,
textarea::placeholder {
  color: white !important;
  opacity: 0.5 !important;
}

.contacto img {
  width: 1.5em;
  margin-right: 0.5rem;
}

@media (max-width: 992px) {
  .timeline-item {
    flex-direction: column !important;
    text-align: center;
    width: 95%;
  }

  .timeline-content,
  .timeline-img {
    width: 90%;
  }

  .timeline-line {
    left: 47.5%;
    top: -50px;
  }

  .timeline-number {
    left: 50%;
    top: -5%;
    transform: translate(-50%, -50%);
  }

  section {
    overflow: hidden;
  }
}
