/* ============================================================
   ESTILOS GLOBALES — COTIZADOR
   Glassmorphism + Animaciones + Paleta de marca
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');
@import url('/vendor/nice-alert/nice-alert.css');

/* Customización del tema NiceAlert con la paleta CMSF */
:root {
  --na-primary:       #0F8259;
  --na-primary-dark:  #017024;
  --na-success:       #01962E;
  --na-error:         #dc2626;
  --na-radius:        18px;
  --na-font:          'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ── Variables de la paleta CMSF ── */
:root {
  --color-teal:       #0F8259;
  --color-dark-teal:  #017024;
  --color-emerald:    #01962E;
  --color-lime:       #2DA058;
  --color-grey:       #949B98;

  --brand-primary:    #0F8259;
  --brand-secondary:  #017024;
  --brand-green:      #01962E;
  --brand-accent:     #2DA058;
  --brand-neutral:    #949B98;
  --brand-light:      #DFE2E5;

  --glass-bg:         rgba(255, 255, 255, 0.08);
  --glass-bg-light:   rgba(255, 255, 255, 0.60);
  --glass-border:     rgba(255, 255, 255, 0.18);
  --glass-shadow:     0 8px 32px rgba(1, 112, 36, 0.18);
}

/* ── Tipografía base ── */
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #0f172a;
  background-color: #f2f5f4;
  background-image:
    radial-gradient(ellipse 80% 50% at 10% 0%,   rgba(15, 130, 89, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 100%,  rgba(1, 112, 36, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 50% 50%,   rgba(45, 160, 88, 0.05) 0%, transparent 70%);
  background-attachment: fixed;
}

/* ── Scrollbar personalizado ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #e8f4f8; }
::-webkit-scrollbar-thumb { background: var(--color-teal); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-dark-teal); }

/* ============================================================
   GLASSMORPHISM HELPERS
   ============================================================ */

/* Glass claro — para paneles sobre fondos claros */
.glass {
  background: var(--glass-bg-light);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* Glass oscuro — para paneles sobre fondos oscuros */
.glass-dark {
  background: rgba(1, 112, 36, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

/* Glass navbar — semitransparente al hacer scroll */
.glass-navbar {
  background: rgba(1, 112, 36, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

/* ============================================================
   ORBES DE FONDO ANIMADOS
   ============================================================ */

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite alternate;
}
.orb-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(15, 130, 89, 0.28) 0%, transparent 70%);
  top: -120px; right: -80px;
  animation-delay: 0s;
}
.orb-2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(1, 150, 46, 0.20) 0%, transparent 70%);
  bottom: -80px; left: -60px;
  animation-delay: -3s;
}
.orb-3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(45, 160, 88, 0.18) 0%, transparent 70%);
  top: 40%; left: 20%;
  animation-delay: -5s;
  animation-duration: 11s;
}

@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(20px, -30px) scale(1.05); }
  100% { transform: translate(-10px, 15px) scale(0.97); }
}

/* ============================================================
   ANIMACIONES DE ENTRADA
   ============================================================ */

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.93); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes popIn {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(15, 130, 89, 0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(15, 130, 89, 0); }
}

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

@keyframes gradientText {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes counterPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15); color: var(--color-lime); }
  100% { transform: scale(1); }
}

/* ── Clases utilitarias de animación ── */
.animate-fade-in  { animation: fadeIn  0.4s ease both; }
.animate-slide-up { animation: slideUp 0.45s cubic-bezier(0.22,0.61,0.36,1) both; }
.animate-scale-in { animation: scaleIn 0.35s cubic-bezier(0.22,0.61,0.36,1) both; }
.animate-pop      { animation: popIn   0.3s cubic-bezier(0.22,0.61,0.36,1); }

/* Staggered delays para listas */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.10s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.20s; }
.stagger-5 { animation-delay: 0.25s; }

/* ============================================================
   TEXTO CON GRADIENTE ANIMADO
   ============================================================ */

