:root {
  --gray: #44494d;
  --blue: #18568a;
  --blue-rgb: 24, 86, 138;
  --white: #ffffff;
  --light: #f4f7fa;
  --shadow: 0 12px 40px rgba(var(--blue-rgb), 0.15);
  --radius: 16px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --header-height: 84px;
  --card-hover-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--gray);
  background: var(--white);
  line-height: 1.6;
}

a {
  color: var(--blue);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* Header — con fondo arriba; al hacer scroll se vuelve transparente */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(68, 73, 77, 0.1);
  box-shadow: 0 4px 20px rgba(24, 86, 138, 0.08);
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.site-header.is-scrolled {
  background: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: transparent;
  box-shadow: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  gap: 1.25rem;
  min-height: var(--header-height);
}

/* Logo horizontal (PNG transparente) */
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

.logo-img {
  display: block;
  height: 68px;
  width: auto;
  max-width: min(380px, 58vw);
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links .btn-primary {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--blue);
  box-shadow: 0 2px 10px rgba(24, 86, 138, 0.12);
  text-shadow: none;
}

.nav-links .btn-primary:hover {
  background: var(--white);
  color: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(24, 86, 138, 0.18);
  transform: translateY(-2px);
}

.nav-links a {
  color: var(--gray);
  font-weight: 600;
  transition: color 0.2s;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.nav-links a:hover {
  color: var(--blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

/* Hero */
.hero {
  padding: calc(var(--header-height) + 2.5rem) 0 4rem;
  background: linear-gradient(135deg, var(--light) 0%, var(--white) 55%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero--decorated {
  background: linear-gradient(128deg, #f0f6fb 0%, #ffffff 45%, #e8f2fa 100%);
}

.hero-shapes,
.brand-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-shape,
.sec-shape {
  position: absolute;
  pointer-events: none;
}

/* Hero — formas flotantes #18568a (V2) */
.brand-v2 .hero-shape--1 {
  width: 280px;
  height: 280px;
  top: 6%;
  right: 10%;
  background: radial-gradient(circle, rgba(var(--blue-rgb), 0.35) 0%, transparent 65%);
  border-radius: 50%;
}

.brand-v2 .hero-shape--2 {
  width: 170px;
  height: 170px;
  bottom: 16%;
  right: 24%;
  background: rgba(var(--blue-rgb), 0.2);
  border-radius: 38% 62% 55% 45% / 42% 48% 52% 58%;
  animation: brand-float 9s ease-in-out infinite;
}

.brand-v2 .hero-shape--3 {
  width: 115px;
  height: 115px;
  top: 20%;
  right: 4%;
  background: linear-gradient(145deg, rgba(var(--blue-rgb), 0.42), rgba(var(--blue-rgb), 0.12));
  border-radius: 22px;
  --rot: 24deg;
  transform: rotate(24deg);
  animation: brand-float 7s ease-in-out infinite reverse;
}

.brand-v2 .hero-shape--4 {
  width: 200px;
  height: 200px;
  bottom: 8%;
  left: 52%;
  border: 3px solid rgba(var(--blue-rgb), 0.22);
  border-radius: 50%;
  animation: brand-float-slow 11s ease-in-out infinite;
}

.brand-v2 .hero-shape--5 {
  width: 72px;
  height: 72px;
  top: 42%;
  right: 38%;
  background: #18568a;
  opacity: 0.28;
  border-radius: 12px;
  --rot: 18deg;
  transform: rotate(18deg);
  animation: brand-float 6s ease-in-out infinite;
}

@keyframes brand-float {
  0%,
  100% {
    transform: translateY(0) rotate(var(--rot, 0deg));
  }
  50% {
    transform: translateY(-12px) rotate(calc(var(--rot, 0deg) + 5deg));
  }
}

@keyframes brand-float-slow {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.03);
  }
}

/* Secciones — identidad de marca V2 */
.brand-v2 section {
  position: relative;
  overflow: hidden;
}

.brand-v2 section > .container {
  position: relative;
  z-index: 1;
}

.brand-v2 #nosotros {
  background: linear-gradient(180deg, var(--white) 0%, #f8fbfe 100%);
}

.brand-v2 .sec-servicios .sec-shape--a {
  width: 260px;
  height: 260px;
  left: -100px;
  top: 5%;
  background: radial-gradient(circle, rgba(var(--blue-rgb), 0.22) 0%, transparent 68%);
  border-radius: 50%;
}

.brand-v2 .sec-servicios .sec-shape--b {
  width: 110px;
  height: 110px;
  right: 6%;
  bottom: 12%;
  background: rgba(var(--blue-rgb), 0.12);
  border-radius: 24px;
  --rot: 20deg;
  transform: rotate(20deg);
  animation: brand-float 7s ease-in-out infinite;
}

.brand-v2 .sec-servicios .sec-shape--c {
  width: 64px;
  height: 64px;
  right: 22%;
  top: 15%;
  background: #18568a;
  opacity: 0.15;
  border-radius: 50%;
}

.brand-v2 .sec-nosotros .sec-shape--a {
  width: 180px;
  height: 180px;
  left: -60px;
  bottom: 15%;
  background: rgba(var(--blue-rgb), 0.14);
  border-radius: 40% 60% 50% 50% / 55% 45% 55% 45%;
  animation: brand-float 9s ease-in-out infinite;
}

.brand-v2 .sec-nosotros .sec-shape--b {
  width: 100px;
  height: 100px;
  right: 4%;
  top: 8%;
  border: 3px solid rgba(var(--blue-rgb), 0.2);
  border-radius: 50%;
}

.brand-v2 .sec-nosotros .sec-shape--c {
  width: 48px;
  height: 48px;
  right: 18%;
  bottom: 25%;
  background: linear-gradient(135deg, rgba(var(--blue-rgb), 0.35), rgba(var(--blue-rgb), 0.08));
  border-radius: 10px;
  transform: rotate(12deg);
}

.brand-v2 .sec-contacto .sec-shape--a {
  width: 200px;
  height: 200px;
  right: -50px;
  top: 10%;
  background: radial-gradient(circle, rgba(var(--blue-rgb), 0.18) 0%, transparent 70%);
  border-radius: 50%;
}

.brand-v2 .sec-contacto .sec-shape--b {
  width: 120px;
  height: 120px;
  left: 8%;
  bottom: 8%;
  background: rgba(var(--blue-rgb), 0.12);
  border-radius: 28% 72% 58% 42% / 48% 38% 62% 52%;
  animation: brand-float-slow 10s ease-in-out infinite;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero--decorated .hero-grid {
  grid-template-columns: 1fr;
  max-width: 680px;
}

.hero-content {
  position: relative;
}

.hero-badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(24, 86, 138, 0.1);
  border: 1px solid rgba(24, 86, 138, 0.2);
  border-radius: 999px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--gray);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--blue);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.hero .hero-lead {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--blue);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.canvas-3d-wrap {
  position: relative;
  height: 420px;
  min-height: 320px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #e8f0f8, #fff);
  overflow: hidden;
  box-shadow: var(--shadow);
  touch-action: none;
}

.canvas-3d-mount {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.canvas-3d-wrap canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  cursor: grab;
}

.canvas-3d-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.88);
  pointer-events: none;
}

.canvas-3d-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}

.canvas-3d-loading.is-error {
  color: #c62828;
  background: rgba(255, 235, 238, 0.95);
}

.canvas-3d-wrap canvas:active {
  cursor: grabbing;
}

.canvas-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: var(--gray);
  opacity: 0.7;
  pointer-events: none;
  z-index: 3;
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--blue);
  margin: 0 0 0.5rem;
}

