/* =========================================
   SERVICIOS PAGE – Specific Styles
   ========================================= */

/* ===== PAGE HERO ===== */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, rgba(7, 9, 15, 0.5) 0%, rgba(7, 9, 15, 0.2) 50%, rgba(7, 9, 15, 0.8) 100%),
    url('../assets/servicios.png') center center / cover no-repeat;
  z-index: 0;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--clr-muted);
  margin-bottom: 24px;
}
.breadcrumb a {
  color: var(--clr-muted);
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--clr-gold-lt); }
.breadcrumb span { color: var(--clr-muted); }

.page-hero-title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  letter-spacing: -0.02em;
  color: var(--clr-text);
  margin-bottom: 20px;
}
.page-hero-title em {
  font-style: italic;
  background: linear-gradient(90deg, var(--clr-gold-lt), var(--clr-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero-desc {
  font-size: 1.05rem;
  color: var(--clr-muted);
  max-width: 800px;
  line-height: 1.75;
  margin-bottom: 40px;
}

/* Service tabs */
.service-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.stab {
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--clr-muted);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.03em;
}
.stab:hover,
.stab.active {
  background: rgba(122, 203, 234, 0.12);
  border-color: rgba(122, 203, 234, 0.3);
  color: var(--clr-gold-lt);
}

/* ===== SERVICE SECTIONS ===== */
.service-section { scroll-margin-top: 90px; }

.service-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
}
.service-header .section-label,
.pro-header .section-label {
  display: block;
  margin-top: 4px;
}
.service-header .section-title,
.pro-header .section-title {
  margin-bottom: 4px;
}
.service-header .section-label::before,
.pro-header .section-label::before {
  display: none; /* Quitamos la línea para que parezca más un subtítulo */
}
.service-category-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--scat) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--scat) 25%, transparent);
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 8px;
}
.service-category-icon svg { stroke: var(--scat); }

/* ===== SERVICE CARDS ===== */
.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.service-cards-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.service-card { position: relative; }
.sc-icon-wrap {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--sc-clr) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--sc-clr) 22%, transparent);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.sc-icon-wrap svg { stroke: var(--sc-clr); }

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 12px;
}
.service-card > p {
  font-size: 0.9rem;
  color: var(--clr-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.sc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sc-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  color: var(--clr-muted);
}
.sc-list li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--clr-gold);
  flex-shrink: 0;
}

/* ===== IA SHOWCASE ===== */
.ia-showcase {
  position: relative;
  margin-top: 48px;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(135deg, rgba(155,143,255,0.3), rgba(122, 203, 234, 0.2), rgba(189, 144, 211, 0.2));
}
.ia-bg-glow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at 50% 50%, rgba(122,203,234,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.ia-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: transparent;
}
.ia-card {
  background: var(--clr-surface);
  padding: 40px 36px;
  border-radius: calc(var(--radius-lg) - 2px);
}
.ia-card:first-child { border-radius: calc(var(--radius-lg) - 2px) 0 0 calc(var(--radius-lg) - 2px); }
.ia-card:last-child { border-radius: 0 calc(var(--radius-lg) - 2px) calc(var(--radius-lg) - 2px) 0; }
.ia-card--featured {
  background: linear-gradient(145deg, var(--clr-surface2), var(--clr-surface));
}

.ia-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.ia-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-text);
}
.ia-card > p {
  font-size: 0.9rem;
  color: var(--clr-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.ia-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ia-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.87rem;
  color: var(--clr-text);
}
.feat-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fd, var(--clr-gold));
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--fd, var(--clr-gold));
}

/* ===== WEB SECTION ===== */
.web-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 52px;
}

.web-features-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.web-feat-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.wfi-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255,122,122,0.1);
  border: 1px solid rgba(255,122,122,0.2);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.wfi-icon svg { stroke: #BD90D3; }
.web-feat-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 5px;
}
.web-feat-item p {
  font-size: 0.85rem;
  color: var(--clr-muted);
  line-height: 1.65;
}

/* Browser Mockup */
.web-mockup { position: relative; }
.mockup-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  background: #141a2e;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 1;
}
.mockup-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 4px 0;
  height: 36px;
  background: #0d1120;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.mockup-url {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 3px 40px;
  font-size: 0.7rem;
  color: var(--clr-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.mockup-controls {
  display: flex;
  height: 100%;
}
.mc-btn {
  width: 42px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all 0.2s;
  cursor: pointer;
}
.mc-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.mc-btn.mc-close:hover { background: #e81123; color: #fff; }

.mockup-body { padding: 20px; }
.mw-hero {
  background: linear-gradient(135deg, #0d1120, #111827);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 14px;
}
.mw-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.mw-logo { width: 60px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--clr-gold-lt), var(--clr-teal)); }
.mw-links { display: flex; gap: 8px; }
.mw-link { width: 24px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.12); }
.mw-headline { width: 75%; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.25); margin-bottom: 8px; }
.mw-headline--lg { width: 60%; height: 12px; background: linear-gradient(90deg, rgba(122, 203, 234, 0.6), rgba(189, 144, 211, 0.4)); margin-bottom: 10px; }
.mw-sub { width: 85%; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.1); margin-bottom: 5px; }
.mw-sub--short { width: 55%; }
.mw-cta-row { display: flex; gap: 8px; margin-top: 14px; }
.mw-cta { width: 70px; height: 20px; border-radius: 10px; background: var(--clr-gold); }
.mw-cta--ghost { background: transparent; border: 1px solid rgba(122, 203, 234, 0.4); }
.mw-cards-row { display: flex; gap: 10px; }
.mw-card { flex: 1; height: 50px; border-radius: 6px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07); }

