/* UhuAgenda Modern Overrides: visual polish, UX and performance */
/* Color system */
:root {
  /* Brand core */
  --uhu-primary: #00ACFB;          /* Brand cyan */
  --uhu-primary-deep: #0F53FA;     /* Deep blue */
  --uhu-primary-600: #0e49e6;
  --uhu-accent: #35D1FF;           /* Accent glow */
  /* Surfaces */
  --uhu-surface: #ffffff;
  --uhu-surface-2: #f7f9fc;
  --uhu-surface-glass: rgba(255,255,255,0.66);
  --uhu-surface-darkglass: rgba(13, 25, 46, 0.55);
  /* Text */
  --uhu-text: #0b1220;
  --uhu-text-2: #516076;
  /* Feedback */
  --uhu-success: #12b886;
  --uhu-warning: #f59f00;
  --uhu-danger: #fa5252;
  /* Radii & shadows */
  --uhu-radius: 16px;
  --uhu-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
  --uhu-shadow-hover: 0 16px 32px rgba(16, 24, 40, 0.12);
  /* Gradients */
  --uhu-grad-primary: linear-gradient(135deg, var(--uhu-primary) 0%, var(--uhu-primary-deep) 100%);
  --uhu-grad-accent: linear-gradient(135deg, var(--uhu-accent) 0%, var(--uhu-primary) 100%);
}

/* Base typography */
html { scroll-behavior: smooth; }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--uhu-text-2);
  font-family: 'Poppins', Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
}
h1, h2, h3, h4, h5 { color: var(--uhu-text); letter-spacing: -0.01em; }
h1 { font-weight: 800; }
h2 { font-weight: 700; }
h3 { font-weight: 700; }

/* Sections spacing */
section, .pt-20, .pt-lg-23 { scroll-margin-top: 84px; }
.section-tight { padding-top: 3rem; padding-bottom: 3rem; }
.section-roomy { padding-top: 6rem; padding-bottom: 6rem; }

/* Header polish */
#header { transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease; }
#header.scrolled {
  background: linear-gradient(180deg, rgba(255,255,255,0.86) 0%, rgba(255,255,255,0.78) 100%);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08); 
}
 
#header.scrolled .main-menu > li > .nav-link {
  color: #212529 !important;
}


/* Skip to content accessibility */
.skip-to-content {
  position: absolute; left: 8px; top: -40px; z-index: 10000;
  background: #000; color: #fff; padding: 10px 14px; border-radius: 8px;
  text-decoration: none; transition: top .2s ease; outline: none;
}
.skip-to-content:focus { top: 8px; }

/* Top page progress */
.page-progress {
  position: fixed; left: 0; top: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--uhu-primary), var(--uhu-accent));
  z-index: 9999;
}

/* Brand backgrounds in existing sections */
#pre-pricing { position: relative; overflow: hidden; }
#pre-pricing::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(1200px 500px at 100% 0%, rgba(0,172,251,0.12), transparent 60%),
              radial-gradient(800px 400px at 0% 100%, rgba(15,83,250,0.10), transparent 60%);
}

.bg-bluewood { position: relative; overflow: hidden; }
.bg-bluewood::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,172,251,0.10), rgba(0,0,0,0));
}

/* Buttons */
.btn, .button, .btn-primary {
  border-radius: calc(var(--uhu-radius) - 6px) !important;
}
.btn-primary, .btn.btn-primary {
  background: var(--uhu-grad-primary) !important;
  /* border-color: transparent !important;  */
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(15, 83, 250, .24);
}
.btn-primary:hover, .btn.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 10px 24px rgba(15, 83, 250, .30); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-outline-primary { border-color: var(--uhu-primary); color: var(--uhu-primary); }
.btn-outline-primary:hover { background: var(--uhu-primary); color: #fff; }

/* Cards and surfaces */
.bg-white, .card, .feature-card, .single-category .bg-white {
  border-radius: var(--uhu-radius) !important;
  box-shadow: var(--uhu-shadow);
  border: 1px solid rgba(2, 4, 69, 0.06) !important;
}
.bg-white:hover, .card:hover, .feature-card:hover, .single-category .bg-white:hover {
  box-shadow: var(--uhu-shadow-hover);
  transform: translateY(-2px);
  transition: transform .2s ease, box-shadow .2s ease;
}

/* Feature icons */
.circle-48, .iconbox { border-radius: 12px !important; }
.iconbox { background: var(--uhu-surface-2); }
.iconbox:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--uhu-shadow-hover); }

