/*
TeraServer shared design system for custom ".ts-*" page templates.
Tokens and treatments copied verbatim from the live widgets:
- Cloud Servers calculator (post 2366, element 18e5184, class .tscalc / --tsc-*)
- Reseller cards (post 2591, element tsrevwid1, class .tsrev / --tsrev-*)
Renamed to --ts-* so future custom-template pages share one source of truth.
*/

.ts-page {
    --ts-bg: #12151f;
    --ts-bg: oklch(17% 0.045 258);
    --ts-bg-2: #1b2230;
    --ts-bg-2: oklch(23% 0.055 260);
    --ts-surface: #212a3a;
    --ts-surface: oklch(27% 0.05 258);
    --ts-surface-2: #29334a;
    --ts-surface-2: oklch(31% 0.06 255);
    --ts-line: rgba(120, 150, 190, 0.35);
    --ts-line: oklch(52% 0.06 250 / 0.35);
    --ts-accent: #57d6e6;
    --ts-accent: oklch(78% 0.15 200);
    --ts-accent-2: #4f8fef;
    --ts-accent-2: oklch(66% 0.17 255);
    --ts-text: #f2f1f6;
    --ts-text: oklch(96% 0.01 250);
    --ts-text-dim: #b7bcc9;
    --ts-text-dim: oklch(74% 0.02 250);
    --ts-glow: rgba(87, 214, 230, 0.45);
    --ts-glow: oklch(80% 0.17 200 / 0.45);
    --ts-ok: #4de6a0;
    --ts-ok: oklch(80% 0.17 155);
    --ts-circuit-bg: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27160%27%20height%3D%27160%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%2357d6e6%27%20stroke-width%3D%271%27%3E%3Cpath%20d%3D%27M0%2032H48V88H120V136H160%27%2F%3E%3Cpath%20d%3D%27M32%200V48H88V112H136V160%27%2F%3E%3Cpath%20d%3D%27M0%20120H56V96%27%2F%3E%3Cpath%20d%3D%27M120%200V24H160%27%2F%3E%3Cpath%20d%3D%27M0%2064H16V160%27%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%27%2357d6e6%27%3E%3Ccircle%20cx%3D%2748%27%20cy%3D%2732%27%20r%3D%272.4%27%2F%3E%3Ccircle%20cx%3D%27120%27%20cy%3D%2788%27%20r%3D%272.4%27%2F%3E%3Ccircle%20cx%3D%2788%27%20cy%3D%2748%27%20r%3D%272.4%27%2F%3E%3Ccircle%20cx%3D%27136%27%20cy%3D%27112%27%20r%3D%272.4%27%2F%3E%3Ccircle%20cx%3D%2756%27%20cy%3D%27120%27%20r%3D%272%27%2F%3E%3Ccircle%20cx%3D%27120%27%20cy%3D%2724%27%20r%3D%272%27%2F%3E%3Ccircle%20cx%3D%2716%27%20cy%3D%2764%27%20r%3D%272%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");

    position: relative;
    isolation: isolate;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--ts-text);
    background: linear-gradient(180deg, var(--ts-bg) 0%, var(--ts-bg-2) 55%, #0a0c15 100%);
}

/* ---- Tech-glow backdrop: circuit texture + accent orbs, behind all sections ---- */
.ts-page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    contain: paint;
    background-image: var(--ts-circuit-bg);
    background-repeat: repeat;
    background-size: 160px 160px;
    opacity: 0.06;
}

.ts-page::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    contain: paint;
    background-image:
        radial-gradient(560px 480px at 12% 8%, var(--ts-accent) 0%, rgba(87,214,230,0.4) 30%, transparent 72%),
        radial-gradient(620px 560px at 88% 32%, var(--ts-accent-2) 0%, rgba(79,143,239,0.4) 30%, transparent 72%),
        radial-gradient(480px 480px at 46% 96%, var(--ts-accent) 0%, rgba(87,214,230,0.4) 30%, transparent 72%);
    opacity: 0.14;
}

.ts-page *,
.ts-page *::before,
.ts-page *::after { box-sizing: border-box; }

/* ---- Dark page section wrapper ---- */
.ts-section {
    position: relative;
    max-width: 1280px;
    margin: 40px auto;
    padding: 36px;
    border-radius: 20px;
    border: 1px solid rgba(140, 175, 215, 0.5);
    background-image:
        repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0px, rgba(255,255,255,0.035) 1px, transparent 1px, transparent 3px),
        linear-gradient(160deg, var(--ts-surface) 0%, var(--ts-bg-2) 100%);
    box-shadow: 0 25px 60px rgba(0,0,0,0.45), 0 2px 0 rgba(255,255,255,0.03) inset;
}

