/* ============================================================ */
/* SHYRO PANEL — estilos específicos de la página               */
/* Scopeado bajo .sp-root para no afectar al index              */
/* Rediseño profesional gaming hosting.                         */
/* ============================================================ */

.sp-root {
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

.sp-root .container {
    max-width: 1380px;
    padding-left: clamp(16px, 3vw, 20px);
    padding-right: clamp(16px, 3vw, 20px);
    width: 100%;
}

.sp-root .sp-text-block {
    max-width: 760px;
}

.sp-root img,
.sp-root svg,
.sp-root video {
    max-width: 100%;
    height: auto;
    display: block;
}

.sp-root h1,
.sp-root h2,
.sp-root h3,
.sp-root h4,
.sp-root p,
.sp-root span,
.sp-root a,
.sp-root li,
.sp-root div {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Variables locales de glow / highlights */
:root {
    --edge-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --card-gradient: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 60%);
    --glow-cyan: 0 0 24px rgba(0, 229, 255, 0.35);
    --glow-cyan-strong: 0 0 40px rgba(0, 229, 255, 0.55);
    --glow-cyan-soft: 0 0 60px rgba(0, 229, 255, 0.18);
    --card-shadow-rest: 0 4px 20px -8px rgba(0, 0, 0, 0.4);
    --card-shadow-hover: 0 12px 40px -12px rgba(0, 0, 0, 0.6),
                         0 0 40px -20px rgba(0, 229, 255, 0.5);
}
html[data-theme="light"] {
    --edge-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    --card-gradient: linear-gradient(180deg, rgba(0,0,0,0.015) 0%, rgba(0,0,0,0) 60%);
    --glow-cyan: 0 0 24px rgba(0, 144, 168, 0.22);
    --glow-cyan-strong: 0 0 40px rgba(0, 144, 168, 0.32);
    --glow-cyan-soft: 0 0 60px rgba(0, 144, 168, 0.12);
    --card-shadow-rest: 0 4px 20px -8px rgba(0, 0, 0, 0.10);
    --card-shadow-hover: 0 12px 40px -12px rgba(0, 0, 0, 0.15),
                         0 0 40px -20px rgba(0, 144, 168, 0.3);
}

/* ============================================ */
/* HERO                                         */
/* ============================================ */

.sp-hero {
    position: relative;
    padding: clamp(140px, 15vw, 180px) 0 clamp(80px, 12vw, 130px);
    overflow: hidden;
    background: var(--bg-dark);
    min-height: 700px;
}

.sp-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/assets/hero/panel-hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.55;
    pointer-events: none;
}

.sp-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 50% 40%, transparent 0%, rgba(0,0,0,0.35) 100%),
        linear-gradient(
            180deg,
            var(--hero-overlay-start) 0%,
            var(--hero-overlay-mid) 50%,
            var(--hero-overlay-end) 100%
        );
    z-index: 1;
    pointer-events: none;
}
html[data-theme="light"] .sp-hero-overlay {
    background:
        radial-gradient(ellipse 70% 55% at 50% 40%, transparent 0%, rgba(255,255,255,0.3) 100%),
        linear-gradient(
            180deg,
            var(--hero-overlay-start) 0%,
            var(--hero-overlay-mid) 50%,
            var(--hero-overlay-end) 100%
        );
}

.sp-hero::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.5;
    z-index: 3;
    pointer-events: none;
}

.sp-hero-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.18) 0%, transparent 65%);
    pointer-events: none;
    z-index: 2;
    filter: blur(40px);
}

html[data-theme="light"] .sp-hero-glow {
    background: radial-gradient(circle, rgba(0, 144, 168, 0.14) 0%, transparent 65%);
}

.sp-hero .container {
    position: relative;
    z-index: 3;
}

.sp-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 80px;
    align-items: center;
}

.sp-hero-text { max-width: 640px; }

