﻿/* ============================================================
   Constructora Astro — Tema de marca
   Paleta: azul profundo #1351B4 · cian #00B5B8 · grafito #54595F
   ============================================================ */

:root {
  --astro-blue: #1351B4;
  --astro-blue-dark: #0B2D66;
  --astro-cyan: #00B5B8;
  --astro-gray: #54595F;
  --astro-slate: #1e293b;
  --astro-light: #f8fafc;
  --astro-border: #e2e8f0;
  --astro-muted: #64748b;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--astro-slate);
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6, .btn {
  font-family: "Montserrat", "Inter", system-ui, sans-serif;
}

section[id] {
  scroll-margin-top: 92px;
}

body[data-wa] {
  padding-top: 76px;
}

/* ---------------- Navbar ---------------- */

.astro-navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.25s ease;
}

.astro-navbar.scrolled {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.astro-navbar .brand-text strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--astro-blue-dark);
  line-height: 1.15;
}

.astro-navbar .brand-text small {
  display: block;
  font-size: 0.68rem;
  color: var(--astro-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.astro-navbar .nav-link {
  color: #334155;
  font-weight: 500;
  font-size: 0.95rem;
}

.astro-navbar .nav-link:hover,
.astro-navbar .nav-link:focus {
  color: var(--astro-blue);
}

.astro-navbar .nav-admin {
  color: var(--astro-muted);
}

.astro-navbar .navbar-collapse {
  max-height: calc(100vh - 76px);
  overflow-y: auto;
}

/* ---------------- Botones ---------------- */

.btn-astro {
  background: linear-gradient(135deg, var(--astro-blue), var(--astro-cyan));
  border: none;
  color: #fff !important;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.65rem 1.5rem;
  box-shadow: 0 10px 24px rgba(19, 81, 180, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-astro:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(19, 81, 180, 0.3);
}

.btn-outline-astro {
  border: 2px solid var(--astro-blue);
  color: var(--astro-blue);
  font-weight: 600;
  border-radius: 10px;
  padding: 0.6rem 1.4rem;
  background: transparent;
  transition: all 0.18s ease;
}

.btn-outline-astro:hover {
  background: var(--astro-blue);
  color: #fff;
}

.btn-whatsapp {
  background: #25d366;
  border: none;
  color: #fff !important;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.65rem 1.5rem;
  transition: background 0.18s ease, transform 0.18s ease;
}

.btn-whatsapp:hover {
  background: #1fb958;
  transform: translateY(-1px);
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(0, 181, 184, 0.35), transparent 65%),
    radial-gradient(700px 400px at 10% 90%, rgba(19, 81, 180, 0.55), transparent 60%),
    linear-gradient(150deg, #081f47 0%, var(--astro-blue-dark) 35%, var(--astro-blue) 100%);
  color: #fff;
  padding: 5.5rem 0 6rem;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 90px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 90px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7de7ea;
  border: 1px solid rgba(125, 231, 234, 0.4);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.1rem;
}

.hero-title span {
  background: linear-gradient(100deg, #7de7ea, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.06rem;
  color: rgba(226, 238, 255, 0.85);
  max-width: 36rem;
  margin-bottom: 1.8rem;
}

.hero-metrics {
  display: grid;
  gap: 1rem;
}

.metric-card {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 1.05rem 1.4rem;
  animation: astro-float 4.5s ease-in-out infinite alternate;
}

.metric-card:nth-child(2) { animation-delay: 0.6s; }
.metric-card:nth-child(3) { animation-delay: 1.2s; }

@keyframes astro-float {
  from { transform: translateY(0); }
  to { transform: translateY(-7px); }
}

@media (prefers-reduced-motion: reduce) {
  .metric-card { animation: none; }
  html { scroll-behavior: auto; }
}

.metric-value {
  font-family: "Montserrat", sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  color: #7de7ea;
}

.metric-label {
  font-size: 0.92rem;
  color: rgba(226, 238, 255, 0.85);
}

/* ---------------- Secciones ---------------- */

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--astro-light);
}

.section-dark {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(0, 181, 184, 0.28), transparent 60%),
    linear-gradient(150deg, #081f47, var(--astro-blue-dark) 60%, #0e5e75);
  color: #fff;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0e8f92;
  margin-bottom: 0.6rem;
}

.section-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--astro-blue), var(--astro-cyan));
}

.section-kicker-light::before {
  background: linear-gradient(90deg, #7de7ea, rgba(125, 231, 234, 0.25));
}

.section-kicker-light {
  color: #7de7ea;
}

.section-title {
  font-size: clamp(1.55rem, 1.15rem + 1.6vw, 2.35rem);
  font-weight: 700;
  color: var(--astro-blue-dark);
  margin-bottom: 1rem;
}

.section-title-light {
  color: #fff;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--astro-muted);
  max-width: 44rem;
  margin-inline: auto;
}

.section-lead-light {
  color: rgba(226, 238, 255, 0.8);
}

.text-center .section-lead {
  margin-inline: auto;
}

/* ---------------- Quiénes somos ---------------- */

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.65rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 500;
}

