/*
 * Micalmoker overrides for AvenPre's own selectors.
 *
 * NOT part of the template download — main.css stays untouched so a
 * template update keeps applying cleanly. AvenPre is Aventro with
 * Presento's palette (#e03a3c red on #111111/#1b1b1b/#2b2b2b blacks)
 * already set in main.css's :root variables; this file only covers what
 * the app needs on top of it. Loaded after main.css and after the shared
 * public/brand.css (Bootstrap "primary" retint) — see
 * resources/views/templates/AvenPre/head.blade.php.
 */

/*
 * Bootstrap's own components (cards, tables, list groups, forms, alerts,
 * modals) — the app's pages use them directly, and without this they stay
 * white on the dark page. The layouts set data-bs-theme="dark" on <html>;
 * these re-point Bootstrap's dark theme greys to AvenPre's blacks so a
 * card reads as a surface of the same page, not a different grey.
 */
[data-bs-theme=dark] {
  --bs-body-bg: #111111;
  --bs-body-bg-rgb: 17, 17, 17;
  --bs-body-color: #d9d9d9;
  --bs-body-color-rgb: 217, 217, 217;
  --bs-emphasis-color: #ffffff;
  --bs-secondary-bg: #1e1e1e;
  --bs-secondary-bg-rgb: 30, 30, 30;
  --bs-tertiary-bg: #1b1b1b;
  --bs-tertiary-bg-rgb: 27, 27, 27;
  --bs-border-color: #2f2f2f;
  --bs-link-color: #e03a3c;
  --bs-link-color-rgb: 224, 58, 60;
  --bs-link-hover-color: #e76668;
  --bs-link-hover-color-rgb: 231, 102, 104;
  --bs-heading-color: #ffffff;
}

[data-bs-theme=dark] .card {
  --bs-card-bg: var(--surface-color);
}

/*
 * Header logo: Presento's wordmark ends in a red dot (the <span>.</span>
 * after the app name), kept here. Aventro's .logo img already caps the
 * height; only the dot's color is ours.
 */
.header .logo .sitename span {
  color: var(--accent-color);
}

/*
 * The wordmark is a <span>, not an <h1> (SEO audit 2026-10-15: one <h1>
 * per page, the page's own title), so it takes over the look Aventro's
 * main.css gives `.header .logo h1`.
 */
.header .logo .sitename {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/*
 * Header call to action (Comenzar / Crear cuenta / Salir). Aventro's header
 * only ships social links there, no button — same shape as the other
 * BootstrapMade templates' .btn-getstarted.
 */
.header .btn-getstarted,
.header .btn-getstarted:focus {
  display: inline-flex;
  align-items: center;
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 1px solid var(--accent-color);
  font-family: var(--nav-font);
  font-size: 14px;
  padding: 8px 20px;
  border-radius: 50px;
  white-space: nowrap;
  transition: 0.3s;
}

.header .btn-getstarted:hover,
.header .btn-getstarted:focus:hover {
  color: var(--contrast-color);
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
}

.header .btn-getstarted--outline,
.header .btn-getstarted--outline:focus {
  background: transparent;
  border-color: color-mix(in srgb, var(--default-color), transparent 60%);
}

.header .btn-getstarted--outline:hover {
  background: color-mix(in srgb, var(--default-color), transparent 90%);
}

.header .header-actions {
  margin-left: 30px;
}

@media (max-width: 1200px) {
  .header .logo {
    order: 1;
  }

  .header .header-actions {
    order: 2;
    margin: 0 10px 0 auto;
  }

  .header .navmenu {
    order: 3;
  }

  .header .btn-getstarted {
    padding: 6px 14px;
  }
}

@media (max-width: 575px) {
  .header .btn-getstarted .bi {
    margin-right: 0 !important;
  }
}

/*
 * Leading icons in the nav links (templates/AvenPre/header.blade.php and
 * home.blade.php). Aventro's ".navmenu a i" rule styles every icon inside a
 * nav link as the trailing dropdown caret — a 12px icon on desktop, a 30px
 * tinted circle on mobile — right for the chevrons, wrong for a leading icon
 * before the label.
 */
.navmenu a span {
  display: inline-flex;
  align-items: center;
}

.navmenu a i.nav-icon,
.navmenu a:focus i.nav-icon,
.navmenu .dropdown ul a i.nav-icon {
  font-size: 1.1em;
  line-height: 1;
  width: auto;
  height: auto;
  margin: 0 8px 0 0;
  background: none;
  border-radius: 0;
}

/*
 * Inner pages' title band (templates/AvenPre/layout.blade.php). Aventro's
 * .page-title is sized for a marketing page (80px padding, 38px title) and
 * sits under the transparent fixed header; here it only names the page, so
 * it clears the header and stays compact — the content is what matters.
 */
.page-title .heading {
  padding: calc(72px + 32px) 0 24px;
}

.page-title .heading h1 {
  font-size: 30px;
  font-weight: 500;
  margin: 0;
}

.page-title .breadcrumbs {
  padding: 12px 0;
}

.page-title .breadcrumbs ol {
  font-size: 14px;
}

.inner-page {
  padding: 30px 0 60px;
}

/*
 * Landing hero (home.blade.php): the four counters sit in Aventro's
 * glass "feature cards", with the animated number above the label.
 */
.hero .feature-card .count-number {
  font-family: var(--heading-font);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--heading-color);
  margin-bottom: 6px;
}