.ts-section + .ts-section { margin-top: 24px; }

.ts-section-heading {
    margin: 0 0 10px 0;
    font-size: 1.6em;
    font-weight: 700;
    font-style: normal;
    color: var(--ts-text);
    text-align: center;
}

.ts-section-intro {
    margin: 0 auto 28px auto;
    max-width: 720px;
    font-size: 0.95em;
    color: var(--ts-text-dim);
    text-align: center;
    line-height: 1.5;
}

/* ---- Pricing cards grid ---- */
.ts-cards-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

@media (min-width: 700px) {
    .ts-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .ts-cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.ts-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 26px 22px;
    border-radius: 16px;
    border: 1px solid var(--ts-line);
    background-image:
        repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 3px),
        linear-gradient(160deg, var(--ts-bg) 0%, var(--ts-bg-2) 100%);
    box-shadow: 0 16px 34px rgba(0,0,0,0.4), 0 2px 0 rgba(255,255,255,0.03) inset;
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.ts-card:hover,
.ts-card:focus-within {
    transform: translateY(-4px);
    border-color: var(--ts-accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 1px var(--ts-accent), 0 0 32px var(--ts-glow);
}

.ts-card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    color: var(--ts-accent);
    flex: none;
}

.ts-card--featured {
    border: 1px solid var(--ts-accent);
    background-image:
        repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 3px),
        linear-gradient(160deg, var(--ts-surface-2) 0%, var(--ts-bg) 100%);
    box-shadow: 0 0 0 1px var(--ts-accent), 0 20px 44px var(--ts-glow), 0 2px 0 rgba(255,255,255,0.04) inset;
}

.ts-card--featured:hover {
    box-shadow: 0 0 0 1px var(--ts-accent), 0 24px 52px var(--ts-glow), 0 2px 0 rgba(255,255,255,0.04) inset;
}

.ts-ribbon {
    align-self: flex-start;
    margin: -26px -22px 16px -22px;
    padding: 7px 18px;
    font-size: 0.72em;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0b1220;
    background: linear-gradient(120deg, var(--ts-accent), var(--ts-accent-2));
    border-radius: 16px 16px 0 0;
    width: calc(100% + 44px);
    text-align: center;
}

.ts-name {
    margin: 0 0 4px 0;
    font-size: 1.25em;
    font-weight: 700;
    font-style: normal;
    color: var(--ts-text);
    line-height: 1.2;
}

.ts-subtitle {
    margin: 0 0 16px 0;
    font-size: 0.9em;
    color: var(--ts-text-dim);
}

/* ---- Feature / description list inside a card ---- */
.ts-list {
    list-style: none;
    margin: 0 0 16px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ts-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88em;
    color: var(--ts-text-dim);
    min-width: 0;
}

.ts-list svg {
    flex: none;
    width: 15px;
    height: 15px;
    color: var(--ts-ok);
}

/* ---- Price block ---- */
.ts-price-block {
    margin: 4px 0 4px 0;
    padding-top: 14px;
    border-top: 1px solid var(--ts-line);
}

.ts-price-top {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.ts-strike {
    font-size: 0.85em;
    color: var(--ts-text-dim);
    text-decoration: line-through;
    text-decoration-color: rgba(183, 188, 201, 0.6);
    white-space: nowrap;
}

.ts-off {
    display: inline-block;
    margin-left: auto;
    padding: 3px 9px;
    font-size: 0.7em;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.02em;
    color: #0b1220;
    background: var(--ts-ok);
    border-radius: 999px;
    white-space: nowrap;
}

.ts-price-main {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 4px;
}

.ts-amount {
    font-size: 1.9em;
    font-weight: 800;
    font-style: normal;
    color: var(--ts-accent);
    text-shadow: 0 0 18px var(--ts-glow);
    line-height: 1.1;
    white-space: nowrap;
}

.ts-suffix {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--ts-text-dim);
}

.ts-renew {
    margin: 8px 0 2px 0;
    font-size: 0.8em;
    color: var(--ts-text-dim);
}

.ts-iva {
    margin: 0 0 14px 0;
    font-size: 0.78em;
    opacity: 0.85;
}

.ts-note {
    margin: 0;
    font-size: 0.78em;
    color: var(--ts-text-dim);
    opacity: 0.85;
    text-align: center;
}

/* ---- Buttons ---- */
.ts-btn {
    display: block;
    margin-top: auto;
    padding: 13px 10px;
    width: 100%;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9em;
    font-style: normal;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.ts-btn-primary {
    background: linear-gradient(120deg, var(--ts-accent), var(--ts-accent-2));
    color: #0b1220;
}

.ts-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px var(--ts-glow); }
.ts-btn-primary:active { transform: translateY(0); }