.section-title p {
  margin: 0;
  max-width: 560px;
  margin-inline: auto;
}

/* Services — máximo 4 por fila; desde la 5ª baja a la siguiente fila */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.services-3d-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  margin-top: 3rem;
}

.services-3d-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  background: var(--light);
  border-radius: var(--radius);
  min-height: 100%;
}

.services-3d-copy h3 {
  margin: 0 0 0.35rem;
  color: var(--blue);
  font-size: 1.2rem;
}

.services-3d-copy p {
  margin: 0;
  font-size: 0.9rem;
}

.services-3d-item .canvas-3d-wrap {
  flex: 1;
  height: 380px;
  min-height: 320px;
}

@media (max-width: 900px) {
  .services-3d-gallery {
    grid-template-columns: 1fr;
  }

  .services-3d-item .canvas-3d-wrap {
    height: 300px;
    min-height: 280px;
  }
}

.service-card,
.about-card,
.contact-info-card {
  background: var(--white);
  border: 1px solid rgba(var(--blue-rgb), 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition:
    transform 0.35s var(--card-hover-ease),
    box-shadow 0.35s var(--card-hover-ease),
    border-color 0.35s var(--card-hover-ease);
}

.service-card {
  padding: 1.75rem;
}

.service-card:hover,
.about-card:hover,
.contact-info-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--blue-rgb), 0.32);
  box-shadow: 0 20px 48px rgba(var(--blue-rgb), 0.2);
}

