@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/InterVariable.woff2") format("woff2");
}

/* Cascade / accordion styles for services cards */
.cards-grid.cascade-accordion {
  display: block;
}

.cards-grid.cascade-accordion .info-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.9rem;
  background: white;
  box-shadow: 0 8px 20px rgba(18,38,63,0.04);
}

.cards-grid.cascade-accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0;
}

.cards-grid.cascade-accordion summary h3 {
  margin: 0;
  font-size: 1.05rem;
}

.cards-grid.cascade-accordion summary i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.1rem;
}

.cards-grid.cascade-accordion summary::-webkit-details-marker {
  display: none;
}

.cards-grid.cascade-accordion .card-body {
  display: none;
  padding-top: 0;
}

.cards-grid.cascade-accordion details[open] .card-body {
  display: block;
  padding-top: 0.6rem;
}


:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --primary: #12263f;
  --primary-soft: #eaf0fb;
  --accent: #c79a2f;
  --text: #233142;
  --muted: #6b7280;
  --border: rgba(18, 38, 63, 0.12);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;

  font-family: 'Inter', sans-serif;
  color: var(--text);

  background: linear-gradient(
    135deg,
    #f8f8fc 0%,
    var(--bg) 100%
  );

  line-height: 1.6;

  overflow-x: hidden;
}

main {
  padding: calc(var(--topbar-height, 72px) + 1rem) 0.5rem 3rem;
}