.sp-hero h1 {
    font-size: clamp(1.9rem, 5vw + 0.5rem, 5rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: clamp(-3px, -0.4vw, -0.5px);
    margin-bottom: 28px;
    background: linear-gradient(180deg, #FFFFFF 0%, #B8B8C8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.45));
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    text-wrap: balance;
    max-width: 100%;
}
html[data-theme="light"] .sp-hero h1 {
    background: linear-gradient(180deg, #0d0d12 0%, #3a3a4a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.08));
}

.sp-hero-sub {
    font-size: clamp(0.95rem, 2vw + 0.4rem, 1.2rem);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 580px;
}

.sp-hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.sp-hero-buttons .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

.sp-hero-bullets {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sp-hero-bullets li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.sp-hero-bullets li i {
    color: var(--primary-color);
    font-size: 0.85rem;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.6));
}
html[data-theme="light"] .sp-hero-bullets li i {
    filter: drop-shadow(0 0 6px rgba(0, 144, 168, 0.5));
}

.sp-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sp-browser-mockup {
    width: 100%;
    max-width: 640px;
    background:
        var(--card-gradient),
        var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        var(--edge-highlight),
        0 30px 80px rgba(0, 0, 0, 0.55),
        0 0 80px -30px rgba(0, 229, 255, 0.4);
    animation: heroFloat 7s ease-in-out infinite;
    position: relative;
}
html[data-theme="light"] .sp-browser-mockup {
    box-shadow:
        var(--edge-highlight),
        0 30px 80px rgba(0, 0, 0, 0.15),
        0 0 80px -30px rgba(0, 144, 168, 0.3);
}
.sp-browser-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.6), transparent);
    pointer-events: none;
    z-index: 5;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

.sp-browser-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: var(--bg-card-hover);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.sp-browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(127, 127, 127, 0.35);
    flex-shrink: 0;
}

.sp-browser-dot:nth-child(1) { background: #ff5f57; }
.sp-browser-dot:nth-child(2) { background: #febc2e; }
.sp-browser-dot:nth-child(3) { background: #28c840; }

.sp-browser-url {
    flex: 1;
    margin-left: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    background: var(--bg-dark);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 0;
    overflow-wrap: anywhere;
}

.sp-browser-url i {
    font-size: 0.68rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.sp-browser-content {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sp-browser-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sp-browser-placeholder {
    background:
        linear-gradient(135deg, rgba(0, 229, 255, 0.08), transparent 60%),
        var(--bg-dark);
}

.sp-placeholder-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 20px;
    text-align: center;
}

.sp-placeholder-inner i {
    font-size: 2.8rem;
    color: var(--primary-color);
    opacity: 0.7;
    filter: drop-shadow(0 0 16px rgba(0, 229, 255, 0.6));
}
html[data-theme="light"] .sp-placeholder-inner i {
    filter: drop-shadow(0 0 14px rgba(0, 144, 168, 0.5));
}

.sp-hero-badge-float {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    background:
        var(--card-gradient),
        var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow:
        var(--edge-highlight),
        0 15px 40px rgba(0, 0, 0, 0.5),
        0 0 30px -12px rgba(0, 229, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    z-index: 4;
}

.sp-hero-badge-float i {
    color: var(--primary-color);
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.6));
}

.sp-float-1 {
    top: 10%;
    left: -36px;
    animation: floatBadge1 6s ease-in-out infinite;
}

.sp-float-2 {
    bottom: 12%;
    right: -28px;
    animation: floatBadge2 7s ease-in-out infinite;
}

@keyframes floatBadge1 {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

@keyframes floatBadge2 {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(8px); }
}

/* ============================================ */
/* STATS FLOATING                                */
/* ============================================ */

.sp-root .stats-floating {
    margin-top: -50px;
    position: relative;
    z-index: 5;
}

.sp-root .stats-bar {
    flex-wrap: wrap;
    gap: clamp(12px, 2vw, 20px);
    padding: clamp(20px, 3vw, 35px) clamp(20px, 3vw, 50px);
    max-width: 100%;
}

.sp-root .stat-item {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
}

.sp-root .stat-info {
    min-width: 0;
    max-width: 100%;
}

.sp-root .stat-info h3 {
    font-size: clamp(1.1rem, 2vw + 0.5rem, 1.6rem);
    white-space: normal;
    overflow-wrap: break-word;
}

.sp-root .stat-info p {
    font-size: clamp(0.72rem, 1.2vw + 0.4rem, 0.85rem);
    white-space: normal;
    line-height: 1.3;
    overflow-wrap: break-word;
}

/* ============================================ */
/* SECCIONES                                     */
/* ============================================ */

.sp-root .section {
    padding: clamp(60px, 8vw, 110px) 0;
}

.sp-root .section-header {
    margin-bottom: clamp(30px, 5vw, 55px);
}

.sp-root .section-header h2 {
    font-size: clamp(1.5rem, 4vw + 0.5rem, 3rem);
    line-height: 1.15;
    margin-bottom: 8px;
    background: linear-gradient(180deg, #FFFFFF 0%, #A8A8B8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.3));
    overflow-wrap: break-word;
    text-wrap: balance;
}
html[data-theme="light"] .sp-root .section-header h2 {
    background: linear-gradient(180deg, #0d0d12 0%, #5a5a6e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none;
}

/* ============================================ */
/* INTRO                                         */
/* ============================================ */

.sp-intro {
    padding-top: clamp(60px, 8vw, 120px);
}

.sp-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 80px;
    align-items: center;
}

.sp-intro-text h2 {
    font-size: clamp(1.5rem, 4vw + 0.5rem, 2.9rem);
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 28px;
    letter-spacing: -1.2px;
    background: linear-gradient(180deg, #FFFFFF 0%, #A8A8B8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.3));
    overflow-wrap: break-word;
    text-wrap: balance;
}
html[data-theme="light"] .sp-intro-text h2 {
    background: linear-gradient(180deg, #0d0d12 0%, #5a5a6e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none;
}

.sp-intro-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 22px;
    font-size: 1.08rem;
}

.sp-intro-visual {
    display: flex;
    justify-content: center;
}

.sp-intro-card {
    width: 100%;
    max-width: 680px;
    background:
        var(--card-gradient),
        var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        var(--edge-highlight),
        0 20px 60px rgba(0, 0, 0, 0.45),
        0 0 60px -30px rgba(0, 229, 255, 0.4);
    position: relative;
}
html[data-theme="light"] .sp-intro-card {
    box-shadow:
        var(--edge-highlight),
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 0 60px -30px rgba(0, 144, 168, 0.3);
}
.sp-intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.6), transparent);
    pointer-events: none;
    z-index: 5;
}

.sp-intro-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--bg-card-hover);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

.sp-intro-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
    flex-shrink: 0;
}