.service-card:hover .service-icon {
  transform: scale(1.08) rotate(-4deg);
  background: rgba(var(--blue-rgb), 0.12);
}

.service-card:hover .btn-primary {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--blue-rgb), 0.28);
}

.service-card h3 {
  margin: 0 0 0.5rem;
  color: var(--blue);
}

.service-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray);
  margin: 1rem 0;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transition:
    transform 0.35s var(--card-hover-ease),
    background 0.35s var(--card-hover-ease);
}

.service-card .btn-primary {
  transition:
    transform 0.3s var(--card-hover-ease),
    box-shadow 0.3s var(--card-hover-ease);
}

/* About — 3 tarjetas */
.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.about-card {
  padding: 2rem 1.5rem;
  border-top: 4px solid #18568a;
}

.about-card:hover .about-card-icon {
  transform: scale(1.1) rotate(6deg);
  background: rgba(var(--blue-rgb), 0.12);
}

.about-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  font-size: 1.6rem;
  background: var(--light);
  border-radius: 14px;
  margin-bottom: 1rem;
  transition:
    transform 0.35s var(--card-hover-ease),
    background 0.35s var(--card-hover-ease);
}

.about-card h3 {
  margin: 0 0 0.65rem;
  color: var(--blue);
  font-size: 1.15rem;
}

.about-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--gray);
}

.about-note {
  text-align: center;
  margin-top: 2rem;
  color: var(--gray);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .about-cards {
    grid-template-columns: 1fr;
  }
}

/* Contact */
.contact-section {
  background: var(--light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-aside-lead {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--gray);
}

.contact-aside-email {
  margin: 0;
  padding: 1rem 1.15rem;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(var(--blue-rgb), 0.12);
  font-size: 0.95rem;
}

.contact-aside-email a {
  color: var(--blue);
  font-weight: 600;
}

.contact-aside-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-card {
  padding: 1.25rem 1.35rem;
  border-left: 4px solid #18568a;
}

.contact-info-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--blue);
}

.contact-info-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--gray);
}

.contact-aside-cta {
  margin: 0;
  font-size: 0.95rem;
}

.contact-aside-cta a {
  color: var(--blue);
  font-weight: 600;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(68, 73, 77, 0.25);
  border-radius: 10px;
  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--blue);
  border-color: transparent;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
}

.alert-success {
  background: #e8f5e9;
  color: #2e7d32;
}

.alert-error {
  background: #ffebee;
  color: #c62828;
}

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #3d4348 0%, var(--gray) 42%, #353a3e 100%);
  color: var(--white);
  padding: 0 0 1.5rem;
}

.footer-accent {
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--blue) 20%, #2a7ab8 50%, var(--blue) 80%, transparent);
}

.footer-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(72px);
  opacity: 0.35;
}

.footer-glow--left {
  width: 280px;
  height: 280px;
  top: -80px;
  left: -60px;
  background: var(--blue);
}

