/* ═══════════════════════════════════════════════
   WEBLIFT Agency — services.css
   Página de Servicios completa y detallada
═══════════════════════════════════════════════ */

/* ── Hero de la página ── */
.page-hero {
  min-height: 50vh;
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  padding: 140px 5% 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 60% 50%, rgba(123,189,232,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(0,42,92,0.5) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(123,189,232,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,189,232,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.page-hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; width: 100%;
}

.page-hero-content .section-tag {
  opacity: 0;
  animation: fadeUp 0.7s 0.1s forwards;
}

.page-hero-content h1 {
  color: white;
  max-width: 700px;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.3s forwards;
}

.page-hero-content h1 em {
  font-style: normal;
  color: var(--blue);
}

.page-hero-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 560px;
  opacity: 0;
  animation: fadeUp 0.7s 0.5s forwards;
}

/* ── Sección servicios principales ── */
#services-main {
  background: var(--white);
  padding: 100px 5%;
}

/* Grid de 2 columnas para servicios detallados */
.services-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 4rem;
}

/* Tarjeta de servicio grande */
.service-detail-card {
  background: var(--white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-detail-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-hover));
  opacity: 0;
  transition: opacity var(--transition);
}

.service-detail-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(123,189,232,0.2);
}

.service-detail-card:hover::after { opacity: 1; }

/* Tarjeta destacada (ocupa 2 columnas) */
.service-detail-card.wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.service-detail-card.featured-card {
  background: var(--navy);
  border-color: var(--navy-light);
}

.service-detail-card.featured-card::after { opacity: 1; }

/* Ícono del servicio */
.service-detail-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: rgba(123,189,232,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.service-detail-icon i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
  margin: 0;
  padding: 0;
}

.service-detail-card.featured-card .service-detail-icon {
  background: rgba(123,189,232,0.2);
}

/* Encabezado de la tarjeta */
.service-detail-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.service-detail-header-text h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.service-detail-card.featured-card .service-detail-header-text h3 { color: white; }

.service-detail-header-text .service-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
}

.service-detail-card.featured-card .service-detail-header-text .service-price {
  color: var(--blue-hover);
}

/* Descripción */
.service-detail-desc {
  font-size: 0.925rem;
  line-height: 1.8;
  color: var(--text-body);
}

.service-detail-card.featured-card .service-detail-desc { color: var(--text-muted); }

/* Lista de incluidos */
.service-detail-includes {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-detail-includes h4 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.service-detail-card.featured-card .service-detail-includes h4 { color: var(--text-muted); }

.service-detail-includes li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-body);
}

.service-detail-card.featured-card .service-detail-includes li { color: var(--text-light); }

.check-circle {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(123,189,232,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  color: var(--blue);
  flex-shrink: 0;
}

.service-detail-card.featured-card .check-circle {
  background: rgba(123,189,232,0.25);
  color: var(--blue-hover);
}

/* CTA de la tarjeta */
.service-detail-cta {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.service-detail-card.featured-card .service-detail-cta {
  border-color: rgba(255,255,255,0.1);
}

.service-detail-time {
  font-size: 0.82rem;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 6px;
}

.service-detail-card.featured-card .service-detail-time { color: var(--text-muted); }

/* ── Sección proceso ── */
#services-process {
  background: var(--section-bg);
  padding: 100px 5%;
}

.process-timeline {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.timeline-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  position: relative;
}

.timeline-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 39px;
  top: 80px;
  bottom: -20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), rgba(123,189,232,0.1));
}

.timeline-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.timeline-num {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all var(--transition);
  flex-shrink: 0;
}

.timeline-step:hover .timeline-num {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 0 8px rgba(123,189,232,0.1);
}

.timeline-content {
  padding: 16px 0 48px;
}

.timeline-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.75;
}

.timeline-duration {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--blue);
  background: rgba(123,189,232,0.08);
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 500;
}

/* ── Sección comparación ── */
#services-compare {
  background: var(--white);
  padding: 100px 5%;
}

.compare-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 4rem;
}

.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.compare-table thead tr {
  background: var(--navy);
}

.compare-table thead th {
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.03em;
}

.compare-table thead th:not(:first-child) {
  text-align: center;
}

.compare-table thead th.highlight {
  background: var(--blue);
}

.compare-table tbody tr {
  border-bottom: 1px solid var(--border-card);
  transition: background var(--transition);
}

.compare-table tbody tr:last-child { border-bottom: none; }
.compare-table tbody tr:hover { background: var(--section-bg); }
.compare-table tbody tr:nth-child(even) { background: var(--section-bg); }
.compare-table tbody tr:nth-child(even):hover { background: #edf3fc; }

.compare-table td {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  color: var(--text-body);
  vertical-align: middle;
}

.compare-table td:first-child {
  font-weight: 500;
  color: var(--navy);
}

.compare-table td:not(:first-child) {
  text-align: center;
}

.compare-yes  { color: #1a7a4a; font-size: 1.1rem; }
.compare-no   { color: #c0c8d8; font-size: 1.1rem; }
.compare-blue { color: var(--blue); font-weight: 600; font-size: 0.875rem; }

/* ── FAQ sección ── */
#services-faq {
  background: var(--section-bg);
  padding: 100px 5%;
}

.faq-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item:hover { box-shadow: var(--shadow-card); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  transition: color var(--transition);
}

.faq-question:hover { color: var(--blue); }

.faq-icon {
  font-size: 1.1rem;
  color: var(--blue);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer { max-height: 300px; }

.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.8;
  border-top: 1px solid var(--border-card);
  padding-top: 1rem;
}

/* ── CTA final ── */
#services-cta {
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
  padding: 100px 5%;
}

#services-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(123,189,232,0.15), transparent);
  pointer-events: none;
}

.services-cta-inner {
  position: relative; z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.services-cta-inner h2 { color: white; margin-bottom: 1rem; }
.services-cta-inner p  { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 3rem; }

.services-cta-btns {
  display: flex; gap: 1rem;
  justify-content: center; flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .services-detail-grid { grid-template-columns: 1fr; }
  .service-detail-card.wide { grid-column: span 1; grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .page-hero { padding: 120px 5% 60px; }
  .timeline-step { grid-template-columns: 60px 1fr; gap: 1rem; }
  .timeline-num  { width: 60px; height: 60px; }
  .timeline-step:not(:last-child)::before { left: 29px; }
}