/* Browser Mockup Mobile Overlay */
.mockup-mobile {
  position: absolute;
  bottom: -45px;
  right: -25px;
  width: 130px;
  height: 270px;
  z-index: 2;
  filter: drop-shadow(20px 20px 40px rgba(0,0,0,0.5));
  animation: floatMobile 6s ease-in-out infinite;
}
@keyframes floatMobile {
  0%, 100% { transform: translateY(0) rotateZ(-3deg); }
  50% { transform: translateY(-10px) rotateZ(-1deg); }
}
.s21-frame {
  width: 100%;
  height: 100%;
  background: #0a0e1a;
  border: 4px solid #1e263a;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.s21-camera {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #000;
  border-radius: 50%;
  z-index: 10;
  border: 1px solid rgba(255,255,255,0.05);
}
.s21-screen {
  flex: 1;
  padding: 30px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #0d1120;
}

/* Mobile Content Inner Icons/UI */
.smw-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.smw-logo { width: 40px; height: 6px; background: linear-gradient(90deg, var(--clr-gold-lt), var(--clr-teal)); border-radius: 3px; }
.smw-hamburger { display: flex; flex-direction: column; gap: 2px; align-items: center; }
.smw-hamburger span { width: 3px; height: 3px; background: rgba(255,255,255,0.4); border-radius: 50%; transition: var(--transition); }

.smw-hero {
  background: linear-gradient(135deg, #111827, #1a2235);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.04);
}
.smw-badge { width: 50%; height: 5px; background: rgba(122, 203, 234, 0.2); border-radius: 10px; margin-bottom: 4px; }
.smw-headline { width: 90%; height: 7px; background: rgba(255,255,255,0.2); border-radius: 4px; }
.smw-headline--lg { width: 75%; height: 10px; background: linear-gradient(90deg, rgba(122, 203, 234, 0.4), rgba(189, 144, 211, 0.3)); margin-bottom: 6px; }
.smw-sub { width: 100%; height: 3px; background: rgba(255,255,255,0.08); border-radius: 2px; }
.smw-sub--short { width: 70%; }
.smw-cta { width: 100%; height: 18px; background: var(--clr-gold); border-radius: 20px; margin-top: 6px; }

.smw-cards { display: flex; flex-direction: column; gap: 8px; }
.smw-card { height: 36px; background: rgba(255,255,255,0.04); border-radius: 6px; border: 1px solid rgba(255,255,255,0.06); }

.mockup-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62,198,153,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ===== CTA SECTION ===== */
.cta-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, rgba(122, 203, 234, 0.09) 0%, transparent 65%),
    linear-gradient(180deg, var(--clr-bg) 0%, var(--clr-bg2) 50%, var(--clr-bg) 100%);
  z-index: 0;
}
.cta-content { position: relative; z-index: 1; }
.cta-title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta-desc {
  font-size: 1.05rem;
  color: var(--clr-muted);
  margin-bottom: 36px;
}
.cta-btn { font-size: 1rem; padding: 16px 40px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .service-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .web-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  .service-cards-grid,
  .service-cards-grid.two-col { grid-template-columns: 1fr; }
  .ia-cards { grid-template-columns: 1fr; }
  .ia-card:first-child { border-radius: calc(var(--radius-lg) - 2px) calc(var(--radius-lg) - 2px) 0 0; }
  .ia-card:last-child { border-radius: 0 0 calc(var(--radius-lg) - 2px) calc(var(--radius-lg) - 2px); }
  .service-header { flex-direction: column; gap: 16px; }
}
@media (max-width: 600px) {
  .service-tabs { gap: 6px; }
  .stab { padding: 8px 16px; font-size: 0.82rem; }
  .ia-card { padding: 28px 22px; }
  .mockup-frame { transform: scale(0.75); transform-origin: top center; }
  .mockup-mobile { width: 100px; height: 210px; bottom: -35px; right: -15px; }
}
/* ===== PAQUETE PRO ===== */
.pro-package-card {
  position: relative;
  background: linear-gradient(145deg, var(--clr-surface), #0d1120);
  border: 1px solid rgba(122, 203, 234, 0.3);
  border-radius: var(--radius-lg);
  padding: 80px 60px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(122, 203, 234, 0.1);
}
.pro-glow {
  position: absolute;
  top: -150px; right: -150px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(122, 203, 234, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.pro-badge {
  position: absolute;
  top: 30px; right: 30px;
  background: linear-gradient(90deg, var(--clr-gold), var(--clr-teal));
  color: var(--clr-bg);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 15px rgba(189, 144, 211, 0.3);
}

.pro-header { margin-bottom: 60px; }
.pro-header .section-desc { max-width: 700px; }

.pro-grid {
  display: flex;
  align-items: center;
  gap: 40px;
}
.pro-item {
  flex: 1;
  text-align: center;
}
.pro-icon {
  width: 60px; height: 60px;
  background: color-mix(in srgb, var(--p-clr) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--p-clr) 25%, transparent);
  border-radius: 16px;
  display: grid; place-items: center;
  margin: 0 auto 20px;
  color: var(--p-clr);
}
.pro-item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--clr-text);
}
.pro-item p {
  font-size: 0.9rem;
  color: var(--clr-muted);
  line-height: 1.7;
}

.pro-divider-v {
  width: 1px;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--clr-border), transparent);
  flex-shrink: 0;
}

.btn-pro {
  padding: 18px 48px;
  font-size: 1.05rem;
  background: linear-gradient(135deg, var(--clr-gold), var(--clr-teal));
}

@media (max-width: 900px) {
  .pro-package-card { padding: 60px 30px; }
  .pro-grid { flex-direction: column; gap: 40px; }
  .pro-divider-v { width: 100%; height: 1px; background: linear-gradient(to right, transparent, var(--clr-border), transparent); }
}
