/* ══════════════════════════════════════════════════════════
   SegurosMujer – Standalone CSS
   ══════════════════════════════════════════════════════════ */

:root {
  --background: 0 0% 100%;
  --foreground: 215 25% 17%;
  --card: 210 40% 98%;
  --card-foreground: 215 25% 17%;
  --primary: 217 91% 60%;
  --primary-foreground: 0 0% 100%;
  --secondary: 160 84% 39%;
  --secondary-foreground: 0 0% 100%;
  --muted: 210 40% 96%;
  --muted-foreground: 215 16% 47%;
  --accent: 210 40% 96%;
  --accent-foreground: 215 25% 17%;
  --destructive: 0 84% 60%;
  --border: 214 32% 91%;
  --ring: 217 91% 60%;
  --radius: 0.75rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ── Utilities ── */
.container { max-width: 1024px; margin: 0 auto; padding: 0 1rem; }
.container-sm { max-width: 768px; margin: 0 auto; padding: 0 1rem; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.hidden { display: none !important; }
.flex { display: flex; }
.grid { display: grid; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.flex-wrap { flex-wrap: wrap; }
.shrink-0 { flex-shrink: 0; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }
.w-full { width: 100%; }
.inline-flex { display: inline-flex; }

/* ── Colors ── */
.text-foreground { color: hsl(var(--foreground)); }
.text-muted { color: hsl(var(--muted-foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-secondary { color: hsl(var(--secondary)); }
.text-destructive { color: hsl(var(--destructive)); }
.bg-background { background: hsl(var(--background)); }
.bg-card { background: hsl(var(--card)); }

/* ── Typography ── */
h1 { font-size: 1.5rem; font-weight: 800; line-height: 1.2; color: hsl(var(--foreground)); }
h2 { font-size: 1.25rem; font-weight: 700; color: hsl(var(--foreground)); }
h3 { font-size: 1.125rem; font-weight: 600; color: hsl(var(--foreground)); }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-extrabold { font-weight: 800; }
.leading-relaxed { line-height: 1.75; }
.leading-tight { line-height: 1.25; }

/* ── Spacing ── */
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-6 { margin-top: 1.5rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-10 { margin-top: 2.5rem; margin-bottom: 2.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.pt-3 { padding-top: 0.75rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* ── Borders ── */
.border { border: 1px solid hsl(var(--border)); }
.border-b { border-bottom: 1px solid hsl(var(--border)); }
.border-t { border-top: 1px solid hsl(var(--border)); }
.border-y { border-top: 1px solid hsl(var(--border)); border-bottom: 1px solid hsl(var(--border)); }
.border-half { border-color: hsl(var(--border) / 0.5); }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* ── Shadows ── */
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.05); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,.18); }

/* ── Glass Card ── */
.glass-card {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: hsl(var(--background) / 0.6);
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.08);
}
.glass-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.1);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* ── Header ── */
.header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: hsl(var(--background) / 0.7);
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.header-inner { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; }

/* ── Hero Section ── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, hsl(217 91% 60% / 0.08), hsl(160 84% 39% / 0.05), hsl(0 0% 100%));
}
.hero-grid { display: grid; gap: 1.5rem; padding: 2.5rem 1rem; }
.hero-orb-1 { position: absolute; width: 384px; height: 384px; background: hsl(var(--primary) / 0.1); border-radius: 50%; filter: blur(120px); top: -160px; right: -160px; pointer-events: none; }
.hero-orb-2 { position: absolute; width: 256px; height: 256px; background: hsl(var(--secondary) / 0.1); border-radius: 50%; filter: blur(80px); bottom: 0; left: 0; pointer-events: none; }
.hero-img {
  display: none; border-radius: 1rem; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1);
  width: 100%; max-width: 320px; object-fit: cover; aspect-ratio: 4/5;
  transition: transform 0.5s ease;
}
.hero-img:hover { transform: scale(1.02); }

/* ── Section backgrounds ── */
.section-alt { background: linear-gradient(180deg, hsl(210 40% 98% / 0.8), hsl(210 40% 98% / 0.95)); border-top: 1px solid hsl(var(--border) / 0.5); border-bottom: 1px solid hsl(var(--border) / 0.5); }

/* ── Cards grid ── */
.cards-2 { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.cards-3 { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }

/* ── Table ── */
.table-wrap { overflow-x: auto; border-radius: 0.75rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th { text-align: left; padding: 0.75rem; font-weight: 700; color: hsl(var(--foreground)); white-space: nowrap; background: hsl(var(--primary) / 0.05); border-bottom: 1px solid hsl(var(--border) / 0.5); }
td { padding: 0.75rem; color: hsl(var(--muted-foreground)); border-bottom: 1px solid hsl(var(--border) / 0.3); }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: hsl(var(--primary) / 0.03); }
.desktop-table { display: none; }
.mobile-cards { display: block; }
.card-row { border-radius: 0.75rem; border: 1px solid hsl(var(--border) / 0.5); background: hsl(var(--background) / 0.6); backdrop-filter: blur(24px); padding: 1rem; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.75rem; }
.card-badge { font-size: 0.75rem; background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); padding: 0.25rem 0.5rem; border-radius: 9999px; font-weight: 500; white-space: nowrap; }
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; font-size: 0.875rem; }
.card-label { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.card-price { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid hsl(var(--border) / 0.4); font-size: 0.875rem; font-weight: 600; color: hsl(var(--secondary)); }

/* ── CTA Sections ── */
.cta-premium {
  position: relative; border-radius: 1rem; overflow: hidden;
  background: linear-gradient(135deg, hsl(217 91% 60% / 0.12), hsl(160 84% 39% / 0.08));
}
.cta-premium-inner {
  position: relative; z-index: 1;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  background: hsl(var(--background) / 0.3);
  border: 1px solid hsl(var(--border) / 0.3);
  border-radius: 1rem; padding: 2rem; text-align: center;
}
.cta-orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.cta-orb-1 { width: 256px; height: 256px; background: hsl(var(--primary) / 0.15); top: -80px; right: -40px; }
.cta-orb-2 { width: 192px; height: 192px; background: hsl(var(--secondary) / 0.15); bottom: 0; left: 0; }
.cta-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 600; padding: 0.375rem 0.75rem;
  border-radius: 9999px; margin-bottom: 1.25rem;
}
.cta-badge-blue { background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); }
.cta-badge-green { background: hsl(var(--secondary) / 0.1); color: hsl(var(--secondary)); }

.cta-with-img {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, hsl(160 84% 39% / 0.06), hsl(217 91% 60% / 0.04));
  border-top: 1px solid hsl(var(--border) / 0.5);
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}
.cta-img {
  border-radius: 1rem; box-shadow: 0 10px 15px rgba(0,0,0,.08);
  margin: 0 auto 1.5rem; max-width: 280px; object-fit: contain;
  transition: transform 0.5s ease;
}
.cta-img:hover { transform: scale(1.02); }

.cta-final {
  position: relative; border-radius: 1rem; overflow: hidden;
  background: linear-gradient(160deg, hsl(160 84% 39% / 0.10), hsl(217 91% 60% / 0.08));
}
.cta-final-inner {
  position: relative; z-index: 1;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  background: hsl(var(--background) / 0.35);
  border: 1px solid hsl(var(--border) / 0.3);
  border-radius: 1rem; padding: 2rem; text-align: center;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.25rem;
  font-weight: 600; border: none; cursor: pointer;
  border-radius: 0.75rem; padding: 1rem 1.5rem;
  font-size: 0.875rem; line-height: 1.25;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-primary {
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.1);
  animation: cta-pulse 2s ease-in-out infinite;
}
.btn-primary:hover { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.btn-secondary {
  background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground));
  box-shadow: 0 10px 15px rgba(0,0,0,.08);
  animation: cta-pulse 2s ease-in-out infinite;
}
.btn-secondary:hover { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn-lg { padding: 1.25rem 2rem; font-size: 1rem; font-weight: 700; }

/* ── Check list ── */
.check-list { list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 0.5rem; }
.check-icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; }