.sp-intro-card img {
    width: 100%;
    height: auto;
    display: block;
}

.sp-placeholder-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    aspect-ratio: 16 / 10;
    background:
        linear-gradient(135deg, rgba(0, 229, 255, 0.06), transparent 60%),
        var(--bg-dark);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.sp-placeholder-block i {
    font-size: 2.6rem;
    color: var(--primary-color);
    opacity: 0.7;
    filter: drop-shadow(0 0 16px rgba(0, 229, 255, 0.6));
}
html[data-theme="light"] .sp-placeholder-block i {
    filter: drop-shadow(0 0 14px rgba(0, 144, 168, 0.5));
}

/* ============================================ */
/* FEATURES                                      */
/* ============================================ */

.sp-section-sub {
    color: var(--text-secondary);
    max-width: 720px;
    margin: 20px auto 0;
    font-size: 1.08rem;
    line-height: 1.75;
}

.sp-feature-groups {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-top: 50px;
}

.sp-feature-group-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.sp-feature-group-title i {
    color: var(--primary-color);
    font-size: 1.1rem;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.6));
}

.sp-feature-group-title span {
    color: var(--text-primary);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.sp-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.sp-feature-card {
    text-align: left;
    padding: 30px 26px;
    border-radius: var(--radius-lg);
    position: relative;
    min-width: 0;
}
.sp-feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.sp-feature-card:hover::after { opacity: 0.9; }

.sp-feature-card .icon-circle {
    margin: 0 0 18px;
    width: 52px;
    height: 52px;
    font-size: 1.25rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 20px -10px rgba(0, 229, 255, 0.6);
}

.sp-feature-card h4 {
    font-size: 1.12rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.sp-feature-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    text-align: left;
}

.sp-root .sp-features.section {
    padding-top: clamp(60px, 8vw, 90px);
    padding-bottom: clamp(60px, 8vw, 90px);
}

/* ============================================ */
/* SPLITTER                                      */
/* ============================================ */

.sp-splitter {
    background: var(--studio-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}
.sp-splitter::before,
.sp-splitter::after {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.4), transparent);
    pointer-events: none;
}
.sp-splitter::before { top: 0; }
.sp-splitter::after  { bottom: 0; }