.gradient-text {
  background: linear-gradient(135deg, #0F8259, #2DA058, #01962E, #0F8259);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientText 5s ease infinite;
}

.hero-ambient-bg {
  position: relative;
}

.hero-ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.35;
  animation: ambientFloat 9s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-ambient-one {
  width: 300px;
  height: 300px;
  background: rgba(45, 160, 88, 0.22);
  top: 10%;
  right: 8%;
}

.hero-ambient-two {
  width: 360px;
  height: 360px;
  background: rgba(15, 130, 89, 0.22);
  bottom: -60px;
  left: -50px;
  animation-delay: 1.5s;
}

.hero-ambient-three {
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.08);
  top: 35%;
  left: 40%;
  animation-delay: 3s;
}

@keyframes ambientFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(18px, -24px, 0) scale(1.08); }
}

.brand-hero-shell {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(4, 27, 31, 0.18);
  padding: clamp(0.75rem, 1.5vw, 1.25rem) clamp(1.25rem, 2vw, 2rem);
}

.brand-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  max-width: 860px;
  margin: 0 auto;
}

.brand-hero-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100%;
}

.hero-panel-card {
  width: min(100%, 360px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.5rem;
  box-shadow: 0 28px 45px rgba(8, 24, 28, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  animation: panelFloat 5.5s ease-in-out infinite alternate;
}

@keyframes panelFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

.hero-panel-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-panel-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-accent), #d6f5a7);
  box-shadow: 0 0 16px rgba(139,191,101,0.9);
}

.hero-panel-body {
  padding: 1.2rem 1.1rem 1.3rem;
}

.panel-stat {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.panel-stat strong {
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  color: white;
  font-weight: 800;
}

.panel-stat span {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.panel-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.panel-checklist li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255,255,255,0.86);
  font-size: 0.9rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.7rem 0.8rem;
  border-radius: 0.9rem;
}

.panel-checklist i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: rgba(139,191,101,0.18);
  color: #dff6c9;
  font-size: 0.7rem;
}

.eyebrow {
  color: #d7f4ee;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.brand-logo-wrap {
  display: block;
  max-width: min(100%, 560px);
  margin: 0 auto;
  line-height: 0;
}

.brand-logo-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 12px 28px rgba(8, 30, 34, 0.22));
  animation: logoFloat 5s ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes logoFloat {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-6px) scale(1.01); }
  100% { transform: translateY(0px) scale(1); }
}

.hero-title {
  position: relative;
  display: inline-block;
  background: linear-gradient(90deg,
    #ffffff 0%,
    #dff9ff 12%,
    #9fe7d6 26%,
    #d9f8ee 46%,
    #f2fff9 58%,
    #b7f7ca 72%,
    #ffffff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.04em;
  text-shadow: 0 0 22px rgba(183, 247, 202, 0.2);
  animation: heroTitleShimmer 5s ease-in-out infinite, heroTitleFloat 4.8s ease-in-out infinite alternate;
}

.hero-title::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -0.2rem;
  height: 0.18rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(139,191,101,0), rgba(139,191,101,0.9), rgba(255,255,255,0));
  opacity: 0.8;
  filter: blur(2px);
  animation: heroUnderlinePulse 3s ease-in-out infinite;
}

@keyframes heroTitleShimmer {
  0%, 100% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 8px rgba(181, 243, 210, 0.2));
  }
  50% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 18px rgba(181, 243, 210, 0.38));
  }
}

@keyframes heroTitleFloat {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-6px) scale(1.01); }
}

@keyframes heroUnderlinePulse {
  0%, 100% { opacity: 0.45; transform: scaleX(0.92); }
  50% { opacity: 1; transform: scaleX(1); }
}

.hero-title {
  position: relative;
  display: inline-block;
  background: linear-gradient(90deg,
    #ffffff 0%,
    #dffcff 10%,
    #9addc9 25%,
    #dff9ef 45%,
    #f4fff8 58%,
    #baf5c7 72%,
    #ffffff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.04em;
  text-shadow: 0 0 22px rgba(186, 245, 199, 0.18);
  animation: heroTitleGlow 5s ease-in-out infinite, heroTitleLift 4.8s ease-in-out infinite alternate;
}

.hero-title::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -0.25rem;
  height: 0.18rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(139,191,101,0), rgba(139,191,101,0.92), rgba(255,255,255,0));
  opacity: 0.85;
  filter: blur(2px);
  animation: heroUnderlinePulse 3s ease-in-out infinite;
}

@keyframes heroTitleGlow {
  0%, 100% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 8px rgba(186, 245, 199, 0.2));
  }
  50% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 18px rgba(186, 245, 199, 0.35));
  }
}

