/* =========================
   RESET GENERAL
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #0f172a;
  background: #f8fafc;
}

/* =========================
   LOADER INICIAL
========================= */

.page-loader {
  transition:
    opacity 1s ease,
    visibility 1s ease;
  position: fixed;
  inset: 0;
  z-index: 9999;

  background: #031221;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  opacity: 1;
  visibility: visible;
}

.page-loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  display: flex;
  align-items: baseline;
  gap: 12px;

  opacity: 0;
  transform: translateY(14px);

  animation: loaderLogo 0.8s ease forwards;
}

.loader-logo span {
  font-family: "Times New Roman", serif;
  color: #22d3ee;
  font-size: 64px;
  line-height: 1;
}

.loader-logo small {
  color: white;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2px;
}

@keyframes loaderLogo {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   OSCILOSCOPIO
========================= */
.loader-logo,
.loader-logo span,
.loader-logo small {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;

  -webkit-user-drag: none;
  pointer-events: none;
}
.oscilloscope {
  width: 320px;
  height: 105px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 4px;
}

.oscilloscope svg {
  width: 100%;
  height: 100%;
  display: block;
}

.osc-grid line {
  stroke: rgba(34, 211, 238, 0.1);
  stroke-width: 0.6;
}

.osc-axis {
  stroke: rgba(34, 211, 238, 0.28);
  stroke-width: 0.8;
}

.osc-wave {
  transform: translateZ(0);
  backface-visibility: hidden;

  fill: none;
  stroke: #22d3ee;

  stroke-width: 1;

  stroke-linecap: butt;
  stroke-linejoin: round;

  filter: drop-shadow(0 0 3px rgba(34, 211, 238, 0.45));
  stroke-dasharray: 700;
  stroke-dashoffset: 700;

  will-change: transform, stroke-dashoffset;
}

.osc-wave.animate {
  animation: oscWave 1.1s linear forwards;
}

@keyframes oscWave {
  from {
    stroke-dashoffset: 700;
  }

  to {
    stroke-dashoffset: 0;
  }
}

/* =========================
  OSCILADOR / NAVBAR
========================= */
.logo {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.logo span {
  user-select: none;
  -webkit-user-select: none;
}

.page-loader.manual {
  transition: none;
}

.page-loader.manual .osc-wave {
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  stroke-width: 1.4;

  clip-path: inset(0 100% 0 0);

  animation: oscRevealSlider 2.2s linear infinite;
}

@keyframes oscRevealSlider {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 1;
  }

  70% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }

  88% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }

  100% {
    clip-path: inset(0 0 0 0);
    opacity: 0;
  }
}