.check-list li::before {
  content: "✓";
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  color: #fff;
  background: linear-gradient(135deg, var(--astro-blue), var(--astro-cyan));
  border-radius: 50%;
}

.about-card {
  background: linear-gradient(160deg, #f1f6ff, #ffffff 55%, #eefcfc);
  border: 1px solid var(--astro-border);
  border-radius: 22px;
  padding: 2.4rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.about-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.about-badge strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--astro-blue-dark);
}

.about-badge span {
  font-size: 0.85rem;
  color: var(--astro-muted);
}

.about-quote {
  font-size: 1.12rem;
  font-style: italic;
  color: var(--astro-slate);
  border-left: 4px solid var(--astro-cyan);
  padding-left: 1.1rem;
  margin-bottom: 1.6rem;
}

.about-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.value-chip {
  background: #fff;
  border: 1px solid var(--astro-border);
  color: var(--astro-blue);
  font-weight: 600;
  font-size: 0.82rem;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}

/* ---------------- Servicios ---------------- */

.service-card {
  background: #fff;
  border: 1px solid var(--astro-border);
  border-radius: 18px;
  padding: 1.9rem 1.7rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 181, 184, 0.55);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.1);
}

.service-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--astro-blue), var(--astro-cyan));
  border-radius: 15px;
  margin-bottom: 1.1rem;
}

.service-card h3 {
  font-weight: 700;
  color: var(--astro-blue-dark);
}

.service-card p {
  color: var(--astro-muted);
  margin-bottom: 0;
}

/* ---------------- Portafolio ---------------- */

.filter-btn {
  background: transparent;
  border: 1.5px solid var(--astro-blue);
  color: var(--astro-blue);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 999px;
  padding: 0.45rem 1.15rem;
  transition: all 0.18s ease;
}

.filter-btn:hover {
  background: rgba(19, 81, 180, 0.08);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--astro-blue), var(--astro-cyan));
  border-color: transparent;
  color: #fff;
}

.portfolio-card {
  background: #fff;
  border: 1px solid var(--astro-border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.portfolio-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e2e8f0;
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.estado-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  font-size: 0.75rem;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
}

.portfolio-body {
  padding: 1.3rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.portfolio-cat {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0e8f92;
}

.portfolio-body h3 {
  color: var(--astro-blue-dark);
  margin-bottom: 0;
}

.portfolio-meta {
  color: var(--astro-muted);
  font-size: 0.88rem;
  margin-bottom: 0.9rem;
}

.portfolio-body .btn {
  align-self: flex-start;
  margin-top: auto;
}

.empty-state {
  background: var(--astro-light);
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  padding: 3rem 1.5rem;
}

/* ---------------- Modal de proyecto ---------------- */

.modal-carousel .carousel-inner {
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
}

.modal-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ---------------- Acordeón de políticas ---------------- */

.astro-accordion .accordion-item {
  border: 1px solid var(--astro-border);
  border-radius: 14px !important;
  overflow: hidden;
  margin-bottom: 0.8rem;
  background: #fff;
}

.astro-accordion .accordion-button {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: var(--astro-blue-dark);
  background: #fff;
}

.astro-accordion .accordion-button:not(.collapsed) {
  background: #eaf1fe;
  color: var(--astro-blue);
  box-shadow: none;
}

.astro-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.astro-accordion .accordion-body {
  color: var(--astro-muted);
}

/* ---------------- Contacto ---------------- */

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  margin-bottom: 0.8rem;
  color: #fff;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateX(4px);
  color: #fff;
}

.contact-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(0, 181, 184, 0.25);
  color: #7de7ea;
  border-radius: 12px;
}

.contact-icon-wa {
  background: rgba(37, 211, 102, 0.22);
  color: #7be8a8;
}

.contact-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-text strong {
  font-size: 0.95rem;
}

.contact-text span {
  font-size: 0.85rem;
  color: rgba(226, 238, 255, 0.75);
  overflow-wrap: anywhere;
}

.contact-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  color: var(--astro-slate);
  box-shadow: 0 30px 70px rgba(2, 20, 60, 0.35);
}

/* ---------------- Footer ---------------- */

.astro-footer {
  background: #0b1e3f;
  color: #cbd5e1;
}

.astro-footer h6 {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-brand strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
}

.footer-brand small {
  color: #94a3b8;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #7de7ea;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #cbd5e1;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-size: 0.88rem;
}

.footer-social:hover {
  color: #fff;
  border-color: #7de7ea;
}

/* ---------------- WhatsApp flotante ---------------- */

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1500;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.whatsapp-float:hover {
  transform: scale(1.07);
  color: #fff;
  box-shadow: 0 18px 38px rgba(37, 211, 102, 0.55);
}

/* ---------------- Login ---------------- */

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(700px 400px at 85% 10%, rgba(0, 181, 184, 0.35), transparent 65%),
    linear-gradient(150deg, #081f47, var(--astro-blue-dark) 40%, var(--astro-blue) 100%);
}

