@charset "UTF-8";

:root {
    color-scheme: light;
    --ink: #14213d;
    --ink-soft: #273653;
    --muted: #69758b;
    --muted-light: #9aa5b5;
    --paper: #f5f7fb;
    --surface: #ffffff;
    --line: #e5eaf2;
    --blue: #365cf5;
    --blue-dark: #2447dc;
    --mint: #a9f4d0;
    --teal: #18b99a;
    --night: #101b33;
    --shadow-sm: 0 8px 28px rgba(24, 42, 78, .07);
    --shadow-lg: 0 28px 80px rgba(21, 38, 77, .15);
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 30px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid rgba(54, 92, 245, .35);
    outline-offset: 3px;
}

/* Navegación */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 82px;
    padding: 0 max(5vw, calc((100vw - 1200px) / 2));
    background: rgba(255, 255, 255, .93);
    border-bottom: 1px solid rgba(229, 234, 242, .8);
    box-shadow: 0 4px 24px rgba(23, 41, 77, .035);
    backdrop-filter: blur(18px);
}
.nav-container { width: 100%; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo-area { height: 100%; display: flex; align-items: center; gap: 11px; }
.logo-img { display: block; width: auto; max-width: 54px; max-height: 54px; object-fit: contain; cursor: pointer; }
.logo-text { color: var(--ink); font-size: 1.15rem; font-weight: 750; letter-spacing: -.045em; text-transform: none; }
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links li {
    position: relative;
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--muted);
    cursor: pointer;
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    transition: color .2s ease, background .2s ease;
}
.nav-links li::after { display: none; }
.nav-links li:hover, .nav-links li.active { color: var(--blue); background: #eef2ff; }
#nav-dev { display: none; font-size: 1.25rem; }
#nav-dev::after { display: none; }
.mobile-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font-size: 1.4rem;
}

