/* =========================================================
   Ricardo Leon - Digital Marketing Solutions
   Design tokens
   ========================================================= */
:root {
  /* Color — pulled from the brand logo (navy lion, gold mane, sky-blue wordmark) */
  --navy: #16224F;
  --navy-2: #1F2E63;
  --navy-ink: #10193C;
  --gold: #B8862B;       /* decorative use only: icons, dots, dividers, dashed borders */
  --gold-text: #7C5410;  /* AA-safe gold for actual text (stars, numerals, labels) */
  --gold-soft: #E9C879;
  --sky: #2BAEE0;
  --sky-text: #0B7BA8;   /* darker, AA-safe version of sky for text/links */
  --paper: #F7F8FA;
  --paper-alt: #EBEFF5;
  --white: #FFFFFF;
  --ink: #1A1D24;
  --slate: #4C5566;
  --line: #DDE3EC;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px -18px rgba(16, 25, 60, 0.35);
}

/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--slate); }

a { color: var(--sky-text); }
a:not(.btn):not(.plain) { text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

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

ul { padding-left: 0; list-style: none; margin: 0; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }
@media (max-width: 700px) { section { padding: 60px 0; } }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(184, 134, 43, 0.18);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { font-size: 1.08rem; }

/* Visually-hidden but accessible (skip link target labels, etc.) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 14px 22px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* Focus visibility (ADA requirement) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  min-height: 48px;
  line-height: 1;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-primary {
  background: var(--sky);
  color: var(--navy-ink);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(43,174,224,0.55); }

.btn-secondary {
  background: var(--navy);
  color: var(--white);
}
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(22,34,79,0.5); }

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy-ink);
}
.brand img { height: 46px; width: auto; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.15;
}
.brand-text span {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sky-text);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: var(--navy-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
}
.main-nav a:hover { color: var(--sky-text); }

.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  border-radius: var(--radius-sm);
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 880px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform-origin: top;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 420px; }
  .main-nav a {
    width: 100%;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
  }
  .header-cta .btn-secondary span.long { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (min-width: 881px) {
  .nav-toggle { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding-top: 72px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
}

.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lede {
  font-size: 1.18rem;
  max-width: 52ch;
}
.hero-copy .btn-row { margin-top: 30px; }

.hero-note {
  margin-top: 22px;
  font-size: 0.92rem;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-note svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

/* Signature visual: laptop + network illustration representing digital presence */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 440px;
  margin: 0 auto;
}
.hero-visual svg { width: 100%; height: 100%; }

.wifi-arc {
  transform-origin: 220px 140px;
  animation: wifi-pulse 2.8s ease-in-out infinite;
}
.wifi-arc.a1 { animation-delay: 0s; }
.wifi-arc.a2 { animation-delay: 0.25s; }
.wifi-arc.a3 { animation-delay: 0.5s; }

@keyframes wifi-pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.9; }
}

/* =========================================================
   Trust bar (platforms)
   ========================================================= */
.trust-bar {
  padding: 34px 0;
  background: var(--navy);
}
.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px 36px;
  justify-content: space-between;
}
.trust-bar p {
  color: var(--sky-text);
  color: #BFE6F5;
  font-weight: 700;
  margin: 0;
  font-size: 0.95rem;
}
.trust-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
}
.trust-icons li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
}
.trust-icons svg { width: 20px; height: 20px; color: var(--gold-soft); }

/* =========================================================
   Services
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
@media (max-width: 800px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 30px 26px;
}
.service-card .icon-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--paper-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-card .icon-badge svg { width: 26px; height: 26px; color: var(--navy); }
.service-card h3 { margin-bottom: 10px; }
.service-card ul { margin-top: 14px; }
.service-card ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 0.98rem;
}
.service-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sky);
}
.service-card ul li strong { color: var(--navy-ink); }

/* Tools sub-section within Servicios */
.tools-block {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.tools-block h3 {
  max-width: 640px;
  margin: 0 auto 28px;
}
.tools-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.tools-row li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--navy-ink);
  font-size: 0.98rem;
  min-width: 140px;
}
.tools-row .icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--paper-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}
.tools-row .icon-badge svg { width: 28px; height: 28px; color: var(--sky-text); }

/* =========================================================
   Process (3 real steps — numbering justified)
   ========================================================= */
