﻿/* seidel.css */

/* =========================================================
   Tokens
   ========================================================= */
:root {
    --seidel-ink: #031a2b;
    --seidel-bg: #ffffff;
    --seidel-card: #ffffff;
    --seidel-muted: #5b6b79;
    --seidel-muted-on-accent: #2b3a24;
    --seidel-border: #e6edf2;
    --seidel-lime: #a2db00;
    --seidel-orange: #ff7a00;
    --seidel-sky: #00c4ff;
    --seidel-accent: var(--seidel-lime);
    --seidel-radius: 1.25rem;
    --seidel-radius-sm: .9rem;
    --seidel-shadow: 0 18px 40px rgba(3,26,43,.10);
    --seidel-shadow-sm: 0 10px 25px rgba(3,26,43,.08);
    --seidel-focus: 0 0 0 .25rem rgba(3,26,43,.12);
    --seidel-header-height: 80px;
    --seidel-header-z: 1030;
}

/* =========================================================
   Theme
   ========================================================= */
body[data-theme="corporate"],
body[data-theme=""],
body.theme-corporate {
    --seidel-accent: var(--seidel-lime);
}

body[data-theme="software"],
body.theme-software {
    --seidel-accent: var(--seidel-orange);
}

body[data-theme="ia"],
body.theme-ia {
    --seidel-accent: var(--seidel-sky);
}

/* =========================================================
   Bootstrap mapping
   ========================================================= */
:root {
    --bs-body-bg: var(--seidel-bg);
    --bs-body-color: var(--seidel-ink);
    --bs-border-color: var(--seidel-border);
    --bs-primary: var(--seidel-accent);
    --bs-link-color: var(--seidel-ink);
    --bs-link-hover-color: var(--seidel-accent);
    --bs-border-radius: var(--seidel-radius);
    --bs-border-radius-sm: var(--seidel-radius-sm);
    --bs-font-sans-serif: "Lexend",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}

/* =========================================================
   Base
   ========================================================= */
html {
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    font-family: var(--bs-font-sans-serif);
    letter-spacing: -0.01em;
    color: var(--seidel-ink);
    background: var(--seidel-bg);
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#mainContent {
    flex: 1 0 auto;
    min-height: 0;
}

h1, h2, h3 {
    letter-spacing: -0.03em;
    color: var(--seidel-ink);
}

.lead {
    color: var(--seidel-muted);
}

.fw-black {
    font-weight: 900;
}

.seidel-muted {
    color: var(--seidel-muted) !important;
}

.seidel-muted-on-accent {
    color: var(--seidel-muted-on-accent) !important;
}

.seidel-accent {
    color: var(--seidel-accent) !important;
}

.seidel-ink {
    color: var(--seidel-ink) !important;
}

.seidel-bg {
    background: var(--seidel-bg) !important;
}

.seidel-accent-bg {
    background: var(--seidel-accent) !important;
}

.seidel-whatsapp {
    color: #25D366;
}

/* =========================================================
   Scrollbar
   ========================================================= */

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--seidel-ink) rgba(3, 26, 43, .10);
}

    /* Chrome / Edge / Safari */
    html::-webkit-scrollbar {
        width: 12px;
    }

    html::-webkit-scrollbar-track {
        background: rgba(3, 26, 43, .10);
    }

    html::-webkit-scrollbar-thumb {
        background-color: var(--seidel-ink);
        border-radius: 10px;
        border: 3px solid rgba(3, 26, 43, .10); /* aire visual */
    }

        html::-webkit-scrollbar-thumb:hover {
            background-color: #04253f; /* un pelín más claro al hover */
        }

/* =========================================================
   Header / Navbar
   ========================================================= */
#siteHeader {
    position: sticky;
    top: 0;
    z-index: var(--seidel-header-z);
}

    #siteHeader .seidel-navbar {
        background: var(--seidel-accent);
        box-shadow: none;
        border: 0;
        height: 80px;
        display: flex;
        align-items: center;
        padding: 0;
        transition: none;
        flex-wrap: wrap;
    }

    /* Brand + links */
    #siteHeader .navbar-brand,
    #siteHeader .nav-link {
        color: var(--seidel-ink);
    }

    #siteHeader .nav-link {
        font-weight: 600;
        opacity: .9;
        position: relative;
        text-decoration: none;
    }

        #siteHeader .nav-link:hover {
            opacity: 1;
            text-decoration: none;
        }

        /* Underline animation */
        #siteHeader .nav-link::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -2px;
            width: 0;
            height: 2px;
            background-color: var(--seidel-ink);
            transition: width .25s ease;
        }

        #siteHeader .nav-link:hover::after,
        #siteHeader .nav-link:focus::after {
            width: 100%;
        }

/* Mobile */
@media (max-width: 991.98px) {
    #siteHeader .seidel-navbar {
        height: auto;
        padding: .5rem 0;
    }

    #siteHeader .navbar-collapse {
        padding: .75rem 0 1rem;
    }

    #siteHeader .navbar-nav {
        gap: .25rem !important;
    }

    #siteHeader .seidel-cta {
        width: 100%;
        text-align: center;
    }
}