.sp-splitter-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 80px;
    align-items: center;
}

.sp-splitter-text h2 {
    font-size: clamp(1.5rem, 4vw + 0.5rem, 2.9rem);
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 26px;
    letter-spacing: -1.2px;
    background: linear-gradient(180deg, #FFFFFF 0%, #A8A8B8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.3));
    overflow-wrap: break-word;
    text-wrap: balance;
}
html[data-theme="light"] .sp-splitter-text h2 {
    background: linear-gradient(180deg, #0d0d12 0%, #5a5a6e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none;
}

.sp-splitter-text > p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    font-size: 1.08rem;
}

.sp-check-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 38px;
    list-style: none;
    padding: 0;
}

.sp-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1.02rem;
    color: var(--text-primary);
    line-height: 1.55;
}

.sp-check-list li i {
    color: var(--primary-color);
    font-size: 1.05rem;
    margin-top: 3px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.6));
}
html[data-theme="light"] .sp-check-list li i {
    filter: drop-shadow(0 0 6px rgba(0, 144, 168, 0.5));
}

.sp-splitter-visual {
    display: flex;
    justify-content: center;
}

.sp-splitter-cta .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

/* ============================================ */
/* CUSTOM                                        */
/* ============================================ */

.sp-custom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 60px;
}

.sp-custom-item {
    background:
        var(--card-gradient),
        var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 34px 28px;
    transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
    box-shadow:
        var(--edge-highlight),
        var(--card-shadow-rest);
    position: relative;
    min-width: 0;
}
.sp-custom-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.sp-custom-item:hover::after { opacity: 0.9; }

.sp-custom-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    background:
        var(--card-gradient),
        var(--bg-card-hover);
    box-shadow:
        var(--edge-highlight),
        var(--card-shadow-hover);
}

.sp-custom-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(0, 229, 255, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 20px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 20px -10px rgba(0, 229, 255, 0.6);
}

html[data-theme="light"] .sp-custom-icon {
    background: rgba(0, 144, 168, 0.1);
}

.sp-custom-item h4 {
    font-size: 1.12rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.sp-custom-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ============================================ */
/* GALERÍA                                       */
/* ============================================ */

.sp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 60px;
}

.sp-gallery-item {
    position: relative;
    aspect-ratio: 16 / 10;
    background:
        var(--card-gradient),
        var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        var(--edge-highlight),
        0 15px 40px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
}

.sp-gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0);
    transition: box-shadow 0.35s ease;
    pointer-events: none;
    z-index: 4;
}
.sp-gallery-item:hover::after {
    box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.4);
}

.sp-gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow:
        var(--edge-highlight),
        0 25px 60px rgba(0, 0, 0, 0.55),
        0 0 60px -20px rgba(0, 229, 255, 0.5);
}

.sp-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sp-gallery-item:hover img {
    transform: scale(1.05);
}

.sp-gallery-item .sp-placeholder-block {
    border-radius: 0;
    aspect-ratio: auto;
    height: 100%;
}

/* --- Caption que sube desde abajo --- */
.sp-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 26px 24px 24px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.82) 55%,
        rgba(0, 0, 0, 0.55) 85%,
        transparent 100%
    );
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    z-index: 3;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.35s ease;
    pointer-events: none;
}

.sp-gallery-item:hover .sp-gallery-caption,
.sp-gallery-item:focus-within .sp-gallery-caption {
    transform: translateY(0);
    opacity: 1;
}

.sp-gallery-caption h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #ffffff;
    letter-spacing: -0.2px;
    line-height: 1.25;
}

