/* ============================================================
   About Us page — Blueprint Spain
   Editorial layout, aligned with site brand (navy / gold).
   ============================================================ */

:root {
  --bp-navy: #004C80;
  --bp-navy-dark: #003d66;
  --bp-ink: #06324f;
  --bp-gold: #FFB751;
  --bp-gold-deep: #e0a53d;
  --bp-green: #3a9d7e;
  --bp-body: #3a3f45;
  --bp-muted: #9aa0a6;
  --bp-line: #e6e8eb;
}

/* The about page controls its own spacing; clear the global main padding. */
body main.about-page {
  padding: 0 !important;
  margin: 0 !important;
}

.about-page {
  font-family: 'Roboto', sans-serif;
  color: var(--bp-body);
}

.about-page .about-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Section eyebrow (gold dash + label) ---- */
.about-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--bp-muted);
  text-transform: uppercase;
}
.about-eyebrow::before {
  content: "";
  width: 40px;
  height: 3px;
  background: var(--bp-gold);
  border-radius: 2px;
}

/* ============================================================
   HERO
   ============================================================ */
.about-hero {
  padding: 92px 0 40px;
}

/* ---- Credibility header (founders + Google rating on one line) ---- */
.about-credibility {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin: 40px 0 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--bp-line);
}
/* stacked Google + Facebook ratings, right-aligned to the founder baseline */
.about-ratings {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  margin-bottom: 4px;
}

/* Founders row */
.founders-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.founders-avatars {
  display: flex;
  flex-shrink: 0;
}
.founder-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  background: #e8edf1;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 76, 128, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}
.founder-avatar + .founder-avatar {
  margin-left: -8px;
}
.founder-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}
.founders-caption strong {
  display: block;
  color: var(--bp-navy);
  font-size: 16px;
  font-weight: 700;
}
.founders-caption span {
  display: block;
  font-size: 14px;
  color: var(--bp-muted);
  margin-top: 2px;
}

/* Two-column body */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Bold blue lead (top of left column) */
.about-intro {
  color: var(--bp-navy);
  font-size: 24px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
}

/* Body copy */
.about-body p {
  font-size: 16.5px;
  line-height: 1.85;
  color: #3d434b;
  margin: 0 0 20px;
}
.about-body p:last-child { margin-bottom: 0; }

/* Right column nudged down so it reads beside the body, not the lead */
.about-grid-right { padding-top: 6px; }

/* ---- Rating badges (Google + Facebook), matching hero widget ---- */
.about-rating {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  width: fit-content;
  padding: 7px 13px;
  background: #ffffff;
  border: 1px solid #e6eaee;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.about-rating:hover {
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
  transform: translateY(-1px);
  border-color: #d7dde3;
}
.about-rating .rating-logo {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}
.about-rating .rating-score {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: #1f2937;
}
.about-rating .rating-score-fb {
  color: #1877F2;
}
.about-rating .stars {
  display: inline-flex;
  gap: 2px;
}
.about-rating .stars svg {
  width: 15px;
  height: 15px;
  fill: #fbbc04;
}
.about-rating:focus-visible {
  outline: 2px solid rgba(0, 76, 128, 0.5);
  outline-offset: 3px;
}

/* ============================================================
   GESTOR BANNER
   ============================================================ */
.gestor-section { padding: 12px 0 20px; }

.gestor-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 44px;
  padding: 52px 56px;
  border-radius: 22px;
  background:
    radial-gradient(120% 140% at 88% 50%, rgba(20, 86, 134, 0.85) 0%, rgba(2, 35, 55, 0) 60%),
    linear-gradient(120deg, #013353 0%, #00263f 100%);
  box-shadow: 0 24px 50px rgba(0, 38, 63, 0.28);
}

/* Official Colegio de Gestores seal */
.gestor-badge {
  flex-shrink: 0;
  width: 142px;
  height: 142px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 183, 81, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gestor-badge-img {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.32);
}

.gestor-text .gestor-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--bp-gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.gestor-text h2 {
  color: #ffffff;
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.gestor-text p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16.5px;
  line-height: 1.7;
  margin: 0;
  max-width: 640px;
}

/* ============================================================
   WHAT SETS US APART
   ============================================================ */
.differentiators { padding: 64px 0 72px; }
.differentiators .about-eyebrow { margin-bottom: 36px; }

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.diff-card { padding-top: 22px; }
.diff-card .diff-rule {
  width: 100%;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 22px;
}
/* Accent lines — one colour each (green, terracotta, plum); no blue, no yellow */
.diff-yellow .diff-rule { background: #3a9d7e; } /* green */
.diff-blue   .diff-rule { background: #c2674a; } /* terracotta */
.diff-green  .diff-rule { background: #8d4e6a; } /* plum */

.diff-card h3 {
  color: var(--bp-navy);
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 12px;
}
.diff-card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--bp-body);
  margin: 0;
}

/* ============================================================
   ENTRANCE ANIMATION
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .about-anim {
    opacity: 0;
    transform: translateY(18px);
    animation: aboutFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .about-anim.d1 { animation-delay: 0.05s; }
  .about-anim.d2 { animation-delay: 0.15s; }
  .about-anim.d3 { animation-delay: 0.25s; }
  .about-anim.d4 { animation-delay: 0.35s; }
}
@keyframes aboutFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .about-grid-right { padding-top: 0; }
  .about-intro { font-size: 23px; margin-bottom: 22px; }
  .gestor-banner { gap: 32px; padding: 40px; }
  .diff-grid { gap: 36px; }
}

@media (max-width: 768px) {
  .about-page .about-inner { padding: 0 20px; }
  .about-hero { padding: 84px 0 46px; }

  /* stack founders above ratings, all left-aligned */
  .about-credibility {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    margin: 30px 0 30px;
    padding-bottom: 26px;
  }
  .about-ratings {
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 0;
  }
  .about-intro { font-size: 22px; line-height: 1.5; margin-bottom: 28px; }
  .about-body p { font-size: 16px; }

  .gestor-section { padding: 16px 0; }
  .gestor-banner {
    flex-direction: column;
    text-align: center;
    padding: 38px 26px;
    gap: 26px;
    border-radius: 18px;
  }
  .gestor-text p { margin: 0 auto; }

  .differentiators { padding: 50px 0 64px; }
  .diff-grid { grid-template-columns: 1fr; gap: 34px; }
  .diff-card { padding-top: 18px; }
}

@media (max-width: 420px) {
  .founders-row { gap: 14px; }
  .founder-avatar { width: 70px; height: 70px; }
  .gestor-text h2 { font-size: 25px; }
}
