/* =========================================
   GLOBAL
   variables + fuentes + reset + base
   ========================================= */

:root {
  --principal: #339999;
  --compi: #246f6f;
  --tono: #194d4d;
  --tono-claro: #7bfdfd;

  --secundario: #333333;
  --compi-sec: #919191;
  --tono-sec: #b3b3b3;
  --white: #ffffff;

  --cian-principal: #339999;
  --cian-complementario: #246f6f;
  --cian-tono-oscuro: #194d4d;
  --cian-tono-claro: #46d5d5;
  --gris-principal: #333333;
  --gris-complementario: #919191;
  --gris-tono-claro: #b3b3b3;
  --gris-tono-muy-claro: #f6f6f6;

  --sombra-oscura: 0 10px 30px rgba(0, 0, 0, 0.2);
  --sombra-media: 0 5px 15px rgba(0, 0, 0, 0.1);
  --sombra-clara: 0 2px 5px rgba(0, 0, 0, 0.05);
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);

  --transition: all 0.3s ease;
  --transicion-rapida: all 0.3s ease;
  --transicion-media: all 0.5s ease;

  --border-radius: 8px;
  --topbar-h: 34px;
  --header-h: 92px;

  --logo-w: 160px;
  --logo-h: 70px;
  --nav-font: 24px;
  --nav-gap: 45px;
  --action-size: 42px;
  --action-gap: 34px;

  --hero-w: 86%;
  --hero-max: 1600px;

  --main-shell-w: 86%;
  --main-shell-max: 1600px;
  --feature-card-w: 176px;

  --ind-w: clamp(36px, 4.8vw, 54px);
  --ind-h: clamp(3px, 0.35vw, 4px);
  --ind-gap: clamp(6px, 0.9vw, 10px);
  --ind-right: clamp(12px, 2vw, 26px);
  --ind-scale: 0.41;
}

@font-face {
  font-family: "Brumder";
  src: url("../fonts/Brumder-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Mazzard";
  src: url("../fonts/MazzardH-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Mazzard";
  src: url("../fonts/MazzardH-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Mazzard", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--secundario);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: calc(var(--topbar-h) + var(--header-h));
}

a {
  color: var(--gris-principal);
  text-decoration: none;
  font-size: 1rem;
}

a:hover {
  color: var(--tono-claro);
}

img {
  max-width: 100%;
  display: block;
}

p {
  margin-bottom: 15px;
}

section {
  padding: 30px 0;
  scroll-margin-top: calc(var(--topbar-h) + var(--header-h) + 16px);
}

.container {
  width: 85%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--principal);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--tono);
  transform: translateY(-3px);
  box-shadow: var(--sombra-media);
}

.btn-service {
  display: inline-block;
  background: linear-gradient(to right, var(--principal), var(--tono-claro));
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: var(--sombra-clara);
}

.btn-service:hover {
  background: linear-gradient(to right, var(--tono), var(--compi));
  transform: translateY(-3px);
  box-shadow: var(--sombra-media);
}

.btn-whatsapp {
  background-color: #25d366;
}

.btn-whatsapp:hover {
  background-color: #128c7e;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  color: var(--compi);
  font-size: 2.5rem;
  position: relative;
  font-weight: 900;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--principal);
  border-radius: 2px;
}

body.nav-open,
body.modal-open {
  overflow: hidden;
}

.topbar,
header {
  will-change: transform;
}

.marco-circuito {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@keyframes glow {
  0% {
    stroke-width: 2;
    filter: drop-shadow(0 0 2px #339999) brightness(1);
  }
  50% {
    stroke-width: 2.5;
    filter: drop-shadow(0 0 6px #46d5d5) brightness(1.2);
  }
  100% {
    stroke-width: 2;
    filter: drop-shadow(0 0 2px #339999) brightness(1);
  }
}

@keyframes hexagono-glow {
  0% {
    fill-opacity: 0.8;
    filter: drop-shadow(0 0 3px #46d5d5);
  }
  50% {
    fill-opacity: 1;
    filter: drop-shadow(0 0 8px #339999);
  }
  100% {
    fill-opacity: 0.8;
    filter: drop-shadow(0 0 3px #46d5d5);
  }
}

svg path,
svg line {
  animation: glow 4s ease-in-out infinite;
}

.hexagono {
  animation: hexagono-glow 3s ease-in-out infinite;
}

.circuito-izq {
  animation: float 6s ease-in-out infinite;
}

.circuito-der {
  animation: float 7s ease-in-out infinite;
  animation-delay: 0.5s;
}

.hexagono-especial-1 {
  rotate: 30deg;
  fill: #1a7373;
  animation: hexagono-glow 2.5s ease-in-out infinite;
}

.hexagono-especial-2 {
  rotate: 30deg;
  fill: #2bb7b7;
  animation: hexagono-glow 3.5s ease-in-out infinite;
}

@media (max-width: 1400px) {
  :root {
    --nav-font: 22px;
    --nav-gap: 28px;
    --action-size: 38px;
    --action-gap: 26px;
    --logo-w: 150px;
    --logo-h: 66px;
  }
}

@media (max-width: 1200px) {
  :root {
    --nav-font: 20px;
    --nav-gap: 20px;
    --action-size: 34px;
    --action-gap: 20px;
    --logo-w: 140px;
    --logo-h: 62px;
  }

  .container {
    width: 90%;
  }

  .marco-circuito {
    visibility: hidden;
  }
}

@media (max-width: 1060px) {
  :root {
    --nav-font: 18px;
    --nav-gap: 14px;
    --action-size: 32px;
    --action-gap: 14px;
    --logo-w: 132px;
    --logo-h: 58px;
  }
}

@media (max-width: 992px) {
  :root {
    --header-h: 84px;
  }

  a {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  :root {
    --hero-w: 94%;
    --main-shell-w: 94%;
  }

  .topbar,
  header {
    transition: transform 0.32s ease, opacity 0.32s ease !important;
  }

  body.mobile-header-hidden .topbar {
    transform: translateY(-100%) !important;
  }

  body.mobile-header-hidden header {
    transform: translateY(calc(-1 * (var(--topbar-h) + var(--header-h)))) !important;
  }
}

@media (max-width: 576px) {
  :root {
    --logo-w: 118px;
    --logo-h: 52px;
    --action-size: 30px;
    --action-gap: 12px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

@media (max-width: 420px) {
  :root {
    --logo-w: 120px;
    --logo-h: 52px;
  }
}

@media (max-width: 375px) {
  .container {
    width: 94%;
  }
}