/* Vistas */
.screen-container { flex: 1; display: flex; flex-direction: column; }
.screen { display: none; flex: 1; animation: enter .42s ease both; }
.screen.active { display: flex; flex-direction: column; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.content-wrapper { width: min(1120px, 90%); margin: 0 auto; padding: 72px 0; flex: 1; }

/* Portada */
#inicio { background: var(--surface); color: var(--ink); }
.hero-shell { position: relative; overflow: hidden; background: linear-gradient(180deg, #f8faff 0%, #fff 70%); }
.hero-shell::before {
    position: absolute;
    top: -260px;
    right: -140px;
    width: 680px;
    height: 680px;
    border: 1px solid rgba(54, 92, 245, .08);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 55px rgba(54, 92, 245, .025), 0 0 0 110px rgba(54, 92, 245, .018);
    pointer-events: none;
}
.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: 58px;
    min-height: 600px;
    padding-top: 74px;
    padding-bottom: 78px;
}
.hero-copy { max-width: 545px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--blue); font-size: .76rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(24, 185, 154, .12); }
#inicio h1 { max-width: 590px; margin: 22px 0 19px; color: var(--ink); font-size: clamp(2.8rem, 5.15vw, 4.65rem); font-weight: 750; letter-spacing: -.067em; line-height: 1.045; text-align: left; text-transform: none; }
#inicio p { max-width: 510px; margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.8; letter-spacing: 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.btn-primary, .btn-secondary, .btn-submit {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 23px;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font-size: .91rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 9px 22px rgba(54, 92, 245, .22); }
.btn-primary:hover { transform: translateY(-2px); background: var(--blue-dark); box-shadow: 0 12px 28px rgba(54, 92, 245, .3); }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { transform: translateY(-2px); color: var(--blue); background: #eef2ff; }
.hero-proof { display: flex; align-items: center; gap: 10px; margin-top: 25px; color: var(--muted); font-size: .82rem; }
.proof-icon { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #e6faf2; color: #139777; font-size: .72rem; font-weight: 800; }

/* Ilustración de producto */
.hero-visual { position: relative; display: grid; min-height: 430px; place-items: center; perspective: 1100px; }
.visual-orbit { position: absolute; border: 1px solid rgba(54, 92, 245, .12); border-radius: 50%; pointer-events: none; }
.orbit-one { width: 460px; height: 460px; }
.orbit-two { width: 540px; height: 540px; border-color: rgba(24, 185, 154, .1); }
.app-window { position: relative; z-index: 1; width: min(100%, 535px); overflow: hidden; border: 1px solid rgba(218, 226, 241, .95); border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg); transform: rotateY(-7deg) rotateX(2deg); animation: app-float 7s ease-in-out infinite; }
@keyframes app-float { 50% { transform: translateY(-8px) rotateY(-5deg) rotateX(1deg); } }
.app-window-bar { height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; border-bottom: 1px solid #edf0f6; background: #fff; color: #8792a6; font-size: .62rem; font-weight: 600; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #ff8d83; }
.window-dots i:nth-child(2) { background: #f3c45e; }
.window-dots i:nth-child(3) { background: #55cf9b; }
.window-status { display: inline-flex; align-items: center; gap: 5px; color: #4d8e78; }
.window-status i, .dashboard-bottom i { width: 6px; height: 6px; border-radius: 50%; background: #35c998; }
.app-dashboard { min-height: 335px; display: grid; grid-template-columns: 54px 1fr; }
.dashboard-rail { display: flex; flex-direction: column; align-items: center; gap: 19px; padding: 14px 0; background: #f6f8fc; border-right: 1px solid #edf0f6; }
.rail-mark { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; background: var(--blue); color: white; font-size: .75rem; font-weight: 800; }
.rail-item { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: #a2adbd; font-size: .85rem; }
.rail-item.active { background: #e9edff; color: var(--blue); }
.dashboard-content { min-width: 0; padding: 23px 24px 14px; }
.dashboard-heading { display: flex; align-items: center; justify-content: space-between; }
.dashboard-kicker { color: #9aa5b5; font-size: .55rem; font-weight: 750; letter-spacing: .12em; }
.dashboard-heading h2 { margin-top: 3px; color: var(--ink); font-size: 1.2rem; font-weight: 750; letter-spacing: -.04em; line-height: 1.4; }
.dashboard-heading h2 span { color: var(--blue); }
.dashboard-avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #e9edff; color: var(--blue); font-size: .57rem; font-weight: 750; }
.dashboard-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 17px; }
.stat-card { min-width: 0; display: flex; flex-direction: column; padding: 12px 13px 10px; border: 1px solid #edf0f6; border-radius: 11px; background: #fff; }
.stat-card > span { color: #8490a3; font-size: .6rem; }
.stat-card strong { margin-top: 4px; color: var(--ink); font-size: 1.4rem; letter-spacing: -.04em; line-height: 1.4; }
.stat-card strong i { color: #20b58d; font-size: .73rem; font-style: normal; }
.stat-unit { color: #8190a5; font-size: .8rem; }
.stat-card small { color: #22a985; font-size: .57rem; }
.dashboard-chart { margin-top: 12px; padding: 12px 13px 9px; border: 1px solid #edf0f6; border-radius: 11px; }
.chart-heading { display: flex; justify-content: space-between; color: #68768c; font-size: .61rem; font-weight: 700; }
.chart-heading span:last-child { color: #9aa5b5; font-size: .55rem; font-weight: 500; }
.chart-bars { height: 74px; display: flex; align-items: end; justify-content: space-between; gap: 6px; margin-top: 6px; border-bottom: 1px solid #eef1f6; background: repeating-linear-gradient(to bottom, transparent 0, transparent 23px, #f1f3f8 24px); }
.chart-bars i { width: 5.5%; height: 38%; border-radius: 4px 4px 1px 1px; background: #cdd7ff; }
.chart-bars i:nth-child(3n) { height: 64%; }
.chart-bars i:nth-child(4n) { height: 50%; }
.chart-bars i:nth-child(5n) { height: 84%; background: #7088fa; }
.chart-bars i:last-child { height: 95%; background: var(--blue); }
.chart-labels { display: flex; justify-content: space-between; margin-top: 4px; color: #a4adba; font-size: .5rem; }
.dashboard-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 11px; color: #8490a3; font-size: .54rem; }
.dashboard-bottom span:first-child { display: inline-flex; align-items: center; gap: 6px; color: #548e7b; }
.floating-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid rgba(230, 235, 245, .95); border-radius: 12px; background: rgba(255, 255, 255, .95); box-shadow: var(--shadow-sm); color: var(--ink-soft); font-size: .71rem; font-weight: 700; animation: chip-float 5s ease-in-out infinite; }
.floating-chip span { color: var(--blue); font-size: 1rem; }
.chip-mobile { right: -7px; bottom: 66px; }
.chip-code { top: 49px; left: -5px; animation-delay: -2s; }
@keyframes chip-float { 50% { transform: translateY(-7px); } }
.hero-capabilities { position: relative; z-index: 1; min-height: 100px; display: flex; align-items: center; justify-content: center; gap: clamp(22px, 5vw, 76px); padding: 20px 5%; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .82); }
.capability-intro { display: flex; flex-direction: column; line-height: 1.4; }
.capability-intro span { color: var(--muted-light); font-size: .59rem; font-weight: 750; letter-spacing: .13em; }
.capability-intro strong { color: var(--ink); font-size: .9rem; }
.capability-item { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .79rem; font-weight: 600; white-space: nowrap; }
.capability-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: #eef2ff; color: var(--blue); font-size: .92rem; }
.capability-item:nth-child(3) .capability-icon { background: #e9faf4; color: #16a57f; }
.capability-item:nth-child(4) .capability-icon { background: #fff5e5; color: #db9b34; }

/* Encabezados de las secciones interiores */
.section-title { margin-bottom: 11px; color: var(--ink); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 750; letter-spacing: -.055em; line-height: 1.15; text-align: center; text-transform: none; }
.section-subtitle { max-width: 640px; margin: 0 auto 43px; color: var(--muted); font-size: 1rem; letter-spacing: 0; line-height: 1.75; text-align: center; }
#portafolio .content-wrapper, #nosotros .content-wrapper, #contacto .content-wrapper { padding-top: 78px; padding-bottom: 88px; }

/* Portafolio */
#portafolio { background: var(--paper); }
#proyectos-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); align-items: start; gap: 24px; }
#proyectos-container > p { grid-column: 1 / -1; padding: 42px 24px; border: 1px dashed #d8deea; border-radius: var(--radius); color: var(--muted); background: rgba(255,255,255,.7); }
.project-card { overflow: hidden; margin: 0; padding: 0 0 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .24s ease, box-shadow .24s ease; }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 18px 42px rgba(24, 42, 78, .11); }
.slider-container { position: relative; height: 290px; margin: 0 0 20px; overflow: hidden; background: #e9eef8; }
.slider-img { width: 100%; height: 100%; object-fit: cover; background: #e9eef8; transition: opacity .3s ease-in-out, transform .5s ease; }
.project-card:hover .slider-img { transform: scale(1.025); }
.slider-empty { width: 100%; height: 100%; display: grid; place-items: center; padding: 20px; color: var(--muted); font-size: .88rem; text-align: center; }
.slider-btn { position: absolute; top: 50%; left: 14px; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(16, 27, 51, .78); color: #fff; cursor: pointer; font-size: 1.1rem; box-shadow: 0 5px 14px rgba(0,0,0,.18); transform: translateY(-50%); transition: background .2s ease, transform .2s ease; }
.slider-btn.next { right: 14px; left: auto; }
.slider-btn:hover { transform: translateY(-50%) scale(1.06); background: var(--blue); color: #fff; }
.slider-counter { position: absolute; right: 14px; bottom: 14px; z-index: 2; padding: 5px 10px; border: none; border-radius: 999px; background: rgba(16, 27, 51, .76); color: #fff; font-size: .71rem; letter-spacing: .04em; }
.project-card h2, .project-card p { margin-right: 23px; margin-left: 23px; }
.project-card h2 { margin-bottom: 7px; color: var(--ink); font-size: 1.18rem; font-weight: 750; letter-spacing: -.025em; text-transform: none; }
.project-card p { color: var(--muted); font-size: .9rem; line-height: 1.75; }
.btn-add-project { display: none; padding: 12px 20px; border: 0; border-radius: 11px; background: var(--blue); color: #fff; cursor: pointer; font-size: .86rem; font-weight: 700; letter-spacing: 0; text-transform: none; box-shadow: 0 8px 18px rgba(54,92,245,.2); }
.dev-mode-active .btn-add-project { display: block; }
.btn-edit-project, .btn-delete-project { margin: 16px 0 0 23px; padding: 8px 12px; border: 0; border-radius: 8px; cursor: pointer; font-size: .72rem; font-weight: 700; text-transform: none; }
.btn-edit-project { display: none; background: #edf1ff; color: var(--blue); }
.btn-delete-project { display: none; margin-left: 7px; background: #fff0f0; color: #c33b48; }
.dev-mode-active .btn-edit-project, .dev-mode-active .btn-delete-project { display: inline-block; }

/* Quiénes somos */
#nosotros { background: #fff; }
.about-block { position: relative; max-width: 850px; margin: 27px auto 0; padding: clamp(28px, 6vw, 58px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(135deg, #f7f9ff, #fff 68%); box-shadow: var(--shadow-sm); }
.about-block::before { position: absolute; top: 23px; left: 26px; color: #d8e0ff; content: "“"; font-family: Georgia, serif; font-size: 5rem; line-height: 1; }
#txt-about-desc { position: relative; color: var(--ink-soft); font-size: clamp(1.05rem, 2vw, 1.28rem); font-style: normal; font-weight: 450; line-height: 1.9; text-align: center; }

/* Contacto */
#contacto { background: var(--paper); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, .78fr); align-items: start; gap: 25px; }
.contact-main { min-width: 0; max-width: none; }
.contact-sidebar { width: auto; display: flex; flex-direction: column; gap: 20px; }
.contact-widget, .social-widget { overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); background: var(--night); color: #fff; box-shadow: var(--shadow-sm); }
.contact-widget { position: relative; margin-bottom: 20px; padding: 24px 28px; text-align: left; }
.contact-widget::after { position: absolute; top: -45px; right: -25px; width: 140px; height: 140px; border: 1px solid rgba(169,244,208,.2); border-radius: 50%; content: ""; box-shadow: 0 0 0 18px rgba(169,244,208,.04); }
.contact-widget h3, .social-widget h3 { margin-bottom: 12px; color: #aebbd2; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.email-display { position: relative; z-index: 1; display: flex; align-items: center; justify-content: flex-start; gap: 12px; flex-wrap: wrap; }
.contact-widget a { color: var(--mint); font-size: 1.13rem; font-weight: 650; letter-spacing: 0; text-decoration: none; transition: color .2s ease; word-break: break-all; }
.contact-widget a:hover { color: #fff; }
.btn-icon-copy { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; padding: 6px; border: 1px solid rgba(255,255,255,.15); border-radius: 9px; background: rgba(255,255,255,.06); color: var(--mint); cursor: pointer; transition: transform .2s ease, background .2s ease; }
.btn-icon-copy:hover { transform: translateY(-1px); background: rgba(255,255,255,.12); color: #fff; }
.btn-icon-copy svg { width: 18px; height: 18px; fill: currentColor; }
.contact-wrapper { padding: clamp(23px, 4vw, 38px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.form-group { margin-bottom: 21px; }
.form-group label { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: .8rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.form-control { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #dfe5ef; border-radius: 10px; background: #fbfcfe; color: var(--ink); font-family: inherit; font-size: .92rem; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.form-control::placeholder { color: #a0aabc; }
.form-control:focus { outline: none; border-color: #8ca2ff; background: #fff; box-shadow: 0 0 0 4px rgba(54,92,245,.09); }
textarea.form-control { min-height: 116px; resize: vertical; }
.btn-submit { width: 100%; background: var(--blue); color: #fff; box-shadow: 0 8px 18px rgba(54,92,245,.18); }
.btn-submit:hover { background: var(--blue-dark); color: #fff; }
.social-widget { min-height: 0; align-items: stretch; padding: 26px; text-align: left; }
.social-widget h3 { margin-bottom: 17px; color: #fff; font-size: .88rem; letter-spacing: 0; text-transform: none; }
.social-links { width: 100%; display: flex; flex-direction: column; gap: 9px; }
.social-btn { display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 11px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; color: #d6deed; font-size: .83rem; font-weight: 600; letter-spacing: 0; text-decoration: none; text-transform: none; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.social-btn:hover { transform: translateX(3px); border-color: rgba(169,244,208,.4); background: rgba(169,244,208,.09); color: var(--mint); }
.social-btn svg { width: 18px; height: 18px; fill: currentColor; }
.social-btn svg.instagram-icon { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social-btn svg.instagram-icon circle:last-child { fill: currentColor; stroke: none; }

/* Consola y tabla */
#dev-panel { background: var(--night); color: #fff; }
#dev-panel .content-wrapper { padding-top: 70px; }
#dev-panel h1 { color: #fff; }
#dev-panel .section-subtitle { color: #aebbd2; }
.table-responsive { width: 100%; overflow-x: auto; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); background: #172440; }
.dev-table { width: 100%; min-width: 600px; border-collapse: collapse; background: transparent; font-size: .86rem; text-align: left; }
.dev-table th, .dev-table td { padding: 16px 19px; border-bottom: 1px solid rgba(255,255,255,.08); }
.dev-table th { color: var(--mint); font-size: .71rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dev-table td { color: #d5deed; }

/* Pie de página */
footer { margin-top: auto; padding: 22px 5%; border-top: 1px solid rgba(255,255,255,.08); background: var(--night); color: #aebbd2; font-size: .77rem; letter-spacing: 0; text-align: center; text-transform: none; }

/* Ventanas modales */
.system-modal { position: fixed; inset: 0; z-index: 5000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(11, 20, 39, .68); color: var(--ink); backdrop-filter: blur(7px); }
.modal-box { width: min(100%, 520px); max-height: 90vh; overflow-y: auto; padding: clamp(24px, 5vw, 38px); border: 1px solid rgba(255,255,255,.7); border-radius: 22px; background: #fff; box-shadow: 0 25px 80px rgba(4,13,31,.28); }
.modal-box h2 { margin-bottom: 25px; color: var(--ink); font-size: 1.18rem; font-weight: 750; letter-spacing: -.02em; text-align: left; }
.modal-box label { color: var(--ink-soft); }
.modal-box .form-control { margin-bottom: 4px; }
.modal-box small { color: var(--muted); }
.modal-box .btn-primary { background: var(--blue) !important; color: #fff !important; }
.modal-box button[onclick^="cerrar"], .modal-box button[onclick^="cerrarAuth"] { color: var(--muted) !important; }

/* Edición de contenido */
.dev-mode-active [contenteditable="true"] { outline: 1px dashed rgba(54,92,245,.55); outline-offset: 3px; border-radius: 3px; }
.dev-mode-active [contenteditable="true"]:hover, .dev-mode-active [contenteditable="true"]:focus { outline: 2px dashed var(--blue); background: rgba(54,92,245,.05); }
.dev-mode-active .editable-img { outline: 2px dashed rgba(54,92,245,.55); outline-offset: 3px; }
.dev-mode-active .editable-img:hover { outline: 3px solid var(--blue); opacity: .85; }
.dev-badge { position: fixed; right: 20px; bottom: 20px; z-index: 9999; display: none; align-items: center; gap: 12px; padding: 8px 9px 8px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); font-size: .7rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.dev-mode-active .dev-badge { display: flex; }
.dev-exit-button { padding: 6px 12px; border: 0; border-radius: 999px; background: #fff; color: var(--blue-dark); cursor: pointer; font-size: .7rem; font-weight: 750; transition: background .2s ease, transform .2s ease; }
.dev-exit-button:hover { transform: translateY(-1px); background: var(--mint); }
.dev-exit-screen { position: fixed; inset: 0; z-index: 10001; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: rgba(16, 27, 51, .97); color: #fff; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease; }
.dev-exit-screen.is-visible { opacity: 1; visibility: visible; pointer-events: all; }
.dev-exit-logo { width: min(150px, 42vw); max-height: 90px; object-fit: contain; }
.dev-exit-spinner { width: 36px; height: 36px; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--mint); border-radius: 50%; animation: dev-exit-spin .8s linear infinite; }
.dev-exit-screen p { color: #d6deed; font-size: .93rem; font-weight: 600; }
@keyframes dev-exit-spin { to { transform: rotate(360deg); } }

/* Aviso de cookies */
.cookie-banner { position: fixed; bottom: -150%; left: 0; z-index: 9999; width: 100%; padding: 20px 5%; border-top: 1px solid rgba(255,255,255,.12); background: rgba(16,27,51,.97); color: #fff; box-shadow: 0 -12px 40px rgba(14,26,50,.16); backdrop-filter: blur(15px); transition: bottom .45s ease-in-out; }
.cookie-banner.show { bottom: 0; }
.cookie-content { width: min(1120px, 100%); display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 0 auto; text-align: center; }
.cookie-content p { flex: 1; margin: 0; color: #d6deed; font-size: .8rem; line-height: 1.6; }
.cookie-content strong { color: var(--mint); }
.cookie-buttons { display: flex; flex-shrink: 0; gap: 9px; }
.btn-cookie { padding: 10px 16px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; font-size: .74rem; font-weight: 700; letter-spacing: 0; text-transform: none; transition: background .2s ease, color .2s ease; }
.btn-cookie.accept { background: var(--mint); color: var(--night); }
.btn-cookie.accept:hover { background: #fff; }
.btn-cookie.reject { border-color: rgba(255,255,255,.25); background: transparent; color: #d6deed; }
.btn-cookie.reject:hover { border-color: #fff; color: #fff; }

@media (min-width: 768px) {
    .cookie-content { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (max-width: 1000px) {
    nav { padding-right: 4%; padding-left: 4%; }
    .hero-grid { gap: 30px; }
    .hero-visual { min-height: 380px; }
    .orbit-one { width: 390px; height: 390px; }
    .orbit-two { width: 465px; height: 465px; }
    .app-dashboard { min-height: 310px; }
    .dashboard-content { padding: 18px; }
    .hero-capabilities { gap: 24px; }
    .capability-item { font-size: .72rem; }
}

@media (max-width: 768px) {
    nav { height: 72px; padding: 0 5%; }
    .logo-img { max-width: 43px; max-height: 43px; }
    .logo-text { font-size: 1.03rem; }
    .mobile-btn { display: grid; place-items: center; }
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        height: calc(100dvh - 72px);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 7px;
        padding: 18px 5% 40px;
        border-top: 1px solid var(--line);
        background: rgba(255,255,255,.98);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
    }
    .nav-links.show { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav-links li { padding: 14px 16px; font-size: 1rem; }
    .content-wrapper { width: 88%; padding: 54px 0; }
    .hero-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 66px; padding-bottom: 36px; }
    .hero-copy { max-width: 640px; }
    #inicio h1 { max-width: 600px; margin-top: 18px; font-size: clamp(2.7rem, 9.5vw, 4.1rem); }
    #inicio p { font-size: 1rem; }
    .hero-visual { width: 100%; min-height: 390px; }
    .app-window { width: min(100%, 520px); }
    .chip-code { left: 0; }
    .chip-mobile { right: 0; }
    .hero-capabilities { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; justify-content: stretch; gap: 18px 12px; padding: 24px 6%; }
    .capability-intro { grid-column: 1 / -1; }
    .capability-item { gap: 8px; font-size: .7rem; }
    #portafolio .content-wrapper, #nosotros .content-wrapper, #contacto .content-wrapper { padding-top: 59px; padding-bottom: 64px; }
    .section-subtitle { margin-bottom: 32px; }
    .contact-layout { grid-template-columns: 1fr; }
    .contact-sidebar { display: grid; grid-template-columns: 1fr; }
    .social-widget { padding: 23px; }
}

@media (max-width: 480px) {
    .hero-grid { padding-top: 54px; }
    .eyebrow { font-size: .66rem; }
    #inicio h1 { font-size: clamp(2.35rem, 11vw, 3.15rem); }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .hero-actions button { width: 100%; }
    .hero-proof { align-items: flex-start; font-size: .75rem; }
    .hero-visual { min-height: 325px; }
    .orbit-one { width: 300px; height: 300px; }
    .orbit-two { width: 370px; height: 370px; }
    .app-window { border-radius: 13px; transform: none; }
    .app-dashboard { min-height: 280px; grid-template-columns: 42px 1fr; }
    .dashboard-rail { gap: 15px; }
    .dashboard-content { padding: 15px 12px 11px; }
    .dashboard-stats { gap: 7px; }
    .stat-card { padding: 9px 8px; }
    .stat-card strong { font-size: 1.2rem; }
    .chart-bars { height: 58px; }
    .chip-code { top: 20px; }
    .chip-mobile { bottom: 35px; }
    .floating-chip { padding: 8px 10px; font-size: .64rem; }
    .slider-container { height: 225px; }
    .about-block { border-radius: 19px; }
    .contact-widget { padding: 21px; }
    .contact-widget a { font-size: 1rem; }
    .cookie-banner { padding: 17px 5%; }
    .cookie-buttons { width: 100%; }
    .btn-cookie { flex: 1; padding-right: 9px; padding-left: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
