/*!
 * Ulfratech Custom Styles
 * Modern, animated, and responsive design system
 *
 * LEGACY PALETTE: the brand manual (../ulfra-manual-de-marca/, v1.0) retires
 * #5E4AAE and the cyan #00BFFF accent. Canonical palette:
 * ../ulfra-manual-de-marca/brand/tokens.css. Don't add colors not in the
 * manual; migration swaps values behind these variable names in one
 * deliberate change (see CLAUDE.md "Brand").
 */

/* =========================================
   CSS VARIABLES & DESIGN TOKENS
   ========================================= */
:root {
  /* Brand Colors - Purple as Accent */
  --primary-100: #5E4AAE; /* Main Purple Accent */
  --primary-200: #7a64cf; 
  --primary-300: #f3f0ff; /* Soft Purple Tint for backgrounds */
  --accent-100:  #00BFFF; /* Secondary Accent */
  
  /* Text Colors */
  --text-100:    #1a1a1a;
  --text-200:    #4a4a4a;
  --text-300:    #717171;
  
  /* Background Colors - Leading with Gray and White */
  --bg-100:      #ffffff;
  --bg-200:      #f8f9fa;
  --bg-300:      #e9ecef;
  
  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.05);
  --shadow-md:   0 8px 20px rgba(0,0,0,0.08);
  --shadow-lg:   0 12px 32px rgba(0,0,0,0.12);
  
  /* Animation Timing */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Spacing */
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
}

/* =========================================
   GLOBAL STYLES & ANIMATIONS
   ========================================= */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-200);
  background-color: var(--bg-100);
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
  background-color: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-300);
  box-shadow: var(--shadow-sm);
}

.navbar-nav .nav-link {
  color: var(--text-200) !important;
  font-weight: 500;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-100) !important;
}

.navbar-nav .nav-link.active {
  color: var(--primary-100) !important;
  font-weight: 700;
}

.navbar-toggler {
  border: 1px solid var(--primary-100);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  background-color: #fff;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(94, 74, 174, 0.25);
  outline: 0;
}

.navbar-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%235E4AAE' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-primary {
  background: var(--primary-100);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: var(--border-radius);
  transition: all var(--transition-normal);
}

.btn-primary:hover {
  background: var(--primary-200);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(94, 74, 174, 0.3);
}

.btn-outline-primary {
  border: 2px solid var(--primary-100);
  color: var(--primary-100);
  font-weight: 600;
}

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

/* =========================================
   SECTION HEADERS
   ========================================= */
.text-primary {
  color: var(--primary-100) !important;
}

.bg-light {
  background-color: var(--bg-200) !important;
}

.pricing-card-featured {
  border: 2px solid var(--primary-100) !important;
  transform: scale(1.02);
  z-index: 2;
}

.plan-kicker {
  color: var(--primary-100);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =========================================
   HERO — REDESIGNED (dark editorial)
   ========================================= */
.hero {
  background: #faf9ff;
  padding: clamp(80px, 10vw, 120px) 0 clamp(70px, 9vw, 110px);
  position: relative;
  overflow: hidden;
  color: var(--text-100);
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-container {
  position: relative;
  z-index: 2;
}

/* --- Atmospheric background --- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
  animation: orb-drift 14s ease-in-out infinite;
}

.hero-orb-1 {
  width: 600px; height: 600px;
  /* decorative radial blob removed (design rule: no color blends) */
  background: transparent;
  top: -160px; left: -150px;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 440px; height: 440px;
  /* decorative radial blob removed (design rule: no color blends) */
  background: transparent;
  bottom: -80px; right: 4%;
  animation-delay: -5s;
}

.hero-orb-3 {
  width: 340px; height: 340px;
  /* decorative radial blob removed (design rule: no color blends) */
  background: transparent;
  top: 35%; right: 20%;
  animation-delay: -10s;
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(28px, -18px) scale(1.04); }
  66%       { transform: translate(-18px, 14px) scale(0.96); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  /* decorative grid-line gradients removed (design rule: no color gradients) */
  background-image: none;
  background-size: 56px 56px;
  /* mask-image kept: this is an alpha mask (falloff), not a color blend; it is not a background. */
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 30%, transparent 100%);
}

/* --- Content --- */
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(94, 74, 174, 0.08);
  border: 1px solid rgba(94, 74, 174, 0.22);
  border-radius: 100px;
  padding: 0.4rem 1.1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-100);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-100);
  border-radius: 50%;
  flex-shrink: 0;
  animation: dot-pulse 2.2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,191,255,0.5); }
  50%       { opacity: 0.85; box-shadow: 0 0 0 5px rgba(0,191,255,0); }
}

