:root {
  --bg: #080b10;
  --panel: #111827;
  --panel-2: #172033;
  --text: #f8fafc;
  --muted: #b8c0cc;
  --blue: #006dff;
  --blue-dark: #0052c2;
  --line: rgba(255,255,255,.12);
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(0,0,0,.38);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8,11,16,.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.nav-wrap { display: flex; justify-content: space-between; align-items: center; height: 76px; min-height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; height: 76px; overflow: visible; }
.brand img { width: 68px; height: 68px; object-fit: contain; flex-shrink: 0; transform: scale(2.7); }
.brand strong { display: block; font-size: 1.15rem; letter-spacing: .02em; }
.brand small { color: var(--muted); font-size: .82rem; }
.brand span { margin-left: 17px; }
.nav { display: flex; align-items: center; gap: 22px; color: var(--muted); }
.nav a:hover { color: var(--white); }
.menu-toggle { display: none; }
.menu-button { display: none; font-size: 1.8rem; cursor: pointer; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  padding: 13px 22px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--line); }
.btn-outline:hover { background: rgba(255,255,255,.08); }
.btn-small { padding: 9px 16px; color: var(--white) !important; }
.hero {
  padding: 88px 0 70px;
  background:
    radial-gradient(circle at 80% 20%, rgba(0,109,255,.25), transparent 35%),
    linear-gradient(180deg, #101827 0%, var(--bg) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: start; }
.eyebrow { color: #77aaff; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 16px; }
h1 { font-size: clamp(2.25rem, 5vw, 4.9rem); letter-spacing: -.05em; }
h2 { font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -.03em; }
h3 { font-size: 1.2rem; }
p { color: var(--muted); margin: 0 0 16px; }
.hero-copy p { font-size: 1.1rem; max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-card, .feature-box, .contact-form, .contact-box, .card, .step, details, .image-card, .hero-visual-card {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-visual-card {
  overflow: hidden;
  min-height: auto;
  display: grid;
  margin-top: 45px;
}
.hero-visual-card > img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid var(--line);
}
.hero-visual-card::after {
  display: none;
}
.hero-floating-card {
  padding: 26px;
  background: rgba(8,11,16,.96);
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
}
ul { padding-left: 20px; color: var(--muted); }
li { margin: 8px 0; }
.trust-strip { border-block: 1px solid var(--line); background: #0c111a; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }
.strip-grid div { padding: 24px 18px; border-right: 1px solid var(--line); }
.strip-grid div:last-child { border-right: 0; }
.strip-grid strong { display: block; font-size: 1.05rem; }
.strip-grid span { color: var(--muted); font-size: .92rem; }
.section { padding: 78px 0; }
.section-alt { background: #0c111a; }
.section-head { max-width: 760px; margin-bottom: 34px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.five-up { grid-template-columns: repeat(3, 1fr); }
.card { padding: 24px; }
.service-card { padding: 0; overflow: hidden; }
.card-media {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.card-content { padding: 22px 22px 24px; }
.price-note { display: inline-block; margin-top: 14px; padding: 7px 11px; border-radius: 999px; background: rgba(0,109,255,.14); color: #99bdff; font-size: .88rem; font-weight: 700; }
.section-banner {
  margin: 0 0 32px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.section-banner img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.narrow-banner { margin-top: 30px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { padding: 22px; }
.step span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--blue); font-weight: 800; margin-bottom: 18px; }
.split-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.split-grid-balanced { align-items: stretch; }
.feature-box, .contact-box { padding: 26px; }
.stack-grid {
  display: grid;
  gap: 22px;
  align-content: start;
}
.image-card { overflow: hidden; }
.image-card img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}
.section-inline-media { margin-top: 24px; }
.faq-list { display: grid; gap: 14px; }
details { padding: 20px 22px; }
summary { cursor: pointer; font-weight: 800; }
details p { margin-top: 12px; }
.contact-form { padding: 26px; display: grid; gap: 12px; }
label { font-weight: 700; color: #dce6f5; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b1018;
  color: var(--text);
  padding: 13px 14px;
  font: inherit;
}
textarea { resize: vertical; }
.alert { padding: 12px 14px; border-radius: 12px; font-weight: 700; }
.success { background: rgba(38, 166, 91, .18); color: #a7f3c4; }
.error { background: rgba(239, 68, 68, .18); color: #ffc2c2; }
.site-footer { padding: 42px 0 20px; border-top: 1px solid var(--line); background: #07090d; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.copyright { text-align: center; margin-top: 26px; font-size: .9rem; }

.page-hero {
  padding: 86px 0 72px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(0,109,255,.28), transparent 38%),
    linear-gradient(180deg, #101827 0%, var(--bg) 100%);
}
.page-hero-has-image {
  position: relative;
  overflow: hidden;
}
.page-hero-has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(4,8,14,.4), rgba(4,8,14,.7)), url('../img/cloning-transfer.png');
  background-size: cover;
  background-position: center;
  opacity: .45;
}
.page-hero-has-image > .container {
  position: relative;
  z-index: 1;
}
.narrow { max-width: 880px; }
.page-hero p { max-width: 780px; margin-inline: auto; font-size: 1.08rem; }
.center-actions { justify-content: center; }
.checklist-box li::marker { color: #77aaff; }
.cards-four { grid-template-columns: repeat(4, 1fr); }
.warning-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 1100px) {
  .five-up { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  .cards-four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .page-hero { padding: 58px 0; }
  .cards-four, .five-up { grid-template-columns: 1fr; }
}

.admin-body { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.admin-card { width: min(420px, 100%); padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.admin-card form { display: grid; gap: 12px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; min-width: 900px; background: var(--panel); }
.admin-table th, .admin-table td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.admin-table th { color: var(--white); background: var(--panel-2); }
@media (max-width: 900px) {
  .hero-visual-card { margin-top: 0; }
  .menu-button { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: #080b10; border-bottom: 1px solid var(--line); padding: 18px 16px; flex-direction: column; align-items: flex-start; }
  .menu-toggle:checked ~ .nav { display: flex; }
  .hero-grid, .split-grid, .contact-grid { grid-template-columns: 1fr; }
  .cards, .five-up { grid-template-columns: repeat(2, 1fr); }
  .steps, .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-visual-card, .hero-visual-card > img { min-height: auto; }
  .hero-visual-card > img { height: 260px; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 22px, 1120px); }
  .hero { padding: 58px 0; }
  .cards, .five-up, .steps, .strip-grid, .footer-grid { grid-template-columns: 1fr; }
  .strip-grid div { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-actions .btn, .center-actions .btn { width: 100%; }
  .hero-floating-card {
    padding: 18px;
  }
  .hero-visual-card, .hero-visual-card > img { min-height: auto; }
  .hero-visual-card > img { height: 240px; }
  .card-media { height: 200px; }
}

/* Panel de mensajes */
.admin-messages-container {
    max-width: 100%;
}

.messages-summary {
    margin: 0 0 14px;
    color: var(--muted);
}

.admin-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

.messages-table {
    width: max-content;
    min-width: 1600px;
}

.messages-table th,
.messages-table td {
    min-width: 130px;
}

.messages-table th {
    white-space: nowrap;
}

.messages-table .cell-nowrap {
    white-space: nowrap;
}

.messages-table .message-cell {
    min-width: 320px;
    max-width: 520px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.messages-table .user-agent-cell {
    min-width: 300px;
    max-width: 450px;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Paginación */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--white);
    text-decoration: none;
}

.pagination-link:hover {
    background: var(--panel-2);
}

.pagination-link.is-current {
    border-color: currentColor;
    background: var(--panel-2);
    font-weight: 700;
    cursor: default;
}

.pagination-link.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 8px 4px;
    color: var(--muted);
}

@media (max-width: 700px) {
    .pagination {
        gap: 6px;
    }

    .pagination-link {
        min-width: 36px;
        min-height: 36px;
        padding: 7px 9px;
        font-size: 0.9rem;
    }
}


.service-link-wrapper {
  margin-top: 1rem;
}

.text-link {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration-thickness: 2px;
}