/* ── Accordion / FAQ ── */
.faq-item { border-bottom: 1px solid hsl(var(--border)); }
.faq-trigger {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 1rem 0; font-weight: 500; text-align: left; cursor: pointer;
  background: none; border: none; font-size: 0.875rem; color: hsl(var(--foreground));
  font-family: inherit;
}
.faq-trigger:hover { color: hsl(var(--primary)); }
.faq-trigger svg { transition: transform 0.3s; flex-shrink: 0; margin-left: 0.5rem; }
.faq-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-content {
  overflow: hidden; max-height: 0; transition: max-height 0.4s ease, padding 0.3s ease;
  font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.75;
}
.faq-content.open { max-height: 500px; padding-bottom: 1rem; }

/* ── Footer ── */
.footer {
  border-top: 1px solid hsl(var(--border) / 0.5);
  backdrop-filter: blur(12px); background: hsl(var(--card) / 0.8);
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 1.25rem; }
.footer-links a { font-size: 0.875rem; color: hsl(var(--muted-foreground)); transition: color 0.2s; }
.footer-links a:hover { color: hsl(var(--primary)); }

/* ── Loading Screen ── */
.loading-screen {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--background)), hsl(var(--secondary) / 0.1));
}
.loading-orb {
  position: absolute; border-radius: 50%; animation: pulse 2s ease-in-out infinite;
}
.loading-orb-1 { width: 288px; height: 288px; background: hsl(var(--primary) / 0.2); filter: blur(100px); top: -80px; left: -80px; }
.loading-orb-2 { width: 224px; height: 224px; background: hsl(var(--secondary) / 0.2); filter: blur(80px); bottom: 40px; right: 40px; animation-delay: 0.4s; }
.loading-card {
  position: relative;
  backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
  background: hsl(var(--background) / 0.4);
  border: 1px solid hsl(var(--border) / 0.4);
  border-radius: 1.5rem; padding: 2.5rem 3.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.18);
  animation: scale-in 0.6s ease-out forwards;
}
.loading-spinner {
  position: relative;
}
.loading-spinner .glow {
  position: absolute; inset: 0; border-radius: 50%;
  background: hsl(var(--primary) / 0.2); filter: blur(16px);
  animation: pulse 2s ease-in-out infinite;
}
.loading-spinner svg {
  width: 56px; height: 56px; color: hsl(var(--primary));
  position: relative; z-index: 1; animation: spin 2.5s linear infinite;
}
.loading-bar-wrap { width: 192px; height: 6px; border-radius: 9999px; background: hsl(var(--muted)); overflow: hidden; }
.loading-bar-fill { height: 100%; border-radius: 9999px; background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--secondary))); animation: loading-bar 1.4s ease-in-out forwards; }