/* CTA */
.seidel-cta {
    border-radius: 999px;
    font-weight: 800;
    padding: .65rem 1.1rem;
    border: 0;
    background: #fff;
    color: var(--seidel-ink);
}

/* Logo + toggler */
.site-logo {
    display: block;
}

.navbar-toggler {
    border: 0;
}

    .navbar-toggler:focus {
        box-shadow: var(--seidel-focus);
    }

.navbar.seidel-navbar {
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%283,26,43,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
    border-radius: var(--seidel-radius);
    font-weight: 700;
}

.btn-primary {
    --bs-btn-bg: var(--seidel-accent);
    --bs-btn-border-color: var(--seidel-accent);
    --bs-btn-color: var(--seidel-ink);
    --bs-btn-hover-bg: var(--seidel-accent);
    --bs-btn-hover-border-color: var(--seidel-accent);
    --bs-btn-hover-color: var(--seidel-ink);
    --bs-btn-active-bg: var(--seidel-accent);
    --bs-btn-active-border-color: var(--seidel-accent);
    --bs-btn-active-color: var(--seidel-ink);
    --bs-btn-focus-shadow-rgb: 3,26,43;
    background: var(--seidel-accent);
    border: 0;
    color: var(--seidel-ink);
    box-shadow: 0 10px 25px rgba(3,26,43,.10);
}

    .btn-primary:hover {
        filter: brightness(.96);
        box-shadow: 0 14px 30px rgba(3,26,43,.14);
    }

    .btn-primary:focus,
    .btn-primary:active {
        box-shadow: var(--seidel-focus);
    }

.btn-outline-primary {
    border: 2px solid var(--seidel-accent);
    color: var(--seidel-ink);
}

    .btn-outline-primary:hover {
        background: var(--seidel-accent);
        border-color: var(--seidel-accent);
        color: var(--seidel-ink);
    }

    .btn-outline-primary:active,
    .btn-outline-primary.active,
    .btn-outline-primary:focus:active {
        background: var(--seidel-accent) !important;
        border-color: var(--seidel-accent) !important;
        color: var(--seidel-ink) !important;
    }

        .btn-outline-primary:active:focus {
            box-shadow: var(--seidel-focus) !important;
        }

.btn-check:checked + .btn-outline-primary,
.btn-check:active + .btn-outline-primary,
.btn-check:focus + .btn-outline-primary {
    background: var(--seidel-accent) !important;
    border-color: var(--seidel-accent) !important;
    color: var(--seidel-ink) !important;
    box-shadow: var(--seidel-focus) !important;
}

.btn,
.btn-outline-primary {
    -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   Cards
   ========================================================= */
.card.seidel-card {
    border: 1px solid var(--seidel-border);
    border-radius: var(--seidel-radius);
    background: var(--seidel-card);
    box-shadow: var(--seidel-shadow);
}

    .card.seidel-card .card-title {
        font-weight: 800;
    }

.seidel-hero-card {
    border-radius: calc(var(--seidel-radius) + .5rem);
    border: 1px solid var(--seidel-border);
    background: var(--seidel-card);
    box-shadow: var(--seidel-shadow);
}

.porfolio-card-btn {
    border: 1px solid var(--seidel-border);
    background: var(--seidel-card);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    cursor: pointer;
}

    .porfolio-card-btn:hover {
        transform: translateY(-2px);
        border-color: var(--seidel-accent);
        box-shadow: 0 14px 30px rgba(3,26,43,.14);
    }

    .porfolio-card-btn:focus,
    .porfolio-card-btn:active {
        box-shadow: var(--seidel-focus);
        outline: none;
    }

.porfolio-open-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--seidel-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.7);
}

.porfolio-clamp-3,
.porfolio-clamp-1 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.porfolio-clamp-3 {
    -webkit-line-clamp: 3;
}

.porfolio-clamp-1 {
    -webkit-line-clamp: 1;
}

/* =========================================================
   Forms
   ========================================================= */
.form-control, .form-select {
    border-radius: var(--seidel-radius);
    border-color: var(--seidel-border);
}

    .form-control:focus, .form-select:focus {
        border-color: var(--seidel-accent);
        box-shadow: 0 0 0 .25rem rgba(3,26,43,.12);
    }

/* =========================================================
   Hero / Masthead
   ========================================================= */
.seidel-masthead {
    min-height: 100vh;
    background: var(--seidel-accent);
    display: flex;
    align-items: center;
    position: relative;
    padding-bottom: 6rem;
}

section[id] {
    scroll-margin-top: calc(var(--seidel-header-height) + 20px);
}

.seidel-float-wrap {
    margin-top: 4.5rem;
}

@media (min-width:992px) {
    .seidel-float-wrap {
        margin-top: 5.5rem;
    }
}

.seidel-hero-sentinel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
}

/* Choice button */
.seidel-choice-btn {
    background: #ffffff;
    border: 1px solid var(--seidel-border);
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease;
}

    .seidel-choice-btn:hover {
        transform: translateY(-2px);
        border-color: var(--seidel-accent);
    }

    .seidel-choice-btn:active {
        transform: translateY(0);
    }