@keyframes heroTitleLift {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-6px) scale(1.01); }
}

@keyframes heroUnderlinePulse {
  0%, 100% { opacity: 0.5; transform: scaleX(0.9); }
  50% { opacity: 1; transform: scaleX(1); }
}

.brand-subtitle {
  margin: 1rem auto 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(15,130,89,0.08);
  border-radius: 1.2rem;
  padding: 1.2rem 1rem;
  text-align: center;
  box-shadow: 0 12px 24px rgba(1,112,36,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 24px rgba(1,112,36,0.09);
}

.stat-card strong {
  display: block;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  font-weight: 800;
  color: var(--brand-secondary);
}

.stat-card span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #475569;
}

.primary-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  font-size: 0.82rem;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-cta {
  background: linear-gradient(135deg, #2DA058, #01962E);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(1, 150, 46, 0.25);
}

.secondary-cta {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.9);
}

.primary-cta:hover,
.secondary-cta:hover {
  transform: translateY(-2px);
}

.brand-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-frame {
  position: relative;
  width: min(100%, 620px);
  border-radius: 1.75rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(4, 18, 21, 0.25);
  animation: vehicleFloat 5.5s ease-in-out infinite alternate;
}

.vehicle-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transform: scale(1.04);
}

@keyframes vehicleFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 8px 20px rgba(1, 112, 36, 0.08);
  animation: floatSoft 4.5s ease-in-out infinite alternate;
  margin: 0 auto;
}

.feature-pill:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 14px 22px rgba(1, 112, 36, 0.12);
}

.feature-pill i {
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
}

@keyframes floatSoft {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

#how-it-works {
  scroll-margin-top: 6rem;
}

.info-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 130, 89, 0.10);
  border-radius: 1.5rem;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 10px 28px rgba(1, 112, 36, 0.08);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
  will-change: transform;
}

.info-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 22px 40px rgba(1, 112, 36, 0.16);
  border-color: rgba(15, 130, 89, 0.18);
}

.info-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark-teal);
  background: linear-gradient(135deg, rgba(15,130,89,0.12), rgba(45,160,88,0.2));
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.info-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.info-card p {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================================
   BOTÓN PRIMARIO — Shimmer Glow
   ============================================================ */

.btn-primary-glow {
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary-glow::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.45s ease;
}
.btn-primary-glow:hover::before {
  left: 160%;
}
.btn-primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(15,130,89,0.45);
}
.btn-primary-glow:active {
  transform: translateY(0px);
}

/* ============================================================
   BOTÓN CTA PREVISUALIZAR — Verde Claro Luminoso Destacado
   ============================================================ */

.btn-preview-luminous {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2DA058 0%, #01962E 50%, #0F8259 100%);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 4px 22px rgba(1, 150, 46, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-preview-luminous::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transition: left 0.5s ease;
}

.btn-preview-luminous:hover:not(:disabled)::before {
  left: 160%;
}

.btn-preview-luminous:hover:not(:disabled) {
  background: linear-gradient(135deg, #01962E 0%, #2DA058 50%, #0F8259 100%);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 30px rgba(1, 150, 46, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  color: #ffffff;
}

.btn-preview-luminous:active:not(:disabled) {
  transform: translateY(0px) scale(0.99);
}

.btn-preview-luminous:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(35%);
  box-shadow: none;
}

/* ============================================================
   BADGE PULSANTE
   ============================================================ */

.badge-pulse {
  animation: pulseGlow 2.4s ease-in-out infinite;
}

/* ============================================================
   CARD DE SERVICIO
   ============================================================ */

.service-card {
  transition: transform 0.28s cubic-bezier(0.22,0.61,0.36,1),
              box-shadow 0.28s ease,
              border-color 0.28s ease,
              filter 0.28s ease;
  will-change: transform;
}
.service-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 14px 26px rgba(15,130,89,0.14);
  border-color: rgba(15,130,89,0.18);
  filter: saturate(1.05);
}
.service-card.selected {
  animation: popIn 0.3s cubic-bezier(0.22,0.61,0.36,1);
}

.service-card {
  position: relative;
  transform: translateZ(0);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.35s ease,
              border-color 0.35s ease,
              background 0.35s ease,
              filter 0.35s ease;
}

