/* ZyvexWeby — página Servicios */

/* ===================== UTILIDADES ===================== */
.hidden { display: none !important; }

/* ===================== CABECERAS DE SECCIÓN ===================== */
.section-header {
  text-align: center;
  margin-bottom: 44px;
}

.section-tag {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(0.7rem, 1.8vw, 0.75rem);
  color: var(--primary);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--text) 55%, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin: 0 0 12px;
}

/* FIX: eliminado opacity:0 / animation que ocultaba el texto */
.section-description {
  color: var(--text-gray);
  max-width: 640px;
  margin: 0 auto;
  font-size: 0.97rem;
  line-height: 1.65;
}

/* ===================== SERVICIOS GRID ===================== */
.services {
  padding: 120px 7% 72px;
  background: var(--dark-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(45, 212, 191, 0.38);
  box-shadow: 0 22px 56px rgba(45, 212, 191, 0.1);
}

.service-icon {
  font-size: 2.6rem;
  display: block;
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.service-card p {
  color: var(--text-gray);
  line-height: 1.68;
  font-size: 0.93rem;
}

/* ===================== PAQUETES ===================== */
.packages {
  padding: 56px 7% 80px;
  background: var(--dark);
}

.packages .section-title {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.currency-toggle {
  display: flex;
  justify-content: center;
  margin: 18px 0 12px;
}

.currency-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  padding: 11px 24px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  font-size: 0.88rem;
  font-family: inherit;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 22px rgba(6, 182, 212, 0.3);
  min-width: 160px;
}

.currency-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(45, 212, 191, 0.35);
}

.btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 10px;
  border: 1.5px solid rgba(6, 182, 212, 0.3);
  transition: all 0.3s var(--ease-out);
  position: relative;
}

.btn-demo:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1140px;
  margin: 28px auto 0;
}
@media (max-width: 1000px) { .packages-grid { grid-template-columns: repeat(2, 1fr); } }

.package-card {
  background: rgba(6, 182, 212, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
  position: relative;
  overflow: hidden;
}

.package-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s;
}

.package-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 20px 50px rgba(6, 182, 212, 0.12);
}

.package-card:hover::after { opacity: 1; }

.package-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.package-emoji { font-size: 1.3rem; }

.package-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.package-price {
  font-weight: 800;
  font-size: 0.97rem;
  color: var(--primary);
  margin: 6px 0 10px;
}

.package-meta {
  color: var(--text-gray);
  font-size: 0.88rem;
  margin-bottom: 12px;
  line-height: 1.55;
}

.package-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: var(--text-gray);
  font-size: 0.86rem;
  line-height: 1.5;
  display: grid;
  gap: 5px;
}

.package-list li::before { content: none; }

/* FIX: eliminado opacity:0 */
.package-note {
  font-size: 0.87rem;
  color: var(--text-gray);
  margin-top: 10px;
  line-height: 1.5;
}

/* ===================== COMPARADOR ===================== */
.comparison {
  padding: 64px 7% 80px;
  background: var(--dark-light);
}

.comparison-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.comparison-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.83rem;
}

.comparison-table thead tr {
  background: rgba(6, 182, 212, 0.1);
}

.comparison-table th {
  padding: 12px 10px;
  text-align: left;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  white-space: normal;
  word-break: break-word;
}

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

.comparison-table th:nth-child(5) {
  background: rgba(45, 212, 191, 0.08);
}

.comparison-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.comparison-table tbody tr:last-child { border-bottom: none; }

.comparison-table tbody tr:hover {
  background: rgba(6, 182, 212, 0.05);
}

.comparison-table td {
  padding: 10px 10px;
  color: var(--text-gray);
  font-size: 0.82rem;
  vertical-align: middle;
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

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

.comparison-table td:nth-child(5) {
  background: rgba(45, 212, 191, 0.04);
}

.comparison-table tbody tr:last-child td {
  padding: 16px 10px;
}

/* Botones en tabla */
.table-btn {
  display: inline-block;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.78rem;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.table-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
}

.table-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(6, 182, 212, 0.42);
}

.table-btn-secondary {
  background: rgba(6, 182, 212, 0.08);
  color: var(--primary);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.table-btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

/* CTA Box */
.cta-box {
  text-align: center;
  margin-top: 24px;
  padding: 28px 24px;
  background: rgba(45, 212, 191, 0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(45, 212, 191, 0.18);
}

.cta-box p {
  color: var(--text-gray);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.cta-box p:last-of-type { margin-bottom: 16px; }

.cta-box a {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3);
}

.cta-box a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.42);
}