.ts-btn-secondary {
    background: transparent;
    color: var(--ts-text);
    border: 1px solid var(--ts-line);
}

.ts-btn-secondary:hover { border-color: var(--ts-accent); color: var(--ts-accent); }
.ts-btn-secondary:active { transform: translateY(1px); }

.ts-cta-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.ts-cta-group .ts-btn {
    margin-top: 0;
}

.ts-btn:focus-visible,
.ts-card a:focus-visible {
    outline: 3px solid var(--ts-accent);
    outline-offset: 2px;
}

/* ---- Feature / description grid block (below the cards) ---- */
.ts-features {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--ts-line);
}

.ts-features-heading {
    margin: 0 0 10px 0;
    font-size: 1.3em;
    font-weight: 700;
    font-style: normal;
    color: var(--ts-text);
    text-align: center;
}

.ts-features-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

@media (min-width: 481px) {
    .ts-features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .ts-features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.ts-feature-item {
    padding: 18px 16px;
    border-radius: 12px;
    border: 1px solid var(--ts-line);
    background: var(--ts-bg);
    min-width: 0;
}

.ts-feature-title {
    margin: 0 0 6px 0;
    font-size: 0.98em;
    font-weight: 700;
    font-style: normal;
    color: var(--ts-text);
}

.ts-feature-desc {
    margin: 0;
    font-size: 0.85em;
    color: var(--ts-text-dim);
    line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
    .ts-page *,
    .ts-page *::before,
    .ts-page *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* ---- Segmented toggle (Storage / Storage PRO) ---- */
.ts-toggle-wrap {
    display: flex;
    justify-content: center;
    margin: 0 0 28px 0;
}

.ts-toggle {
    position: relative;
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--ts-line);
    background: var(--ts-surface);
}

.ts-toggle input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ts-toggle label {
    min-width: 0;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-style: normal;
    font-size: 0.88em;
    color: var(--ts-text-dim);
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: color 150ms ease, background 150ms ease;
}

.ts-toggle input:checked + label {
    color: #0b1220;
    background: linear-gradient(120deg, var(--ts-accent), var(--ts-accent-2));
}

.ts-toggle input:focus-visible + label {
    outline: 3px solid var(--ts-accent);
    outline-offset: 2px;
}

/* ---- Cross-sell links (ghost buttons, auto width) ---- */
.ts-cross-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
}

.ts-cross-links .ts-btn {
    width: auto;
    min-width: 190px;
    display: inline-block;
}

/* ---- Highlighted callout panel (accent border + glow) ---- */
.ts-callout {
    margin-top: 32px;
    padding: 32px 28px;
    border-radius: 16px;
    border: 1px solid var(--ts-accent);
    text-align: center;
    background-image:
        repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 3px),
        linear-gradient(160deg, var(--ts-surface-2) 0%, var(--ts-bg) 100%);
    box-shadow: 0 0 0 1px var(--ts-accent), 0 20px 44px var(--ts-glow), 0 2px 0 rgba(255,255,255,0.04) inset;
}

.ts-callout-heading {
    margin: 0 0 12px 0;
    font-size: 1.3em;
    font-weight: 700;
    font-style: normal;
    color: var(--ts-accent);
}

.ts-callout-desc {
    margin: 0 auto;
    max-width: 720px;
    font-size: 0.95em;
    color: var(--ts-text-dim);
    line-height: 1.5;
}

.ts-callout-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 16px;
    font-size: 0.72em;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0b1220;
    background: linear-gradient(120deg, var(--ts-accent), var(--ts-accent-2));
    border-radius: 999px;
}

.ts-callout-list {
    list-style: none;
    margin: 18px auto 24px auto;
    padding: 0;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.ts-callout-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92em;
    color: var(--ts-text-dim);
}

.ts-callout-list svg {
    flex: none;
    width: 16px;
    height: 16px;
    color: var(--ts-accent);
}

.ts-callout-btn {
    display: block;
    max-width: 360px;
    margin: 4px auto 0 auto;
}

/* ---- Highlighted note (stands out from plain fine-print .ts-note) ---- */
.ts-note-highlight {
    margin: 0 auto 14px auto;
    max-width: 640px;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid var(--ts-accent);
    background: var(--ts-surface-2);
    font-size: 0.92em;
    color: var(--ts-text);
    text-align: center;
    line-height: 1.5;
}

