/* ==========================================================================
   MICRODATACENTER.NET — Shared Stylesheet
   Abdelouahab Issoummour · Alicante · 2026
   ========================================================================== */

*{ margin:0; padding:0; box-sizing:border-box; }

:root {
    --navy:         #0D1B2A;
    --navy2:        #132236;
    --navy3:        #091124;
    --teal:         #0A9396;
    --teal-glow:    rgba(10,147,150,.25);
    --mint:         #94D2BD;

    /* alias legacy — ahora definidos */
    --neon-cyan:    #0A9396;
    --neon-purple:  #7C6FF7;

    --bg-deep:      #0b1520;
    --bg-card:      #111e34;
    --bg-alt:       #050b18;

    --text-white:   #ffffff;
    --text-gray:    #94a3b8;
    --text-muted:   #64748b;

    --border-glow:  rgba(10,147,150,.2);
    --border-card:  rgba(10,147,150,.15);

    --error:        #f43f5e;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-deep);
    color: var(--text-white);
    line-height: 1.65;
    overflow-x: clip;
}

::selection { background: var(--teal); color: #000; }

.container { width: 92%; max-width: 1140px; margin: auto; }

/* ── NAV ── */
nav {
    position: sticky; top: 0;
    background: rgba(9,17,36,.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    height: 64px;
    border-bottom: 1px solid var(--border-glow);
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0,0,0,.4);
}
.nav-content {
    display: flex; justify-content: space-between; align-items: center; height: 64px;
}
.logo-link { text-decoration: none; }
.logo {
    font-size: 1.25rem; font-weight: 900; letter-spacing: -.5px;
    color: #fff; font-family: monospace, sans-serif;
}
.logo .logo-teal { color: var(--teal); }
.badge-ia {
    background: linear-gradient(135deg, var(--teal), var(--neon-purple));
    color: #fff; padding: 2px 8px; border-radius: 4px;
    font-size: .72rem; font-weight: 900; letter-spacing: 1px; vertical-align: middle;
}
.menu { display: flex; align-items: center; }
.menu a {
    color: var(--text-gray); text-decoration: none; margin-left: 22px;
    font-size: .88rem; font-weight: 600; letter-spacing: .3px; transition: .2s;
}
.menu a:hover { color: var(--teal); }
.menu a.lang-switch {
    color: var(--teal); border: 1px solid var(--teal);
    padding: 5px 12px; border-radius: 6px; background: rgba(10,147,150,.06); margin-left: 28px;
}
.menu a.lang-switch:hover { background: var(--teal); color: #000; }

/* ── HERO ── */
.hero {
    padding: 110px 20px 90px; text-align: center; position: relative;
    background: radial-gradient(ellipse at 50% 0%, rgba(10,147,150,.10) 0%, var(--bg-deep) 65%);
}
.hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(10,147,150,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10,147,150,.03) 1px, transparent 1px);
    background-size: 44px 44px;
}
.hero .container { position: relative; z-index: 1; }
.tech-tag {
    display: inline-block; font-family: monospace; font-size: .75rem;
    color: var(--teal); letter-spacing: 1.5px; margin-bottom: 1.5rem; opacity: .85;
}
.hero h1 {
    font-size: clamp(2rem, 5.5vw, 3.6rem); font-weight: 900;
    margin-bottom: 24px; line-height: 1.12; letter-spacing: -1.5px;
    background: linear-gradient(180deg, #fff 40%, #94D2BD 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    animation: fadeUp .9s ease-out;
}
.hero p {
    font-size: 1.15rem; color: var(--text-gray); margin-bottom: 40px;
    max-width: 680px; margin-left: auto; margin-right: auto; animation: fadeUp 1.1s ease-out;
}
.hero-buttons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-metrics {
    display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap;
    padding-top: 2rem; border-top: 1px solid var(--border-glow);
    max-width: 820px; margin: 0 auto;
}
.metric-val { font-size: 1.8rem; font-weight: 900; color: var(--teal); font-family: monospace; }
.metric-lbl { font-size: .78rem; color: var(--text-muted); margin-top: 3px; letter-spacing: .3px; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── BUTTONS ── */
.btn-primary, .btn-secondary {
    padding: 14px 30px; border-radius: 8px; text-decoration: none;
    font-weight: 700; font-size: .92rem; letter-spacing: .5px; display: inline-block; transition: .25s;
}
.btn-primary {
    background: var(--teal); color: #fff; border: none; cursor: pointer;
    box-shadow: 0 4px 20px rgba(10,147,150,.35);
}
.btn-primary:hover { background: #0bb5b8; transform: translateY(-2px); box-shadow: 0 6px 28px rgba(10,147,150,.55); }
.btn-secondary { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }

/* ── SECTIONS ── */
section { padding: 100px 0; background: var(--bg-deep); }
.section-alt { background: var(--bg-alt); }

h2 {
    position: relative; display: inline-block; left: 50%; transform: translateX(-50%);
    margin-bottom: 55px; text-align: center;
    font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900;
    text-transform: uppercase; font-family: monospace, sans-serif; letter-spacing: 1px;
}
h2::after {
    content: ''; position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%);
    width: 60px; height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--neon-purple)); border-radius: 2px;
}

