/*
 * Páginas interiores de la propuesta corporativa.
 * Extiende apple.css sin alterar el contenido ni el sitio original.
 */

body.inner-page {
  position: relative;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text-soft);
  -webkit-font-smoothing: antialiased;
}

/* La malla es ambiental y siempre permanece detrás del contenido. */
body.inner-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.inner-page .inner-main {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 70vh;
  padding: 154px clamp(20px, 3.35vw, 64px) 112px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 247, 106, .045), transparent 38%),
    transparent;
}

.inner-page .interface-container,
.inner-page .legal-article {
  position: relative;
  width: 100%;
  max-width: calc(var(--container) - clamp(20px, 3.35vw, 64px) - clamp(20px, 3.35vw, 64px));
  margin: 0 auto;
}

.inner-page .inner-hero {
  position: relative;
  max-width: none;
  margin: 0 auto;
  padding: 0 0 74px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.inner-page .interface-hero { max-width: none; }

.inner-page .interface-container > .legal-local-nav + .inner-hero {
  padding-top: 48px;
}

.inner-page .inner-hero h1 {
  max-width: 960px;
  margin: 20px auto 24px;
  color: var(--text);
  font-family: var(--display) !important;
  font-size: clamp(42px, 5vw, 66px) !important;
  font-weight: 700 !important;
  letter-spacing: -.052em !important;
  line-height: 1.06 !important;
  text-wrap: balance;
}

.inner-page .legal-page .inner-hero h1,
.inner-page.legal-page .inner-hero h1 {
  font-size: clamp(40px, 4.5vw, 58px) !important;
}

.inner-page .inner-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-soft) !important;
  font-size: 18px !important;
  line-height: 1.65;
  letter-spacing: -.012em;
}

.inner-page .inner-hero > small {
  display: block;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

.inner-page .inner-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent) !important;
  box-shadow: none;
  font-family: var(--display) !important;
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.4;
  text-transform: none;
}

/* Encabezados uniformes: etiqueta a la izquierda y título centrado. */
.inner-page .inner-hero > .inner-kicker {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.inner-page .inner-hero > h1 {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}

.inner-page .interface-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.inner-page .interface-actions a,
.inner-page .inner-secondary-button,
.inner-page .inner-cta > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 24px !important;
  border-radius: 999px !important;
  font-family: var(--display) !important;
  font-size: 15px !important;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.4;
  text-align: center;
  text-transform: none;
}

.inner-page .inner-secondary-button {
  border: 1px solid var(--border-strong) !important;
  background: rgba(255, 255, 255, .065) !important;
  color: var(--text) !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 100ms ease-out, background-color 220ms ease, border-color 220ms ease !important;
}

.inner-page .inner-secondary-button:hover {
  border-color: rgba(255, 255, 255, .25) !important;
  background: rgba(255, 255, 255, .11) !important;
  transform: translateY(-1px);
}

.inner-page .inner-secondary-button:active { transform: scale(.97); }

.inner-page .interface-section,
.inner-page .legal-section {
  position: relative;
  isolation: isolate;
  scroll-margin-top: 112px;
}

.inner-page .interface-section {
  margin: 0;
  padding: 76px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.inner-page .interface-section::before,
.inner-page .legal-section::before { content: none; }

.inner-page .interface-section h2,
.inner-page .legal-section h2,
.inner-page .inner-cta h2 {
  margin: 15px 0 22px;
  color: var(--text);
  font-family: var(--display) !important;
  font-size: clamp(32px, 3.5vw, 44px) !important;
  font-weight: 650 !important;
  letter-spacing: -.042em !important;
  line-height: 1.12 !important;
  text-wrap: balance;
}

.inner-page .interface-section > p,
.inner-page .legal-section > p,
.inner-page .inner-cta > p {
  max-width: 850px;
  margin: 0 0 26px;
  color: var(--text-soft);
  font-size: 16px !important;
  line-height: 1.75;
}

.inner-page .interface-section h3,
.inner-page .interface-flow strong,
.inner-page .interface-steps h3 {
  color: var(--text);
  font-family: var(--display) !important;
  font-size: 19px;
  font-weight: 600 !important;
  letter-spacing: -.025em;
  line-height: 1.35;
}

.inner-page .interface-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.inner-page .interface-card {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--border) !important;
  border-radius: 22px !important;
  background: var(--card) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .1) !important;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  transition: transform 420ms var(--ease), border-color 250ms ease, background-color 250ms ease, box-shadow 250ms ease;
}

.inner-page .interface-card:hover {
  border-color: var(--border-strong) !important;
  background: rgba(31, 31, 34, .9) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .18) !important;
  transform: translateY(-3px);
}

.inner-page .interface-card code {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--display) !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}

.inner-page .interface-card h3 { margin: 0 0 12px; }
.inner-page .interface-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px !important;
  line-height: 1.7;
}

.inner-page .interface-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.inner-page .interface-split > div {
  min-width: 0;
  padding: 28px 0;
  border-top: 1px solid var(--border-strong);
  background: transparent;
}

.inner-page .interface-split h3 { margin: 0 0 12px; }
.inner-page .interface-split p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px !important;
  line-height: 1.7;
}