.process-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  counter-reset: step;
}
@media (max-width: 800px) { .process-list { grid-template-columns: 1fr; } }
.process-item {
  position: relative;
  padding-top: 8px;
}
.process-item .num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--gold-text);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}
.process-item h3 { margin-bottom: 8px; }

/* =========================================================
   Coverage / national section
   ========================================================= */
.coverage {
  background: var(--navy);
  color: var(--white);
  border-radius: 28px;
  padding: 60px;
}
.coverage h2, .coverage p.lede { color: var(--white); }
.coverage p { color: #C9D3E6; }
@media (max-width: 700px) { .coverage { padding: 40px 24px; border-radius: 20px; } }
.coverage-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 800px) { .coverage-grid { grid-template-columns: 1fr; } }
.coverage-stats {
  display: grid;
  gap: 20px;
}
.coverage-stat {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 16px;
}
.coverage-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--sky);
}
.coverage-stat span { color: #C9D3E6; font-size: 0.92rem; }

/* =========================================================
   About
   ========================================================= */
.about-wrap {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 44px;
  align-items: center;
}
@media (max-width: 800px) { .about-wrap { grid-template-columns: 1fr; text-align: center; } }
.about-photo {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: var(--shadow);
  margin: 0 auto;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   Testimonials
   ========================================================= */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}
.testimonial-card .stars { color: var(--gold-text); letter-spacing: 2px; font-size: 1.05rem; }
.testimonial-card .quote {
  color: var(--ink);
  font-style: italic;
  margin: 0;
  font-size: 0.98rem;
}
.testimonial-card .who {
  font-weight: 700;
  color: var(--navy-ink);
  font-size: 0.92rem;
  font-style: normal;
  display: block;
  margin-top: auto;
}
.testimonial-card.placeholder {
  color: var(--slate);
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 180px;
  border-style: dashed;
}

/* =========================================================
   Contact
   ========================================================= */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 800px) { .contact-wrap { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
}
.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-line svg {
  width: 24px; height: 24px;
  color: var(--sky-text);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-line a { font-weight: 700; text-decoration: none; }
.contact-line .label {
  display: block;
  font-size: 0.82rem;
  color: var(--slate);
  font-weight: 600;
  margin-bottom: 2px;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}
.hours-table th {
  text-align: left;
  font-family: var(--font-body);
  color: var(--navy-ink);
  padding: 10px 0;
  border-bottom: 2px solid var(--line);
}
.hours-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--slate);
}
.hours-table td:last-child, .hours-table th:last-child { text-align: right; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--navy-ink);
  color: #B7C1D9;
  padding: 50px 0 26px;
  font-size: 0.92rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 36px; }
.footer-brand span { color: var(--white); font-family: var(--font-display); font-weight: 600; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: #B7C1D9; text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--sky); }

.footer-middle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 14px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--gold-soft);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.footer-social a:hover {
  background: rgba(43,174,224,0.15);
  color: var(--sky);
  transform: translateY(-2px);
}
.footer-social svg { width: 20px; height: 20px; }
.footer-payments {
  color: #B7C1D9;
  margin: 0;
  font-size: 0.9rem;
}
.footer-payments strong { color: var(--white); }
.site-footer .fine-print { text-align: center; color: #7C88A6; }

/* Floating WhatsApp button (mobile-friendly quick action) */
.float-whatsapp {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 600;
  background: #25D366;
  color: var(--white);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.4);
  text-decoration: none;
}
.float-whatsapp svg { width: 30px; height: 30px; }

/* =========================================================
   Small-phone refinements (very narrow screens)
   ========================================================= */
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  section { padding: 48px 0; }

  .brand-text { font-size: 0.92rem; }
  .brand img { height: 38px; }

  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; justify-content: center; }

  .hero { padding-top: 56px; }
  .hero-visual { max-width: 280px; }

  .service-card, .contact-card { padding: 22px; }

  .tools-row { gap: 26px 18px; }
  .tools-row li { min-width: 100px; font-size: 0.88rem; }

  .footer-top, .footer-middle { flex-direction: column; align-items: flex-start; }
  .footer-social { flex-wrap: wrap; }

  .float-whatsapp { width: 50px; height: 50px; bottom: 16px; right: 16px; }
  .float-whatsapp svg { width: 26px; height: 26px; }
}

/* Ensure tap targets stay comfortably large on touch devices */
@media (hover: none) and (pointer: coarse) {
  .main-nav a { padding: 18px 24px; }
  .footer-social a { width: 46px; height: 46px; }
}