.ts-note-highlight strong {
    color: var(--ts-accent);
    font-style: normal;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .ts-section { padding: 22px; margin: 20px auto; border-radius: 16px; }
    .ts-toggle { width: 100%; }
    .ts-toggle label { flex: 1; }
    .ts-cross-links .ts-btn { width: 100%; }
    .ts-callout { padding: 22px 18px; }
}

/* ---- Hero band (Home): single centered column + tech glow ---- */
.ts-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    max-width: 1280px;
    margin: 40px auto 24px auto;
    padding: 64px 40px;
    border-radius: 20px;
    border: 1px solid rgba(140, 175, 215, 0.4);
    background-image:
        repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 3px),
        linear-gradient(160deg, var(--ts-bg) 0%, var(--ts-bg-2) 100%);
    box-shadow: 0 25px 60px rgba(0,0,0,0.45), 0 2px 0 rgba(255,255,255,0.03) inset;
}

.ts-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    contain: paint;
    background-image: var(--ts-circuit-bg);
    background-repeat: repeat;
    background-size: 160px 160px;
    opacity: 0.09;
}

.ts-hero::after {
    content: "";
    position: absolute;
    inset: -20%;
    z-index: 0;
    pointer-events: none;
    contain: paint;
    background-image:
        radial-gradient(520px 460px at 14% 20%, var(--ts-accent) 0%, rgba(87,214,230,0.45) 30%, transparent 70%),
        radial-gradient(560px 480px at 92% 60%, var(--ts-accent-2) 0%, rgba(79,143,239,0.45) 30%, transparent 70%);
    opacity: 0.22;
}

.ts-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 40px;
    text-align: center;
}

.ts-hero-copy { min-width: 0; max-width: 720px; }

.ts-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 16px 0;
    font-size: 0.82em;
    font-weight: 800;
    font-style: normal;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ts-accent);
}

.ts-hero-eyebrow::before {
    content: "";
    display: block;
    width: 32px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(120deg, var(--ts-accent), var(--ts-accent-2));
}

.ts-hero-title,
.ts-section-hero .ts-section-heading {
    position: relative;
    margin: 0 0 18px 0;
    padding-bottom: 22px;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    font-style: normal;
    color: var(--ts-text);
    line-height: 1.08;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
    overflow-wrap: anywhere;
    min-width: 0;
}

.ts-hero-logo {
    display: block;
    width: 440px;
    max-width: 80%;
    height: auto;
    margin: 0 auto 22px auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ts-hero-title::after,
.ts-section-hero .ts-section-heading::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 64px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(120deg, var(--ts-accent), var(--ts-accent-2));
}

.ts-hero-subtitle {
    margin: 0 auto 34px auto;
    max-width: 46ch;
    font-size: clamp(1.05rem, 1.6vw, 1.15rem);
    color: var(--ts-text-dim);
    line-height: 1.6;
}

.ts-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.ts-hero-actions .ts-btn {
    width: auto;
    min-width: 220px;
    display: inline-block;
}

@media (max-width: 820px) {
    .ts-hero-grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
    .ts-hero-copy { text-align: center; }
    .ts-hero-subtitle { margin-left: auto; margin-right: auto; }
    .ts-hero-actions { justify-content: center; }
}

@media (max-width: 600px) {
    .ts-hero { padding: 32px 20px; margin: 20px auto; border-radius: 16px; }
    .ts-hero-actions .ts-btn { width: 100%; }
}

/* ---- Full-width service carousel (Home), sits above the hero ---- */
.ts-carousel {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 8px;
}

.ts-carousel-viewport {
    position: relative;
    height: clamp(320px, 46vw, 480px);
    overflow: hidden;
}

.ts-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 600ms ease;
}

.ts-carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.ts-carousel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ts-carousel-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10,12,21,0.92) 0%, rgba(10,12,21,0.68) 35%, rgba(10,12,21,0.22) 65%, rgba(10,12,21,0) 100%);
}

.ts-carousel-text {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 16px;
    max-width: min(480px, 78%);
    margin: 0 auto;
    padding: 0 24px;
    pointer-events: none;
}

.ts-carousel-icon {
    display: flex;
    pointer-events: none;
}

.ts-carousel-icon svg {
    display: block;
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0 6px rgba(87, 214, 230, 0.8)) drop-shadow(0 0 18px rgba(79, 143, 239, 0.5));
}

.ts-carousel-title {
    margin: 0;
    font-size: clamp(1.5em, 3.4vw, 2.2em);
    font-weight: 800;
    font-style: normal;
    color: var(--ts-text);
    line-height: 1.15;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75);
}

