/* ==========================================================================
   Hybrix SpA — Unified Visual Design System
   Derived from /contacto.html reference architecture
   ========================================================================== */

:root {
    --hybrix-primary: #630ed4;
    --hybrix-primary-hover: #7c3aed;
    --hybrix-primary-soft: rgba(99, 14, 212, 0.08);
    --hybrix-primary-border: rgba(99, 14, 212, 0.24);
    --hybrix-primary-ring: rgba(99, 14, 212, 0.14);

    --hybrix-canvas: #ffffff;
    --hybrix-surface-muted: #f7f8fc;
    --hybrix-input-bg: #f3f4f8;
    --hybrix-input-bg-hover: #eceef5;

    --hybrix-ink: #0f172a;
    --hybrix-ink-secondary: #475569;
    --hybrix-ink-muted: #64748b;

    --hybrix-border: rgba(226, 232, 240, 0.85);
    --hybrix-border-strong: rgba(203, 213, 225, 0.92);

    --hybrix-navy-hero: #0c1430;
    --hybrix-navy-footer: #071326;

    --hybrix-radius-card: 24px;
    --hybrix-radius-inner: 16px;
    --hybrix-radius-control: 12px;
    --hybrix-radius-pill: 9999px;

    --hybrix-shadow-card: 0 18px 44px -18px rgba(15, 23, 42, 0.10);
    --hybrix-shadow-card-hover: 0 24px 54px -16px rgba(15, 23, 42, 0.14);
    --hybrix-shadow-elevated: 0 26px 64px -16px rgba(15, 23, 42, 0.14);
    --hybrix-shadow-btn: 0 12px 26px -8px rgba(99, 14, 212, 0.45);
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Dark Hero & Closing CTA Overlays (Matches /contacto.html) */
.hybrix-hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(10, 18, 46, 0.84) 0%,
        rgba(28, 22, 74, 0.76) 52%,
        rgba(9, 16, 40, 0.88) 100%
    );
}

.hybrix-cta-overlay {
    background: linear-gradient(
        135deg,
        rgba(7, 19, 38, 0.86) 0%,
        rgba(28, 22, 74, 0.78) 54%,
        rgba(9, 16, 40, 0.90) 100%
    );
}

/* Unified Card Family (Matches /contacto.html flagship 24px geometry) */
.hybrix-card {
    background-color: var(--hybrix-canvas);
    border: 1px solid var(--hybrix-border);
    border-radius: var(--hybrix-radius-card);
    box-shadow: var(--hybrix-shadow-card);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.25s ease;
}

.hybrix-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hybrix-shadow-card-hover);
    border-color: var(--hybrix-primary-border);
}

.hybrix-card-static {
    background-color: var(--hybrix-canvas);
    border: 1px solid var(--hybrix-border);
    border-radius: var(--hybrix-radius-card);
    box-shadow: var(--hybrix-shadow-card);
}

.hybrix-surface-muted {
    background-color: var(--hybrix-surface-muted);
    border: 1px solid var(--hybrix-border);
    border-radius: var(--hybrix-radius-card);
}

.hybrix-subcard {
    background-color: var(--hybrix-surface-muted);
    border: 1px solid var(--hybrix-border);
    border-radius: var(--hybrix-radius-inner);
}

