/* styles.css */

:root {
    --bg: #0a0a0a;
    --fg: #ffffff;
    --muted: #bdbdbd;
    --acc: #ffd12f;
    --card: #121212;
    --br: 16px;
    --container: 1200px;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
        sans-serif;
    line-height: 1.55;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}



.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

.grid {
    display: grid;
    gap: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.15rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.2px;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease,
        border-color 0.2s ease;
}

.btn-primary {
    background: var(--acc);
    color: #111;
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-outline {
    border-color: #2a2a2a;
}

.btn-outline:hover {
    border-color: var(--acc);
    color: var(--acc);
}

.tag {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #181818;
    color: var(--muted);
    font-size: 0.9rem;
    border: 1px solid #1f1f1f;
    width: 29%;
}





.logo {
    padding: 0;
    margin-left: 200px;
    height: 80px;
}

.logo .logo2 {
    height: 80px;
    width: auto;
}



.hero {
    height: 100vh;
    padding: clamp(48px, 8vw, 96px) 0;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
}

.kicker {
    color: var(--muted);
}

.hero h1 {
    font-family: "League Spartan", sans-serif;
    font-size: clamp(34px, 6vw, 60px);
    line-height: 1.05;
    margin: 12px 0 14px;
}

.highlight {
    background: linear-gradient(90deg, var(--acc), #fffceb);
    color: #111;
    padding: 0 0.35rem;
    border-radius: 8px;
}

.hero p {
    color: #d6d6d6;
    font-size: clamp(16px, 2vw, 18px);
    max-width: 60ch;
}

.cta {
    margin-top: 22px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cta .btn-outline{
    color: white;
}

.hero-media {
    margin-top: 32px;
    background: linear-gradient(180deg, rgba(255, 209, 47, 0.15), transparent 40%),
        #0e0e0e;
    border: 1px solid #1a1a1a;
    border-radius: var(--br);
    padding: 18px;
}

.mock {
    aspect-ratio: 16 / 9;
    background: #111;
    border-radius: 12px;
    border: 1px solid #1c1c1c;
    overflow: hidden;
    position: relative;
}

.bar {
    height: 42px;
    background: #0f0f0f;
    border-bottom: 1px solid #1c1c1c;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2c2c2c;
}

.screen {
    height: calc(100% - 42px);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 12px;
}

.ph {
    background: #151515;
    border: 1px dashed #222;
    border-radius: 10px;
}

.logos {
    padding: 18px 0 36px;
    opacity: 0.9;
}

.row {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.row img {
    height: 28px;
    opacity: 0.65;
    filter: grayscale(1);
}

.section {
    padding: clamp(42px, 7vw, 84px) 0;
}

.section h2 {
    font-family: "League Spartan", sans-serif;
    font-size: clamp(26px, 4.2vw, 44px);
    line-height: 1.08;
    margin: 0 0 12px;
}

.lead {
    color: #d6d6d6;
    max-width: 60ch;
    margin: 10px 0 26px;
}

.cards {
    grid-template-columns: repeat(12, 1fr);
}

.card {
    grid-column: span 12;
    background: var(--card);
    border: 1px solid #1a1a1a;
    border-radius: var(--br);
    padding: 22px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: #262626;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.card h3 {
    font-family: "League Spartan", sans-serif;
    font-size: 1.35rem;
    margin: 4px 0 6px;
    color: white; 
}

.card p {
    color: #cfcfcf;
    margin: 0;
}

.icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #171717;
    border: 1px solid #202020;
}

@media (min-width: 720px) {
    .card {
        grid-column: span 6;
    }
}

@media (min-width: 1024px) {
    .card {
        grid-column: span 4;
    }
}

.portfolio-grid {
    grid-template-columns: repeat(12, 1fr);
}

.proj {
    grid-column: span 12;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid #1a1a1a;
    background: #0f0f0f;
}

.proj img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16/10;
    filter: saturate(0.95);
    transition: transform 0.35s ease;
}

.proj:hover img {
    transform: scale(1.04);
}

.meta {
    position: absolute;
    inset: auto 0 0 0;
    padding: 12px 14px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.badge {
    background: rgba(255, 209, 47, 0.95);
    color: #111;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.about {
    display: grid;
    gap: 28px;
}

@media (min-width: 900px) {
    .about {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.box {
    background: var(--card);
    border: 1px solid #1a1a1a;
    border-radius: var(--br);
    padding: 22px;
}

.tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.tags .tag{
    text-align: center;
    align-self: center;
}

.highlight-text {
    color: var(--acc);
}

.cta-block {
    text-align: center;
    background: linear-gradient(180deg, #0e0e0e, #0b0b0b);
    border: 1px solid #1a1a1a;
    border-radius: 20px;
    padding: 28px;
}

footer {
    border-top: 1px solid #151515;
    padding: 18px 0 32px;
    color: #a9a9a9;
    font-size: 0.95rem;
}

.footer-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.footer-links {
    display: flex;
    gap: 10px;
}

.float-social {
    position: fixed;
    right: 16px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 60;
}

.float-social a {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #151515;
    border: 1px solid #202020;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.float-social a:hover {
    transform: translateY(-2px);
    border-color: var(--acc);
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* --- Header --- */


#mainNavbar {
    background-color: rgba(0, 0, 0, 0.932);
    backdrop-filter: blur(4px);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    padding: 0.5rem 0;
    min-height: 80px;
    height: 80px;
}

#mainNavbar.scrolled {
    background-color: black;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .nav-link {
    color: #fff;
    transition: color 0.3s;
}

.logo {
    padding: 0;
    margin-left: 200px;
    height: 80px;
}

.logo .logo2 {
    height: 80px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin-right: 200px;
}

@media (max-width: 768px) {
.header-container {
    flex-direction: column;
    align-items: flex-start;
}

#mainNavbar {
    height: 50px;
    align-content: center;
}

.navbar .nav-link {
    margin-right: 0;
    color: #ffffff;
    transition: color 0.3s;
}

header ul li a { text-align: end; }

.nav-links {
    flex-direction: column;
    gap: 1rem;
    margin-right: 0;
}

.logo { margin-left: 0; }

  /* 🔧 Offcanvas: que ocupe toda la altura y sea legible */
.offcanvas.custom-offcanvas{
    width: 70%;                
    max-width: 360px;          
    height: 100dvh;            
    background-color: #000;
    color: #fff;
    z-index: 1100;             
}

.offcanvas.custom-offcanvas .nav-link{
    color: #fff !important;
    font-size: 1.1rem;
    padding: .75rem 1rem;
}

  /* opcional: que el fondo no tape demasiado */
.offcanvas-backdrop.show { opacity: .6; }

.tag { width: 100%; }
}