.ts-carousel-tagline {
    margin: 0;
    font-size: 1.02em;
    color: var(--ts-text-dim);
    line-height: 1.5;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.ts-carousel-cta {
    width: auto;
    min-width: 180px;
    display: inline-block;
    margin-top: 0;
    pointer-events: auto;
}

.ts-carousel-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--ts-line);
    background: rgba(10, 12, 21, 0.55);
    color: var(--ts-text);
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.ts-carousel-arrow svg { width: 22px; height: 22px; }

.ts-carousel-arrow:hover {
    border-color: var(--ts-accent);
    color: var(--ts-accent);
    background: rgba(10, 12, 21, 0.8);
}

.ts-carousel-arrow:focus-visible {
    outline: 3px solid var(--ts-accent);
    outline-offset: 2px;
}

.ts-carousel-prev { left: 16px; }
.ts-carousel-next { right: 16px; }

.ts-carousel-dots {
    position: absolute;
    z-index: 3;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.ts-carousel-dot {
    width: 26px;
    height: 26px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
}

.ts-carousel-dot span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: background 150ms ease, transform 150ms ease;
}

.ts-carousel-dot[aria-current="true"] span {
    background: var(--ts-accent);
    transform: scale(1.3);
}

.ts-carousel-dot:focus-visible {
    outline: 3px solid var(--ts-accent);
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .ts-carousel-viewport { height: 340px; }
    .ts-carousel-text { padding: 0 16px 20px; max-width: calc(100% - 32px); gap: 10px; }
    .ts-carousel-icon svg { width: 44px; height: 44px; }
    .ts-carousel-title { font-size: 1.3em; }
    .ts-carousel-tagline { font-size: 0.92em; margin-bottom: 16px; }
    .ts-carousel-prev { left: 8px; }
    .ts-carousel-next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .ts-carousel-slide { transition: none; }
}

/* ---- Stat tiles (Home: Por qué TeraServer) ---- */
.ts-stats {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 28px;
}

@media (min-width: 481px) {
    .ts-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
    .ts-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.ts-stat {
    padding: 20px 16px;
    border-radius: 12px;
    border: 1px solid var(--ts-line);
    background: var(--ts-bg);
    text-align: center;
    min-width: 0;
}

.ts-stat-value {
    margin: 0 0 4px 0;
    font-size: 1.5em;
    font-weight: 800;
    font-style: normal;
    color: var(--ts-accent);
    text-shadow: 0 0 18px var(--ts-glow);
    overflow-wrap: anywhere;
}

.ts-stat-label {
    margin: 0;
    font-size: 0.85em;
    color: var(--ts-text-dim);
}

/* ---- Founder message (Home) ---- */
.ts-ceo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

@media (min-width: 700px) {
    .ts-ceo-grid { grid-template-columns: 190px minmax(0, 1fr); }
}

.ts-ceo-photo-wrap { display: flex; justify-content: center; min-width: 0; }

.ts-ceo-photo {
  width:150px;
  height:150px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid var(--ts-accent, #35c6e6);
  box-shadow:0 0 28px rgba(53,198,230,0.45);
  filter: contrast(1.05) saturate(1.05) brightness(1.02);
}

.ts-ceo-copy { min-width: 0; text-align: center; }

@media (min-width: 700px) {
    .ts-ceo-copy { text-align: left; }
}

.ts-ceo-quote {
    margin: 0 0 16px 0;
    padding: 0;
    border: none;
    font-size: 1.15em;
    font-style: italic;
    color: var(--ts-text);
    line-height: 1.55;
}

.ts-ceo-attribution {
    margin: 0;
    font-size: 0.9em;
    color: var(--ts-text-dim);
}

.ts-ceo-attribution strong { color: var(--ts-text); }

/* ---- FAQ accordion (Home) ---- */
.ts-faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 860px;
    margin: 0 auto;
}

.ts-faq-item {
    border: 1px solid var(--ts-line);
    border-radius: 12px;
    background: var(--ts-bg);
    overflow: hidden;
}

.ts-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    font-weight: 700;
    font-style: normal;
    font-size: 0.98em;
    color: var(--ts-text);
    cursor: pointer;
    list-style: none;
}

.ts-faq-question::-webkit-details-marker { display: none; }

.ts-faq-question:focus-visible {
    outline: 3px solid var(--ts-accent);
    outline-offset: -3px;
}

.ts-faq-chevron {
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--ts-accent);
    transition: transform 200ms ease;
}

.ts-faq-item[open] .ts-faq-chevron { transform: rotate(180deg); }

.ts-faq-answer {
    margin: 0;
    padding: 0 18px 18px 18px;
    font-size: 0.9em;
    color: var(--ts-text-dim);
    line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
    .ts-faq-chevron { transition: none; }
}

