/* ============================================================
   Olmedo Abogados - Service Pages Stylesheet
   ============================================================ */

:root {
  --olmedo-primary:   #1B2E4B;
  --olmedo-secondary: #C4952A;
  --olmedo-text:      #2d3748;
  --olmedo-bg-alt:    #f7f8fc;
  --olmedo-white:     #ffffff;
  --olmedo-border:    #e2e8f0;
  --olmedo-shadow:    0 4px 20px rgba(27, 46, 75, 0.12);
}

/* ── LAYOUT ── */
.olmedo-page-wrap { font-family: inherit; }

.olmedo-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.olmedo-section       { padding: 80px 0; }
.olmedo-section--alt  { background: var(--olmedo-bg-alt); }

/* ── HERO ── */
.olmedo-hero {
  background: linear-gradient(135deg, var(--olmedo-primary) 0%, #2d4a6b 100%);
  color: var(--olmedo-white);
  padding: 100px 0;
  text-align: center;
}

.olmedo-hero__tag {
  display: inline-block;
  background: rgba(196,149,42,0.25);
  border: 1px solid var(--olmedo-secondary);
  color: var(--olmedo-secondary);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.olmedo-hero h1 {
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--olmedo-white);
  line-height: 1.2;
}

.olmedo-hero__intro {
  font-size: 18px;
  line-height: 1.75;
  max-width: 720px;
  margin: 0 auto 36px;
  opacity: .92;
}

.olmedo-hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── BOTONES ── */
.olmedo-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 30px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: all .25s ease;
}
.olmedo-btn--primary         { background: var(--olmedo-secondary); color: var(--olmedo-white); }
.olmedo-btn--primary:hover   { background: #a97d1a; color: var(--olmedo-white); }
.olmedo-btn--outline         { border: 2px solid rgba(255,255,255,.55); color: var(--olmedo-white); }
.olmedo-btn--outline:hover   { background: rgba(255,255,255,.1); border-color: var(--olmedo-white); color: var(--olmedo-white); }
.olmedo-btn--white           { background: var(--olmedo-white); color: var(--olmedo-primary); }
.olmedo-btn--white:hover     { background: #edf2f7; color: var(--olmedo-primary); }
.olmedo-btn--outline-white   { border: 2px solid rgba(255,255,255,.55); color: var(--olmedo-white); }
.olmedo-btn--outline-white:hover { background: rgba(255,255,255,.1); color: var(--olmedo-white); }

/* ── INTRO TEXT ── */
.olmedo-intro__content h2 { font-size: 30px; color: var(--olmedo-primary); margin-bottom: 20px; }
.olmedo-intro__content p  { font-size: 17px; line-height: 1.85; color: var(--olmedo-text); margin-bottom: 16px; }

/* ── SERVICES GRID ── */
.olmedo-services h2         { font-size: 32px; color: var(--olmedo-primary); text-align: center; margin-bottom: 12px; }
.olmedo-section__subtitle   { font-size: 17px; color: #64748b; text-align: center; margin-bottom: 48px; }

.olmedo-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.olmedo-service-card {
  background: var(--olmedo-white);
  border: 1px solid var(--olmedo-border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.olmedo-service-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--olmedo-secondary);
  transform: scaleY(0);
  transition: transform .3s ease;
}
.olmedo-service-card:hover { box-shadow: var(--olmedo-shadow); border-color: var(--olmedo-secondary); }
.olmedo-service-card:hover::before { transform: scaleY(1); }

.olmedo-service-card__icon { font-size: 38px; margin-bottom: 16px; }
.olmedo-service-card h3    { font-size: 20px; color: var(--olmedo-primary); margin-bottom: 10px; font-weight: 700; }
.olmedo-service-card p     { font-size: 15px; line-height: 1.7; color: var(--olmedo-text); margin-bottom: 16px; }
.olmedo-service-card__link { color: var(--olmedo-secondary); font-weight: 700; font-size: 14px; text-decoration: none; }
.olmedo-service-card__link:hover { text-decoration: underline; }

/* ── WHY US ── */
.olmedo-why h2      { font-size: 32px; color: var(--olmedo-primary); text-align: center; margin-bottom: 48px; }
.olmedo-why__grid   { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.olmedo-why__item   { padding: 24px; background: var(--olmedo-white); border-radius: 8px; border-left: 4px solid var(--olmedo-secondary); box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.olmedo-why__item strong { display: block; font-size: 17px; color: var(--olmedo-primary); margin-bottom: 8px; }
.olmedo-why__item p      { font-size: 15px; line-height: 1.65; color: var(--olmedo-text); margin: 0; }

/* ── FAQ ── */
.olmedo-faq h2      { font-size: 32px; color: var(--olmedo-primary); text-align: center; margin-bottom: 48px; }
.olmedo-faq__list   { max-width: 860px; margin: 0 auto; }
.olmedo-faq__item   { background: var(--olmedo-white); border: 1px solid var(--olmedo-border); border-radius: 8px; margin-bottom: 14px; overflow: hidden; }
.olmedo-faq__item h3 {
  font-size: 17px; color: var(--olmedo-primary); padding: 22px 56px 22px 26px;
  margin: 0; font-weight: 600; position: relative;
}
.olmedo-faq__item h3::after {
  content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 26px; color: var(--olmedo-secondary); font-weight: 300;
}
.olmedo-faq__answer           { padding: 0 26px 22px; border-top: 1px solid var(--olmedo-border); }
.olmedo-faq__answer p         { font-size: 15.5px; line-height: 1.82; color: var(--olmedo-text); margin: 16px 0 0; }
.olmedo-faq__answer a         { color: var(--olmedo-secondary); font-weight: 600; text-decoration: none; }
.olmedo-faq__answer a:hover   { text-decoration: underline; }

/* ── CTA BANNER ── */
.olmedo-cta {
  background: linear-gradient(135deg, var(--olmedo-primary) 0%, #2d4a6b 100%);
  color: var(--olmedo-white);
}
.olmedo-cta__inner    { text-align: center; }
.olmedo-cta h2        { font-size: 34px; color: var(--olmedo-white); margin-bottom: 14px; }
.olmedo-cta p         { font-size: 18px; opacity: .9; margin-bottom: 34px; }
.olmedo-cta__actions  { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── DETAIL / SUB-PAGE ── */
.olmedo-detail-content { max-width: 900px; margin: 0 auto; }
.olmedo-detail-content h2 { font-size: 28px; color: var(--olmedo-primary); margin: 42px 0 16px; }
.olmedo-detail-content h3 { font-size: 22px; color: var(--olmedo-primary); margin: 28px 0 12px; }
.olmedo-detail-content p  { font-size: 16px; line-height: 1.85; color: var(--olmedo-text); margin-bottom: 16px; }
.olmedo-detail-content ul { list-style: none; padding: 0; margin-bottom: 20px; }
.olmedo-detail-content ul li { padding: 8px 0 8px 30px; position: relative; font-size: 16px; color: var(--olmedo-text); line-height: 1.6; }
.olmedo-detail-content ul li::before { content: '✓'; position: absolute; left: 0; color: var(--olmedo-secondary); font-weight: 700; }

.olmedo-process          { background: var(--olmedo-bg-alt); border-radius: 12px; padding: 32px; margin: 32px 0; }
.olmedo-process h3       { color: var(--olmedo-primary); margin-top: 0; }
.olmedo-process-steps    { counter-reset: step; list-style: none; padding: 0; }
.olmedo-process-steps li { counter-increment: step; padding: 12px 0 12px 52px; position: relative; border-bottom: 1px solid var(--olmedo-border); font-size: 16px; color: var(--olmedo-text); }
.olmedo-process-steps li:last-child { border-bottom: none; }
.olmedo-process-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 10px;
  width: 32px; height: 32px; background: var(--olmedo-secondary);
  color: var(--olmedo-white); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}

/* ── ALERT / HIGHLIGHT BOX ── */
.olmedo-alert {
  background: #fff8e6;
  border-left: 4px solid var(--olmedo-secondary);
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--olmedo-text);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .olmedo-section  { padding: 56px 0; }
  .olmedo-hero     { padding: 70px 0; }
  .olmedo-hero h1  { font-size: 26px; }
  .olmedo-hero__intro { font-size: 16px; }
  .olmedo-services__grid, .olmedo-why__grid { grid-template-columns: 1fr; }
  .olmedo-cta h2   { font-size: 26px; }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .olmedo-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
