/**
 * Services Block — Estilos
 * Extraídos del prototipo servicios.html, prefijados con svc-.
 *
 * @package AloraAlkemia
 */

/* ── Section wrapper ─────────────────────────────────────────────────── */
.svc-section {
    position: relative;
    background: #050B18;
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
}

/* ── Intro backgrounds ───────────────────────────────────────────────── */
.svc-intro-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 70% at 20% 30%, rgba(255,20,0,.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 70% at 80% 70%, rgba(0,28,89,.55) 0%, transparent 60%),
        radial-gradient(ellipse 100% 50% at 50% 0%,  rgba(0,28,89,.4)  0%, transparent 70%),
        #050B18;
    pointer-events: none;
    z-index: 0;
}
.svc-intro-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 90%);
    pointer-events: none;
    z-index: 0;
}

/* ── Intro section ───────────────────────────────────────────────────── */
.svc-intro {
    position: relative;
    padding: 160px 24px 100px;
    text-align: center;
    z-index: 1;
}
.svc-intro-inner {
    position: relative;
}

.svc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    letter-spacing: .3em;
    font-weight: 700;
    color: #FF1400;
    margin-bottom: 32px;
    text-transform: uppercase;
}
.svc-eyebrow-bar {
    display: block;
    width: 32px;
    height: 1px;
    background: #FF1400;
    flex-shrink: 0;
}

.svc-h1 {
    font-size: clamp(36px, 5.4vw, 68px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.025em;
    color: #fff;
    margin: 0 auto 28px;
    max-width: 1000px;
}
.svc-h1 .text-vermilion { color: #FF1400; }

.svc-sub {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255,255,255,.6);
    max-width: 720px;
    margin: 0 auto 52px;
    font-weight: 400;
}

/* ── Stats row ───────────────────────────────────────────────────────── */
.svc-intro-meta {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    padding: 18px 36px;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 4px;
    backdrop-filter: blur(10px);
}
.svc-meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.svc-meta-num {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #fff;
}
.svc-meta-label {
    font-size: 10px;
    letter-spacing: .2em;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
}
.svc-meta-sep {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,.1);
    flex-shrink: 0;
}

/* ── Services list ───────────────────────────────────────────────────── */
.svc-list {
    position: relative;
    padding: 60px 0 120px;
    z-index: 1;
}
.svc-list-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 30% at 0% 30%,   rgba(0,28,89,.35)  0%, transparent 60%),
        radial-gradient(ellipse 50% 30% at 100% 70%,  rgba(255,20,0,.06) 0%, transparent 60%),
        transparent;
    pointer-events: none;
}
.svc-list-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 72px;
}

/* ── Service block ───────────────────────────────────────────────────── */
.svc-block {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 56px 0 8px;
    border-top: 1px solid rgba(255,255,255,.06);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease, transform .8s ease;
}
.svc-block.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.svc-block:first-child {
    border-top: none;
    padding-top: 8px;
}

/* Two-column layout */
.svc-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 80px;
    align-items: center;
}
.svc-hero-text {
    display: flex;
    flex-direction: column;
}
.svc-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Reverse layout — visual left, text right */
.svc-block--reverse .svc-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}
.svc-block--reverse .svc-hero-text  { order: 2; }
.svc-block--reverse .svc-hero-visual { order: 1; }

/* Number row */
.svc-block-num-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.svc-block-num {
    font-size: 14px;
    font-weight: 800;
    color: #FF1400;
    letter-spacing: .1em;
}
.svc-block-line {
    flex: 0 0 56px;
    height: 1px;
    background: linear-gradient(90deg, #FF1400, transparent);
}
.svc-block-tag {
    font-size: 10px;
    letter-spacing: .3em;
    color: rgba(255,255,255,.4);
    font-weight: 600;
    text-transform: uppercase;
}

/* Text content */
.svc-block-title {
    font-size: clamp(24px, 2.8vw, 38px);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.12;
    color: #fff;
    margin: 0 0 10px;
    max-width: 560px;
}
.svc-block-tagline {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,20,0,.85);
    font-weight: 600;
    font-style: italic;
    margin: 0 0 18px;
    max-width: 560px;
}
.svc-block-desc {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255,255,255,.72);
    margin: 0 0 24px;
    max-width: 560px;
}

/* ── Accordion ───────────────────────────────────────────────────────── */
.svc-acc {
    margin-top: 4px;
    max-width: 560px;
}
.svc-acc-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(255,20,0,.06);
    border: 1px solid rgba(255,20,0,.25);
    border-radius: 3px;
    color: rgba(255,255,255,.85);
    font-size: 12.5px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: .04em;
    cursor: pointer;
    transition: background .25s ease, border-color .25s ease, color .25s ease;
    width: 100%;
    justify-content: space-between;
}
.svc-acc-toggle:hover {
    background: rgba(255,20,0,.12);
    border-color: rgba(255,20,0,.5);
    color: #fff;
}
.svc-acc-toggle[aria-expanded="true"] {
    background: rgba(255,20,0,.1);
    border-color: rgba(255,20,0,.5);
    color: #fff;
}
.svc-acc-toggle[aria-expanded="true"] .svc-acc-chevron {
    transform: rotate(180deg);
}
.svc-acc-chevron {
    width: 14px;
    height: 14px;
    color: #FF1400;
    flex-shrink: 0;
    transition: transform .3s ease;
}
.svc-acc-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height .4s cubic-bezier(.4,0,.2,1), opacity .3s ease;
}
.svc-acc-panel.is-open {
    max-height: 800px;
    opacity: 1;
    pointer-events: auto;
}
.svc-acc-items {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.svc-acc-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-left: 1.5px solid rgba(255,20,0,.4);
    background: linear-gradient(90deg, rgba(255,20,0,.04), transparent);
    margin-bottom: 6px;
    transition: border-color .2s ease, background .2s ease;
}
.svc-acc-item:hover {
    border-left-color: #FF1400;
    background: linear-gradient(90deg, rgba(255,20,0,.09), transparent);
}
.svc-acc-item:last-child { margin-bottom: 0; }
.svc-acc-item-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}
.svc-acc-item-body {
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255,255,255,.6);
}