/* Soft link */
.seidel-soft-link {
    color: var(--seidel-ink);
    text-decoration: none;
    transition: opacity .15s ease;
}

    .seidel-soft-link:hover {
        opacity: .8;
    }

/* Terminal cursor */
.terminal-cursor {
    display: inline-block;
    margin-left: 2px;
    animation: cursorBlink 1s steps(1) infinite;
}

@keyframes cursorBlink {
    50% {
        opacity: 0;
    }
}

/* Optional responsive display size */
@media (min-width:768px) {
    .display-md-3 {
        font-size: calc(1.9rem + 2.1vw);
    }
}

/* =========================================================
   Small UI helpers
   ========================================================= */
.seidel-section-title {
    font-weight: 900;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
}

.seidel-pill {
    display: inline-flex;
    gap: .5rem;
    align-items: center;
    padding: .35rem .8rem;
    border: 1px solid var(--seidel-border);
    border-radius: 999px;
    background: rgba(255,255,255,.7);
    color: var(--seidel-ink);
    font-weight: 600;
}

.seidel-underline {
    box-shadow: inset 0 -0.35em 0 0 var(--seidel-accent);
}

/* =========================================================
   Footer (sticky bottom via flex wrapper .site-shell)
   ========================================================= */
.seidel-footer {
    margin-top: auto;
    background: var(--seidel-ink);
    color: rgba(255,255,255,.86);
}

.seidel-footer-brand {
    color: rgba(255,255,255,.92);
}

.seidel-footer-logo {
    height: 50px;
    width: auto;
    display: block;
}

.seidel-footer-claim {
    line-height: 1.35;
    font-size: 1rem;
    color: rgba(255,255,255,.90);
}

.seidel-footer-title {
    font-size: .95rem;
    font-weight: 700;
    color: rgba(255,255,255,.90);
    margin: 0 0 .75rem 0;
    letter-spacing: -0.01em;
}

.seidel-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .45rem;
}

.seidel-footer-link {
    color: rgba(255,255,255,.72);
    font-weight: 300;
    text-decoration: none;
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
    transition: color .15s ease, opacity .15s ease;
}

    .seidel-footer-link:hover {
        color: #ffffff;
    }

.seidel-footer-divider {
    border-color: rgba(255,255,255,.14);
    opacity: 1;
}

.seidel-footer-legal {
    color: rgba(255,255,255,.70);
    font-size: .95rem;
    font-weight: 500;
}

.seidel-footer-legal-link {
    color: rgba(255,255,255,.70);
    text-decoration: none;
    font-size: .95rem;
    font-weight: 500;
    transition: color .15s ease, opacity .15s ease;
}

    .seidel-footer-legal-link:hover {
        color: #ffffff;
        text-decoration: none;
        text-underline-offset: 4px;
    }

.seidel-footer-trust-title {
    color: rgba(255,255,255,.90);
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
    text-align: center;
}

.seidel-footer-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 48px;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,.12);
    border-bottom: 1px solid rgba(255,255,255,.12);
}

    .seidel-footer-logos img {
        height: 58px;
        width: auto;
        opacity: .75;
        filter: brightness(0) invert(1);
        transition: opacity .15s ease;
    }

        .seidel-footer-logos img:hover {
            opacity: 1;
        }

/* =========================================================
   Porfolio Modal
   ========================================================= */
body.modal-open {
    padding-right: 0 !important;
}

.modal-open .fixed-top,
.modal-open .fixed-bottom,
.modal-open .is-fixed,
.modal-open #siteHeader {
    padding-right: 0 !important;
}

#porfolioProjectModal .pf-modal-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    opacity: .65;
}

    #porfolioProjectModal .pf-modal-close:hover {
        opacity: 1;
    }

@media (max-width:575.98px) {
    #porfolioProjectModal .modal-dialog {
        margin: .5rem;
        max-width: calc(100% - 1rem);
    }
}

/* =========================================================
   Cookie banner
   ========================================================= */
.seidel-cookie {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: calc(var(--seidel-radius) - .25rem);
    background: rgba(3,26,43,.92);
    border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(10px);
    color: rgba(255,255,255,.92);
    box-shadow: var(--seidel-shadow-sm);
}

@media (min-width:992px) {
    .seidel-cookie {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(100% - 40px, 1320px);
    }
}

.seidel-cookie .seidel-muted {
    color: rgba(255,255,255,.78) !important;
}

.seidel-cookie a {
    color: #ffffff;
    opacity: .92;
}

    .seidel-cookie a:hover {
        opacity: 1;
    }

.seidel-cookie__text {
    min-width: 0;
}

.seidel-cookie__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.seidel-cookie .btn-outline-primary {
    border-color: rgba(255,255,255,.35);
    color: rgba(255,255,255,.92);
}

    .seidel-cookie .btn-outline-primary:hover {
        background: rgba(255,255,255,.12);
        border-color: rgba(255,255,255,.45);
        color: #ffffff;
    }

@media (max-width:640px) {
    .seidel-cookie {
        flex-direction: column;
        align-items: stretch;
    }

    .seidel-cookie__actions .btn {
        width: 100%;
    }
}