.service-card.selected,
.service-card.selected:hover {
  background: rgba(1,150,46,0.20) !important;
  border-color: rgba(1,150,46,0.62) !important;
  box-shadow: 0 16px 34px rgba(1,150,46,0.16), 0 0 0 3px rgba(45,160,88,0.22), inset 0 1px 0 rgba(255,255,255,0.72);
}

.service-card.selected .text-brandPrimary {
  color: var(--color-dark-teal) !important;
}

.service-description {
  color: #0f172a !important;
  transition: color 0.25s ease;
}

.service-card.selected .service-description {
  color: #017024 !important;
}

.plan-card.selected,
.plan-card.selected:hover {
  background: rgba(1,150,46,0.25) !important;
  border-color: var(--color-emerald) !important;
  box-shadow: 0 18px 38px rgba(1,112,36,0.18), 0 0 0 3px rgba(45,160,88,0.28), inset 0 1px 0 rgba(255,255,255,0.78);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,0.34) 48%, transparent 72%);
  transform: translateX(-125%);
  transition: transform 0.8s cubic-bezier(0.22,1,0.36,1);
}

.service-card:hover::after {
  transform: translateX(125%);
}

.individual-service-card:hover {
  transform: translateY(-6px) scale(1.012);
  border-color: rgba(15,130,89,0.38) !important;
  box-shadow: 0 18px 34px rgba(15,130,89,0.16), inset 0 1px 0 rgba(255,255,255,0.86);
  filter: saturate(1.08);
}

.plan-card {
  border-color: rgba(45,160,88,0.40) !important;
  box-shadow: 0 14px 32px rgba(1,112,36,0.12), inset 0 1px 0 rgba(255,255,255,0.82);
}

.plan-card:hover {
  transform: translateY(-8px) scale(1.018);
  border-color: rgba(45,160,88,0.72) !important;
  box-shadow: 0 22px 42px rgba(1,112,36,0.19), 0 0 0 4px rgba(45,160,88,0.12), inset 0 1px 0 rgba(255,255,255,0.92);
  filter: saturate(1.12);
}

.service-card input[type='checkbox'] {
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s ease;
}

.service-card:hover input[type='checkbox'] {
  transform: scale(1.12);
  box-shadow: 0 0 0 4px rgba(15,130,89,0.10);
}

.plan-card:hover input[type='checkbox'] {
  box-shadow: 0 0 0 4px rgba(139,191,101,0.18);
}


/* ============================================================
   TRANSICIONES SUAVES GENERALES
   ============================================================ */