.sp-gallery-caption p {
    font-size: 0.86rem;
    line-height: 1.55;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

/* Acento cyan en el borde superior del caption */
.sp-gallery-caption::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    opacity: 0.85;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

/* En mobile, el caption se muestra siempre (no hay hover) */
@media (max-width: 768px) {
    .sp-gallery-caption {
        transform: translateY(0);
        opacity: 1;
        padding: 18px 18px 16px;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.85) 60%,
            rgba(0, 0, 0, 0.5) 90%,
            transparent 100%
        );
    }
    .sp-gallery-caption h4 { font-size: 0.98rem; }
    .sp-gallery-caption p { font-size: 0.82rem; }
}

/* ============================================ */
/* DISEÑADO PARA SHYRO                           */
/* ============================================ */

.sp-designed-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.sp-designed-text h2 {
    font-size: clamp(1.5rem, 4vw + 0.5rem, 2.9rem);
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 28px;
    letter-spacing: -1.2px;
    background: linear-gradient(180deg, #FFFFFF 0%, #A8A8B8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.3));
    overflow-wrap: break-word;
    text-wrap: balance;
}
html[data-theme="light"] .sp-designed-text h2 {
    background: linear-gradient(180deg, #0d0d12 0%, #5a5a6e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none;
}

.sp-designed-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 22px;
    font-size: 1.08rem;
}

.sp-designed-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 460px;
    position: relative;
}

.sp-panel-stack {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-panel-core {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 34px 46px;
    background:
        var(--card-gradient),
        var(--bg-card);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    box-shadow:
        var(--edge-highlight),
        0 0 0 1px rgba(0, 229, 255, 0.2),
        0 20px 60px -20px rgba(0, 229, 255, 0.5),
        0 0 80px -20px rgba(0, 229, 255, 0.55);
    font-weight: 800;
    letter-spacing: 0.5px;
    font-size: 1.15rem;
    color: var(--text-primary);
    text-align: center;
}

.sp-panel-core i {
    font-size: 2.4rem;
    color: var(--primary-color);
    filter: drop-shadow(0 0 16px rgba(0, 229, 255, 0.7));
}
html[data-theme="light"] .sp-panel-core i {
    filter: drop-shadow(0 0 14px rgba(0, 144, 168, 0.6));
}

html[data-theme="light"] .sp-panel-core {
    box-shadow:
        var(--edge-highlight),
        0 0 0 1px rgba(0, 144, 168, 0.2),
        0 20px 60px -20px rgba(0, 144, 168, 0.35),
        0 0 80px -20px rgba(0, 144, 168, 0.4);
}

.sp-panel-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    background:
        var(--card-gradient),
        var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow:
        var(--edge-highlight),
        0 4px 15px rgba(0, 0, 0, 0.35),
        0 0 20px -12px rgba(0, 229, 255, 0.5);
    white-space: nowrap;
    z-index: 2;
}

.sp-panel-chip i {
    color: var(--primary-color);
    font-size: 0.9rem;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.6));
}

.sp-panel-chip-1 { top: 6%;  left: 0;    animation: chipFloat1 6s ease-in-out infinite; }
.sp-panel-chip-2 { top: 30%; right: 0;   animation: chipFloat2 7s ease-in-out infinite; }
.sp-panel-chip-3 { bottom: 26%; left: 2%; animation: chipFloat3 8s ease-in-out infinite; }
.sp-panel-chip-4 { bottom: 6%; right: 4%; animation: chipFloat4 6.5s ease-in-out infinite; }

@keyframes chipFloat1 {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(6px, -8px); }
}
@keyframes chipFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(-8px, 6px); }
}
@keyframes chipFloat3 {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(5px, 8px); }
}
@keyframes chipFloat4 {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(-6px, -6px); }
}

/* ============================================ */
/* CTA FINAL                                     */
/* ============================================ */

.sp-root .final-cta {
    padding: clamp(80px, 10vw, 130px) 0;
}

