/* Paleta y tipografía de seguro365.com */
:root {
  --navy: #0f1b2d;
  --ink: #1f2a28;
  --cream: #f7f5f0;
  --white: #ffffff;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --line: rgba(0, 0, 0, 0.06);
  --error: #dc2626;
  --radius: 1rem;
  --font: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; color: var(--navy); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--navy); color: var(--white); }

.container { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

/* Eyebrow, igual que la web */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--navy);
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: currentColor; flex-shrink: 0; }
.eyebrow--light { color: var(--white); }

/* Botones píldora */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--navy); color: var(--white);
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: opacity 0.2s, background-color 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { opacity: 0.9; }
.btn span { transition: transform 0.2s; }
.btn:hover span { transform: translateX(4px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #5b8def; outline-offset: 2px; }
.btn--light { background: var(--white); color: var(--navy); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); opacity: 1; }
.btn--small { padding: 0.55rem 1.1rem; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* Barra superior */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color 0.25s, box-shadow 0.25s; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
/* Logo + descriptor, igual que el header de la web */
.brand { display: flex; flex-direction: column; line-height: 1.25; }
.topbar__logo { height: 22.4px; width: auto; }
.brand__descriptor { margin-top: 4px; align-self: flex-end; font-size: 0.75rem; font-weight: 500; color: var(--white); }
.topbar.is-scrolled .brand__descriptor { color: var(--navy); }
.topbar__logo--navy { display: none; }
.topbar.is-scrolled { background: rgba(255, 255, 255, 0.96); box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(15, 27, 45, 0.06); backdrop-filter: blur(8px); }
.topbar.is-scrolled .topbar__logo--white { display: none; }
.topbar.is-scrolled .topbar__logo--navy { display: block; }
.topbar.is-scrolled .btn--light { background: var(--navy); color: var(--white); }

/* Portada */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--white); padding: 9.5rem 0 3rem; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 27, 45, 0.95), rgba(15, 27, 45, 0.6) 55%, rgba(15, 27, 45, 0.55)); }
.hero__content, .hero .pillars { position: relative; }
.hero h1 { margin-top: 1rem; max-width: 46rem; color: var(--white); font-size: clamp(2.25rem, 5.5vw, 3.5rem); }
.hero__lead { margin-top: 1.5rem; max-width: 38rem; font-size: 1.125rem; color: rgba(255, 255, 255, 0.85); }
.hero__actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

.pillars { margin-top: 4.5rem; display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255, 255, 255, 0.2); }
.pillars li { padding: 1.5rem 1.5rem 0 0; display: grid; gap: 0.35rem; }
.pillars strong { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.pillars span { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }

/* Secciones */
.section { padding: 3.85rem 0; }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: var(--white); }
.section h2 { margin-top: 1rem; max-width: 40rem; font-size: clamp(1.75rem, 3.6vw, 2.25rem); }
.section--navy h2 { color: var(--white); }
.section p { color: var(--gray-600); }
.section .split > div > p:not(.eyebrow) { margin-top: 1.25rem; max-width: 38rem; }
.section .eyebrow { color: var(--navy); }
.section .eyebrow--light { color: var(--white); }
.section__lead { margin-top: 1.25rem; max-width: 40rem; font-size: 1.0625rem; }
.section--navy .section__lead { color: rgba(255, 255, 255, 0.8); }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; }
.split__media { margin: 0; border-radius: 1.5rem; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 20px 40px rgba(15, 27, 45, 0.12); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }

/* Cifras */
.stats { margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; border-top: 1px solid rgba(15, 27, 45, 0.12); padding-top: 1.75rem; }
.stats dt { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 600; color: var(--navy); letter-spacing: -0.02em; line-height: 1.1; }
.stats dd { margin: 0.35rem 0 0; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-500); }

/* Tarjetas de servicios */
.cards { margin-top: 3rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 1.5rem; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); border-color: rgba(15, 27, 45, 0.4); box-shadow: 0 10px 24px rgba(15, 27, 45, 0.08); }
.card__icon { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 2px solid var(--navy); color: var(--navy); }
.card__icon svg, .form-success__icon svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-top: 1.1rem; font-size: 1.05rem; }
.card p { margin-top: 0.4rem; font-size: 0.925rem; }

/* Honorarios */
.fees { position: relative; overflow: hidden; }
.fees__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.18; filter: grayscale(1); }
.fees__overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(15, 27, 45, 0.95), rgba(15, 27, 45, 0.75)); }
.fees__content { position: relative; }
.tiers { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: tier; }
.tier { border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius); padding: 1.75rem; background: rgba(255, 255, 255, 0.04); display: grid; gap: 0.5rem; align-content: start; }
.tier__range { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; }
.tier__type { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; color: rgba(255, 255, 255, 0.7); }
.section--navy .tier p { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; margin-top: 0.5rem; }
.tier--top { background: var(--white); border-color: var(--white); color: var(--navy); }
.tier--top .tier__type { color: var(--gray-500); }
.section--navy .tier--top p { color: var(--gray-600); }
.section--navy .fees__note { margin: 2rem 0 2rem; max-width: 40rem; color: rgba(255, 255, 255, 0.85); }
.fees__note strong { color: var(--white); }

