/* ============================================================
   PÁGINAS DE SERVICIO — estilos complementarios a main.css
   Se cargan después de main.css en cada /<servicio>/index.html
   ============================================================ */

/* ---------- Hero de servicio ---------- */
.page-hero {
  padding: calc(var(--header-h) + 4.5rem) 0 5.5rem;
  background: linear-gradient(135deg, var(--navy) 0%, #0E5A8A 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(13,136,181,.14);
  top: -180px; right: -120px;
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: rgba(13,136,181,.10);
  bottom: -140px; left: -90px;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 2rem;
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .bc-sep { color: rgba(255,255,255,.28); }
.breadcrumb .bc-current { color: #fff; font-weight: 600; }

.page-hero h1 { color: #fff; max-width: 720px; margin-bottom: 1.25rem; }
.page-hero h1 .highlight { color: #4FC3F7; }
.page-hero .hero-sub { color: rgba(255,255,255,.75); max-width: 560px; }
.page-hero .hero-badge { margin-bottom: 1.75rem; }
.page-hero .trust-badge { color: rgba(255,255,255,.72); }
.page-hero .trust-badge svg { color: #4ADE80; }

/* ---------- Qué podemos resolver ---------- */
.resolver-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.resolver-item {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.resolver-item > svg {
  width: 20px; height: 20px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: .15rem;
}
.resolver-item h3 { font-size: .975rem; margin-bottom: .2rem; }
.resolver-item p  { font-size: .85rem; color: var(--text-2); line-height: 1.55; }

/* ---------- Proceso ---------- */
.proceso { background: var(--bg); }
.proceso-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.paso {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.75rem;
}
.paso-num {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.paso h3 { margin-bottom: .35rem; }
.paso p  { font-size: .9rem; color: var(--text-2); line-height: 1.6; }

/* ---------- Otros servicios ---------- */
.otros { background: var(--surface); }
.otros-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.otro {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.15rem 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.otro:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
}
.otro-icon {
  width: 40px; height: 40px;
  background: var(--blue-light);
  border-radius: var(--r-sm);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.otro-icon svg { width: 18px; height: 18px; }
.otro-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
  display: block;
}
.otro-desc { font-size: .78rem; color: var(--text-2); display: block; margin-top: .15rem; }
.otro-arrow {
  margin-left: auto;
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform .2s ease, color .2s ease;
}
.otro:hover .otro-arrow { transform: translateX(4px); color: var(--blue); }
.otro-arrow svg { width: 16px; height: 16px; }

/* ---------- Hero con imagen ---------- */
.page-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
}
.page-hero-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
  aspect-ratio: 16/10;
  background: var(--navy);
}
.page-hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Proof (páginas de servicio) ---------- */
.proof-panel .proof-p {
  color: rgba(255,255,255,.72);
  font-size: .95rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

/* ---------- Ask band (Cuéntanos qué sucede) ---------- */
.ask-band {
  background: linear-gradient(135deg, var(--navy) 0%, #0E5A8A 100%);
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}
.ask-band::before {
  content: '';
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: rgba(13,136,181,.12);
  top: -140px; right: -90px;
  pointer-events: none;
}
.ask-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.ask-inner .section-label { color: rgba(255,255,255,.55); }
.ask-inner .section-label::before { background: rgba(255,255,255,.35); }
.ask-inner h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: .75rem; }
.ask-inner p { color: rgba(255,255,255,.75); font-size: 1rem; line-height: 1.7; max-width: 560px; }
.ask-cta { display: flex; flex-direction: column; gap: .875rem; }

/* ---------- Casos (Podemos ayudarte si...) ---------- */
.casos { background: var(--surface); }
.casos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.caso {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  font-size: .95rem;
}
.caso svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; }

/* ---------- Helpers ---------- */
.bg-white { background: var(--bg) !important; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .resolver-grid { grid-template-columns: repeat(2, 1fr); }
  .otros-grid    { grid-template-columns: repeat(2, 1fr); }
  .casos-grid    { grid-template-columns: repeat(2, 1fr); }
  .ask-cta       { flex-direction: row; }
}
@media (min-width: 900px) {
  .resolver-grid { grid-template-columns: repeat(3, 1fr); }
  .proceso-grid  { grid-template-columns: repeat(3, 1fr); }
  .otros-grid    { grid-template-columns: repeat(3, 1fr); }
  .casos-grid    { grid-template-columns: repeat(3, 1fr); }
  .page-hero-inner { grid-template-columns: 1.05fr .95fr; gap: 3.5rem; }
  .page-hero-media { aspect-ratio: 4/3; }
  .ask-inner { grid-template-columns: 1.2fr .8fr; gap: 3rem; }
}
