
/* ============================================================
   SUBPÁGINAS — ESTILOS ADICIONALES
   Añadir al final del style.css existente
   ============================================================ */

/* Nav link activo */
.gm-nav-links a.gm-nav-active {
  color: var(--gm-teal-light) !important;
  border-bottom: 1px solid var(--gm-teal);
  padding-bottom: 2px;
}

/* ── PAGE HERO (banner superior de subpáginas) ─────────────── */
.gm-page-hero {
  background: var(--gm-navy);
  padding: 140px 5% 80px;
  position: relative;
  overflow: hidden;
}

.gm-page-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,180,160,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.gm-page-hero-inner {
  max-width: 760px;
}

.gm-page-hero h1 { color: var(--gm-white); margin-bottom: 16px; }
.gm-page-hero h1 em { color: var(--gm-teal); font-style: italic; }

.gm-page-hero-lead {
  font-family: var(--gm-serif) !important;
  font-size: 1.2rem; color: rgba(255,255,255,0.65);
  font-weight: 300; line-height: 1.75; max-width: 620px;
}

.gm-page-hero-img {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 45%;
  object-fit: cover; object-position: center top;
  opacity: 0.25;
}

/* ── BREADCRUMB ───────────────────────────────────────────── */
.gm-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 24px;
  font-size: 0.78rem; color: rgba(255,255,255,0.45);
  font-family: var(--gm-sans) !important;
}

.gm-breadcrumb a {
  color: rgba(255,255,255,0.45) !important;
  text-decoration: none !important;
  transition: color var(--gm-transition);
}

.gm-breadcrumb a:hover { color: var(--gm-teal) !important; }
.gm-breadcrumb span { color: var(--gm-teal); }

/* ── CONTENT WRAPPER ──────────────────────────────────────── */
.gm-content-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 5%;
}

.gm-content-wrap.narrow { max-width: 800px; }

/* ── DR. MAIZO PAGE ───────────────────────────────────────── */
.gm-doctor-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 72px; align-items: start;
  margin-bottom: 80px;
}

.gm-doctor-img {
  position: sticky; top: 100px;
}

.gm-doctor-img img {
  width: 100%; border-radius: 16px;
  object-fit: cover; object-position: center top;
  box-shadow: var(--gm-shadow-lg);
}

.gm-doctor-img-caption {
  background: var(--gm-navy);
  border-radius: 0 0 16px 16px;
  padding: 20px 24px;
  margin-top: -8px;
}

.gm-doctor-img-caption strong {
  display: block; color: var(--gm-white);
  font-size: 1rem; font-family: var(--gm-serif) !important;
  font-weight: 400;
}

.gm-doctor-img-caption span {
  font-size: 0.78rem; color: var(--gm-teal);
  text-transform: uppercase; letter-spacing: 0.08em;
}

.gm-doctor-content h2 {
  color: var(--gm-navy); margin-bottom: 16px; margin-top: 48px;
}

.gm-doctor-content h2:first-child { margin-top: 0; }
.gm-doctor-content h2 em { color: var(--gm-teal); font-style: italic; }

.gm-doctor-content p {
  color: #4a5568; line-height: 1.9;
  margin-bottom: 16px; font-size: 0.97rem;
}

/* Timeline de trayectoria */
.gm-timeline {
  margin: 32px 0;
  border-left: 2px solid var(--gm-teal-subtle);
  padding-left: 28px;
}

.gm-timeline-item {
  position: relative;
  margin-bottom: 28px;
}

.gm-timeline-item::before {
  content: '';
  position: absolute;
  left: -35px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gm-teal);
  border: 2px solid var(--gm-white);
  box-shadow: 0 0 0 3px var(--gm-teal-subtle);
}

.gm-timeline-year {
  font-size: 0.72rem; font-weight: 600;
  color: var(--gm-teal); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 4px;
  font-family: var(--gm-sans) !important;
}

.gm-timeline-item h3 {
  font-family: var(--gm-sans) !important;
  font-size: 0.96rem; font-weight: 600;
  color: var(--gm-navy); margin-bottom: 4px;
}

.gm-timeline-item p {
  font-size: 0.85rem; color: #6b7a99; line-height: 1.6; margin: 0 !important;
}

/* Awards grid */
.gm-awards-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px; margin: 32px 0;
}

.gm-award-card {
  background: var(--gm-off-white);
  border-radius: 12px; padding: 20px 22px;
  border-left: 3px solid var(--gm-gold);
  transition: all var(--gm-transition);
}

.gm-award-card:hover {
  background: var(--gm-navy);
  transform: translateY(-3px);
  box-shadow: var(--gm-shadow);
}

.gm-award-card:hover strong,
.gm-award-card:hover span { color: rgba(255,255,255,0.9) !important; }

.gm-award-card strong {
  display: block; font-size: 0.85rem;
  color: var(--gm-navy); font-weight: 600;
  margin-bottom: 4px; font-family: var(--gm-sans) !important;
  transition: color var(--gm-transition);
}

.gm-award-card span {
  font-size: 0.77rem; color: var(--gm-muted); line-height: 1.5;
  transition: color var(--gm-transition);
}

/* ── ESPECIALIDADES PAGE ──────────────────────────────────── */
.gm-esp-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 32px; margin-bottom: 60px;
}

.gm-esp-card {
  background: var(--gm-white);
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
  transition: all var(--gm-transition);
}

.gm-esp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--gm-shadow-lg);
}

