/* ============================================================
   Reservoo — Design System compartit
   Basat en els estils de l'index.html original
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
  --navy:        #16243f;
  --navy-dark:   #0e1829;
  --navy-mid:    #1e3154;
  --red:         #f3343f;
  --red-hover:   #d92731;
  --ink:         #1f2937;
  --muted:       #9aa3af;
  --border:      #e6e8ec;
  --field-border:#dfe2e8;
  --card-shadow: 0 10px 40px rgba(22,36,63,.08);
  --bg:          #ffffff;
  --surface:     #f7f8fa;
  --gray-600:    #6b7280;
  --green:       #0e9f6e;
  --max-w:       1160px;
  --gutter:      24px;
  --sv:          80px;
  --r:           12px;
  --r-lg:        20px;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; color: var(--navy); margin: 0; }
h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.55rem, 3.5vw, 2.35rem); letter-spacing: -.02em; }
h3 { font-size: 1.1rem; letter-spacing: -.01em; }
h4 { font-size: .95rem; }
p  { margin: 0; }
a  { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--r);
  padding: 14px 28px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .05s, box-shadow .15s;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); color: #fff; }

.btn-ghost {
  background: rgba(255,255,255,.13);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.28);
}
.btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; }

.btn-outline { background: transparent; color: var(--red); border: 1.5px solid var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }

.btn-white { background: #fff; color: var(--red); font-weight: 800; }
.btn-white:hover { color: var(--red-hover); box-shadow: 0 8px 24px rgba(0,0,0,.18); transform: translateY(-2px); }

.btn-lg { font-size: 17px; padding: 16px 36px; border-radius: 14px; }

/* --- Skip link --- */
.skip-link {
  position: absolute;
  left: -10000px;
  top: 8px;
  padding: 8px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  z-index: 999;
  text-decoration: none;
}
.skip-link:focus { left: 16px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(22,36,63,.06);
  overflow: hidden;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.header-logo { height: 52px; width: auto; display: block; flex-shrink: 0; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 13px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.header-nav a:hover { background: var(--surface); color: var(--navy); }

.header-cta { flex-shrink: 0; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: all .2s; }

.mobile-nav {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  z-index: 99;
  max-height: calc(100vh - 68px);
  overflow-y: auto;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(22,36,63,.12);
  padding: 12px 20px 20px;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mobile-nav a { display: block; font-size: 15px; font-weight: 600; color: var(--ink); padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.mobile-nav a:hover { background: var(--surface); }
.mobile-nav .btn { width: 100%; justify-content: center; margin-top: 12px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 80px var(--gutter) 72px;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #fc6f78;
  background: rgba(243,52,63,.18);
  border: 1px solid rgba(243,52,63,.3);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 20px;
}
.hero-text h1 { color: #fff; margin-bottom: 20px; }
.hero-text p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.78);
  line-height: 1.72;
  margin-bottom: 36px;
  max-width: 530px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Phone mockup */
.hero-visual { display: flex; justify-content: center; }
.mock-phone {
  width: 260px;
  background: var(--navy-mid);
  border: 2px solid rgba(255,255,255,.1);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.05);
}
.mock-phone-bar {
  background: var(--red);
  padding: 14px 18px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mock-phone-bar svg { flex-shrink: 0; }
.mock-body {
  padding: 18px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 300px;
}
.mock-label { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.4); letter-spacing: .05em; text-transform: uppercase; margin-bottom: -4px; }
.mock-row {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  height: 38px;
}
.mock-row.w70 { width: 70%; }
.mock-row.w55 { width: 55%; }
.mock-row.btn { background: var(--red); height: 42px; margin-top: 6px; }
.mock-caption { font-size: 11px; color: rgba(255,255,255,.35); text-align: center; padding: 4px 0 2px; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: var(--sv) var(--gutter); }
.section-light  { background: var(--bg); }
.section-surface{ background: var(--surface); }
.section-navy   { background: linear-gradient(140deg, var(--navy) 0%, var(--navy-dark) 100%); }

.section-header { text-align: center; margin-bottom: 52px; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 14px; }
.section-header .lead {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.72;
}
.section-navy .section-header h2 { color: #fff; }
.section-navy .section-header .lead { color: rgba(255,255,255,.72); }
.section-navy .eyebrow { color: #fc6f78; }

/* ============================================================
   PAIN CARDS
   ============================================================ */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.pain-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  box-shadow: var(--card-shadow);
  display: flex;
  gap: 16px;
}
.pain-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(243,52,63,.08);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pain-card h3 { font-size: .975rem; margin-bottom: 6px; }
.pain-card p  { font-size: .875rem; color: var(--gray-600); line-height: 1.62; }

/* ============================================================
   SOLUTION CARDS
   ============================================================ */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.solution-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px 24px;
  box-shadow: var(--card-shadow);
  text-align: center;
}
.solution-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-hover) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.solution-card h3 { margin-bottom: 8px; }
.solution-card p  { font-size: .9rem; color: var(--gray-600); line-height: 1.65; }

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  box-shadow: var(--card-shadow);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(22,36,63,.12); }
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.feature-card h3 { font-size: 1rem; margin-bottom: 8px; }
.feature-card p  { font-size: .875rem; color: var(--gray-600); line-height: 1.62; }

/* ============================================================
   STEPS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 32px;
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 31px;
  left: calc(16.66% + 20px);
  right: calc(16.66% + 20px);
  height: 2px;
  background: var(--border);
}
.step { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-hover));
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(243,52,63,.28);
}
.step h3 { margin-bottom: 10px; }
.step p  { font-size: .875rem; color: var(--gray-600); line-height: 1.65; }

/* ============================================================
   SECTOR BLOCK (navy bg)
   ============================================================ */
.sector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
}
.sector-list { display: flex; flex-direction: column; gap: 22px; }
.sector-item { display: flex; gap: 14px; align-items: flex-start; }
.sector-item-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sector-item h4 { color: #fff; margin-bottom: 4px; font-size: 1rem; }
.sector-item p  { font-size: .875rem; color: rgba(255,255,255,.68); line-height: 1.55; }

.app-mockup {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.app-mockup-header {
  background: var(--red);
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 13px;
  color: rgba(255,255,255,.8);
}
.app-row:last-child { border-bottom: none; }
.app-row .time { font-weight: 700; color: #fff; min-width: 44px; }
.app-row .info { flex: 1; }
.app-row .info small { display: block; font-size: 11px; color: rgba(255,255,255,.45); margin-top: 1px; }
.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.badge-green  { background: rgba(14,159,110,.25); color: #34d399; }
.badge-yellow { background: rgba(245,158,11,.25); color: #fbbf24; }
.badge-blue   { background: rgba(59,130,246,.25);  color: #93c5fd; }
.badge-red    { background: rgba(243,52,63,.25);   color: #f87171; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 22px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  box-shadow: var(--card-shadow);
}
.t-stars { display: flex; gap: 3px; color: #f59e0b; margin-bottom: 12px; }
.testimonial-card blockquote { margin: 0 0 16px; font-size: .925rem; color: var(--ink); line-height: 1.68; font-style: italic; }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: var(--navy);
  flex-shrink: 0;
}
.t-name  { font-weight: 700; font-size: 13px; color: var(--navy); }
.t-role  { font-size: 12px; color: var(--muted); }
.placeholder-note {
  font-size: 11px;
  font-style: italic;
  color: var(--muted);
  margin-top: 8px;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(140deg, var(--red) 0%, var(--red-hover) 100%);
  color: #fff;
  text-align: center;
  padding: 72px var(--gutter);
}
.cta-banner h2 { color: #fff; margin-bottom: 14px; }
.cta-banner p  { color: rgba(255,255,255,.85); font-size: 1.075rem; max-width: 560px; margin: 0 auto 36px; line-height: 1.7; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
details.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
}
details.faq-item[open] { border-color: #cdd2dc; }
summary.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 700;
  font-size: .95rem;
  color: var(--navy);
  list-style: none;
  gap: 16px;
  user-select: none;
}
summary.faq-q::-webkit-details-marker { display: none; }
.faq-chevron { flex-shrink: 0; color: var(--muted); transition: transform .2s; }
details.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-a {
  padding: 0 22px 18px;
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.72;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-wrap {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--card-shadow);
  padding: 38px 38px 42px;
}
.contact-wrap form { display: flex; flex-direction: column; gap: 14px; }
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 14px 16px;
  border: 1.5px solid var(--field-border);
  border-radius: 10px;
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--muted); }
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(243,52,63,.12);
}
.form-field textarea { resize: vertical; min-height: 90px; }
.spam-check { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-submit {
  margin-top: 4px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--red);
  border: none;
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  transition: background .15s, transform .05s;
}
.form-submit:hover { background: var(--red-hover); }
.form-submit:active { transform: translateY(1px); }
.form-submit:disabled { opacity: .6; cursor: default; }
.form-msg { text-align: center; font-size: 14px; font-weight: 600; margin-top: 2px; min-height: 18px; }
.form-msg.ok  { color: #157a4a; }
.form-msg.err { color: var(--red); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--red); color: #fff; }
.footer-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px var(--gutter) 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-logo {
  height: 30px;
  width: auto;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
}
.footer-tagline { font-size: 13px; color: rgba(255,255,255,.72); line-height: 1.6; max-width: 260px; }
.footer-col h4 {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,.78); text-decoration: none; transition: color .15s; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,.15);
  padding: 14px var(--gutter);
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.6);
}
.footer-bar strong { font-weight: 800; color: rgba(255,255,255,.85); }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-hero {
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 64px var(--gutter) 48px;
  text-align: center;
}
.legal-hero h1 { color: #fff; margin-bottom: 10px; }
.legal-hero p { color: rgba(255,255,255,.72); font-size: 1rem; max-width: 640px; margin: 0 auto; }

.legal-content { max-width: 760px; margin: 0 auto; padding: 64px var(--gutter); }
.legal-updated { font-size: .82rem; color: var(--muted); margin: -8px 0 34px; }
.legal-content h2 { font-size: 1.35rem; margin-top: 42px; margin-bottom: 14px; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 { font-size: 1.05rem; margin-top: 26px; margin-bottom: 10px; }
.legal-content p { font-size: .95rem; line-height: 1.72; color: var(--gray-600); margin: 0 0 14px; }
.legal-content ul { margin: 0 0 14px; padding-left: 22px; }
.legal-content li { font-size: .95rem; line-height: 1.72; color: var(--gray-600); margin-bottom: 6px; }
.legal-content a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--red-hover); }
.legal-content strong { color: var(--ink); }
.legal-content table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: .875rem; }
.legal-content th, .legal-content td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--gray-600); }
.legal-content th { color: var(--navy); font-weight: 700; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .solution-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .sector-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --sv: 56px; }
  .header-nav { display: none; }
  .header-cta { display: none; }
  .burger { display: flex; }
  .solution-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 20px; }
  .steps-grid::before { display: none; }
  .footer-main { grid-template-columns: 1fr; gap: 24px; padding-bottom: 28px; }
  .contact-wrap { padding: 26px 20px 30px; }
  .hero { padding: 56px var(--gutter) 48px; }
  .hero-text p { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .legal-hero { padding: 48px var(--gutter) 36px; }
  .legal-content { padding: 40px var(--gutter) 56px; }
  .legal-content table { display: block; overflow-x: auto; }
}
