/* ==========================================================================
   Seguros Pergamino — tokens
   Palette sampled directly from the client logo (pixel-sampled, not guessed):
   shield green #083E2E, logo background #F7F7F7.
   ========================================================================== */

:root {
  --color-brand: #083E2E;
  --color-brand-2: #0E5A40;
  --color-brand-3: #114F3A;
  --color-paper: #F7F7F7;
  --color-surface: #FFFFFF;
  --color-ink: #14201B;
  --color-muted: #4B5B54;
  --color-border: #E1E8E4;
  --color-on-brand: #F7F7F7;
  --color-on-brand-muted: #BFD3C9;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-card: 16px;
  --radius-pill: 999px;

  --shadow-card: 0 10px 28px -16px rgba(8, 62, 46, 0.35);
  --shadow-header: 0 8px 24px -14px rgba(8, 62, 46, 0.3);
  --shadow-fab: 0 10px 24px -8px rgba(8, 62, 46, 0.45);

  --space-section: clamp(3.25rem, 6vw, 6rem);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-reveal: 620ms;

  color-scheme: light;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; }

html, body { overscroll-behavior: none; }

body {
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--color-brand); color: var(--color-on-brand); }

:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--color-brand);
}

h2 { font-size: clamp(1.65rem, 1.2rem + 2vw, 2.35rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }

p { color: var(--color-muted); max-width: 65ch; }

.section-head { max-width: 46ch; margin-bottom: 2.25rem; }
.section-head p { margin-top: 0.5rem; font-size: 1.05rem; }

section { padding-block: var(--space-section); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}

.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--color-brand);
  color: var(--color-on-brand);
}

.btn--light {
  background: var(--color-on-brand);
  color: var(--color-brand);
  box-shadow: var(--shadow-fab);
}

.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.08rem; }

.btn__icon { flex-shrink: 0; }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--color-brand-2); }
  .btn--light:hover { box-shadow: 0 14px 30px -10px rgba(8, 62, 46, 0.5); transform: translateY(-1px); }
}

/* ==========================================================================
   Skip link
   ========================================================================== */

.skip-link {
  position: fixed;
  top: -50px;
  left: 1rem;
  background: var(--color-brand);
  color: var(--color-on-brand);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 10px 10px;
  z-index: 200;
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: 0; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 247, 247, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-header);
  border-bottom-color: var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
}

.site-header__brand { display: flex; align-items: center; height: 100%; }
.site-header__logo { height: 40px; width: auto; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-brand);
  padding-block: clamp(3.5rem, 10vh, 6.5rem) clamp(3.5rem, 8vh, 5.5rem);
  isolation: isolate;
}

.hero__watermark {
  position: absolute;
  top: 50%;
  right: -6%;
  width: min(60vw, 480px);
  height: auto;
  transform: translateY(-50%);
  fill: var(--color-brand-2);
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
}

.hero__inner { max-width: 620px; }

.hero__title {
  color: var(--color-on-brand);
  font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.1rem);
  max-width: 14ch;
}

.hero__subtitle {
  color: var(--color-on-brand-muted);
  font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.15rem);
  margin-top: 1.15rem;
  max-width: 48ch;
}

.hero__actions { margin-top: 2rem; }

/* ==========================================================================
   Trust bar
   ========================================================================== */

.trust { padding-block: clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--color-border); }

.trust__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.trust__icon { color: var(--color-brand); margin-bottom: 0.75rem; }
.trust__title { font-weight: 700; color: var(--color-ink); margin-bottom: 0.2rem; }
.trust__text { font-size: 0.94rem; }

/* ==========================================================================
   Ramos grid
   ========================================================================== */

.ramos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.ramo-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .ramo-card:hover { transform: translateY(-4px); box-shadow: 0 20px 36px -18px rgba(8, 62, 46, 0.4); }
}

.ramo-card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.ramo-card--icon {
  padding: 1.75rem 1.5rem 1.75rem;
  align-items: flex-start;
  align-self: start;
}

.ramo-card__icon {
  color: var(--color-brand);
  background: rgba(8, 62, 46, 0.08);
  padding: 0.65rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.ramo-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.ramo-card--icon .ramo-card__body { padding: 0; }

.ramo-card__body h3 { color: var(--color-ink); }
.ramo-card__body p { font-size: 0.95rem; flex: 1; }

.ramo-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-brand);
  touch-action: manipulation;
}

