/* ============================================
   Star Seguros — shared site stylesheet
   ============================================ */

:root{
  --ink-navy:#232C39;
  --brand-slate:#45546B;
  --sand:#ECE7DD;
  --paper:#FFFFFF;
  --brand-orange:#FF6634;
  --ink-navy-70: rgba(35,44,57,0.72);
  --ink-navy-40: rgba(35,44,57,0.4);
  --line: rgba(35,44,57,0.14);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink-navy);
  font-family:'Poppins', sans-serif;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,.display{
  font-family:'Poppins', sans-serif;
  font-weight:700;
  letter-spacing:-0.01em;
  margin:0;
}
.mono{ font-family:'IBM Plex Mono', monospace; letter-spacing:0.02em; }
a{ color:inherit; }
img{ max-width:100%; display:block; }
.wrap{ max-width:1120px; margin:0 auto; padding:0 28px; }
section{ position:relative; }

/* ---------- Language toggle ---------- */
[data-es]{ display:inline; }
[data-en]{ display:none; }
body.lang-en [data-es]{ display:none; }
body.lang-en [data-en]{ display:inline; }
[data-es-block]{ display:block; }
[data-en-block]{ display:none; }
body.lang-en [data-es-block]{ display:none; }
body.lang-en [data-en-block]{ display:block; }

/* ---------- Header / nav ---------- */
header{ position:sticky; top:0; z-index:50; background:var(--paper); border-bottom:1px solid var(--line); }
.nav{ display:flex; align-items:center; justify-content:space-between; padding:16px 28px; max-width:1120px; margin:0 auto; gap:20px; }
.brand{ display:flex; align-items:center; gap:14px; flex-shrink:0; }
.brand img{ height:40px; width:auto; }
.brand-name{ font-size:15px; font-weight:600; padding-left:14px; border-left:1px solid var(--line); white-space:nowrap; }
.brand-tag{ display:inline-block; font-family:'IBM Plex Mono', monospace; font-size:11.5px; font-weight:600; color:var(--brand-orange); letter-spacing:0.04em; text-transform:uppercase; }
.brand-name small{ display:block; font-size:10.5px; font-weight:400; color:var(--ink-navy-70); letter-spacing:0.03em; margin-top:2px; }

.nav-links{ display:flex; align-items:center; gap:24px; }
.nav-links a{ text-decoration:none; font-size:14px; color:var(--ink-navy-70); white-space:nowrap; }
.nav-links a:hover, .nav-links a.active{ color:var(--ink-navy); font-weight:600; }
@media (max-width:980px){ .nav-links{ display:none; } }