.inner-page .interface-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}

.inner-page .interface-flow > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
}

.inner-page .interface-flow > i { display: none; }
.inner-page .interface-flow small {
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.inner-page .interface-flow strong { margin-bottom: 7px; }
.inner-page .interface-flow span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.inner-page .interface-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 30px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

.inner-page .interface-checklist li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 15px !important;
}

.inner-page .interface-checklist li::before {
  content: "✓";
  position: absolute;
  top: 14px;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.inner-page .interface-steps {
  display: grid;
  gap: 0;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.inner-page .interface-steps > li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
}

.inner-page .interface-steps > li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--accent-dark);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.inner-page .interface-steps h3 { margin: 0 0 8px; }
.inner-page .interface-steps p {
  max-width: 820px;
  margin: 0;
  color: var(--text-soft);
  font-size: 15px !important;
  line-height: 1.7;
}

.inner-page .legal-table-wrap {
  width: 100%;
  margin: 30px 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: none;
  -webkit-overflow-scrolling: touch;
}

.inner-page .legal-table-wrap table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}

.inner-page .legal-table-wrap th,
.inner-page .legal-table-wrap td {
  padding: 17px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.inner-page .legal-table-wrap th {
  background: rgba(255, 255, 255, .035);
  color: var(--text);
  font-weight: 600;
}

.inner-page .legal-table-wrap tr:last-child td { border-bottom: 0; }

.inner-page .inner-cta {
  position: relative;
  isolation: isolate;
  margin-top: 80px;
  padding: 58px 46px;
  border: 1px solid var(--border) !important;
  border-radius: 28px !important;
  background: rgba(28, 28, 30, .76) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .18) !important;
  text-align: center;
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
}

.inner-page .inner-cta::before { content: none; }
.inner-page .inner-cta h2 { margin: 16px auto 20px; }
.inner-page .inner-cta > p { margin: 0 auto 28px; }
.inner-page .inner-cta .interface-actions { margin-top: 28px; }

/* Formularios personalizados de las páginas de servicios. */
.inner-page .service-contact { background: transparent !important; }
.inner-page .form-service-context {
  margin: 0 0 26px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 247, 106, .22);
  border-radius: 14px;
  background: rgba(0, 247, 106, .045);
}
.inner-page .form-service-context span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}
.inner-page .form-service-context strong {
  display: block;
  color: var(--text);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.015em;
  line-height: 1.45;
}
.inner-page .service-contact > .text-center {
  max-width: 850px;
  margin: 0 auto 42px;
  text-align: center;
}
.inner-page .service-contact > .text-center h2 {
  margin-left: auto;
  margin-right: auto;
}
.inner-page .service-contact > .text-center > p {
  max-width: 760px;
  margin: 0 auto;
}
.inner-page .service-contact .contact-form-wrap {
  max-width: 880px;
  margin: 0 auto;
}
.inner-page .service-contact .contact-form-card {
  padding: 36px;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .16);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
@media (max-width: 767px) {
  .inner-page .service-contact .contact-form-card { padding: 24px; border-radius: 20px; }
}

/* Preguntas frecuentes de las páginas de servicios. */
.inner-page .telephony-faq {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.inner-page .telephony-faq details {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  transition: border-color 220ms ease, background-color 220ms ease;
}

.inner-page .telephony-faq details:hover { background: var(--surface-hover); }
.inner-page .telephony-faq details[open] { border-color: rgba(0, 247, 106, .3); }

.inner-page .telephony-faq summary {
  position: relative;
  min-height: 28px;
  padding-right: 34px;
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.018em;
  line-height: 1.45;
  list-style: none;
}

.inner-page .telephony-faq summary::-webkit-details-marker { display: none; }
.inner-page .telephony-faq summary::after {
  content: "+";
  position: absolute;
  top: -2px;
  right: 0;
  color: var(--muted);
  font-size: 23px;
  font-weight: 400;
  transition: transform 300ms var(--ease-standard);
}
.inner-page .telephony-faq details[open] summary::after { transform: rotate(45deg); }
.inner-page .telephony-faq details > p {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 15px !important;
  line-height: 1.75;
}
.inner-page .telephony-faq details[open] > p { animation: apple-detail-in 280ms var(--ease); }

/* Documentos legales: lectura cómoda y navegación local desplazable. */
.inner-page .legal-local-nav {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 28px 0 40px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(17, 17, 19, .8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.inner-page .interface-container > .legal-local-nav {
  justify-content: flex-start;
  width: fit-content;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--muted);
  font-size: 13px;
}

.inner-page .interface-container > .legal-local-nav a { padding: 8px 0; }
.inner-page .interface-container > .legal-local-nav a::after {
  content: "/";
  margin-left: 10px;
  color: #52525b;
}

.inner-page .legal-local-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
  transition: color 180ms ease, background-color 180ms ease;
}

.inner-page .legal-local-nav a:hover {
  background: rgba(255, 255, 255, .07);
  color: var(--text);
}

.inner-page .legal-section {
  margin: 0 0 18px;
  padding: 30px 32px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(17, 17, 19, .82);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .08);
}