.gm-esp-card-header {
  background: var(--gm-navy);
  padding: 28px 32px;
  display: flex; align-items: center; gap: 16px;
}

.gm-esp-card-num {
  font-family: var(--gm-serif) !important;
  font-size: 2.2rem; font-weight: 300;
  color: rgba(0,180,160,0.4); line-height: 1;
  flex-shrink: 0;
}

.gm-esp-card-header h3 {
  font-family: var(--gm-sans) !important;
  font-size: 1rem; font-weight: 600;
  color: var(--gm-white); margin: 0;
}

.gm-esp-card-body { padding: 28px 32px; }

.gm-esp-card-body p {
  color: #4a5568; font-size: 0.9rem;
  line-height: 1.8; margin-bottom: 16px;
}

.gm-esp-card-body ul {
  list-style: none; padding: 0; margin: 0;
}

.gm-esp-card-body ul li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.85rem; color: #4a5568;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.gm-esp-card-body ul li:last-child { border-bottom: none; }

.gm-esp-card-body ul li::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gm-teal);
  flex-shrink: 0; margin-top: 6px;
}

/* ── TRATAMIENTOS PAGE ────────────────────────────────────── */
.gm-trat-section {
  margin-bottom: 72px;
  padding-bottom: 72px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.gm-trat-section:last-child { border-bottom: none; }

.gm-trat-header {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 32px;
}

.gm-trat-icon {
  width: 56px; height: 56px;
  background: var(--gm-teal-subtle);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.gm-trat-icon svg {
  width: 26px; height: 26px;
  stroke: var(--gm-teal); fill: none; stroke-width: 1.5;
}

.gm-trat-header h2 {
  color: var(--gm-navy); margin: 0;
}

.gm-trat-header h2 em { color: var(--gm-teal); font-style: italic; }

.gm-trat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 32px;
}

.gm-trat-item {
  background: var(--gm-off-white);
  border-radius: 12px; padding: 22px 20px;
  transition: all var(--gm-transition);
  border-top: 3px solid transparent;
}

.gm-trat-item:hover {
  background: var(--gm-white);
  border-top-color: var(--gm-teal);
  box-shadow: var(--gm-shadow);
  transform: translateY(-3px);
}

.gm-trat-item h4 {
  font-family: var(--gm-sans) !important;
  font-size: 0.88rem; font-weight: 600;
  color: var(--gm-navy); margin-bottom: 8px;
}

.gm-trat-item p {
  font-size: 0.82rem; color: #6b7a99; line-height: 1.7; margin: 0;
}

/* ── BLOG PAGE ────────────────────────────────────────────── */
.gm-blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.gm-blog-card {
  background: var(--gm-white);
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
  transition: all var(--gm-transition);
}

.gm-blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--gm-shadow-lg);
}

.gm-blog-card-img {
  width: 100%; height: 200px;
  object-fit: cover; display: block;
  background: var(--gm-navy);
}

.gm-blog-card-img-placeholder {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, var(--gm-navy) 0%, var(--gm-navy-light) 100%);
  display: flex; align-items: center; justify-content: center;
}

.gm-blog-card-img-placeholder svg {
  width: 40px; height: 40px;
  stroke: rgba(0,180,160,0.4); fill: none; stroke-width: 1;
}

.gm-blog-card-body { padding: 24px 22px; }

.gm-blog-card-cat {
  font-size: 0.68rem; font-weight: 600;
  color: var(--gm-teal); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 8px;
  display: block; font-family: var(--gm-sans) !important;
}

.gm-blog-card-body h3 {
  font-size: 1.05rem; color: var(--gm-navy);
  margin-bottom: 10px; line-height: 1.35;
}

.gm-blog-card-body p {
  font-size: 0.84rem; color: #6b7a99;
  line-height: 1.7; margin-bottom: 18px;
}

.gm-blog-card-meta {
  display: flex; align-items: center;
  justify-content: space-between;
  font-size: 0.74rem; color: var(--gm-muted);
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.gm-blog-read-more {
  color: var(--gm-teal) !important;
  text-decoration: none !important;
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: gap var(--gm-transition);
  display: inline-flex; align-items: center; gap: 4px;
}

.gm-blog-read-more:hover { gap: 8px; }

/* CTA section (bottom of subpages) */
.gm-cta-strip {
  background: var(--gm-navy);
  padding: 80px 5%;
  text-align: center;
}

.gm-cta-strip h2 { color: var(--gm-white); margin-bottom: 16px; }
.gm-cta-strip h2 em { color: var(--gm-teal); font-style: italic; }
.gm-cta-strip p { color: rgba(255,255,255,0.6); margin-bottom: 36px; font-size: 1rem; }

.gm-cta-strip-actions {
  display: flex; justify-content: center;
  gap: 16px; flex-wrap: wrap;
}

/* Responsive subpages */
@media (max-width: 1024px) {
  .gm-doctor-grid { grid-template-columns: 1fr; }
  .gm-doctor-img { position: static; }
  .gm-esp-grid { grid-template-columns: 1fr; }
  .gm-trat-grid { grid-template-columns: repeat(2, 1fr); }
  .gm-blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .gm-page-hero { padding: 120px 5% 60px; }
  .gm-page-hero-img { display: none; }
  .gm-awards-grid { grid-template-columns: 1fr; }
  .gm-trat-grid { grid-template-columns: 1fr; }
  .gm-blog-grid { grid-template-columns: 1fr; }
}
