/* RS Finanzas y Seguros — sitio nuevo
   Paleta y tokens tomados del sistema de marca real (logo + marca.css del
   estudio de contenido), no inventados: navy del logo, teal del escudo,
   azul primario de la web. Nunca se introduce una familia ajena (naranja,
   verde, violeta) — esa es la regla dura de la marca. */
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('/assets/fonts/public-sans-latin.woff2') format('woff2'); }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('/assets/fonts/raleway-latin.woff2') format('woff2'); }

:root {
  --navy-logo:   #14245A;
  --navy-deep:   #0E1A25;
  --teal:        #1E8A9E;
  --teal-bright: #35B3C9;
  --teal-text:   #167282;
  --azul:        #2D6DA9;
  --celeste:     #C4D2DE;
  --hueso:       #F4F7F9;
  --blanco:      #FFFFFF;
  --gray-600:    #55606B;
  --gray-900:    #16212B;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(14,26,37,.10);
  --maxw: 1180px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Public Sans', system-ui, -apple-system, sans-serif;
  color: var(--gray-900);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
main { display: block; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; border-radius: 6px; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(14,26,37,.07);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; max-width: var(--maxw); margin: 0 auto; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { color: var(--navy-logo); font-family: 'Raleway', sans-serif; font-size: 1.2rem; font-weight: 400; letter-spacing: .2px; }
.brand-text span { color: var(--gray-600); font-family: 'Raleway', sans-serif; font-size: .74rem; font-weight: 500; }

nav.main-nav { display: flex; align-items: center; gap: 28px; }
nav.main-nav a {
  text-decoration: none; color: var(--gray-900); font-weight: 700; font-size: .94rem;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
nav.main-nav a:hover, nav.main-nav a[aria-current="page"] { color: var(--navy-logo); border-bottom-color: var(--teal); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 800; font-size: .92rem;
  text-decoration: none; border: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--azul); color: #fff; }
.btn-primary:hover { background: var(--navy-logo); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(45,109,169,.35); }
.btn-outline { background: transparent; color: var(--navy-logo); border: 1.5px solid var(--celeste); }
.btn-outline:hover { border-color: var(--azul); color: var(--azul); }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-whatsapp { background: #25D366; color: #06331b; }
.btn-whatsapp:hover { background: #1fb959; }
.btn-block { width: 100%; }

.menu-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
}
.menu-toggle svg { width: 26px; height: 26px; color: var(--navy-logo); }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy-logo) 62%, var(--teal) 130%);
  color: #fff; overflow: hidden; position: relative;
}
.hero::before { content:''; position:absolute; inset:0;
  background: radial-gradient(900px 600px at 92% -10%, rgba(53,179,201,.28), transparent 60%); pointer-events:none; }
.hero .container {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px;
  padding-top: 76px; padding-bottom: 76px; min-height: 480px; position:relative;
}
.hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 900; line-height: 1.18; letter-spacing: 0; margin: 0 0 20px; text-transform: uppercase; }
.hero h1 .accent { color: var(--teal-bright); }
.hero p { font-size: 1.1rem; font-weight: 600; color: rgba(255,255,255,.82); max-width: 46ch; margin: 0 0 32px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

.quick-quote {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px; padding: 22px 24px; backdrop-filter: blur(8px); max-width: 460px;
}
.quick-quote__label { display: block; font-weight: 800; color: #fff; font-size: .95rem; margin-bottom: 14px; }
.quick-quote__options { display: flex; gap: 14px; }
.quick-quote__opt {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: #fff; color: var(--navy-logo); border-radius: 14px; padding: 18px 14px;
  text-decoration: none; font-weight: 800; font-size: .95rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.quick-quote__opt svg { width: 30px; height: 30px; color: var(--azul); }
.quick-quote__opt:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.25); background: var(--teal-bright); color: var(--navy-deep); }
.quick-quote__opt:hover svg { color: var(--navy-deep); }
.quick-quote__wa { display: inline-block; margin-top: 6px; padding: 12px 0; color: rgba(255,255,255,.75); font-size: .85rem; font-weight: 700; text-decoration: none; }
.quick-quote__wa:hover { color: #fff; }
.hero-photo {
  position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35);
  aspect-ratio: 1/1; max-height: 460px; justify-self: center;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.trust-badge {
  position: absolute; left: 14px; top: 14px; background: rgba(14,26,37,.82);
  color: #fff; padding: 11px 16px; border-radius: 10px; font-size: .8rem; font-weight: 700;
  backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.12);
}

/* Sections */
section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  text-transform: uppercase; letter-spacing: 1.8px; font-size: .78rem; font-weight: 800;
  color: var(--teal-text); margin: 0 0 14px;
}
.eyebrow::before { content:''; width: 30px; height: 3px; border-radius: 2px; background: var(--teal); }
h1.page-title, h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 900; letter-spacing: 0; color: var(--navy-logo); margin: 0 0 14px; text-transform: uppercase; }
.lead { color: var(--gray-600); font-weight: 600; font-size: 1.08rem; max-width: 64ch; }
.bg-gray { background: var(--hueso); }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.card {
  background: #fff; border: 1px solid rgba(14,26,37,.08); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.card .icon {
  width: 54px; height: 54px; border-radius: 14px; background: var(--navy-logo);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.card .icon svg { width: 26px; height: 26px; color: var(--teal-bright); }
.card h3 { margin: 0 0 10px; font-size: 1.18rem; font-weight: 800; color: var(--navy-logo); }
.card p { color: var(--gray-600); margin: 0 0 18px; font-size: .96rem; font-weight: 500; }
.card a.link { display: inline-block; padding: 10px 0; color: var(--azul); font-weight: 800; text-decoration: none; font-size: .92rem; }
.card a.link:hover { text-decoration: underline; }

/* Companies grid */
.companies-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px;
}
.company-logo {
  background: #fff; border: 1px solid rgba(14,26,37,.08); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; padding: 26px 20px;
  min-height: 100px; box-shadow: 0 4px 16px rgba(14,26,37,.05);
  font-family: 'Public Sans', sans-serif; font-weight: 800; color: var(--navy-logo); font-size: .95rem;
}
.company-logo img { max-height: 46px; max-width: 100%; }