.hero-headline {
  font-family: 'Sora', sans-serif;
  font-size: clamp(36px, 5.5vw, 62px);
  line-height: 1.07;
  font-weight: 800;
  color: var(--text-100);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.headline-accent {
  /* flat brand primary (gradient text removed per design rule) */
  color: var(--primary-100);
}

.hero-subtext {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.75;
  color: var(--text-200);
  margin-bottom: 1.75rem;
  max-width: 490px;
}

.hero-pricing-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,191,255,0.06);
  border: 1px solid rgba(0,191,255,0.2);
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  color: var(--text-200);
  margin-bottom: 2rem;
}

.hero-pricing-tag i { color: var(--accent-100); }
.hero-pricing-tag strong { color: var(--text-100); font-weight: 700; }

/* --- CTAs --- */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2.5rem;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-100);
  color: #fff;
  padding: 0.875rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(94,74,174,0.35);
  position: relative;
  overflow: hidden;
}

.btn-hero-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  /* flat translucent white highlight (gradient removed per design rule) */
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-hero-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(94,74,174,0.55);
}

.btn-hero-primary:hover::after { opacity: 1; }

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--primary-100);
  padding: 0.875rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid rgba(94,74,174,0.3);
  transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
  background: rgba(94,74,174,0.06);
  color: var(--primary-100);
  border-color: var(--primary-100);
}

/* --- Trust strip --- */
.hero-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-300);
  font-weight: 500;
}

.trust-item i { color: var(--primary-100); font-size: 0.85rem; opacity: 0.75; }

.trust-sep {
  width: 1px;
  height: 14px;
  background: var(--bg-300);
}

/* =========================================
   HERO VISUAL — phone mockup
   ========================================= */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 540px;
  z-index: 2;
}

/* Phone frame */
.phone-mockup { position: relative; z-index: 3; }

.phone-frame {
  width: 248px;
  height: 496px;
  /* flat dark color (gradient removed per design rule) */
  background: #1e1740;
  border-radius: 40px;
  padding: 12px 12px 16px;
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,0.08),
    0 30px 70px rgba(0,0,0,0.6),
    0 0 100px rgba(94,74,174,0.25),
    inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative;
}

.phone-notch {
  width: 72px;
  height: 18px;
  background: #0d0a1e;
  border-radius: 0 0 12px 12px;
  margin: 0 auto 6px;
}

.phone-screen {
  width: 100%;
  height: calc(100% - 24px);
  background: #f5f5f7;
  border-radius: 28px;
  overflow: hidden;
}

/* CSS-drawn site preview */
.site-preview { width: 100%; height: 100%; background: #fff; }

.sp-header {
  background: #0d0a1e;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sp-logo {
  width: 48px; height: 7px;
  /* flat brand primary (gradient removed per design rule) */
  background: var(--primary-100);
  border-radius: 4px;
}

.sp-nav { display: flex; gap: 5px; }

.sp-nav-item {
  width: 16px; height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 3px;
}

.sp-hero-band {
  height: 120px;
  /* flat dark brand color (multi-stop gradient removed per design rule) */
  background: #1e1740;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}

.sp-line {
  background: rgba(255,255,255,0.85);
  border-radius: 4px;
  margin-bottom: 6px;
  height: 7px;
}
.sp-line-lg  { width: 72%; }
.sp-line-md  { width: 50%; background: rgba(255,255,255,0.5); height: 5px; }
.sp-line-sm  { width: 60%; height: 5px; background: rgba(0,0,0,0.25); }
.sp-line-xs  { width: 40%; height: 4px; background: rgba(0,0,0,0.15); margin-bottom: 0; }

.sp-cta {
  width: 52px; height: 15px;
  background: var(--accent-100);
  border-radius: 8px;
  margin-top: 4px;
}

.sp-section {
  padding: 10px 8px;
  display: flex;
  gap: 5px;
}

.sp-card {
  flex: 1;
  height: 58px;
  background: #f0eeff;
  border-radius: 6px;
  border-top: 3px solid var(--primary-100);
  animation: sp-breathe 3.2s ease-in-out infinite;
}

.sp-card--accent {
  border-top-color: var(--accent-100);
  background: #e8f8ff;
  animation-delay: 0.7s;
}

.sp-card:last-child { animation-delay: 1.4s; }

@keyframes sp-breathe {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.72; }
}

.sp-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
}