/* ── CARDS ── */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card {
    position: relative; overflow: hidden; background: var(--bg-card); padding: 30px;
    border-radius: 14px; border: 1px solid var(--border-card); transition: .3s;
    box-shadow: 0 8px 28px rgba(0,0,0,.22);
}
.card::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.04), transparent); transition: .6s;
}
.card:hover::before { left: 100%; }
.card:hover { transform: translateY(-6px); border-color: var(--teal); box-shadow: 0 12px 32px rgba(10,147,150,.18); }
.card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card p  { color: var(--text-gray); font-size: .93rem; line-height: 1.7; }

/* card-code: etiqueta terminal */
.card-code {
    font-family: monospace; font-size: .7rem; letter-spacing: 1px;
    color: var(--teal); margin-bottom: 10px; opacity: .9;
}
.text-error { color: var(--error) !important; }
.text-cyan  { color: var(--teal) !important; }

.card.error-border { border-left: 3px solid var(--error); }
.card.error-border:hover { border-color: var(--error); box-shadow: 0 12px 32px rgba(244,63,94,.15); }
.card.error-border h3 { color: var(--error); }

/* ── ARCHITECTURE ── */
.architecture { display: flex; flex-direction: column; gap: 10px; max-width: 860px; margin: 0 auto 2.5rem; }
.architecture .layer {
    background: var(--navy3); padding: 18px 26px; border-radius: 10px;
    border: 1px solid var(--border-card); font-family: monospace; font-size: .88rem;
    font-weight: 600; letter-spacing: .8px; transition: .25s;
    display: flex; align-items: center; gap: 16px;
}
.architecture .layer:hover { background: #111e3d; border-color: rgba(255,255,255,.18); }
.layer-num { color: var(--teal); font-weight: 900; font-size: .82rem; white-space: nowrap; min-width: 80px; }
.architecture .hardware-layer {
    background: linear-gradient(90deg, rgba(10,147,150,.15), rgba(124,111,247,.12));
    border: 2px solid var(--teal); font-size: .96rem; font-weight: 900;
    box-shadow: 0 0 22px rgba(10,147,150,.18);
}
.arch-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; max-width: 860px; margin: 0 auto; }
.spec-pill { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 10px; padding: 12px 16px; font-family: monospace; }
.spec-pill .sp-key { color: var(--text-muted); margin-bottom: 4px; font-size: .7rem; letter-spacing: .5px; }
.spec-pill .sp-val { color: var(--teal); font-weight: 900; font-size: .92rem; }

/* ── RESEARCH ── */
.ref-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.ref-card { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 14px; padding: 22px; transition: .25s; }
.ref-card:hover { border-color: var(--teal); }
.ref-tag {
    display: inline-block; background: rgba(10,147,150,.12); color: var(--teal);
    font-size: .66rem; font-weight: 900; letter-spacing: .8px; padding: 3px 9px;
    border-radius: 99px; margin-bottom: 10px; text-transform: uppercase; border: 1px solid rgba(10,147,150,.28);
}
.ref-title   { font-size: .95rem; font-weight: 900; color: var(--teal); margin-bottom: 4px; font-family: monospace; }
.ref-authors { font-size: .76rem; color: var(--text-muted); font-style: italic; margin-bottom: 10px; }
.ref-finding { font-size: .84rem; color: var(--text-gray); line-height: 1.65; }
.ref-url     { font-size: .7rem; color: rgba(10,147,150,.55); margin-top: 10px; font-family: monospace; }