.inner-page .legal-section h2 {
  margin: 0 0 18px;
  font-size: clamp(23px, 2.5vw, 29px) !important;
  letter-spacing: -.032em !important;
}

.inner-page .legal-section p,
.inner-page .legal-section li {
  color: var(--text-soft);
  font-size: 15px !important;
  line-height: 1.8;
}

.inner-page .legal-section p:last-child { margin-bottom: 0; }
.inner-page .legal-section ul { margin: 8px 0 20px; padding-left: 22px; }
.inner-page .legal-section li { margin: 8px 0; padding-left: 4px; }
.inner-page .legal-section li::marker { color: var(--accent); }
.inner-page .legal-section a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.inner-page .legal-section strong { color: var(--text); font-weight: 600; }
.inner-page .legal-section code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .07);
  color: var(--text);
  font-size: .9em;
  overflow-wrap: anywhere;
}
.inner-page .legal-section .legal-table-wrap { border-radius: 14px; }
.inner-page .legal-section .legal-table-wrap table { min-width: 580px; }

.inner-page footer { position: relative; z-index: 1; }
.inner-page [aria-current="page"] { color: var(--accent) !important; }

@media (max-width: 900px) {
  .inner-page .interface-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inner-page .interface-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  body.inner-page::before { background-size: 56px 56px; }
  .inner-page .inner-main { padding: 116px 20px 76px; }
  .inner-page .inner-hero { padding-bottom: 54px; }
  .inner-page .interface-container > .legal-local-nav + .inner-hero { padding-top: 34px; }
  .inner-page .inner-hero h1,
  .inner-page.legal-page .inner-hero h1 {
    margin-top: 17px;
    font-size: clamp(35px, 10vw, 46px) !important;
    letter-spacing: -.047em !important;
  }
  .inner-page .inner-hero p { font-size: 16px !important; }
  .inner-page .interface-actions { flex-direction: column; align-items: stretch; margin-top: 28px; }
  .inner-page .interface-actions a,
  .inner-page .inner-cta > a { width: 100%; }
  .inner-page .interface-section { padding: 58px 0; }
  .inner-page .interface-section h2,
  .inner-page .inner-cta h2 { font-size: clamp(30px, 8.5vw, 39px) !important; }
  .inner-page .interface-section > p,
  .inner-page .inner-cta > p { font-size: 15px !important; }
  .inner-page .interface-grid,
  .inner-page .interface-split,
  .inner-page .interface-checklist { grid-template-columns: minmax(0, 1fr); }
  .inner-page .interface-grid { gap: 12px; margin-top: 26px; }
  .inner-page .interface-card { padding: 24px; border-radius: 20px !important; }
  .inner-page .interface-split { gap: 0; }
  .inner-page .interface-split > div { padding: 23px 0; }
  .inner-page .interface-flow { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .inner-page .interface-flow > div { padding: 22px; }
  .inner-page .interface-flow small { margin-bottom: 12px; }
  .inner-page .interface-checklist { gap: 0; }
  .inner-page .interface-steps > li { grid-template-columns: 44px minmax(0, 1fr); gap: 15px; padding: 22px 0; }
  .inner-page .interface-steps > li > span { width: 42px; height: 42px; }
  .inner-page .inner-cta { margin-top: 58px; padding: 38px 22px; border-radius: 24px !important; }
  .inner-page .legal-local-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin: 24px -18px 28px;
    padding: 8px 18px;
    overflow-x: auto;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    scrollbar-width: none;
  }
  .inner-page .legal-local-nav::-webkit-scrollbar { display: none; }
  .inner-page .legal-local-nav a { flex: 0 0 auto; }
  .inner-page .interface-container > .legal-local-nav { margin: 0; padding: 0; border: 0; }
  .inner-page .legal-section { margin-bottom: 12px; padding: 24px 22px; border-radius: 18px; }
  .inner-page .legal-section h2 { font-size: 23px !important; }
  .inner-page .legal-table-wrap { margin: 24px 0; border-radius: 14px; }
  .inner-page .legal-table-wrap th,
  .inner-page .legal-table-wrap td { padding: 15px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .inner-page .interface-card,
  .inner-page .inner-secondary-button,
  .inner-page .telephony-faq details,
  .inner-page .telephony-faq summary::after {
    transition-property: opacity, color, background-color, border-color !important;
    transition-duration: 160ms !important;
  }
  .inner-page .interface-card:hover,
  .inner-page .inner-secondary-button:hover,
  .inner-page .inner-secondary-button:active { transform: none !important; }
  .inner-page .telephony-faq details[open] > p { animation: apple-fade-in 180ms ease; }
}

@media (prefers-reduced-transparency: reduce) {
  .inner-page .interface-card,
  .inner-page .inner-cta,
  .inner-page .legal-local-nav,
  .inner-page .inner-secondary-button {
    background: #18181b !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .inner-page .legal-section { background: #111113; }
}

@media (prefers-contrast: more) {
  .inner-page .interface-card,
  .inner-page .inner-cta,
  .inner-page .legal-section,
  .inner-page .legal-local-nav,
  .inner-page .telephony-faq details { background: #090909 !important; }
}