.sp-root .final-cta h2 {
    font-size: clamp(1.6rem, 4vw + 0.5rem, 3.4rem);
    margin-bottom: 24px;
    overflow-wrap: break-word;
    text-wrap: balance;
}

.sp-root .final-cta p {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* ============================================ */
/* RESPONSIVE                                    */
/* ============================================ */

/* --- 1200px: laptops --- */
@media (max-width: 1200px) {
    .sp-features-grid { grid-template-columns: repeat(3, 1fr); }
    .sp-root .section-header h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
    .sp-root .section { padding: clamp(60px, 7vw, 90px) 0; }
    .sp-root .final-cta { padding: clamp(70px, 9vw, 110px) 0; }
    .sp-root .sp-features.section {
        padding-top: clamp(60px, 7vw, 80px);
        padding-bottom: clamp(60px, 7vw, 80px);
    }
}

/* --- 1024px: tablets --- */
@media (max-width: 1024px) {
    .sp-hero {
        padding: 150px 0 100px;
        min-height: 600px;
    }
    .sp-hero h1 { font-size: clamp(2rem, 6vw, 3.6rem); }
    .sp-hero-sub { font-size: 1.1rem; }
    .sp-hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .sp-hero-text { max-width: 100%; }
    .sp-hero-visual { order: -1; }
    .sp-browser-mockup { max-width: 600px; }

    .sp-intro-grid,
    .sp-splitter-grid,
    .sp-designed-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .sp-intro-text h2,
    .sp-splitter-text h2,
    .sp-designed-text h2 {
        font-size: clamp(1.6rem, 5vw, 2.4rem);
    }

    .sp-custom-grid { grid-template-columns: repeat(2, 1fr); }
    .sp-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .sp-features-grid { grid-template-columns: repeat(2, 1fr); }

    .sp-float-1 { left: -10px; }
    .sp-float-2 { right: -10px; }

    .sp-designed-visual { min-height: 400px; }
    .sp-panel-stack { height: 400px; }

    .sp-root .section { padding: clamp(60px, 8vw, 80px) 0; }
    .sp-root .section-header { margin-bottom: clamp(30px, 4vw, 45px); }
    .sp-root .final-cta { padding: clamp(70px, 9vw, 100px) 0; }
    .sp-root .final-cta h2 { font-size: clamp(1.6rem, 5vw, 2.8rem); }
    .sp-root .sp-features.section {
        padding-top: clamp(60px, 7vw, 75px);
        padding-bottom: clamp(60px, 7vw, 75px);
    }
}

/* --- 768px: móviles grandes --- */
@media (max-width: 768px) {
    .sp-hero {
        padding: 130px 0 90px;
        min-height: 500px;
    }
    .sp-hero h1 {
        font-size: clamp(1.6rem, 7vw, 2.8rem);
        letter-spacing: -1.2px;
    }
    .sp-hero-sub {
        font-size: 1rem;
        margin-bottom: 32px;
    }
    .sp-hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .sp-hero-buttons .btn {
        width: 100%;
    }

    .sp-hero-badge-float { font-size: 0.78rem; padding: 9px 14px; }
    .sp-float-1 { top: 6%; left: -8px; }
    .sp-float-2 { bottom: 8%; right: -8px; }

    .sp-features-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .sp-feature-card { padding: 26px 22px; }
    .sp-feature-card h4 { font-size: 1rem; }
    .sp-feature-card p { font-size: 0.9rem; }
    .sp-feature-groups { gap: 40px; margin-top: 40px; }
    .sp-feature-group-title { margin-bottom: 20px; }

    .sp-custom-grid { grid-template-columns: 1fr; }
    .sp-gallery-grid { grid-template-columns: 1fr; }

    .sp-intro-text h2,
    .sp-splitter-text h2,
    .sp-designed-text h2 {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }
    .sp-intro-text p,
    .sp-splitter-text > p,
    .sp-designed-text p {
        font-size: 1rem;
    }

    .sp-root .section { padding: clamp(50px, 7vw, 70px) 0; }
    .sp-root .section-header { margin-bottom: clamp(28px, 4vw, 38px); }
    .sp-root .section-header h2 { font-size: clamp(1.4rem, 6vw, 2.1rem); }
    .sp-section-sub { font-size: 1rem; }

    .sp-root .stats-floating { margin-top: -36px; }
    .sp-root .final-cta { padding: 85px 0; }
    .sp-root .final-cta h2 { font-size: clamp(1.4rem, 6vw, 2.2rem); }
    .sp-root .final-cta p { font-size: 1rem; }

    .sp-designed-visual { min-height: 340px; }
    .sp-panel-stack { height: 340px; }
    .sp-panel-core { padding: 26px 34px; font-size: 1rem; }
    .sp-panel-core i { font-size: 1.8rem; }
    .sp-panel-chip { font-size: 0.78rem; padding: 8px 14px; }

    .sp-root .sp-features.section {
        padding-top: clamp(50px, 6vw, 65px);
        padding-bottom: clamp(50px, 6vw, 65px);
    }

    /* Stats bar centrado */
    .sp-root .stats-bar {
        flex-direction: column;
        align-items: center;
        gap: 22px;
        padding: 30px 24px;
    }

    .sp-root .stat-item {
        width: 100%;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .sp-root .stat-item .stat-info {
        text-align: left;
    }

    .sp-root .stat-divider {
        display: block;
        width: 70%;
        height: 1px;
        margin: 0 auto;
        background: var(--border-color);
    }
}

/* --- 480px: móviles pequeños --- */
@media (max-width: 480px) {
    .sp-hero {
        padding: 120px 0 80px;
        min-height: 420px;
    }
    .sp-hero h1 {
        font-size: clamp(1.4rem, 8vw, 2.2rem);
        letter-spacing: -1px;
    }
    .sp-hero-sub { font-size: 0.95rem; }

    .sp-hero-bullets { gap: 14px; }
    .sp-hero-bullets li { font-size: 0.85rem; }

    .sp-features-grid { grid-template-columns: 1fr; }

    .sp-intro-text h2,
    .sp-splitter-text h2,
    .sp-designed-text h2 {
        font-size: clamp(1.4rem, 7vw, 1.75rem);
    }

    .sp-splitter-cta .btn,
    .sp-designed-text .btn {
        width: 100%;
    }

    .sp-panel-chip-1 { top: 4%; }
    .sp-panel-chip-2 { top: 26%; }
    .sp-panel-chip-3 { bottom: 24%; }
    .sp-panel-chip-4 { bottom: 4%; }

    /* Achicar chips flotantes para que no desborden */
    .sp-panel-chip {
        font-size: 0.7rem;
        padding: 6px 10px;
    }
    .sp-panel-chip i {
        font-size: 0.75rem;
    }

    /* Ocultar los floats del hero para evitar overflow */
    .sp-hero-badge-float {
        display: none;
    }

    .sp-root .section { padding: clamp(45px, 6vw, 60px) 0; }
    .sp-root .section-header h2 { font-size: clamp(1.3rem, 7vw, 1.8rem); }
    .sp-root .final-cta h2 { font-size: clamp(1.3rem, 7vw, 1.9rem); }

    /* Stats bar más compacta */
    .sp-root .stats-bar {
        gap: 18px;
        padding: 26px 20px;
    }

    .sp-root .stat-item .icon-circle {
        width: 46px;
        height: 46px;
        font-size: 1.15rem;
    }

    .sp-root .stat-info h3 {
        font-size: 1.5rem;
    }

    .sp-root .stat-info p {
        font-size: 0.78rem;
    }
}

/* ============================================ */
/* REDUCED MOTION (accesibilidad)                */
/* ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .sp-browser-mockup,
    .sp-float-1,
    .sp-float-2,
    .sp-panel-chip-1,
    .sp-panel-chip-2,
    .sp-panel-chip-3,
    .sp-panel-chip-4 {
        animation: none;
    }
}

/* ============================================ */
/* FOCUS VISIBLE (accesibilidad)                 */
/* ============================================ */
.sp-hero-buttons .btn:focus-visible,
.sp-gallery-item:focus-visible,
.sp-custom-item:focus-visible,
.sp-splitter-cta .btn:focus-visible,
.sp-designed-text .btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}