.hero .hero-note {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  margin: 24px 0 0;
}

.hero .hero-note a {
  color: var(--heading-color);
  text-decoration: underline;
}

/* Landing pricing: features a plan doesn't include. */
.pricing .pricing-card .features-list li.na {
  color: color-mix(in srgb, var(--default-color), transparent 55%);
}

.pricing .pricing-card .features-list li.na i {
  color: color-mix(in srgb, var(--default-color), transparent 65%);
}

/* Landing footer newsletter: Aventro's footer has no form of its own. */
/* The pill is the field + button; the form itself also holds validate.js'
   loading / error / sent messages, under it. */
.footer .footer-newsletter .newsletter-field {
  display: flex;
  margin-top: 16px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  border-radius: 50px;
  padding: 4px;
  background: var(--surface-color);
}

.footer .footer-newsletter input[type=email] {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 6px 12px;
  background: transparent;
  color: var(--default-color);
}

.footer .footer-newsletter input[type=email]:focus {
  outline: none;
}

.footer .footer-newsletter input[type=submit] {
  border: 0;
  border-radius: 50px;
  padding: 6px 18px;
  background: var(--accent-color);
  color: var(--contrast-color);
}

.footer .footer-newsletter .loading,
.footer .footer-newsletter .error-message,
.footer .footer-newsletter .sent-message {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
}

/*
 * TrendyPre's Alert Banners (widgets-banners.html, its main.css rules with the
 * dark theme's colors), for the notices after a user's action on the landing
 * (templates/partials/action-alerts), so they look the same as on the rest of the site.
 */
.widget-banner-alert {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 0.875rem;
  position: relative;
}

.widget-banner-alert.success { background: rgba(52, 211, 153, 0.15); border-left: 4px solid #34d399; }
.widget-banner-alert.success .widget-banner-alert-icon { color: #34d399; }
.widget-banner-alert.warning { background: rgba(251, 191, 36, 0.15); border-left: 4px solid #fbbf24; }
.widget-banner-alert.warning .widget-banner-alert-icon { color: #fbbf24; }
.widget-banner-alert.info { background: rgba(56, 189, 248, 0.15); border-left: 4px solid #38bdf8; }
.widget-banner-alert.info .widget-banner-alert-icon { color: #38bdf8; }
.widget-banner-alert.danger { background: rgba(251, 113, 133, 0.15); border-left: 4px solid #fb7185; }
.widget-banner-alert.danger .widget-banner-alert-icon { color: #fb7185; }

.widget-banner-alert-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.widget-banner-alert-content {
  flex: 1;
}

.widget-banner-alert-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 4px;
}

.widget-banner-alert-text {
  font-size: 0.8125rem;
  color: #9a9a9a;
  margin: 0;
}

.widget-banner-alert-close {
  background: none;
  border: none;
  padding: 0;
  color: #9a9a9a;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition: color 150ms ease;
}

.widget-banner-alert-close:hover {
  color: #fb7185;
}

/* The hover popover explaining a button (public/js/button-popovers.js), as on TrendyPre. */
.button-help-popover {
  --bs-popover-max-width: 240px;
  --bs-popover-font-size: 0.8125rem;
  --bs-popover-body-padding-x: 0.75rem;
  --bs-popover-body-padding-y: 0.375rem;
  --bs-popover-bg: var(--surface-color);
  --bs-popover-border-color: rgba(255, 255, 255, 0.12);
  --bs-popover-body-color: var(--default-color);
  pointer-events: none;
}