/* Unified Form Inputs (Matches /contacto.html .contact-input) */
.hybrix-input,
.contact-input {
    background-color: var(--hybrix-input-bg);
    border: 1px solid transparent;
    border-radius: var(--hybrix-radius-control);
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hybrix-input:hover,
.contact-input:hover {
    background-color: var(--hybrix-input-bg-hover);
}

.hybrix-input:focus,
.contact-input:focus {
    background-color: #ffffff;
    border-color: rgba(99, 14, 212, 0.45);
    box-shadow: 0 0 0 4px rgba(99, 14, 212, 0.10);
    outline: none;
}

/* Unified Button Hierarchy */
.hybrix-btn-primary {
    background-color: var(--hybrix-primary);
    color: #ffffff;
    border-radius: var(--hybrix-radius-pill);
    box-shadow: var(--hybrix-shadow-btn);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hybrix-btn-primary:hover {
    background-color: var(--hybrix-primary-hover);
}

.hybrix-btn-primary:active {
    transform: scale(0.99);
}

.hybrix-btn-secondary {
    background-color: #ffffff;
    color: var(--hybrix-ink);
    border: 1px solid var(--hybrix-border-strong);
    border-radius: var(--hybrix-radius-pill);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hybrix-btn-secondary:hover {
    background-color: var(--hybrix-surface-muted);
    border-color: rgba(99, 14, 212, 0.35);
    color: var(--hybrix-primary);
}

/* Subtle Reveal Transition */
.reveal-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.active {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .hybrix-card,
    .hybrix-input,
    .contact-input,
    .hybrix-btn-primary,
    .hybrix-btn-secondary,
    .reveal-item {
        transition: none;
    }
    .hybrix-card:hover {
        transform: none;
    }
    .reveal-item {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   Hybrix Blog Rich Editor Component Styles
   ========================================================================== */

.hybrix-input-error {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.10) !important;
}

.hybrix-editor-shell {
    background-color: #ffffff;
    border: 1px solid var(--hybrix-border-strong);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hybrix-editor-shell:focus-within {
    border-color: rgba(99, 14, 212, 0.45);
    box-shadow: 0 0 0 4px rgba(99, 14, 212, 0.09);
}

.hybrix-editor-shell.is-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.10);
}

.hybrix-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.hybrix-toolbar-btn:hover:not(:disabled) {
    background-color: rgba(99, 14, 212, 0.08);
    color: var(--hybrix-primary);
}

.hybrix-toolbar-btn.is-active {
    background-color: rgba(99, 14, 212, 0.12);
    color: var(--hybrix-primary);
}

.hybrix-toolbar-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.hybrix-editor-canvas {
    min-height: 290px;
    max-height: 460px;
    overflow-y: auto;
    padding: 20px 22px;
    outline: none;
    color: #1e293b;
    font-size: 15px;
    line-height: 1.7;
}

.hybrix-editor-canvas:empty::before {
    content: attr(data-placeholder);
    color: #94a3b8;
    pointer-events: none;
}

/* Rich Prose Typography (Editor Canvas & Article Preview) */
.hybrix-prose h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin: 1.35rem 0 0.6rem;
    letter-spacing: -0.01em;
}

.hybrix-prose h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin: 1.15rem 0 0.5rem;
}

.hybrix-prose p {
    margin: 0.65rem 0;
}

.hybrix-prose strong,
.hybrix-prose b {
    font-weight: 700;
    color: #0f172a;
}

.hybrix-prose em,
.hybrix-prose i {
    font-style: italic;
}

.hybrix-prose ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 0.75rem 0;
}

.hybrix-prose ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin: 0.75rem 0;
}

.hybrix-prose li {
    margin: 0.3rem 0;
}

.hybrix-prose blockquote {
    margin: 1rem 0;
    padding: 0.85rem 1.1rem;
    background-color: #f7f8fc;
    border: 1px solid rgba(99, 14, 212, 0.22);
    border-radius: 12px;
    color: #334155;
    font-style: italic;
}

.hybrix-prose pre {
    margin: 1rem 0;
    padding: 0.9rem 1.1rem;
    background-color: #0f172a;
    color: #e2e8f0;
    border-radius: 12px;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
    line-height: 1.55;
}

.hybrix-prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.86em;
    background-color: #f1f5f9;
    color: #4c1d95;
    padding: 0.12rem 0.35rem;
    border-radius: 6px;
}

.hybrix-prose pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
}

.hybrix-prose a {
    color: var(--hybrix-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}

.hybrix-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1rem 0;
    border: 1px solid var(--hybrix-border);
}

.hybrix-prose figure {
    margin: 1rem 0;
}

.hybrix-prose figcaption {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.4rem;
    text-align: center;
}

.hybrix-prose hr {
    border: 0;
    border-top: 1px solid #cbd5e1;
    margin: 1.4rem 0;
}

/* Mobile Navigation Drawer Opaque Surface Safeguard */
#mobile-menu {
    background-color: #ffffff;
}