.login-card {
  width: min(430px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 2.5rem 2.2rem;
  box-shadow: 0 40px 90px rgba(2, 20, 60, 0.45);
}

/* ---------------- Animación de aparición ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------------- Utilidades ---------------- */

.white-space-pre {
  white-space: pre-line;
}

.text-bg-warning {
  color: #3f2d00 !important;
}

/* ============================================================
   Capa UI moderna (v2) — micro-interacciones y nuevos componentes
   ============================================================ */

::selection {
  background: rgba(0, 181, 184, 0.25);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #eef2f7;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--astro-blue), var(--astro-cyan));
  border-radius: 999px;
  border: 3px solid #eef2f7;
}

.btn:focus-visible,
.filter-btn:focus-visible,
.to-top:focus-visible {
  outline: 3px solid rgba(0, 181, 184, 0.45);
  outline-offset: 2px;
}

/* ---------- Barra de progreso de lectura ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--astro-blue), var(--astro-cyan));
  transform: scaleX(0);
  transform-origin: left;
  z-index: 2100;
  pointer-events: none;
}

/* ---------- Botón volver arriba ---------- */

.to-top {
  position: fixed;
  right: 20px;
  bottom: 92px;
  z-index: 1499;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--astro-blue);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, color 0.2s ease, visibility 0.25s;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: linear-gradient(135deg, var(--astro-blue), var(--astro-cyan));
  color: #fff;
}

/* ---------- Navbar: subrayado animado ---------- */

.astro-navbar .nav-link:not(.nav-admin) {
  position: relative;
}

.astro-navbar .nav-link:not(.nav-admin)::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.15rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--astro-blue), var(--astro-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.astro-navbar .nav-link:not(.nav-admin):hover::after {
  transform: scaleX(1);
}

/* ---------- Hero: chips de confianza ---------- */

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 1.7rem;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(226, 238, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-chip svg {
  color: #7de7ea;
  flex: 0 0 auto;
}

/* ---------- Cinta de especialidades ---------- */

.marquee {
  background: #081f47;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  padding: 0.95rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: astro-marquee 30s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 2.4rem;
  padding-right: 2.4rem;
  color: #cfe0f7;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-item::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--astro-cyan);
}

@keyframes astro-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Proceso paso a paso ---------- */

.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}

.process-grid::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, rgba(19, 81, 180, 0.2), rgba(0, 181, 184, 0.5), rgba(19, 81, 180, 0.2));
}

.process-step {
  position: relative;
  text-align: center;
}

.process-num {
  width: 68px;
  height: 68px;
  margin: 0 auto 1.2rem;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--astro-blue), var(--astro-cyan));
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: 0 16px 36px rgba(19, 81, 180, 0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.process-step:hover .process-num {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px rgba(19, 81, 180, 0.38);
}

.process-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--astro-blue-dark);
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--astro-muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
}

@media (max-width: 575.98px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* ---------- Testimonios ---------- */

.testimonial-card {
  position: relative;
  height: 100%;
  background: #fff;
  border: 1px solid var(--astro-border);
  border-radius: 20px;
  padding: 1.9rem 1.8rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 0.4rem;
  right: 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.6rem;
  line-height: 1;
  color: rgba(19, 81, 180, 0.12);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 181, 184, 0.5);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.1);
}

.testimonial-stars {
  color: #f5a623;
  letter-spacing: 0.2em;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.testimonial-text {
  color: var(--astro-slate);
  font-size: 0.97rem;
  margin-bottom: 1.4rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testimonial-avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--astro-blue), var(--astro-cyan));
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
}

.testimonial-author strong {
  display: block;
  font-size: 0.92rem;
  color: var(--astro-blue-dark);
}

.testimonial-author span {
  font-size: 0.82rem;
  color: var(--astro-muted);
}

/* ---------- Banda CTA ---------- */

.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 3rem 2.7rem;
  background:
    radial-gradient(620px 300px at 12% 15%, rgba(0, 181, 184, 0.45), transparent 62%),
    linear-gradient(120deg, #0b2d66, #1351b4 78%);
  color: #fff;
  box-shadow: 0 34px 70px rgba(11, 45, 102, 0.35);
}

.cta-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 26px);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-card h2 {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.cta-sub {
  color: rgba(226, 238, 255, 0.85);
}

.text-gradient {
  background: linear-gradient(100deg, #7de7ea, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Ajustes finos ---------- */

.section-title {
  letter-spacing: -0.015em;
}

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

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--astro-blue), var(--astro-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .to-top { transition: none; }
}

/* ---------- Logo de marca (logoAstro.png) ---------- */

.brand-logo {
  height: 44px;
  width: auto;
}

.admin-navbar .brand-logo {
  height: 34px;
}

.footer-logo {
  height: 44px;
  width: auto;
}

.login-logo {
  height: 84px;
  width: auto;
}

.about-logo {
  height: 64px;
  width: auto;
}