/* ── Visual (SVG animation frame) ────────────────────────────────────── */
.svc-visual {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1;
}
.svc-visual-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle at center, rgba(255,20,0,.18) 0%, transparent 60%);
    filter: blur(40px);
    pointer-events: none;
}
.svc-visual-frame {
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.01) 100%),
        rgba(5,11,24,.6);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(8px);
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        0 30px 80px -20px rgba(0,0,0,.6);
    transition: border-color .4s ease, transform .5s ease;
}
.svc-block:hover .svc-visual-frame {
    border-color: rgba(255,20,0,.25);
    transform: translateY(-4px);
}
.svc-visual-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle at center, black 20%, transparent 80%);
}
.svc-visual-rings {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.svc-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.06);
}
.svc-ring-1 {
    width: 50%;
    height: 50%;
    border-color: rgba(255,20,0,.25);
    animation: svc-spin 14s linear infinite;
    position: relative;
}
.svc-ring-1::before {
    content: "";
    position: absolute;
    top: -3px;
    left: 50%;
    width: 5px;
    height: 5px;
    background: #FF1400;
    border-radius: 50%;
    box-shadow: 0 0 10px #FF1400;
    transform: translateX(-50%);
}
.svc-ring-2 {
    width: 70%;
    height: 70%;
    border-style: dashed;
    border-color: rgba(255,255,255,.08);
    animation: svc-spin 24s linear infinite reverse;
}
.svc-ring-3 {
    width: 90%;
    height: 90%;
    border-color: rgba(0,28,89,.5);
}
.svc-visual-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,20,0,.25) 0%, rgba(5,11,24,.95) 70%);
    border: 1.5px solid rgba(255,20,0,.6);
    color: #FF1400;
    box-shadow: 0 0 40px rgba(255,20,0,.35), inset 0 0 24px rgba(255,20,0,.1);
    z-index: 3;
}
.svc-visual-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1px solid rgba(255,20,0,.4);
}
.svc-corner-tl { top: 8px;    left: 8px;  border-right: none; border-bottom: none; }
.svc-corner-tr { top: 8px;    right: 8px; border-left: none;  border-bottom: none; }
.svc-corner-bl { bottom: 8px; left: 8px;  border-right: none; border-top: none;    }
.svc-corner-br { bottom: 8px; right: 8px; border-left: none;  border-top: none;    }

/* SVG overlay */
.svc-vis-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: visible;
}

/* Stack visual */
.svc-stack {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 2;
    pointer-events: none;
}
.svc-stack-layer {
    height: 8px;
    background: linear-gradient(90deg, transparent, rgba(255,20,0,.2), transparent);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 2px;
    animation: svc-slide 3s ease-in-out infinite;
}

/* Pulse visual */
.svc-pulse-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    z-index: 2;
    pointer-events: none;
}
.svc-pulse-bar {
    width: 3px;
    height: 20px;
    background: linear-gradient(180deg, #FF1400, rgba(255,20,0,.2));
    border-radius: 2px;
    animation: svc-pulse-anim 1.4s ease-in-out infinite;
}

/* ── Keyframes ───────────────────────────────────────────────────────── */
@keyframes svc-spin       { from { transform: rotate(0deg) }   to { transform: rotate(360deg) } }
@keyframes svc-blink      { 0%,100% { opacity: .3 }            50% { opacity: 1 } }
@keyframes svc-travel     { 0% { transform: translateX(0); opacity: 0 } 10% { opacity: 1 } 90% { opacity: 1; transform: translateX(220px) } 100% { transform: translateX(220px); opacity: 0 } }
@keyframes svc-slide      { 0%,100% { transform: translateX(-8px); opacity: .5 } 50% { transform: translateX(8px); opacity: 1 } }
@keyframes svc-pulse-anim { 0%,100% { transform: scaleY(.4); opacity: .4 }        50% { transform: scaleY(1.6); opacity: 1 } }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 880px) {
    .svc-intro { padding: 120px 20px 80px; }
    .svc-intro-meta { flex-wrap: wrap; gap: 20px; padding: 16px 24px; }
    .svc-meta-sep { display: none; }
    .svc-list { padding: 40px 0 80px; }
    .svc-list-inner { gap: 52px; }
    .svc-block { gap: 24px; padding: 40px 0 8px; }
    .svc-hero { grid-template-columns: 1fr; gap: 32px; }
    .svc-hero-visual { order: -1; }
    .svc-visual { max-width: 260px; margin: 0 auto; }
    .svc-acc { max-width: 100%; }
    .svc-block-title { font-size: 22px; }
    .svc-block-desc { max-width: 100%; }
    .svc-block-tagline { max-width: 100%; }
}

@media (max-width: 480px) {
    .svc-h1 { font-size: 32px; }
    .svc-block-title { font-size: 20px; }
    .svc-intro { padding: 100px 16px 60px; }
}

@media (prefers-reduced-motion: reduce) {
    .svc-block { opacity: 1; transform: none; }
    .svc-ring-1, .svc-ring-2 { animation: none; }
    .svc-stack-layer, .svc-pulse-bar { animation: none; }
}