/* =========================
   HEADER / NAVBAR
========================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(3, 18, 34, 0.92);
  backdrop-filter: blur(10px);
}

.navbar {
  background: rgba(4, 20, 32, 0.92);
  backdrop-filter: blur(10px);
  padding: 16px 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: white;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
}

.logo span {
  font-family: "Times New Roman", Times, serif;
  font-weight: 500;
  color: #27d7e7;
  font-size: 40px;
  line-height: 1;
  margin-right: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 12px;
  transition: 0.25s ease;
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #22d3ee;
  transform: scaleX(0);
  transform-origin: center;
  transition: 0.25s ease;
}

.nav-links a:hover {
  background: rgba(34, 211, 238, 0.12);
  color: #22d3ee;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* =========================
   HERO / PORTADA
========================= */
.hero {
  min-height: 800px;
  background: linear-gradient(90deg, rgba(3, 18, 34, 0.94), rgba(3, 18, 34, 0.72)), url("assets/hero.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 1200px;
  margin: auto;
  width: 100%;
  padding: 100px 25px 0;
  color: white;
  position: relative;
}

.hero h1 {
  font-size: 58px;
  margin-bottom: 8px;
}

.hero h2 {
  font-size: 30px;
  color: #00d9ff;
  margin-bottom: 18px;
}

.hero p {
  font-size: 18px;
  max-width: 520px;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* =========================
   BOTONES GENERALES
========================= */
.btn {
  display: inline-block;
  background: #06b6d4;
  color: white;
  padding: 15px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
}

.btn:hover {
  background: #0891b2;
}

/* =========================
   SECCIONES GENERALES
========================= */
.section {
  max-width: 1200px;
  margin: auto;
  padding: 80px 25px;
}

/* =========================
   SOBRE NOSOTROS
========================= */
.about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;

  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.section-label {
  color: #0ea5e9;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.about h2 {
  font-size: 38px;
  line-height: 1.15;
  color: #061a35;
  margin-bottom: 24px;
  letter-spacing: -0.8px;
}

.about p {
  line-height: 1.8;
  margin-bottom: 16px;
  color: #334155;
  font-size: 16px;
}

.about-points {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.about-points div {
  padding: 16px 18px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.about-points strong {
  display: block;
  color: #061a35;
  margin-bottom: 5px;
  font-size: 15px;
}

.about-points span {
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.about-logo {
  align-items: center;
  width: 100%;
  max-width: 500px;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;

  background: transparent;
  border: none;
  box-shadow: none;
}

.about-logo-card {
  width: 100%;
  max-width: 430px;
  padding: 0;

  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.about-logo img {
  width: 100%;
  height: auto;
  display: block;

  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* =========================
   SERVICIOS
========================= */
.services {
  text-align: center;
  background: linear-gradient(180deg, #f8fafc, #eef5f9);
  border-radius: 26px;
}

.services.section {
  padding-bottom: 70px;
}

.services h2 {
  font-size: 36px;
  color: #061a35;
  margin-bottom: 50px;
  position: relative;
}

.services h2::after {
  content: "";
  display: block;
  width: 58px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 20px;
  background: #06b6d4;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.service-card {
  position: relative;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.92);
  padding: 38px 24px 34px;
  border-radius: 22px;

  border: 1px solid rgba(14, 165, 233, 0.12);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);

  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, #06b6d4, #22d3ee);
}

.service-card:hover {
  transform: translateY(-10px) scale(1.015);

  box-shadow:
    0 22px 40px rgba(0, 0, 0, 0.12),
    0 10px 18px rgba(0, 0, 0, 0.06);
}

.service-icon {
  font-size: 25px;
  width: 82px;
  height: 82px;
  margin: 0 auto 24px;

  border-radius: 22px;
  background: linear-gradient(135deg, #06b6d4, #0891b2);

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

  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.25);
}

.service-icon i {
  font-size: 34px;
  color: #061a35;
}

.service-card h3 {
  margin-bottom: 14px;
  color: #061a35;
  font-size: 20px;
  line-height: 1.25;
}

.service-card p {
  max-width: 240px;
  margin: 0 auto;
  line-height: 1.7;
  color: #475569;
  font-size: 15px;
}

/* =========================
   GALERÍA DE PROYECTOS
========================= */
.projects {
  text-align: center;
  background: linear-gradient(180deg, #f8fafc, #eef5f9);
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  margin-top: 40px;
  margin-bottom: 40px;
  overflow: hidden;
}

#proyectos {
  scroll-margin-top: 95px;
}

.projects h2 {
  font-size: 36px;
  color: #061a35;
  margin-bottom: 42px;
  position: relative;
}

.projects h2::after {
  content: "";
  display: block;
  width: 58px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 20px;
  background: #06b6d4;
}

.project-slider {
  position: relative;
}

.project-viewport {
  overflow: hidden;
  padding: 8px 0 12px;
}

.project-grid {
  display: flex;
  gap: 30px;
  padding: 10px 0 28px;
  align-items: stretch;
  overflow: visible;
  will-change: transform;
}

.project-card {
  flex: 0 0 310px;
  min-width: 310px;
  max-width: 310px;

  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(14, 165, 233, 0.12);
  border-radius: 22px;
  overflow: hidden;

  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);

  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.project-img {
  width: 100%;
  aspect-ratio: 16 / 17;
  object-fit: cover;
  display: block;

  transition: transform 0.4s ease;

  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.project-card:hover .project-img {
  transform: scale(1.04);
}

.project-card h3 {
  font-size: 21px;
  margin: 18px 16px 8px;
  line-height: 1.2;
  color: #061a35;
}

.project-card p {
  max-width: 250px;
  margin: 0 auto;
  padding: 0 14px;
  color: #475569;
  line-height: 1.65;
  min-height: 58px;
  background: transparent;
}

.project-card button {
  margin: 18px 20px 22px;
  padding: 13px 24px;
  border: none;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: white;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 12px 24px rgba(6, 182, 212, 0.22);
}

.project-card button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(6, 182, 212, 0.32);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;

  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;

  background: #061a35;
  color: white;

  font-size: 34px;
  font-weight: 700;
  line-height: 1;

  cursor: pointer;

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

  padding-bottom: 3px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: 0.25s ease;
}

.slider-btn.left {
  left: -20px;
}

.slider-btn.right {
  right: -20px;
}

.slider-btn:hover {
  background: #0891b2;
  transform: translateY(-50%) scale(1.06);
}

/* =========================
   CLIENTES / PRESENCIA
========================= */
.clients {
  text-align: center;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.clients h2 {
  font-size: 34px;
  color: #061a35;
  margin-bottom: 16px;
}

.clients h2::after {
  content: "";
  display: block;
  width: 58px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 20px;
  background: #06b6d4;
}

.clients-intro {
  max-width: 720px;
  margin: 0 auto 38px;
  color: #475569;
  line-height: 1.7;
}

.clients-marquee {
  position: relative;
  overflow: hidden;
  padding: 30px 0;
}

.clients-marquee::before,
.clients-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  width: 90px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.clients-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #ffffff, transparent);
}

.clients-marquee::after {
  right: 0;
  background: linear-gradient(270deg, #ffffff, transparent);
}

.clients-track {
  display: flex;
  gap: 54px;
  align-items: center;
  width: max-content;
  animation: clientsScroll 28s linear infinite;
}

.clients-track img {
  width: 145px;
  height: 72px;
  object-fit: contain;

  opacity: 0.92;
  transition: 0.25s ease;

  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.clients-track img:hover {
  opacity: 1;
  transform: scale(1.06);
}

@keyframes clientsScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* =========================
   MAPA / UBICACIÓN
========================= */
.map-section {
  width: 100%;
  padding-bottom: 0;
  margin-bottom: 0;
}

.map-info {
  margin-bottom: 25px;
}

.map-info h2 {
  font-size: 34px;
  color: #061a35;
  margin-bottom: 10px;
}

.map-info p {
  color: #334155;
  margin-bottom: 10px;
}

.map-info a {
  color: #0284c7;
  font-weight: 700;
  text-decoration: none;
}

.map-frame {
  width: 100%;
  height: 500px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* =========================
   FOOTER / CONTACTO
========================= */
.footer {
  width: 100%;
  max-width: none;
  margin: 0;
  background: #061a35;
  color: white;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 60px 7%;
}

.footer h3 {
  color: #00d9ff;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer p {
  margin-bottom: 12px;
  color: #e2e8f0;
}

.whatsapp {
  display: inline-block;
  margin-top: 15px;
  background: #22c55e;
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.25);
  transition: 0.25s;
}

.whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(34, 197, 94, 0.35);
  background: #1fb854;
}

.footer > div {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 25px;
}

.footer > div:first-child {
  border-left: none;
  padding-left: 0;
}

.footer p,
.footer a {
  transition: 0.25s;
}

.footer a:hover,
.footer p:hover {
  color: #00d9ff;
  transform: translateX(10px);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.whatsapp:visited {
  color: white;
}

.footer > div {
  transition: 0.25s;
}

.footer > div:hover {
  transform: translateY(-4px);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer a.whatsapp:hover {
  color: white;
  transform: translateY(-3px);
}

/* =========================
   COPYRIGHT
========================= */
.copyright {
  background: #031221;
  color: #94a3b8;
  text-align: center;
  padding: 18px;
  font-size: 14px;
}

/* =========================
   RESPONSIVE / CELULARES
========================= */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 42px;
  }

  .about,
  .service-grid,
  .project-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .about-logo h3 {
    font-size: 80px;
  }
}

/* =========================
   INDICE ESPACIO
========================= */
#inicio,
#sobre {
  scroll-margin-top: 90px;
}

#servicios {
  scroll-margin-top: 50px;
}

#proyectos {
  scroll-margin-top: 10px;
}

#clientes {
  scroll-margin-top: 110px;
}

#contacto {
  scroll-margin-top: 0px;
}

/* =========================
   MODALES DE PROYECTOS
========================= */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;

  background: rgba(3, 18, 34, 0.82);
  backdrop-filter: blur(8px);

  justify-content: center;
  align-items: center;
  padding: 24px;
}

.modal-content {
  background: linear-gradient(180deg, #ffffff, #f8fbff);

  width: min(95vw, 1000px);
  max-height: 90vh;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border-radius: 24px;
  position: relative;

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(34, 211, 238, 0.35);
}

/* HEADER */
.modal-header {
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 30px;
  background: linear-gradient(180deg, #f8fafc, #eef5f9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.modal-header h2 {
  font-size: 32px;
  color: #0f172a;
  margin-bottom: 8px;
  font-weight: 850;
  letter-spacing: -0.7px;
}

.modal-subtitle {
  color: #64748b;
  font-size: 16px;
  line-height: 1.55;
  max-width: 560px;
}

/* BOTÓN CERRAR */
.cerrar {
  flex: 0 0 auto;

  font-size: 30px;
  color: #64748b;
  cursor: pointer;

  width: 46px;
  height: 46px;

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

  background: white;
  border-radius: 14px;

  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transition: 0.25s ease;
}

.cerrar:hover {
  color: #061a35;
  background: #e6faff;
  transform: scale(1.05);
}

/* CUERPO */
.modal-content {
  width: min(95vw, 1100px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px 32px;
}

.modal-img-wrapper {
  height: 500px;
  text-align: center;
  overflow: hidden;
  border-radius: 18px;
  background: #eef5f9;
}

.modal-img {
  width: auto;
  max-width: 100%;
  max-height: 500px;
  height: auto;
}

.modal-body p {
  color: #334155;
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 16px;
}

.modal-body h3 {
  color: #061a35;
  font-size: 25px;
  margin: 24px 0 10px;
}

.modal-body ul {
  padding-left: 22px;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 18px;
}

.modal-body li {
  margin-bottom: 3px;
}

.modal-highlight {
  background: linear-gradient(90deg, #e6faff, #f2fbff);
  border-left: 5px solid #06b6d4;
  padding: 16px 20px;
  border-radius: 14px;
  margin: 24px 0;

  color: #0f172a;
  font-weight: 500;
}

/* SCROLLBAR */
.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.35);
  border-radius: 20px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.55);
}

/* WHATSAPP FLOTANTE */
.whatsapp-float-wrapper {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 999;

  display: flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-float {
  width: 64px;
  height: 64px;
  border-radius: 50%;

  background: #25d366;
  color: white;

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

  font-size: 34px;
  text-decoration: none;

  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.whatsapp-float:hover:not(.spin) {
  transform: scale(1.08);
}

.whatsapp-tooltip {
  position: relative;

  background: #ffffff;
  color: #0f172a;

  border: 2px solid #25d366;
  border-radius: 18px;

  padding: 13px 18px;
  min-width: 245px;

  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;

  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.14);

  opacity: 0;
  transform: scaleX(0);
  transform-origin: right center;

  pointer-events: none;
  overflow: hidden;

  transition:
    opacity 0.9s linear,
    transform 0.9s linear;
}

.whatsapp-tooltip span {
  display: block;

  opacity: 0;
  transform: translateX(18px);

  transition:
    opacity 0.45s linear,
    transform 0.45s linear;

  transition-delay: 0.22s;
}

.whatsapp-tooltip::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);

  width: 16px;
  height: 16px;

  background: white;
  border-top: 2px solid #25d366;
  border-right: 2px solid #25d366;
}

.whatsapp-tooltip.show {
  opacity: 1;
  transform: scaleX(1);
}

.whatsapp-tooltip.show span {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-float.spin-open {
  animation: whatsappUnrollOpen 0.9s linear;
}

.whatsapp-float.spin-close {
  animation: whatsappUnrollClose 0.9s linear;
}

@keyframes whatsappUnrollOpen {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}

@keyframes whatsappUnrollClose {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .whatsapp-float-wrapper {
    right: 16px;
    bottom: 16px;
  }

  .whatsapp-tooltip {
    display: none;
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
    font-size: 29px;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.nav-links,
.nav-links a {
  user-select: none;
  -webkit-user-select: none;
}

.logo {
  user-select: text;
  -webkit-user-select: text;
}

.hero-content.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 1.1s ease,
    transform 1.1s ease;
  transition-delay: 0.35s;
}

.hero-content.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* CELULAR */
@media (max-width: 768px) {
  /* NAVBAR */
  .navbar {
    padding: 10px 8px;
    gap: 8px;
  }

  .logo {
    font-size: 10px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .logo span {
    font-size: 22px;
    margin-right: 4px;
  }

  .nav-links {
    display: flex !important;
    gap: 7px;
    flex-wrap: nowrap;
    margin-left: auto;
  }

  .nav-links li:first-child {
    display: none;
  }

  .nav-links a {
    font-size: 9px;
    white-space: nowrap;
  }

  /* HERO */
  .hero {
    min-height: 430px;
    padding-top: 65px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero h2 {
    font-size: 25px;
    line-height: 1.15;
  }

  .hero p {
    font-size: 15px;
    line-height: 1.5;
  }

  .btn {
    padding: 12px 22px;
    font-size: 12px;
  }

  /* SECCIONES */
  .section {
    padding: 42px 14px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about h2 {
    font-size: 28px;
  }

  .about p {
    font-size: 14px;
  }

  .about-logo-card {
    max-width: 280px;
    padding: 24px;
  }

  .about-logo {
    transform: scale(0.92);
  }

  .about h2,
  .services h2,
  .projects h2 {
    font-size: 30px;
  }

  .about p {
    font-size: 12.5px;
    line-height: 1.55;
  }

  .about-logo h3 {
    font-size: 58px;
  }

  .about-logo span {
    font-size: 16px;
  }

  /* SERVICIOS */
  .services {
    border-radius: 18px;
  }

  .services h2 {
    font-size: 30px;
    margin-bottom: 30px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .service-card {
    padding: 28px 16px;
    border-radius: 18px;
  }

  .service-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    margin-bottom: 18px;
  }

  .service-icon i {
    font-size: 27px;
  }

  .service-card h3 {
    font-size: 16px;
  }

  .service-card p {
    font-size: 12.5px;
    line-height: 1.55;
  }

  /* PROYECTOS */
  .projects {
    margin: 20px 8px;
    border-radius: 18px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .projects h2 {
    font-size: 30px;
    margin-bottom: 30px;
  }

  .project-viewport {
    overflow: hidden !important;
  }

  .project-grid {
    gap: 18px;
  }

  .project-card {
    flex: 0 0 245px;
    min-width: 245px;
    max-width: 245px;
    border-radius: 18px;
  }

  .project-img {
    aspect-ratio: 16 / 18;
  }

  .project-card h3 {
    font-size: 18px;
  }

  .project-card p {
    font-size: 13px;
    min-height: 54px;
  }

  .slider-btn {
    display: flex !important;
    width: 40px;
    height: 40px;
    font-size: 27px;
  }

  .slider-btn.left {
    left: 4px;
  }

  .slider-btn.right {
    right: 4px;
  }

  /* CLIENTES */
  .clients h2 {
    font-size: 28px;
  }

  .clients-intro {
    font-size: 14px;
    margin-bottom: 26px;
  }

  .clients-track {
    gap: 34px;
    animation-duration: 22s;
  }

  .clients-track img {
    width: 115px;
    height: 56px;
  }

  /* MAPA */
  .map-frame {
    height: 300px;
  }

  /* FOOTER */
  .footer {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
    padding: 40px 22px;
  }

  .footer > div,
  .footer > div:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 18px;
  }

  .footer h3 {
    font-size: 16px;
  }

  .footer p,
  .footer a {
    font-size: 14px;
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
    font-size: 29px;
    right: 16px;
    bottom: 16px;
  }

  .whatsapp-tooltip {
    display: none;
  }
}