.sp-info-icon {
  width: 22px; height: 22px;
  background: var(--primary-100);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.7;
}

.sp-whatsapp-bar {
  margin: 0 8px 8px;
  height: 32px;
  /* flat WhatsApp green (gradient removed per design rule) */
  background: #25D366;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sp-wa-icon {
  width: 14px; height: 14px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
}

.sp-wa-text {
  width: 60px; height: 5px;
  background: rgba(255,255,255,0.6);
  border-radius: 3px;
}

/* Floating stat cards */
.stat-card {
  position: absolute;
  background: #ffffff;
  border: 1px solid rgba(94,74,174,0.1);
  border-radius: 14px;
  padding: 11px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
  min-width: 155px;
  box-shadow: 0 8px 32px rgba(94,74,174,0.12), 0 2px 8px rgba(0,0,0,0.06);
}

.stat-icon-wrap {
  width: 34px; height: 34px;
  background: var(--primary-300);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-100);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.stat-val {
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-100);
  line-height: 1.2;
}

.stat-lbl {
  font-size: 0.68rem;
  color: var(--text-300);
  line-height: 1.3;
}

.stat-card--1 { top: 10%;  left: -6%; }
.stat-card--2 { bottom: 14%; right: -4%; }
.stat-card--3 { top: 54%;  left: -12%; }

/* Float animation (reuse existing) */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 0.8; transform: scale(1.05); }
}

/* Mobile hero overrides */
@media (max-width: 991.98px) {
  .hero { min-height: auto; }
  .hero-visual { min-height: 460px; }
  .stat-card--1 { left: 2%; top: 4%; }
  .stat-card--2 { right: 2%; bottom: 4%; }
  .stat-card--3 { display: none; }
}