/* Lembretes section clean styles */
.lembretes-section { background: var(--uhu-surface-2); }
.lead-capture { padding-block: 6.5rem !important; }
@media (min-width: 992px){ .lead-capture { padding-block: 7.5rem !important; } }
.lead-title { color: #fff; font-weight: 700; line-height: 1.2; font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: .5rem; }
.support-text { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 540px; }
.lead-benefits { list-style: none; padding: 0; margin: 18px 0 10px; display: grid; gap: .75rem; color: rgba(255,255,255,0.95); text-shadow: 0 1px 1px rgba(0,0,0,0.2); }
.lead-benefits i { color: #00ACFB; font-size: 1.2rem; margin-right: 10px; }
.lead-capture #leadForm input[type="text"],
.lead-capture #leadForm input[type="email"],
.lead-capture #leadForm input[type="tel"]{
  background: #fff; border: 1px solid rgba(0,0,0,0.1); border-radius: 12px; padding: 14px 16px; transition: all .25s ease;
}
.lead-capture #leadForm input:focus{ border-color: #00ACFB; box-shadow: 0 0 0 4px rgba(0,172,251,0.2); outline: none; }
.lead-capture .img-lista-espera { border-radius: 16px; box-shadow: 0 14px 28px rgba(0,0,0,.22); }
.badge-soft { display: inline-block; padding: 6px 10px; border-radius: 999px; background: rgba(0,0,0,0.05); color: var(--uhu-text-2); font-weight: 600; font-size: 12px; margin-bottom: 8px; }
.feature-bullets li { margin-bottom: 8px; color: var(--uhu-text-2); }
.feature-bullets i { color: var(--uhu-primary); margin-right: 8px; }

/* Mobile spacing tweaks */
@media (max-width: 575.98px) {
  /* General section comfort */
  .section-tight { padding-top: 2.25rem; padding-bottom: 2.25rem; }

  /* Lembretes: add breathing room and full-width CTA */
  .lembretes-section { padding-top: 2.75rem !important; padding-bottom: 2.75rem !important; margin-top: 1.25rem; margin-bottom: 1.25rem; }
  .lembretes-section .row { row-gap: 20px; }
  .lembretes-section .col-lg-6 { margin-bottom: 12px; }
  .lembretes-section .col-lg-5 { margin-top: 6px; }
  .lembretes-section .btn { width: 100%; }

  /* Features & footer tighter grid gaps on phones */
  .features-grid { gap: 16px; }
  .site-footer .footer-grid { gap: 18px; }
  .site-footer .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Also add comfort on small tablets */
@media (max-width: 767.98px) {
  .lembretes-section { padding-top: 5rem !important; padding-bottom: 5rem !important; margin-top: 0 !important; margin-bottom: 0 !important;  }
  .lembretes-section .badge-soft { margin-bottom: 10px; }
  .lembretes-section h2 { margin-bottom: 14px !important; }
  .lembretes-section p { margin-bottom: 25px; }
  .lembretes-section .feature-bullets { margin-bottom: 30px; }
}

/* Hero typed emphasis */
#typed-hero { color: var(--uhu-primary); text-shadow: 0 2px 0 rgba(15, 83, 250, 0.08); }

/* Pricing emphasis */
[data-pricing-dynamic] .price-value { color: var(--uhu-primary); }
.pricing-highlight, .pricing-card.popular {
  border: 2px solid var(--uhu-primary) !important;
  box-shadow: 0 14px 36px rgba(15, 83, 250, .18) !important;
}

/* Footer contrast */
footer, .footer-section { background: #0c1633; color: #cbd5e1; }
footer a { color: #e2e8f0; }
footer a:hover { color: var(--uhu-accent); }

/* Footer layout */
.site-footer { color: #e5e9f2; }
.site-footer .footer-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 576px){ .site-footer .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px){ .site-footer .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer .footer-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 10px; color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .footer-contact i { margin-right: 8px; color: var(--uhu-accent); }
.site-footer .social-links a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,0.06); margin-right: 8px; }
.site-footer .social-links a:hover { background: rgba(255,255,255,0.12); }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 28px; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer .social-mini { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; }
.site-footer .social-mini a { color: #e2e8f0; }

/* Images */
img { border-radius: 8px; }
img.logo, .brand-logo img { border-radius: 0; }

/* Glassmorphism hints on hero/pricing cards */
.glass-card {
  background: var(--uhu-surface-glass);
  backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 10px 24px rgba(13, 25, 46, 0.08);
}
.dark .glass-card, body[data-theme='dark'] .glass-card {
  background: var(--uhu-surface-darkglass);
  border-color: rgba(255,255,255,0.15);
}

/* Diagonal separators for section blocks */
.section-diagonal {
  position: relative;
}
.section-diagonal::before {
  content: '';
  position: absolute; inset: -60px 0 auto 0; height: 120px;
  background: var(--uhu-grad-accent);
  opacity: .08; transform: skewY(-3deg);
}

/* Floating CTA */
.floating-cta {
  position: fixed; right: 16px; bottom: 16px; z-index: 10000;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 999px; color: #001327;
  background: #ffffff; border: 1px solid rgba(0,0,0,0.06); box-shadow: 0 10px 24px rgba(13, 25, 46, 0.15);
  text-decoration: none; font-weight: 700;
}
.floating-cta::after {
  content: "\2192"; /* → */
  font-weight: 900; color: var(--uhu-primary-deep);
}
.floating-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(13, 25, 46, 0.22); }
.floating-cta .badge { background: var(--uhu-grad-primary); color: #fff; padding: 2px 8px; border-radius: 999px; font-size: 12px; }

/* IO reveal fallback (when AOS disabled) */
[data-aos].io-hidden { opacity: 0; transform: translateY(14px); }
[data-aos].io-visible { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }

/* Animations: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Utilities */
.shadow-soft { box-shadow: var(--uhu-shadow) !important; }
.radius-lg { border-radius: var(--uhu-radius) !important; }
.glass { background: rgba(255,255,255,.6); backdrop-filter: blur(8px); }

/* Minor fixes for template spacing */
.site-header .navbar { padding-top: .75rem; padding-bottom: .75rem; }
.navbar .nav-link { font-weight: 600; }
.navbar .nav-link:hover { color: var(--uhu-primary) !important; }

/* Thin, light borders */
:root { --uhu-border: #EAEDF3; }
.border, .border-default-color-1, .border-default-color-3 { border-color: var(--uhu-border) !important; }

/* Features grid */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
}
.feature-card {
  background: var(--uhu-surface); border: 1px solid var(--uhu-border); border-radius: var(--uhu-radius);
  padding: 22px; box-shadow: var(--uhu-shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--uhu-shadow-hover); }
.feature-card .iconbox { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--uhu-surface-2); border: 1px solid var(--uhu-border); color: var(--uhu-primary-deep); }
.feature-card h3 { font-size: 1.05rem; margin-top: 14px; margin-bottom: 8px; }
.feature-card p { margin: 0; font-size: .95rem; color: var(--uhu-text-2); }

/* FAQ */
.faq { max-width: 900px; margin: 0 auto; }
.faq-item { border: 1px solid var(--uhu-border); border-radius: 12px; background: var(--uhu-surface); margin-bottom: 10px; overflow: hidden; }
.faq-question { width: 100%; text-align: left; background: transparent; border: 0; padding: 16px 18px; font-weight: 600; cursor: pointer; }
.faq-answer { display: none; padding: 0 18px 16px; color: var(--uhu-text-2); }
.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-question { color: var(--uhu-primary-deep); }