.footer-glow--right {
  width: 220px;
  height: 220px;
  bottom: 40px;
  right: -40px;
  background: #5a9fd4;
  opacity: 0.2;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem 2rem;
  padding: 3rem 0 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.footer-logo {
  display: inline-block;
  line-height: 0;
  padding: 0.55rem 0.9rem;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.footer-logo img {
  display: block;
  max-width: min(240px, 100%);
  height: auto;
  max-height: 52px;
  width: auto;
  object-fit: contain;
}

.footer-logo:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.footer-tagline {
  margin: 0;
  max-width: 28ch;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.footer-col-title {
  margin: 0 0 1.15rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
}

.footer-col-title::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-top: 0.5rem;
  border-radius: 2px;
  background: var(--blue);
}

.footer-nav ul,
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li + li {
  margin-top: 0.35rem;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-nav a::before {
  content: '';
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.2s ease;
}

.footer-nav a:hover {
  color: var(--white);
  padding-left: 0.35rem;
}

.footer-nav a:hover::before {
  width: 0.65rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.footer-contact-item:last-child {
  margin-bottom: 0;
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(24, 86, 138, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.footer-contact-icon svg {
  width: 20px;
  height: 20px;
}

.footer-contact-text {
  padding-top: 0.35rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.footer-contact-text a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-contact-text a:hover {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.social-btn {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(24, 86, 138, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.social-btn svg {
  width: 22px;
  height: 22px;
}

.social-btn:hover {
  transform: translateY(-3px);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.social-btn--facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
}

.social-btn--instagram:hover {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: transparent;
}

.social-btn--whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.15rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  justify-content: center;
  text-align: center;
}

.footer-copyright {
  letter-spacing: 0.02em;
}

.admin-link {
  opacity: 0.35;
  font-size: 0.75rem;
}

.admin-link:hover {
  opacity: 0.7;
}

/* Mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--blue);
}

/* Scroll reveal — landing */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transition:
      opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--reveal-i, 0) * 110ms);
    will-change: opacity, transform;
  }

  .reveal--up {
    transform: translateY(48px);
  }

  .reveal--down {
    transform: translateY(-36px);
  }

  .reveal--left {
    transform: translateX(-52px);
  }

  .reveal--right {
    transform: translateX(52px);
  }

  .reveal--scale {
    transform: scale(0.9);
  }

  .reveal--fade {
    transform: none;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2.5rem;
  }

  .footer-brand {
    align-items: center;
    text-align: center;
  }

  .footer-tagline {
    max-width: none;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col-title::after {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-nav a:hover {
    padding-left: 0;
  }

  .footer-contact-item {
    justify-content: center;
    text-align: left;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 1rem;
    border-bottom: 1px solid rgba(68, 73, 77, 0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav {
    align-items: flex-start;
    padding-top: 0.65rem;
  }

  .logo-img {
    height: 52px;
    max-width: min(300px, 80vw);
  }

  .nav-links {
    gap: 0.5rem;
    font-size: 0.95rem;
  }

  .reveal--left,
  .reveal--right {
    transform: translateY(40px);
  }

  .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.75);
    border-bottom-color: rgba(68, 73, 77, 0.08);
  }

  :root {
    --header-height: 76px;
  }

  .brand-v2 .hero-shape--4,
  .brand-v2 .hero-shape--5 {
    transform: scale(0.85);
  }

  .brand-v2 .sec-servicios .sec-shape--c {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-v2 .hero-shape,
  .brand-v2 .sec-shape {
    animation: none !important;
  }

  .service-card:hover,
  .about-card:hover,
  .contact-info-card:hover {
    transform: none;
  }

  .service-card:hover .service-icon,
  .about-card:hover .about-card-icon {
    transform: none;
  }
}

/* Botón flotante WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9000;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 14px rgba(37, 211, 102, 0.45),
    0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

.whatsapp-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow:
    0 6px 20px rgba(37, 211, 102, 0.55),
    0 10px 28px rgba(0, 0, 0, 0.22);
  color: #fff;
}

.whatsapp-float:focus-visible {
  outline: 3px solid rgba(24, 86, 138, 0.5);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
    width: 54px;
    height: 54px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}