@media (max-width: 575.98px) {
  .hero-actions { flex-direction: column; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
  .hero-trust { gap: 0.6rem; }
  .trust-sep { display: none; }
  .hero-visual { min-height: 380px; }
  .phone-frame { width: 200px; height: 400px; }
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary {
  /* flat brand primary (gradient removed per design rule) */
  background: var(--primary-100);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  /* decorative shine gradient removed per design rule */
  background: transparent;
  transition: left 0.6s;
  z-index: -1;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  /* flat brand primary-200 on hover (gradient removed per design rule) */
  background: var(--primary-200);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  border: 2px solid var(--primary-100);
  color: var(--primary-100);
  background: transparent;
  font-weight: 600;
  transition: all var(--transition-normal);
}

.btn-outline-primary:hover {
  background: var(--primary-100);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/*
 * Bootstrap's own button variables for the outline family.
 *
 * The rules above style the RESTING and :hover states, which is why an
 * unchecked segmented button was already brand purple. The ACTIVE state —
 * `.btn-check:checked + .btn`, `.btn.active`, `:active` — is painted from
 * `--bs-btn-active-bg`, which Bootstrap sets to a literal #0d6efd on the class
 * itself. So a radio-group chip rendered purple until you selected it and blue
 * afterwards, which is precisely backwards: the selected one is the one being
 * asserted about.
 */
.btn-outline-primary {
  --bs-btn-color: var(--primary-100);
  --bs-btn-border-color: var(--primary-100);
  --bs-btn-hover-bg: var(--primary-100);
  --bs-btn-hover-border-color: var(--primary-100);
  --bs-btn-active-bg: var(--primary-100);
  --bs-btn-active-border-color: var(--primary-100);
  --bs-btn-disabled-color: var(--primary-100);
  --bs-btn-disabled-border-color: var(--primary-100);
  --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
}
/* A checked segmented button must not keep the resting rule's transparent
   background, which the specificity above would otherwise leave in place. */
.btn-check:checked + .btn-outline-primary,
.btn-outline-primary.active,
.btn-outline-primary:active {
  background: var(--primary-100);
  border-color: var(--primary-100);
  color: #fff;
  transform: none;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* =========================================
   CARDS & CONTENT SECTIONS
   ========================================= */
.card {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  /* flat brand primary (gradient removed per design rule) */
  background: var(--primary-100);
  border: none;
  color: white;
  font-weight: 600;
}

.card-footer {
  background-color: var(--bg-100);
  border: none;
}

/* Section Styling */
section {
  transition: all var(--transition-slow);
}

.bg-light {
  /* flat light surface color (gradient removed per design rule) */
  background: #f8f9fa !important;
}

/* =========================================
   CAROUSEL & SLIDERS
   ========================================= */
.carousel-caption {
  background: rgba(94, 74, 174, 0.85);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-item img {
  object-fit: cover;
  height: 400px;
  width: 100%;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.8;
  transition: opacity var(--transition-normal);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

/* =========================================
   ACCORDIONS & INTERACTIVE ELEMENTS
   ========================================= */
.accordion-button {
  background-color: var(--bg-100);
  border: none;
  color: var(--text-100);
  font-weight: 600;
  transition: all var(--transition-normal);
}

.accordion-button:not(.collapsed) {
  /* flat tinted surface (gradient removed per design rule) */
  background: var(--primary-300);
  color: var(--primary-100);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(94, 74, 174, 0.25);
}

.accordion-item {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--border-radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

/* =========================================
   ICONS & VISUAL ELEMENTS
   ========================================= */
.bi {
  transition: all var(--transition-normal);
}

.text-primary {
  color: var(--primary-100) !important;
}

/*
 * Full-bleed brand bands.
 *
 * `.text-primary`, `.btn-primary` and `.badge.bg-primary` were all re-pointed
 * at the brand purple; `.bg-primary` was not, so every `<section class="bg-primary">`
 * kept rendering in Bootstrap's default #0d6efd — a colour that appears in
 * neither Ulfra palette. The result was a site whose headings and buttons were
 * purple and whose big bands were a generic blue.
 *
 * It also failed WCAG AA: #f8f9fa text on #0d6efd measures 4.27:1, just under
 * the 4.5:1 minimum. On #5E4AAE the same text measures 6.85:1, so making the
 * band brand-correct makes it legible at the same time.
 *
 * `.text-bg-primary` is Bootstrap's newer pairing helper and sets the same
 * background, so it is re-pointed here too — otherwise a page using the modern
 * utility would silently keep the old blue.
 */
.bg-primary,
.text-bg-primary {
  background-color: var(--primary-100) !important;
}

/*
 * The ROOT of the purple/blue split: Bootstrap's own --bs-primary.
 *
 * Overriding `.text-primary`, `.btn-primary`, `.badge.bg-primary` and
 * `.bg-primary` one at a time fixes the components somebody remembered and
 * leaves every other consumer of --bs-primary on #0d6efd. That is how a
 * segmented control added to the create-org form (`.btn-check:checked +
 * .btn-outline-primary`, whose fill comes straight from the variable) rendered
 * Bootstrap blue while the unchecked half beside it rendered brand purple.
 *
 * Setting the variable covers every consumer that reads it — the
 * `rgba(var(--bs-primary-rgb), …)` utilities, subtle backgrounds, focus tints.
 *
 * It does NOT cover the .btn-* families: Bootstrap compiles literal hex into
 * their `--bs-btn-*` variables rather than referencing --bs-primary, so
 * `.btn-outline-primary` keeps a hard-coded #0d6efd for its active/hover fill
 * no matter what this variable says. Those are re-pointed separately below.
 * Measured, not assumed: after setting the variable the checked half of a
 * segmented control was still rgb(13,110,253).
 *
 * --bs-primary-rgb backs the rgba() forms (.bg-primary-subtle, focus shadows);
 * leaving it behind would keep a blue tint under a purple element.
 */
:root {
  --bs-primary: #5E4AAE;
  --bs-primary-rgb: 94, 74, 174;
}

/* Icon hover effects */
.fs-1:hover,
.display-5:hover {
  transform: scale(1.1);
  color: var(--accent-100) !important;
}

/* Pricing badges */
.badge {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--border-radius);
}

.badge.bg-primary {
  /* flat brand primary (gradient removed per design rule) */
  background: var(--primary-100) !important;
}

/* =========================================
   IMAGES & MEDIA
   ========================================= */
img {
  transition: opacity var(--transition-normal);
}

.img-fluid {
  border-radius: var(--border-radius);
}

.rounded-circle:hover {
  transform: scale(1.05) !important;
}

.shadow {
  box-shadow: var(--shadow-md) !important;
}

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

/* =========================================
   LISTS & CONTENT
   ========================================= */
.list-unstyled li {
  transition: all var(--transition-fast);
}

.list-unstyled li:hover {
  transform: translateX(5px);
  color: var(--primary-100);
}

/* =========================================
   NUESTRO ADN (QUIÉNES SOMOS)
   ========================================= */
.adn-section {
  padding: 100px 0;
  background-color: var(--bg-100);
  position: relative;
}

/* Subtle Grid Background Pattern */
.adn-grid-bg {
  position: absolute;
  inset: 0;
  /* decorative grid-line gradients removed (design rule: no color gradients) */
  background-image: none;
  background-size: 50px 50px;
  opacity: 0.15;
  pointer-events: none;
}

.adn-eyebrow {
  color: var(--primary-100);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: block;
}

.adn-headline {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-100);
  margin-bottom: 1.5rem;
}

.adn-subheadline {
  font-size: 1.25rem;
  color: var(--text-200);
  max-width: 800px;
  line-height: 1.6;
}

/* Layer 1: Manifesto */
.adn-manifesto {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-200);
  border-left: 1px solid var(--bg-300);
  padding-left: 2rem;
}

.adn-manifesto strong {
  color: var(--text-100);
  font-weight: 600;
}

/* Layer 2: Pillars Grid */
.adn-pillar-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 0;
  border: 1px solid var(--bg-300);
  height: 100%;
  transition: all var(--transition-normal);
  position: relative;
}

.adn-pillar-card:hover {
  border-color: var(--primary-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.adn-pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--primary-100);
  transition: height var(--transition-normal);
}

.adn-pillar-card:hover::before {
  height: 100%;
}

.adn-pillar-title {
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: var(--text-100);
}

.adn-impact-tag {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-100);
  letter-spacing: 0.5px;
}

/* Layer 3: Values & Identity */
.adn-identity-block {
  background-color: var(--text-100);
  color: #ffffff;
  padding: 80px 0;
}

.adn-value-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
}

.adn-value-item:last-child {
  border-bottom: none;
}

/* Brand Statement Band */
.brand-statement-band {
  background: var(--bg-200);
  padding: 1.5rem 0;
  border-top: 1px solid var(--bg-300);
  border-bottom: 1px solid var(--bg-300);
}

.statement-item {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-300);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.statement-item span {
  color: var(--primary-100);
}

@media (max-width: 768px) {
  .adn-manifesto {
    padding-left: 0;
    border-left: none;
    margin-bottom: 3rem;
  }
}

/* =========================================
   FOOTER ENHANCEMENT
   ========================================= */
footer {
  /* flat dark surface (gradient removed per design rule) */
  background: #343a40 !important;
  color: #fff;
  padding: 2rem 0;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  /* flat brand primary accent line (gradient removed per design rule) */
  background: var(--primary-100);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .carousel-item img { height: 400px; }
  .carousel-inner { height: 500px; }
}

/* =========================================
   SCROLL ANIMATIONS (INTERSECTION OBSERVER)
   ========================================= */
/* Content is visible by default — the entrance animation is progressive
   enhancement only. The hidden starting state applies exclusively once JS
   confirms IntersectionObserver support and adds .js-anim to <html>. If the
   script fails to load or run, every section stays fully visible. */
.scroll-animate {
  opacity: 1;
  transform: none;
}

.js-anim .scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.js-anim .scroll-animate.animate {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-anim .scroll-animate { opacity: 1; transform: none; transition: none; }
}

/* Staggered entry for pricing plans */
.pricing-plans .scroll-animate:nth-child(1) { transition-delay: 0.1s; }
.pricing-plans .scroll-animate:nth-child(2) { transition-delay: 0.3s; }
.pricing-plans .scroll-animate:nth-child(3) { transition-delay: 0.5s; }

/* Staggered entry for other generic grid containers if needed */
.row .scroll-animate:nth-child(2) { transition-delay: 0.2s; }
.row .scroll-animate:nth-child(3) { transition-delay: 0.4s; }
.row .scroll-animate:nth-child(4) { transition-delay: 0.6s; }

/* =========================================
   PRICING CARDS — 3-band alignment across cards
   Equal-height cards (align-items:stretch + h-100) pin the price+CTA band to
   the bottom; a min-height on the head band makes every feature list start at
   the same Y, so head / features / price line up across all three cards.
   ========================================= */
.pricing-plans .card-body { display: flex; flex-direction: column; }
.plan-head { margin-bottom: 1rem; }
.plan-list { flex: 1 0 auto; margin-bottom: 1.25rem; }
.pricing-card .plan-list li:last-child { margin-bottom: 0; }
.plan-foot { margin-top: auto; }

@media (min-width: 992px) {
  /* Equal floors on the head and price bands so all three bands line up
     across cards. Values track the tallest card's natural bands. */
  .pricing-plans .plan-head { min-height: 224px; }
  .pricing-plans .plan-foot { min-height: 364px; display: flex; flex-direction: column; justify-content: center; }
}

/* =========================================
   LOADING STATES
   ========================================= */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  /* flat translucent white shimmer (gradient removed per design rule) */
  background: rgba(255,255,255,0.4);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* =========================================
   GLASS MORPHISM EFFECTS
   ========================================= */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
}