.lang-toggle{ display:flex; border:1px solid var(--ink-navy); border-radius:20px; overflow:hidden; font-family:'IBM Plex Mono', monospace; font-size:12px; font-weight:600; flex-shrink:0; }
.lang-toggle button{ border:none; background:transparent; padding:6px 13px; cursor:pointer; color:var(--ink-navy); letter-spacing:0.03em; }
.lang-toggle button.active{ background:var(--ink-navy); color:var(--paper); }
.nav-actions{ display:flex; align-items:center; gap:14px; flex-shrink:0; }
.nav-cta{ background:var(--brand-orange); color:#fff; text-decoration:none; padding:9px 18px; border-radius:20px; font-size:14px; font-weight:600; white-space:nowrap; }
.nav-cta:hover{ background:#e6551f; }
.nav-cta.ghost{ background:transparent; color:var(--ink-navy); border:1px solid var(--ink-navy); }
.nav-cta.ghost:hover{ background:var(--ink-navy); color:#fff; }
@media (max-width:640px){ .nav-cta.ghost{ display:none; } }

/* ---------- Buttons ---------- */
.btn-row{ display:flex; gap:14px; flex-wrap:wrap; }
.btn{ display:inline-flex; align-items:center; gap:8px; padding:13px 24px; border-radius:24px; font-size:15px; font-weight:600; text-decoration:none; cursor:pointer; border:1px solid transparent; }
.btn-primary{ background:var(--brand-orange); color:#fff; }
.btn-primary:hover{ background:#e6551f; }
.btn-secondary{ background:transparent; color:var(--ink-navy); border-color:var(--ink-navy); }
.btn-secondary:hover{ background:var(--ink-navy); color:var(--paper); }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow{ font-family:'IBM Plex Mono', monospace; font-size:12px; font-weight:600; letter-spacing:0.08em; text-transform:uppercase; color:var(--brand-slate); display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.eyebrow::before{ content:''; width:22px; height:1px; background:var(--brand-slate); }
.section{ padding:80px 0; }
.section-head{ max-width:680px; margin-bottom:48px; }
.section-head h2{ font-size:clamp(26px,3.2vw,36px); line-height:1.15; }
.section-alt{ background:var(--sand); }

/* ---------- Hero (shared pattern, per-page bg tweak allowed) ---------- */
.hero{ padding:70px 0 56px; background:radial-gradient(circle at 88% 8%, rgba(255,102,52,0.08), transparent 55%), var(--paper); border-bottom:1px solid var(--line); }
.hero h1{ font-size:clamp(30px,4.2vw,48px); line-height:1.1; margin-bottom:20px; }
.hero p.lead{ font-size:18px; color:var(--ink-navy-70); max-width:560px; margin-bottom:28px; }

/* ---------- Cards ---------- */
.card-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
@media (max-width:860px){ .card-grid{ grid-template-columns:1fr; } }
.card{ background:var(--paper); border:1px solid var(--line); border-radius:4px; padding:28px 24px; display:flex; flex-direction:column; gap:14px; }
.card-tag{ font-family:'IBM Plex Mono', monospace; font-size:11px; color:var(--brand-slate); text-transform:uppercase; letter-spacing:0.06em; font-weight:600; }
.card h3{ font-size:20px; }
.card p{ font-size:14.5px; color:var(--ink-navy-70); margin:0; }

/* ---------- Trust bar ---------- */
.trust{ padding:32px 0; border-bottom:1px solid var(--line); }
.trust-row{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:24px; font-family:'IBM Plex Mono', monospace; font-size:13px; color:var(--ink-navy-70); }
.trust-row strong{ color:var(--ink-navy); font-size:15px; display:block; font-family:'Poppins',sans-serif; font-weight:700; }

/* ---------- Dark panel (stamp / testimonial / mission cards) ---------- */
.panel-dark{ background:var(--ink-navy); color:var(--paper); border-radius:6px; padding:32px 30px; }
.panel-dark .eyebrow{ color:var(--sand); }
.panel-dark .eyebrow::before{ background:var(--sand); }

/* ---------- Team ---------- */
.team-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
@media (max-width:860px){ .team-grid{ grid-template-columns:1fr; } }
.team-card{ text-align:left; }
.team-photo{ width:100%; aspect-ratio:1/1; border-radius:4px; background:var(--sand); display:flex; align-items:center; justify-content:center; margin-bottom:16px; overflow:hidden; }
.team-photo img{ width:100%; height:100%; object-fit:cover; }
.team-initial{ font-family:'Poppins', sans-serif; font-size:44px; font-weight:700; color:var(--brand-slate); }
.team-card h3{ font-size:17px; margin-bottom:2px; }
.team-role{ font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--brand-orange); text-transform:uppercase; letter-spacing:0.04em; margin-bottom:10px; display:block; }
.team-card p{ font-size:14px; color:var(--ink-navy-70); margin:0; }

/* ---------- Process ---------- */
.process{ display:grid; grid-template-columns:repeat(3,1fr); border:1px solid var(--line); border-radius:4px; overflow:hidden; }
@media (max-width:860px){ .process{ grid-template-columns:1fr; } }
.process-step{ padding:32px 26px; background:var(--paper); border-right:1px solid var(--line); }
.process-step:last-child{ border-right:none; }
@media (max-width:860px){ .process-step{ border-right:none; border-bottom:1px solid var(--line); } .process-step:last-child{ border-bottom:none; } }
.process-num{ font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--brand-orange); font-weight:700; display:block; margin-bottom:10px; }
.process-step h3{ font-size:17px; margin-bottom:8px; }
.process-step p{ font-size:14px; color:var(--ink-navy-70); margin:0; }

/* ---------- Why / feature list ---------- */
.why-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
@media (max-width:860px){ .why-grid{ grid-template-columns:1fr; } }
.why-item{ display:flex; gap:16px; padding:20px 0; border-top:1px solid var(--line); }
.why-item:nth-child(1),.why-item:nth-child(2){ border-top:none; }
@media (max-width:860px){ .why-item:nth-child(2){ border-top:1px solid var(--line); } }
.why-mark{ width:34px; height:34px; border-radius:50%; background:var(--ink-navy); color:var(--sand); flex-shrink:0; display:flex; align-items:center; justify-content:center; font-family:'Poppins',sans-serif; font-weight:700; font-size:15px; }
.why-item h3{ font-size:16px; margin-bottom:4px; }
.why-item p{ font-size:14px; color:var(--ink-navy-70); margin:0; }

/* ---------- Testimonial ---------- */
.testimonial blockquote{ font-family:'Poppins', sans-serif; font-size:22px; line-height:1.4; margin:0 0 20px; font-weight:600; }
.testimonial cite{ font-family:'IBM Plex Mono', monospace; font-size:12.5px; color:var(--sand); font-style:normal; }

/* ---------- FAQ ---------- */
.faq-item{ border-top:1px solid var(--line); }
.faq-item:last-child{ border-bottom:1px solid var(--line); }
.faq-q{ display:flex; justify-content:space-between; align-items:center; gap:20px; padding:20px 4px; cursor:pointer; font-size:15.5px; font-weight:600; }
.faq-q .plus{ font-family:'IBM Plex Mono', monospace; color:var(--brand-orange); font-size:18px; transition:transform 0.2s; flex-shrink:0; }
.faq-item.open .faq-q .plus{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height 0.25s ease; font-size:14.5px; color:var(--ink-navy-70); }
.faq-a-inner{ padding:0 4px 20px; }
.faq-item.open .faq-a{ max-height:280px; }

/* ---------- Forms ---------- */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:start; }
@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; } }
.form-card{ background:var(--paper); border:1px solid var(--line); border-radius:6px; padding:32px; }
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:12.5px; font-weight:600; margin-bottom:6px; font-family:'IBM Plex Mono', monospace; letter-spacing:0.02em; }
.field input, .field select, .field textarea{ width:100%; border:1px solid var(--line); border-radius:3px; padding:11px 12px; font-family:'Poppins', sans-serif; font-size:14.5px; background:#fff; color:var(--ink-navy); }
.field textarea{ resize:vertical; min-height:90px; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:520px){ .field-row{ grid-template-columns:1fr; } }
.form-submit{ width:100%; padding:14px; border:none; border-radius:24px; background:var(--brand-orange); color:#fff; font-size:15px; font-weight:600; cursor:pointer; margin-top:6px; }
.form-submit:hover{ background:#e6551f; }
.form-note{ font-size:12px; color:var(--ink-navy-40); margin-top:10px; }
.form-success, .form-error{ display:none; padding:13px 16px; border-radius:4px; font-size:14px; margin-bottom:18px; }
.form-success{ background:#EAF6EF; color:#1F6F3D; border:1px solid #BFE3CB; }
.form-error{ background:#FDECEB; color:#A83A25; border:1px solid #F3C6C0; }
.field-error{ display:block; font-size:12.5px; color:#A83A25; margin-top:5px; }

.call-card{ background:var(--brand-slate); color:#fff; border-radius:6px; padding:32px; }
.call-card h3{ font-size:20px; margin-bottom:10px; }
.call-card p{ font-size:14.5px; opacity:0.92; margin-bottom:22px; }
.call-card .btn{ background:#fff; color:var(--ink-navy); }
.call-card .btn:hover{ background:var(--sand); }

/* ---------- Footer ---------- */
footer{ background:var(--ink-navy); color:rgba(251,248,242,0.75); padding:44px 0 28px; }
.footer-grid{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:24px; margin-bottom:28px; }
.footer-grid h4{ color:var(--paper); font-family:'IBM Plex Mono', monospace; font-size:12px; text-transform:uppercase; letter-spacing:0.06em; margin-bottom:12px; }
.footer-grid a{ display:block; text-decoration:none; font-size:13.5px; color:rgba(251,248,242,0.75); margin-bottom:8px; }
.footer-grid a:hover{ color:#fff; }
.footer-logo{ background:#fff; display:inline-block; padding:8px 14px; border-radius:4px; margin-bottom:16px; }
.footer-logo img{ height:30px; width:auto; }
.footer-bottom{ border-top:1px solid rgba(251,248,242,0.15); padding-top:20px; font-size:12px; color:rgba(251,248,242,0.5); display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float{ position:fixed; bottom:24px; right:24px; z-index:60; width:56px; height:56px; border-radius:50%; background:#25D366; display:flex; align-items:center; justify-content:center; box-shadow:0 6px 18px rgba(0,0,0,0.22); text-decoration:none; }
.whatsapp-float:hover{ filter:brightness(1.05); }

::selection{ background:var(--brand-orange); color:#fff; }
:focus-visible{ outline:2px solid var(--brand-orange); outline-offset:2px; }