/* ART con las que trabajamos */
.insurers { margin-top: 2.5rem; padding: 1.75rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.insurers--tight { margin-top: 1.25rem; }
/* Logos de ART: gris parejo y color al pasar el mouse (mismo criterio que /aseguradoras de la web) */
.logos { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.logos li {
  display: flex; align-items: center; justify-content: center; height: 5.5rem; padding: 1.25rem 1.5rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.logos li:hover { transform: translateY(-4px); border-color: rgba(15, 27, 45, 0.4); box-shadow: 0 10px 24px rgba(15, 27, 45, 0.08); }
.logos img, .logo-mask { width: 100%; height: 2.5rem; max-height: 100%; transform: scale(var(--s, 1)); }
.logos img { object-fit: contain; filter: grayscale(1) brightness(0) invert(0.45); transition: filter 0.3s; }
.logos li:hover img { filter: none; }
.logo-mask {
  display: block; background: #737373; transition: background-color 0.3s;
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
}
.logos li:hover .logo-mask { background: var(--brand); }

/* Formulario */
.split--form { align-items: start; }
.checks { margin-top: 2rem; display: grid; gap: 0.75rem; }
.checks li { display: flex; align-items: center; gap: 0.75rem; font-weight: 500; color: var(--navy); }
.checks li::before { content: ''; width: 1.25rem; height: 1.25rem; flex-shrink: 0; border-radius: 999px; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 0.75rem no-repeat; }

.form-card { background: var(--cream); border-radius: 1.5rem; padding: 2rem; border: 1px solid var(--line); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--navy); margin-bottom: 0.4rem; }
.field__optional { font-weight: 400; color: var(--gray-500); }
.field input, .field textarea {
  width: 100%; padding: 0.8rem 1rem; border: 1px solid rgba(15, 27, 45, 0.18); border-radius: 0.75rem;
  background: var(--white); color: var(--ink); font: 400 1rem/1.4 var(--font); transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15, 27, 45, 0.12); }
.field input[aria-invalid='true'] { border-color: var(--error); }
.field__error { min-height: 0; margin-top: 0.3rem; font-size: 0.8rem; color: var(--error) !important; }
.field__error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin-top: 0.9rem; font-size: 0.9rem; color: var(--error) !important; }
.form__status:empty { display: none; }
.footer a { color: inherit; }
.check { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; color: var(--ink); cursor: pointer; }
.check input { margin-top: 0.2rem; width: 1.05rem; height: 1.05rem; accent-color: var(--navy); flex-shrink: 0; }
.check a { color: var(--navy); font-weight: 600; }
#cf-turnstile-box:empty { display: none; }

.form-success { text-align: center; padding: 2.5rem 1rem; outline: none; }
.form-success__icon { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 999px; background: var(--navy); color: var(--white); }
.form-success h3 { margin-top: 1.25rem; font-size: 1.5rem; }
.form-success p { margin-top: 0.75rem; }

/* Pie */
.footer { background: var(--navy); color: rgba(255, 255, 255, 0.6); padding: 3rem 0 2.5rem; font-size: 0.75rem; }
.footer__inner { display: flex; align-items: center; }
.footer__legal { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; }
.footer__fiscal { display: flex; align-items: flex-start; gap: 1rem; }
.footer__fiscal p + p { margin-top: 0.25rem; }
.footer__afip { height: 3.5rem; width: auto; }
.footer__links { margin-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; }
.footer__links a, .footer__ssn a { text-decoration: none; }
.footer__links a:hover, .footer__ssn a:hover { color: var(--white); text-decoration: underline; }
.footer__ssn { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; text-align: right; }
.footer__ssn img { height: 1.25rem; width: auto; border-radius: 0.25rem; }
.footer strong { font-weight: 600; color: rgba(255, 255, 255, 0.8); }
.brand--footer img { height: 17.92px; width: auto; }
.brand--footer .brand__descriptor { margin-top: 4px; font-size: 9.6px; color: var(--white); }

/* Responsive */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split__media { aspect-ratio: 16 / 10; }
}

@media (max-width: 720px) {
  .container { padding: 0 1rem; }
  .topbar__inner { height: 64px; }
  .topbar__logo { height: 18px; }
  .brand__descriptor { font-size: 0.65rem; margin-top: 2px; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .logos li { height: 4.75rem; padding: 1rem; }
  .hero { padding-top: 7.5rem; }
  .pillars { grid-template-columns: 1fr; margin-top: 3rem; }
  .pillars li { padding: 1.1rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
  .pillars li:last-child { border-bottom: 0; }
  .section { padding: 2.8rem 0; }
  .tiers { grid-template-columns: 1fr; }
  .stats { gap: 0.75rem; }
  .stats dd { font-size: 0.7rem; letter-spacing: 0.06em; }
  .form-card { padding: 1.5rem 1.25rem; }
  .footer__inner { justify-content: center; }
  .footer__legal { flex-direction: column; }
  .footer__ssn { align-items: flex-start; text-align: left; }
}

@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
}

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