img,
picture,
svg {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 5%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(18, 38, 63, 0.08);
  transition: padding 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  /* prepare for hide/show via transform */
  transform: translateY(0);
  transition: transform 260ms cubic-bezier(.22,.9,.3,1), padding 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.topbar.scrolled {
  padding: 0.4rem 5%;
  box-shadow: 0 6px 18px rgba(18,38,63,0.08);
}

/* Hidden state: move header out of viewport when scrolling down */
.topbar.hidden {
  transform: none !important;
}

/* When mobile nav is open, ensure header remains visible */
body.nav-open .topbar {
  transform: translateY(0) !important;
}

/* Mobile / responsive header behavior */
@media (max-width: 768px) {
  :root {
    --topbar-height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .header-actions {
    justify-content: flex-end;
  }

  /* Make header fixed on mobile so it stays visible while scrolling */
  .topbar {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 1100;
  }

  /* Ensure main content isn't hidden under fixed header */
  main {
    padding-top: calc(var(--topbar-height, 72px) + 1rem);
  }

  /* Mobile nav: hidden by default, slide down when open */
  .nav-links {
    position: fixed;
    left: 0;
    right: 0;
    top: calc(var(--topbar-height, 64px));
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 5%;
    background: rgba(255,255,255,0.98);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.2s ease;
    box-shadow: 0 10px 30px rgba(18,38,63,0.06);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .header-social-links {
    margin-left: 0;
    justify-content: flex-start;
    padding-top: 0.5rem;
  }
  
  /* Ocultar la información de contacto en la cabecera en móviles para no tapar el carrusel */
  .header-social-links {
    display: none;
  }

  /* contacto dentro del menú eliminado — contacto se muestra en el header en pantallas grandes */
}

/* Prevent background scroll when mobile nav open */
body.nav-open {
  overflow: hidden;
}

/* Overlay shown behind mobile nav to capture outside clicks */
.nav-overlay {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(var(--topbar-height, 64px));
  bottom: 0;
  background: rgba(7, 15, 28, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 1050;
}

.nav-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* Ensure header contact is hidden on small screens (override later rules) */
@media (max-width: 768px) {
  .header-social-links {
    display: none !important;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-weight: 500;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-links a {
  position: relative;
  padding: 0.35rem 0;
  color: var(--primary);
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  width: 100%;
}

.header-social-links {
  display: flex;
  gap: 0.6rem;
  margin-left: auto;
}

.header-social-links a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.header-social-links a:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: white;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  color: var(--primary);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 2rem 0;
  margin: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-slider-nav {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 2;
}

.hero-control {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  box-shadow: 0 12px 24px rgba(18, 38, 63, 0.14);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-control:hover,
.hero-control:focus-visible {
  transform: translateY(-2px);
  background: white;
}

.hero-dots {
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 12px;
  height: 12px;
  background: var(--accent);
}

.hero-slide .container {
  position: relative;
  z-index: 1;
}

.dark-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 15, 28, 0.6);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  max-width: 760px;
  padding: 2rem;
  margin-top: auto;
  margin-bottom: 2rem;
  align-self: end;
}

.hero-overlay h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-overlay p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
}

.hero-overlay .eyebrow {
  color: #f3d27a;
}

.hero-overlay .hero-actions {
  justify-content: center;
}

.container {
  width: min(100%, 1200px);
  /*margin: 0 auto;*/
}

.btn-scroll {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  margin-top: 1rem;
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-scroll:hover {
  transform: translateY(3px);
  background: rgba(255,255,255,0.25);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 24px rgba(18, 38, 63, 0.18);
}

.btn-secondary {
  background: var(--primary-soft);
  color: var(--primary);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  color: var(--muted);
}

.hero-highlights li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-highlights i {
  color: var(--accent);
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 45px rgba(18, 38, 63, 0.08);
}

.hero-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-card h3 {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 0.7rem;
}

.hero-card p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.metrics div {
  background: var(--primary-soft);
  border-radius: 16px;
  padding: 1rem;
}

.metrics strong {
  display: block;
  color: var(--primary);
  font-size: 1.25rem;
}

.metrics span {
  color: var(--muted);
  font-size: 0.92rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1rem auto 3rem;
  max-width: 1200px;
  width: 100%;
  padding: 0 0.25rem; /* small inner gutter so cards don't touch grid edges */
}

.stats article,
.info-card,
.testimonial-card,
.cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.6rem;
  box-shadow: 0 12px 30px rgba(18, 38, 63, 0.06);
}

.stats i {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.stats h3,
.info-card h3,
.testimonial-card strong {
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.stats p,
.info-card p,
.testimonial-card span,
.about-content p,
.about-content li,
.section-heading p,
.cta p {
  color: var(--muted);
}

.section {
    padding: 1.5rem 0.25rem;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Espacio lateral (marco) para todas las secciones excepto el hero */
.section:not(#hero) {
  padding-left: 2rem;
  padding-right: 2rem;
}

#hero.section {
  padding: 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.section-heading h2,
.about-content h2,
.cta h2 {
  color: var(--primary);
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  margin-bottom: 0.6rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.2rem;
}

.info-card i {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.about {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: center;
}

.about-image {
  min-height: 340px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(18, 38, 63, 0.8), rgba(199, 154, 47, 0.5)),
    url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1200&q=80') center/cover;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.image-card {
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  max-width: 280px;
  font-weight: 600;
  color: var(--primary);
}

.about-content ul {
  list-style: none;
  margin-top: 1rem;
}

.about-content li {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.about-content li i {
  color: var(--accent);
  margin-top: 0.3rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.testimonial-card p {
  color: var(--text);
  margin-bottom: 1rem;
}

.testimonial-image-card {
  display: grid;
  gap: 0;
}

.testimonial-image-wrapper {
  overflow: hidden;
  border-radius: 20px;
  min-height: 240px;
  background: var(--primary-soft);
}

.testimonial-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.brand-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(18, 38, 63, 0.06);
}

.brand-image-card img {
  width: 100%;
  border-radius: 20px;
  display: block;
}

.brand-copy h3 {
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.brand-copy p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.slide-caption h3 {
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.slide-caption p {
  color: var(--muted);
}

.contact-section {
  padding-bottom: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2rem;

  width: 100%;
  max-width: 1200px;

  margin: 0 auto;

  align-items: start;
  box-sizing: border-box;
}

.contact-grid > * {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form-wrapper {
  width: 100%;
}

.contact-form {
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}


@media (max-width: 760px) {

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    margin: 0;
  }

}

.contact-result {
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 9999;

  opacity: 0;
  transform: translateY(-14px);
  visibility: hidden;

  width: min(420px, calc(100vw - 40px));
  padding: 16px 20px;

  color: #ffffff;

  border-radius: 10px;

  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;

  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);

  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.contact-result.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Éxito */
.contact-result.success {
  background-color: #198754;
  border-left: 5px solid #146c43;
}

/* Error */
.contact-result.error {
  background-color: #dc3545;
  border-left: 5px solid #b02a37;
}


/* Animación */
@keyframes contactSlideIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Móvil */
@media (max-width: 600px) {
  .contact-result {
    top: 15px;
    right: 20px;
    left: 20px;

    width: auto;

    padding: 14px 16px;

    font-size: 14px;
  }
}

.contact-info {
  display: grid;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;

  width: 100%;
  max-width: 100%;
  min-width: 0;

  padding: 1.2rem;

  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: 18px;

  box-shadow: 0 10px 24px rgba(18, 38, 63, 0.06);

  box-sizing: border-box;
}

.contact-card i {
  display: grid;
  place-items: center;

  width: 44px;
  min-width: 44px;
  height: 44px;

  border-radius: 50%;

  background: var(--primary-soft);
  color: var(--accent);

  flex-shrink: 0;
}

.contact-card > div {
  flex: 1;
  min-width: 0;
  max-width: 100%;
}

.contact-card h3 {
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.contact-card p {
  margin: 0;
  max-width: 100%;

  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 16px 38px rgba(18, 38, 63, 0.08);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--text);
  background: #fbfcff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(199, 154, 47, 0.2);
  border-color: var(--accent);
}

.contact-form button {
  justify-self: start;
}

.site-footer {
  background: var(--primary);
  color: white;
  padding: 3rem 5% 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  color: white;
  margin-bottom: 0.8rem;
}

.site-footer p,
.site-footer li {
  color: rgba(255,255,255,0.8);
}

.site-footer h3 {
  margin-bottom: 0.8rem;
  color: white;
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.site-footer a {
  color: inherit;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-socials {
  display: flex;
  gap: 0.7rem;
}

.footer-socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}

.floating-actions {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
}

.whatsapp-card {
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  min-width: 320px;
  max-width: 360px;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(18, 38, 63, 0.08);
  box-shadow: 0 18px 40px rgba(18, 38, 63, 0.16);
}

.whatsapp-card.open {
  display: flex;
}

.whatsapp-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.whatsapp-card__profile {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.whatsapp-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #2f5177);
  color: white;
  font-size: 1.2rem;
}

.whatsapp-card__label {
  margin-bottom: 0.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.whatsapp-card h3 {
  font-size: 1rem;
  color: var(--primary);
}

.whatsapp-card span {
  font-size: 0.9rem;
  color: var(--muted);
}

.whatsapp-card__close {
  border: none;
  background: rgba(37, 211, 102, 0.12);
  color: var(--primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.whatsapp-card__close:hover {
  transform: translateY(-1px);
  background: rgba(37, 211, 102, 0.2);
}

.whatsapp-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: #25d366;
  color: white;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.24);
}

.whatsapp-card__button i {
  font-size: 1rem;
}

.whatsapp-toggle {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: #25d366;
  color: white;
  font-size: 1.35rem;
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.28);
  cursor: pointer;
}

.scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(18, 38, 63, 0.2);
  z-index: 1100;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0;
  pointer-events: none;
}

.scroll-top.active {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
}

@media (max-width: 980px) {

  .about,
  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 760px) {
  .topbar {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-soft);
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .nav-links {
    position: static;
    flex-direction: column;
    background: white;
    padding: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(18, 38, 63, 0.08);
    display: none;
    width: 100%;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.7rem 0.5rem;
    border-radius: 10px;
  }

  .nav-links a:hover {
    background: var(--primary-soft);
  }

  .header-social-links {
    justify-content: flex-start;
    margin-right: 0;
  }

  .stats,
  .cards-grid,
  .testimonial-grid,
  .about,
  .brand-panel,
  .contact-grid,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  main {
    padding: 0 0.5rem 3rem;
  }

  .section {
      padding: 1rem 0.25rem;
      margin-left: 0;
      margin-right: 0;
      width: 100%;
      max-width: 100%;
  } 

  .hero {
    margin: 0;
    width: 100%;
  }

  .floating-actions {
    right: 1rem;
    bottom: 4.75rem;
  }

  .topbar {
    padding: 1rem;
  }
}