/* =========================================
   CUSTOM UTILITIES
   ========================================= */
.text-gradient {
  /* flat brand primary (gradient removed per design rule) */
  color: var(--primary-100);
}

.text-accent {
  color: var(--accent-100) !important;
}

.border-gradient {
  /* flat brand primary border (gradient removed per design rule) */
  border: 2px solid var(--primary-100);
}

.hover-scale:hover {
  transform: scale(1.02);
}

.hover-shadow:hover {
  box-shadow: var(--shadow-lg);
}

/* (Hero mobile overrides are co-located with hero section above) */

/* =========================================
   NAVBAR — AUTH ITEMS (móvil / hamburguesa)
   ========================================= */
/* Divisor con gradiente fade — alineado al ancho del menú */
.nav-auth-divider {
  border: 0;
  height: 1px;
  margin: .85rem 0 .5rem;
  /* flat translucent brand divider (gradient removed per design rule) */
  background: rgba(94, 74, 174, .35);
  opacity: 1;
}

/* Ambos enlaces — discretos, en línea con los demás nav-link */
.navbar-nav .nav-link.nav-link-auth {
  color: var(--primary-100) !important;
  font-weight: 700;
  transition: color var(--transition-fast);
}

.navbar-nav .nav-link.nav-link-auth:hover,
.navbar-nav .nav-link.nav-link-auth:focus-visible {
  color: var(--primary-200) !important;
  outline: none;
}