/* === PACKAGE CARD v2 — tarjetas compactas con plan selector === */
.package-card {
  display: flex;
  flex-direction: column;
}

.pkg-time {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-gray);
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.2);
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
  letter-spacing: 0;
}

.pkg-need {
  font-size: 0.84rem;
  font-style: italic;
  color: var(--text-gray);
  margin: 0 0 12px;
  line-height: 1.5;
}

.pkg-price-wrap {
  margin: 0 0 14px;
  padding: 11px 13px;
  background: rgba(6,182,212,0.06);
  border: 1px solid rgba(6,182,212,0.18);
  border-radius: 10px;
}

.pkg-base {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 9px;
  flex-wrap: wrap;
}

.pkg-base-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.pkg-once {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pkg-per {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-gray);
  margin-left: 2px;
}
.pkg-year {
  font-size: 0.78rem;
  color: var(--text-gray);
  margin: 7px 0 0;
}
.pkg-year strong { color: var(--primary); }

.pkg-plan-select {
  width: 100%;
  padding: 8px 30px 8px 11px;
  background: var(--dark);
  border: 1px solid rgba(6,182,212,0.25);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2306b6d4' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pkg-plan-select:hover { border-color: rgba(6,182,212,0.5); }
.pkg-plan-select:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(6,182,212,0.18); }

.pkg-addon-row {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-top: 7px;
  flex-wrap: wrap;
  gap: 4px;
}
.pkg-addon-row.visible { display: flex; }

.pkg-addon-text {
  font-size: 0.82rem;
  color: var(--text-gray);
  font-weight: 600;
}

.pkg-gift {
  font-size: 0.76rem;
  color: var(--primary);
  font-weight: 700;
  background: rgba(6,182,212,0.1);
  padding: 2px 8px;
  border-radius: 100px;
}

.pkg-includes {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: grid;
  gap: 4px;
}
.pkg-includes li {
  font-size: 0.85rem;
  color: var(--text-gray);
  padding-left: 18px;
  position: relative;
  line-height: 1.45;
}
.pkg-includes li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.78rem;
}

.pkg-excludes {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  margin: 0 0 8px;
  line-height: 1.4;
  padding-left: 16px;
  position: relative;
}
.pkg-excludes::before {
  content: "✕";
  position: absolute;
  left: 0; top: 0;
  font-size: 0.68rem;
  opacity: 0.55;
}

.pkg-forwhom {
  font-size: 0.82rem;
  color: var(--text-gray);
  margin: 0 0 12px;
  line-height: 1.45;
  padding: 7px 10px;
  background: rgba(255,255,255,0.025);
  border-radius: 7px;
  border-left: 2px solid rgba(6,182,212,0.3);
}

.pkg-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}
.pkg-actions .btn {
  flex: 1;
  text-align: center;
  font-size: 0.84rem;
  padding: 9px 12px;
  white-space: nowrap;
}

html.light-mode .pkg-plan-select { background: #fff; color: #0f172a; }
html.light-mode .pkg-excludes { color: rgba(0,0,0,0.35); }
html.light-mode .pkg-forwhom { background: rgba(0,0,0,0.03); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .services { padding: 90px 5% 56px; }
  .packages { padding: 40px 5% 60px; }
  .comparison { padding: 48px 5% 60px; }

  .services-grid { grid-template-columns: 1fr; }
  .packages-grid { grid-template-columns: 1fr; }

  .service-card { padding: 28px 22px; }

  .comparison-container { border-radius: 0; border-left: none; border-right: none; }
}

@media (max-width: 600px) {
  .services { padding: 80px 4% 48px; }
  .packages { padding: 36px 4% 48px; }
  .comparison { padding: 40px 4% 48px; }

  .service-card { padding: 24px 18px; }
  .service-icon { font-size: 2.2rem; }
  .service-card h3 { font-size: 1.05rem; }
  .service-card p { font-size: 0.88rem; }

  .package-card { padding: 22px 16px; }
  .cta-box { padding: 22px 16px; }
}

@media (max-width: 480px) {
  .section-title { font-size: 1.7rem; }
  .package-card { padding: 20px 14px; }

  .comparison-table th { font-size: 0.85rem; }
  .comparison-table td { font-size: 0.87rem; }

  .table-btn {
    font-size: 0.87rem;
    padding: 10px 16px;
  }

  .package-list { font-size: 0.9rem; }
}