/* ── FOUNDER / TEAM ── */
.tech-founder { max-width: 820px; margin: 0 auto; }
.founder-card {
    border-left: 4px solid var(--teal); border-radius: 14px;
    background: linear-gradient(135deg, #0b1329, #050c1a); padding: 36px 40px;
}
.founder-header { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.founder-avatar {
    width: 66px; height: 66px; border-radius: 50%; background: var(--navy3);
    border: 2px solid var(--teal); display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 900; color: var(--teal); flex-shrink: 0; font-family: monospace;
}
.founder-name  { font-size: 1.2rem; font-weight: 900; color: #fff; margin-bottom: 4px; }
.founder-title { font-size: .86rem; color: var(--teal); font-weight: 600; }
.founder-bio { color: var(--text-gray); font-size: .93rem; line-height: 1.7; margin-bottom: 16px; }
.founder-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.founder-tag {
    background: rgba(10,147,150,.1); border: 1px solid rgba(10,147,150,.25); color: var(--mint);
    font-size: .7rem; font-weight: 700; padding: 4px 11px; border-radius: 99px;
}
.founder-links { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-outline-teal {
    display: inline-block; padding: 10px 20px; border: 1px solid var(--teal); color: var(--teal);
    font-size: .83rem; font-weight: 700; border-radius: 7px; text-decoration: none;
    transition: .2s; font-family: monospace; letter-spacing: .5px;
}
.btn-outline-teal:hover { background: var(--teal); color: #000; }

/* ── ROADMAP ── */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.card.unique-card { border: 2px solid var(--teal); background: rgba(10,147,150,.04); box-shadow: 0 0 28px rgba(10,147,150,.12); }
.card.unique-card h3 { color: var(--teal); }
.stage-badge {
    display: inline-block; background: var(--teal); color: #000; font-size: .68rem; font-weight: 900;
    padding: 3px 10px; border-radius: 4px; margin-bottom: 10px; font-family: monospace; letter-spacing: .5px;
}

/* ── BENEFITS ── */
.checklist-section { background: #02050e; }
.benefits { max-width: 700px; margin: 0 auto; list-style: none; font-size: 1rem; }
.benefits li {
    padding: 15px 0; color: #fff; border-bottom: 1px solid rgba(255,255,255,.05);
    transition: .2s; display: flex; align-items: center; gap: 14px;
}
.benefits li:hover { padding-left: 8px; color: var(--teal); }
.bullet { color: var(--teal); font-family: monospace; font-weight: 900; font-size: 1rem; flex-shrink: 0; }

/* ── CONTACT ── */
.contact { max-width: 680px; margin: 0 auto; }
.contact > p { margin-bottom: 38px; font-size: 1rem; color: var(--text-gray); }
.contact-form {
    background: var(--bg-card); padding: 42px 46px; border-radius: 16px;
    border: 1px solid var(--border-card); box-shadow: 0 20px 50px rgba(0,0,0,.32);
}
.form-group { margin-bottom: 22px; }
.form-group label {
    display: block; margin-bottom: 8px; font-size: .75rem; font-weight: 700;
    color: #fff; letter-spacing: 1.2px; text-transform: uppercase; font-family: monospace;
}
.form-group input, .form-group textarea {
    width: 100%; padding: 13px 15px; background: var(--bg-deep);
    border: 1px solid var(--border-card); border-radius: 8px; color: #fff;
    font-size: .93rem; font-family: inherit; transition: .22s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--teal); background: #060e22;
    box-shadow: 0 0 0 3px rgba(10,147,150,.14);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-submit {
    width: 100%; padding: 15px; border: none; border-radius: 8px; cursor: pointer;
    font-size: .95rem; font-weight: 900; text-transform: uppercase; font-family: monospace;
    letter-spacing: 1px; color: #000; background: linear-gradient(90deg, var(--teal), #0bb5b8);
    transition: .25s; box-shadow: 0 4px 20px rgba(10,147,150,.3);
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 0 28px rgba(10,147,150,.55); }

/* ── FOOTER ── */
footer {
    text-align: center; padding: 44px 20px; background: #010308;
    color: #475569; font-size: .88rem; border-top: 1px solid rgba(10,147,150,.15); font-family: monospace;
}
footer p { margin-bottom: 8px; }
footer a { color: var(--teal); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #02050e; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--teal), var(--neon-purple)); border-radius: 20px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .hero { padding: 80px 20px 60px; }
    .hero-metrics { gap: 1.5rem; }
    nav { height: auto; }
    .nav-content { flex-direction: column; gap: 12px; padding: 14px 0; height: auto; }
    .menu { flex-wrap: wrap; justify-content: center; gap: 8px; }
    .menu a { margin: 0; }
    .contact-form { padding: 26px 22px; }
    h2 { font-size: 1.5rem; }
    .card { padding: 22px; }
    .founder-card { padding: 22px 18px; }
    .founder-header { flex-direction: column; text-align: center; }
    .arch-specs { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1600px) {
    .container { max-width: 1380px; }
    .hero h1 { font-size: 4.2rem; }
}