/* Team */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 44px; }
.team-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(14,26,37,.08); }
.team-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: top; }
.team-card .body { padding: 26px; }
.team-card h3 { margin: 0 0 4px; font-weight: 800; color: var(--navy-logo); }
.team-card .role { color: var(--teal-text); font-weight: 800; font-size: .85rem; margin-bottom: 14px; }
.team-card p { color: var(--gray-600); font-size: .94rem; font-weight: 500; }
.team-card .mat { color: var(--gray-600); font-size: .8rem; margin-top: 12px; font-weight: 700; }

/* CTA band */
.cta-band {
  background: var(--navy-logo); color: #fff; border-radius: var(--radius);
  padding: 48px; display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap; position: relative; overflow: hidden;
}
.cta-band::before { content:''; position:absolute; inset:0;
  background: radial-gradient(700px 400px at 90% 110%, rgba(53,179,201,.30), transparent 60%); }
.cta-band h2 { color: #fff; margin: 0 0 8px; position: relative; }
.cta-band p { color: rgba(255,255,255,.78); margin: 0; font-weight: 600; position: relative; }
.cta-band .btn { position: relative; }

/* Siniestros checklist */
.steps { display: grid; gap: 18px; margin: 32px 0; }
.step { display: flex; gap: 18px; background: #fff; border: 1px solid rgba(14,26,37,.08); border-radius: 14px; padding: 20px 22px; box-shadow: 0 4px 16px rgba(14,26,37,.05); }
.step .num {
  flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--teal);
  color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center;
}
.step p { margin: 0; color: var(--gray-900); font-weight: 500; }
.step strong { display: block; margin-bottom: 3px; color: var(--navy-logo); font-weight: 800; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.contact-card { background: #fff; border: 1px solid rgba(14,26,37,.08); border-radius: 14px; padding: 28px; text-align: center; box-shadow: 0 4px 16px rgba(14,26,37,.05); }
.contact-card .who { font-weight: 800; color: var(--navy-logo); margin-bottom: 6px; }
.contact-card .tel { color: var(--gray-600); margin-bottom: 16px; font-size: .95rem; font-weight: 600; }

/* Footer */
footer.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.62); padding: 52px 0 28px; margin-top: 40px; }
footer.site-footer .cols { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
footer.site-footer nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
footer.site-footer nav a { display: inline-block; padding: 10px 2px; }
footer.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; font-size: .9rem; font-weight: 600; }
footer.site-footer a:hover { color: var(--teal-bright); }
footer.site-footer .social { display: flex; gap: 12px; }
footer.site-footer .social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center; }
footer.site-footer .social a:hover { border-color: var(--teal-bright); background: rgba(255,255,255,.06); }
footer.site-footer .social svg { width: 18px; height: 18px; }
footer.site-footer .copy { margin-top: 32px; font-size: .8rem; color: rgba(255,255,255,.62); border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(0,0,0,.25);
  text-decoration: none;
}
.wa-float svg { width: 30px; height: 30px; color: #fff; }

/* Mobile */
@media (max-width: 880px) {
  nav.main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions .btn-outline { display: none; }
  .site-header .bar { padding: 12px 16px; gap: 8px; }
  .brand-text span { display: none; }
  .brand img { height: 36px; }
  .brand-text strong { font-size: .9rem; }
  .header-actions { gap: 6px; }
  .header-actions .btn { padding: 10px 14px; font-size: .82rem; }
  .menu-toggle { padding: 6px; }
  .hero .container { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; padding-bottom: 36px; }
  .hero p { margin-bottom: 22px; }
  .quick-quote { max-width: none; }
  .hero-photo { width: 100%; max-width: 420px; max-height: none; aspect-ratio: 1/1; }
  section { padding: 60px 0; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
  .wa-float svg { width: 27px; height: 27px; }
  .cards-3, .team-grid, .contact-grid { grid-template-columns: 1fr; }
  .companies-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { flex-direction: column; align-items: flex-start; }

  nav.main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 20px 28px; gap: 4px; box-shadow: 0 12px 24px rgba(14,26,37,.12);
  }
  nav.main-nav.open a { padding: 13px 4px; border-bottom: 1px solid rgba(14,26,37,.08); }
}