.transition-smooth {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESPONSIVE — MOBILE FIRST
   ============================================================ */

/* ── Orbes: más pequeños en mobile ── */
@media (max-width: 640px) {
  .hero-ambient-bg {
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
  }

  .brand-hero-shell {
    padding: 0.9rem 0.8rem 1rem;
    border-radius: 1.3rem;
  }

  .eyebrow {
    margin-bottom: 0.8rem;
    letter-spacing: 0.14em;
    font-size: 0.66rem;
  }

  .brand-subtitle {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .feature-pill {
    font-size: 0.67rem;
    padding: 0.6rem 0.8rem;
  }

  .primary-cta,
  .secondary-cta {
    width: 100%;
    padding: 0.82rem 1rem;
    font-size: 0.76rem;
  }

  .orb-1 {
    width: 200px; height: 200px;
    top: -50px; right: -30px;
  }
  .orb-2 {
    width: 150px; height: 150px;
    bottom: -30px; left: -20px;
  }
  .orb-3 { display: none; }

  /* Desactivar efectos hover 3D en pantallas táctiles */
  .btn-primary-glow:hover {
    transform: none;
    box-shadow: none;
  }
  .service-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ── Barra flotante de total en mobile ── */
.mobile-total-bar {
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 0.3s ease;
}
.mobile-total-bar.hidden-bar {
  transform: translateY(100%);
  opacity: 0;
}

/* ============================================================
   ESTILOS ESPECÍFICOS PARA IMPRESIÓN / PDF
   ============================================================ */

/* ============================================================
   UI / UX PROMAX — CAPA DE EXPERIENCIA
   ============================================================ */

.page-shell {
  position: relative;
  isolation: isolate;
}

.page-shell::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: linear-gradient(rgba(15,130,89,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,130,89,0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

#mainNavbar {
  background: rgba(1,112,36,0.88);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 8px 28px rgba(7,30,42,0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#mainNavbar .w-10 {
  box-shadow: 0 0 0 5px rgba(139,191,101,0.10), 0 10px 22px rgba(7,30,42,0.20);
}

.brand-hero-shell {
  position: relative;
  overflow: hidden;
  border-color: rgba(255,255,255,0.20);
  box-shadow: 0 24px 60px rgba(4,27,31,0.24), inset 0 1px 0 rgba(255,255,255,0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand-hero-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.10) 48%, transparent 76%);
  transform: translateX(-120%);
  animation: heroSheen 8s ease-in-out infinite;
}

@keyframes heroSheen {
  0%, 48% { transform: translateX(-120%); }
  68%, 100% { transform: translateX(120%); }
}

.info-card,
.service-card {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 34px rgba(1,112,36,0.09), inset 0 1px 0 rgba(255,255,255,0.70);
}

.info-card,
.service-card,
#servicesList > div {
  border-color: rgba(255,255,255,0.78);
}

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

.info-card::before,
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.30), transparent 42%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.info-card:hover::before,
.service-card:hover::before {
  opacity: 1;
}

.service-card {
  background: rgba(255,255,255,0.64) !important;
  border-color: rgba(255,255,255,0.78) !important;
}

.service-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 18px 34px rgba(15,130,89,0.16), inset 0 1px 0 rgba(255,255,255,0.9);
}

.service-card.selected {
  box-shadow: 0 16px 32px rgba(15,130,89,0.18), 0 0 0 3px rgba(45,160,88,0.22);
}

#servicesList > div {
  box-shadow: 0 20px 45px rgba(1,112,36,0.10), inset 0 1px 0 rgba(255,255,255,0.64);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.quote-summary-shell {
  box-shadow: 0 24px 55px rgba(7,30,42,0.24), 0 0 0 1px rgba(255,255,255,0.10);
  transform: translateZ(0);
}

.quote-summary-shell input {
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.quote-summary-shell input:focus {
  background: rgba(255,255,255,0.16);
  border-color: rgba(45,160,88,0.72);
  box-shadow: 0 0 0 4px rgba(45,160,88,0.12);
}

.group-content {
  max-height: 0;
  opacity: 1;
  transform: translateY(0);
  transform-origin: top;
  transition: max-height 0.32s cubic-bezier(0.22,1,0.36,1),
              opacity 0.24s ease,
              transform 0.32s cubic-bezier(0.22,1,0.36,1);
}

.group-content-expanded {
  max-height: 2000px;
}

.group-content-closing {
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  overflow: hidden;
  pointer-events: none;
}

#searchInput {
  background: rgba(255,255,255,0.68);
  border-color: rgba(15,130,89,0.16);
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s ease, border-color 0.25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#searchInput:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(1,112,36,0.12);
}

#loadingState {
  border: 1px dashed rgba(15,130,89,0.22);
  border-radius: 1.5rem;
  background: rgba(255,255,255,0.38);
}

.primary-cta,
.secondary-cta,
#loginLink,
#publicLogoutBtn {
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.primary-cta:hover,
.secondary-cta:hover,
#loginLink:hover,
#publicLogoutBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(4,27,31,0.18);
}

.primary-cta:focus-visible,
.secondary-cta:focus-visible,
#loginLink:focus-visible,
#publicLogoutBtn:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(139,191,101,0.72);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .brand-hero-shell::before,
  .brand-logo-image,
  .hero-title,
  .hero-ambient,
  .service-card,
  .info-card {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  /* Ocultar elementos no deseados */
  header, footer, .no-print, .calculator-controls,
  .admin-navbar, button, .action-buttons {
    display: none !important;
  }

  /* Desactivar animaciones y glassmorphism en impresión */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-image: none !important;
  }

  body {
    background-color: #ffffff !important;
    color: #000000 !important;
    font-size: 12pt;
  }

  #printModal {
    position: static !important;
    display: block !important;
    background: transparent !important;
    padding: 0 !important;
  }

  .print-container {
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .print-page-break {
    page-break-inside: avoid;
  }
}