/* ---- Guides note (Home) ---- */
.ts-guides-note {
    margin: 28px auto 0 auto;
    max-width: 640px;
    font-size: 0.9em;
    color: var(--ts-text-dim);
    text-align: center;
    line-height: 1.5;
}

/* ---- Guides page (/guias/): TOC, article typography, service list ---- */
.ts-guia-toc {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.ts-guia-toc a {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--ts-line);
    background: var(--ts-bg);
    color: var(--ts-text-dim);
    font-size: 0.85em;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.ts-guia-toc a:hover,
.ts-guia-toc a:focus-visible {
    border-color: var(--ts-accent);
    color: var(--ts-accent);
    background: var(--ts-surface);
}

.ts-guia-article {
    scroll-margin-top: 110px;
}

.ts-guia-heading {
    text-align: left;
    margin: 0 0 18px 0;
}

.ts-guia-body {
    max-width: 70ch;
    margin: 0 auto;
    color: var(--ts-text-dim);
    font-size: 0.98em;
    line-height: 1.7;
}

.ts-guia-body p { margin: 0 0 16px 0; }
.ts-guia-body p:last-child { margin-bottom: 0; }
.ts-guia-body strong { color: var(--ts-text); }

.ts-guia-services {
    max-width: 70ch;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ts-guia-service {
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid var(--ts-line);
    background: var(--ts-bg);
}

.ts-guia-service h3 {
    margin: 0 0 6px 0;
    font-size: 1.02em;
    font-weight: 700;
    font-style: normal;
    color: var(--ts-text);
}

.ts-guia-service p {
    margin: 0 0 8px 0;
    font-size: 0.92em;
    color: var(--ts-text-dim);
    line-height: 1.6;
}

.ts-guia-service a {
    color: var(--ts-accent);
    font-size: 0.85em;
    font-weight: 700;
    text-decoration: none;
}

.ts-guia-service a:hover,
.ts-guia-service a:focus-visible { text-decoration: underline; }

@media (max-width: 600px) {
    .ts-guia-article { scroll-margin-top: 80px; }
}

/* ---- Feature/card icon slot (scaffolding for a later markup pass) ----
   Inline-flex ~30px accent icon meant to sit left of the title text inside
   .ts-feature-title / .ts-name (vertical-align: middle keeps it on the text
   baseline). Use .ts-feature-icon--above instead when the icon should stack
   above the title. Additive only — no existing selectors touched. */
.ts-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    flex: none;
    color: var(--ts-accent);
    vertical-align: middle;
}

.ts-feature-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ts-feature-icon--above {
    display: flex;
    margin: 0 0 10px 0;
}

/* ---- Hero background image + dark scrim ----
   --hero-img is set inline per page: style="--hero-img:url('...jpg');"
   Scrim: linear-gradient stacked in front of the photo in the same
   background-image shorthand, darkening from ~0.78 at the top to ~0.95 at
   the bottom (soft fade into the page background below), average ~0.87 —
   well inside the 0.80-0.90 band needed to keep hero text >= 4.5:1 contrast
   against near-white/light-cyan text on an already-dark photo. */
.ts-hero-bg {
    position: relative;
    isolation: isolate;
    background-image:
        linear-gradient(180deg, rgba(8,11,18,0.78) 0%, rgba(8,11,18,0.87) 55%, rgba(8,11,18,0.95) 100%),
        var(--hero-img);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dedicated hero sections (.ts-hero): grow tall enough for the image to read, content centered */
.ts-hero.ts-hero-bg {
    min-height: clamp(320px, 40vh, 460px);
    display: flex;
    align-items: center;
}

/* Inline hero band: used on pages whose title/intro live at the top of the
   first .ts-section instead of a dedicated .ts-hero (no separate markup for
   those pages). Bleeds to the section's own edges/corners so the photo
   reads edge-to-edge, then the section continues normally below it. */
.ts-section-hero {
    margin: -36px -36px 28px -36px;
    padding: 56px 36px 40px 36px;
    border-radius: 20px 20px 0 0;
    min-height: clamp(220px, 30vh, 320px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 600px) {
    .ts-section-hero {
        margin: -22px -22px 20px -22px;
        padding: 36px 22px 28px 22px;
        min-height: clamp(180px, 26vh, 260px);
        border-radius: 16px 16px 0 0;
    }
}

/* ---- Service illustrations (ComfyUI 3D artwork) ----
   .ts-illus: shared image treatment (rounded, subtle cyan border, soft glow).
   .ts-hero-illus: size variant tuned for hero placement (~320px mobile,
   ~400px desktop). Two hero patterns exist across the .ts-* templates:
   1) dedicated .ts-hero > .ts-hero-grid (wordpress/diseño/guías/programación/
      IA/servidores) — opt in with .ts-hero-grid--illus + a sibling
      .ts-hero-illus-figure next to .ts-hero-copy.
   2) inline .ts-section-hero band (webhosting/backup/mailing/monitoreo/
      whatsapp) — wrap the heading+intro in .ts-hero-illus-row with a
      .ts-hero-illus-copy / .ts-hero-illus-figure pair.
   Mobile (below 820px): both patterns fall back to a single column, image
   stacked below the text, centered. */
.ts-illus {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 28px;
    border: 1px solid rgba(87, 214, 230, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 44px rgba(87, 214, 230, 0.22);
    background: rgba(255, 255, 255, 0.03);
}

.ts-hero-illus { max-width: 320px; margin: 0 auto; }

.ts-hero-illus-figure {
    display: flex;
    justify-content: center;
    min-width: 0;
}

@media (min-width: 820px) {
    /* Columnas fijas: la izquierda (texto) es flexible pero el texto se
       ancla al borde izquierdo (justify-self:start); la derecha (imagen)
       es de ancho fijo y la imagen se ancla al borde derecho
       (justify-self:end). Así ninguna columna se corre según el largo
       del título/bajada — misma posición de imagen en todas las páginas
       que usan este patrón. */
    .ts-hero-grid.ts-hero-grid--illus {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
        justify-items: stretch;
        text-align: left;
    }
    .ts-hero-grid--illus .ts-hero-copy { text-align: left; justify-self: start; }
    .ts-hero-grid--illus .ts-hero-eyebrow { justify-content: flex-start; }
    .ts-hero-grid--illus .ts-hero-title::after { left: 0; transform: none; }
    .ts-hero-grid--illus .ts-hero-subtitle { margin-left: 0; margin-right: 0; }
    .ts-hero-grid--illus .ts-hero-illus-figure { justify-content: flex-end; justify-self: end; }
    .ts-hero-grid--illus .ts-hero-illus { max-width: 420px; width: 100%; }
}

.ts-hero-illus-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    width: 100%;
}

.ts-hero-illus-copy { min-width: 0; }

@media (min-width: 820px) {
    /* Mismas columnas fijas y mismo anclaje start/end que
       .ts-hero-grid--illus (ver comentario arriba), para que el patrón
       inline (.ts-hero-illus-row: webhosting/backup/mailing/monitoreo)
       quede idéntico al patrón de hero dedicado. */
    .ts-hero-illus-row {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
        justify-items: stretch;
        gap: 40px;
    }
    .ts-hero-illus-row .ts-hero-illus-copy { text-align: left; justify-self: start; }
    .ts-hero-illus-row .ts-hero-illus-copy .ts-section-intro { margin-left: 0; margin-right: 0; }
    .ts-hero-illus-row .ts-hero-illus-copy .ts-section-heading::after { left: 0; transform: none; }
    .ts-hero-illus-row .ts-hero-illus-figure { justify-content: flex-end; justify-self: end; }
    .ts-hero-illus-row .ts-hero-illus { max-width: 420px; width: 100%; }
}

/* ---- Certificaciones (Home / FAQ trust section) ---- */
.ts-cert-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

@media (min-width: 700px) {
    .ts-cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ts-cert-grid .ts-list li {
    align-items: flex-start;
}

.ts-cert-grid .ts-list svg {
    margin-top: 3px;
}

/* ---- Buscador de dominios (Home hero + upsell Webhosting) ---- */
.ts-domsearch {
    max-width: 640px;
    margin: 24px auto 0;
    text-align: center;
}

.ts-domsearch-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.ts-domsearch-input,
.ts-domsearch-tld {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--ts-line);
    background: var(--ts-surface);
    color: var(--ts-text);
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.2;
}

.ts-domsearch-input {
    flex: 1 1 240px;
    min-width: 180px;
}

.ts-domsearch-tld {
    flex: 0 0 auto;
    /* Native <select> chrome (arrow box + option list) ignores our dark
       theme in most browsers even with background/color set above — the
       closed box was rendering as a plain white/system box. appearance:none
       strips that chrome so padding/border/background match the input and
       button exactly; color-scheme:dark themes the open option list in
       Chromium/Firefox; the chevron replaces the native arrow. */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    color-scheme: dark;
    cursor: pointer;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b7bcc9' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 11px 7px;
}

.ts-domsearch-tld option {
    background: var(--ts-surface);
    color: var(--ts-text);
}

.ts-domsearch-input:focus-visible,
.ts-domsearch-tld:focus-visible {
    outline: none;
    border-color: var(--ts-accent);
    box-shadow: 0 0 0 3px var(--ts-glow);
}

/* Astra parent theme ships `select:focus { background-color:#fff }`
   (frontend.min.css) at specificity (0,1,1), which beats our BASE
   `.ts-domsearch-tld { background:... }` at (0,1,0). Chrome/Edge do NOT
   match :focus-visible on a <select> opened by mouse click, so the
   :focus-visible override above never fires for the common case and
   Astra's white background wins while our light text color stays on
   top -> white-on-white, dropdown looks broken/empty when opened with
   the mouse. Plain :focus at class+pseudo-class = (0,2,0) beats
   Astra's (0,1,1) regardless of pointer vs keyboard focus. */
.ts-domsearch-tld:focus {
    background: var(--ts-surface);
    color: var(--ts-text);
}

.ts-domsearch-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.ts-domsearch-spinner {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    display: inline-block;
    animation: ts-dom-spin 700ms linear infinite;
}

@keyframes ts-dom-spin {
    to { transform: rotate(360deg); }
}

.ts-domsearch-result {
    margin-top: 4px;
    font-size: 0.98rem;
    line-height: 1.5;
}

.ts-domsearch-result:empty {
    margin-top: 0;
}

.ts-domsearch-result--ok { color: var(--ts-ok); margin-top: 18px; }
.ts-domsearch-result--err { color: #ff8b8b; margin-top: 18px; }
.ts-domsearch-result--warn { color: #ffcf7a; margin-top: 18px; }

.ts-domsearch-add { margin-top: 10px; }

/* ---- TS Carrito: toast de confirmacion (reemplaza el boton flotante,
   sacado 2026-08-04). Colores fijos en vez de var(--ts-*) porque el toast
   se inyecta como hijo directo de <body> vía JS, fuera del contenedor
   .ts-page donde esas variables estan definidas. ---- */
.ts-carrito-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: calc(100% - 40px);
    padding: 14px 16px;
    border-radius: 12px;
    background: oklch(23% 0.055 260);
    border: 1px solid oklch(52% 0.06 250 / 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    color: oklch(96% 0.01 250);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

.ts-carrito-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ts-carrito-toast__msg {
    color: oklch(80% 0.17 155);
    font-weight: 600;
    white-space: nowrap;
}

.ts-carrito-toast__btn {
    flex: 0 0 auto;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(120deg, oklch(78% 0.15 200), oklch(66% 0.17 255));
    color: #0b1220;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.ts-carrito-toast__btn:hover { filter: brightness(1.08); }

.ts-carrito-toast__close {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: oklch(74% 0.02 250);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.ts-carrito-toast__close:hover { color: oklch(96% 0.01 250); }

@media (max-width: 600px) {
    .ts-carrito-toast {
        left: 14px;
        right: 14px;
        bottom: 14px;
        max-width: none;
    }
    .ts-carrito-toast__msg { white-space: normal; }
}

/* Igual que hacia el boton flotante viejo: si la barra de precio de
   /servidores/ (#tscFloatbar) esta visible abajo, subimos el toast para
   que no quede tapado. Progresivo: sin soporte de :has(), el toast queda
   en su posicion normal. */
body:has(#tscFloatbar.is-visible) .ts-carrito-toast { bottom: 90px; }
@media (max-width: 600px) {
    body:has(#tscFloatbar.is-visible) .ts-carrito-toast { bottom: 84px; }
}

/* ---- Formas de Pago: badge blanco para los logos de marca (Mercado Pago,
   BBVA) sobre el fondo oscuro de .ts-card, y la franja de medios de pago
   aceptados. Additive only. ---- */
.ts-payment-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 10px 16px;
    margin-bottom: 14px;
    background: #ffffff;
    border-radius: 10px;
}

.ts-payment-logo-badge img {
    display: block;
    height: 28px;
    width: auto;
}

.ts-payment-methods-label {
    margin: 16px 0 8px 0;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--ts-text-dim);
}

.ts-payment-methods-img {
    display: block;
    max-width: 100%;
    height: auto;
    background: #ffffff;
    border-radius: 10px;
    padding: 10px;
}

/* Pagos desde el exterior (formas-de-pago). ts-note-inline es la advertencia
   dentro de una tarjeta -- la de acreditacion no automatica y la de mandar
   USDT solo por Polygon; ts-mono es para la direccion de la billetera, que
   hay que poder leer caracter por caracter. */
.ts-card .ts-note-inline {
	margin-top: .75rem;
	font-size: .875rem;
	line-height: 1.5;
	opacity: .8;
}

.ts-mono {
	display: inline-block;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .8125rem;
	line-height: 1.6;
	word-break: break-all;
	padding: .35rem .5rem;
	border-radius: 6px;
	background: rgba(255, 255, 255, .06);
}