/* Logged-in "Mi Cuenta" state: updateAuthUI() adds .btn-primary (purple fill),
   which would collide with the purple nav-link-auth text and hide the label.
   Force white text/icon on the filled button (incl. the mobile menu item). */
.navbar-nav .nav-link.nav-link-auth.btn-primary,
.navbar-nav .nav-link.nav-link-auth.btn-primary:hover,
.navbar-nav .nav-link.nav-link-auth.btn-primary:focus-visible {
  color: #fff !important;
}

/* =========================================
   UTILITY CLASSES
   ========================================= */
.card-featured {
  box-shadow: 0 8px 24px rgba(94, 74, 174, 0.25);
  border-top: 4px solid var(--primary-100) !important;
}

.cta-gradient {
  /* flat brand primary (gradient removed per design rule) */
  background: var(--primary-100);
  color: #fff;
}

.testimonial-card {
  max-width: 600px;
}

.avatar-circle {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

/* =========================================
   ACCESSIBILITY — focus-visible + reduced motion
   Shared with the SSO admin (ulfra-sso-front) via mirrored tokens. The
   focus ring uses --accent-100 so keyboard users see a distinctive cyan
   outline against both the purple brand bar and the white surfaces.
   ========================================= */
:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent-100);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
}

/* =========================================
   SHARED EMPTY STATE & SKELETON
   Used by the customer dashboard and the SSO admin (sso-front mirrors
   these names in its own components.css). Keeps the "nothing here yet"
   feeling consistent across the two surfaces.
   ========================================= */
.u-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  gap: .35rem;
  color: var(--text-200);
}
.u-empty-state .u-empty-icon {
  font-size: 2rem;
  color: var(--primary-100);
  opacity: .45;
  margin-bottom: .25rem;
}
.u-empty-state .u-empty-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-100);
}
.u-empty-state .u-empty-text {
  font-size: .9rem;
  color: var(--text-200);
  max-width: 42ch;
}
.u-empty-state .u-empty-cta {
  margin-top: 1rem;
}

.u-skeleton {
  display: block;
  /* flat skeleton surface (shimmer gradient removed per design rule) */
  background: var(--bg-200);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: u-shimmer 1.4s ease-in-out infinite;
  min-height: 14px;
}
.u-skeleton-line   { height: 14px; margin: .35rem 0; }
.u-skeleton-line.w-50  { width: 50%; }
.u-skeleton-line.w-75  { width: 75%; }
.u-skeleton-line.w-100 { width: 100%; }

@keyframes u-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