/* ── Scroll Reveal ── */
.reveal { opacity: 1; transform: none; }
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-reveal .reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 80ms; }
.reveal-d2 { transition-delay: 160ms; }
.reveal-d3 { transition-delay: 240ms; }
.reveal-d4 { transition-delay: 360ms; }

/* ── SVG Icons (inline) ── */
.icon { width: 24px; height: 24px; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }
.icon-xl { width: 56px; height: 56px; }

/* ── Animations ── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes loading-bar { 0% { width: 0; } 60% { width: 75%; } 100% { width: 100%; } }
@keyframes fade-in { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes scale-in { 0% { opacity: 0; transform: scale(0.9); } 100% { opacity: 1; transform: scale(1); } }
@keyframes cta-pulse {
  0%,100% { transform: scale(1); box-shadow: 0 0 0 0 hsl(160 84% 39% / 0.5); }
  50% { transform: scale(1.04); box-shadow: 0 0 20px 6px hsl(160 84% 39% / 0.25); }
}
.anim-fade-in { animation: fade-in 0.8s ease-out; }
.anim-fade-in-delay { animation: fade-in 1s ease-out 0.3s both; }

/* ── Responsive ── */
@media (min-width: 640px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  .cards-2 { grid-template-columns: 1fr 1fr; }
  .cards-3 { grid-template-columns: 1fr 1fr 1fr; }
  .hero-grid { padding: 4rem 1rem; }
  .cta-premium-inner { padding: 3rem; }
  .cta-final-inner { padding: 2.5rem; }
  .cta-img { max-width: 384px; }
  .btn-lg { padding: 1.5rem 2.5rem; font-size: 1.125rem; }
}

@media (min-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.875rem; }
  .hero-grid {
    grid-template-columns: 1fr 1fr; gap: 2.5rem; padding: 6rem 1rem;
    align-items: center;
  }
  .hero-img { display: block; }
  .hero-adsense { display: none; }
}

@media (min-width: 1024px) {
  .desktop-table { display: block; }
  .mobile-cards { display: none; }
}