.ramo-card__cta svg { transition: transform var(--dur-fast) var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .ramo-card__cta:hover svg { transform: translateX(3px); }
}

/* ==========================================================================
   Feature: garantia de alquiler
   ========================================================================== */

.feature { background: var(--color-surface); }

.feature__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.feature__text h2 { max-width: 16ch; }
.feature__text p { margin-top: 0.85rem; margin-bottom: 1.5rem; font-size: 1.05rem; }

.feature__panel {
  background: var(--color-brand);
  color: var(--color-on-brand);
  border-radius: var(--radius-card);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Steps
   ========================================================================== */

.steps__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.steps__item { position: relative; padding-left: 3.5rem; }

.steps__num {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-brand);
  color: var(--color-on-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
}

.steps__item h3 { color: var(--color-ink); margin-bottom: 0.3rem; }
.steps__item p { font-size: 0.96rem; }

/* ==========================================================================
   Coverage
   ========================================================================== */

.coverage { background: rgba(8, 62, 46, 0.05); }
.coverage__inner { max-width: 62ch; }
.coverage__inner h2 { margin-bottom: 0.85rem; }
.coverage__inner p { font-size: 1.05rem; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq__list { border-top: 1px solid var(--color-border); }

.faq__item {
  border-bottom: 1px solid var(--color-border);
  padding-block: 1.15rem;
}

.faq__item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-ink);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  touch-action: manipulation;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-brand);
  transition: transform var(--dur-base) var(--ease-out);
  line-height: 1;
}

.faq__item[open] summary::after { transform: rotate(45deg); }

.faq__item p { margin-top: 0.75rem; font-size: 0.98rem; }

/* ==========================================================================
   CTA final
   ========================================================================== */

.cta-final { background: var(--color-brand); }
.cta-final__inner { text-align: center; max-width: 40ch; margin-inline: auto; }
.cta-final__inner h2 { color: var(--color-on-brand); }
.cta-final__inner p { color: var(--color-on-brand-muted); margin: 0.85rem auto 1.75rem; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--color-brand-3); color: var(--color-on-brand-muted); padding-block: 3rem 2rem; }

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.site-footer__logo { height: 44px; width: auto; border-radius: 8px; align-self: flex-start; }

.site-footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-on-brand);
  font-weight: 700;
  touch-action: manipulation;
}

.site-footer__contact p { color: var(--color-on-brand-muted); margin-top: 0.5rem; font-size: 0.92rem; }

.site-footer__legal {
  font-size: 0.78rem;
  color: rgba(191, 211, 201, 0.75);
  border-top: 1px solid rgba(191, 211, 201, 0.2);
  padding-top: 1.25rem;
  max-width: 70ch;
}

.site-footer__copy { font-size: 0.78rem; color: rgba(191, 211, 201, 0.6); }

/* ==========================================================================
   Floating WhatsApp button
   ========================================================================== */

.fab-whatsapp {
  position: fixed;
  right: 1.1rem;
  bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-brand);
  color: var(--color-on-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-fab);
  z-index: 90;
  touch-action: manipulation;
  transition: transform var(--dur-fast) var(--ease-out);
}

.fab-whatsapp:active { transform: scale(0.94); }

@media (hover: hover) and (pointer: fine) {
  .fab-whatsapp:hover { transform: scale(1.06); }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

[data-reveal] {
  opacity: 0.001;
  transform: translateY(18px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
}

[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

.js-motion-off [data-reveal] { opacity: 1; transform: none; transition: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .ramo-card, .fab-whatsapp, .btn__icon, .ramo-card__cta svg { transition: none; }
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */

@media (min-width: 640px) {
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .ramos__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 860px) {
  .steps__list { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

@media (min-width: 960px) {
  .feature__inner { grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; }
}

@media (min-width: 1024px) {
  .trust__grid { grid-template-columns: repeat(4, 1fr); }
  .ramos__grid { grid-template-columns: repeat(4, 1fr); }
  .ramo-card--icon { grid-column: span 1; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .ramos__grid { grid-template-columns: repeat(3, 1fr); }
}
