:root {
    --bg: #050814;
    --bg-alt: #0b1020;
    --card-bg: #111628;
    --primary: #37c2ff;
    --primary-soft: rgba(55, 194, 255, 0.12);
    --accent: #ffb347;
    --text: #f4f6fb;
    --muted: #9ba3c1;
    --border: #232a40;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-soft: 0 18px 45px rgba(0,0,0,0.45);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #151a30 0, #050814 45%, #020308 100%);
    color: var(--text);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Topbar / NAV */

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: linear-gradient(to bottom, rgba(5,8,20,0.96), rgba(5,8,20,0.7));
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.logo {
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: 1.1rem;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: radial-gradient(circle at 10% 10%, rgba(55,194,255,0.35), transparent 55%);
}

.nav {
    display: flex;
    gap: 1.75rem;
    align-items: center;
    font-size: 0.95rem;
}

.nav a {
    color: var(--muted);
    position: relative;
}

.nav a:hover {
    color: var(--text);
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.45rem;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.2s ease-out;
}

.nav a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    color: var(--text);
    font-size: 1rem;
}

/* Buttons */

.btn-primary,
.btn-secondary,
.btn-small,
.btn-full {
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    font-size: 0.95rem;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #6df3ff);
    color: #020308;
    box-shadow: 0 12px 30px rgba(55,194,255,0.4);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(55,194,255,0.55);
}

.btn-secondary {
    background: rgba(15, 24, 54, 0.85);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.08);
}

.btn-secondary:hover {
    background: rgba(22, 32, 70, 0.95);
}

.btn-small {
    background: rgba(55,194,255,0.12);
    color: var(--primary);
    border: 1px solid rgba(55,194,255,0.45);
    padding: 0.45rem 0.95rem;
}

.btn-full {
    width: 100%;
}

/* HERO */

.hero {
    padding: 3.5rem 0 3rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 3.3fr) minmax(0, 2.7fr);
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.35rem, 4vw, 3.2rem);
    margin: 0 0 1.2rem;
    letter-spacing: -0.03em;
}

.hero-text p {
    margin: 0 0 1.6rem;
    color: var(--muted);
    max-width: 34rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.78rem;
}

.hero-tags span {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 22, 50, 0.95);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--muted);
}

.hero-panel {
    position: relative;
}

.hero-card {
    background: radial-gradient(circle at top left, rgba(55,194,255,0.25), transparent 60%), var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 1.6rem 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    margin-bottom: 1rem;
}

.hero-card h2 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}

.hero-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

/* SECTIONS */

.section {
    padding: 3.2rem 0;
}

.section-alt {
    background: linear-gradient(180deg, rgba(8,13,31,0.95), rgba(5,8,20,1));
}

.section-header {
    text-align: left;
    margin-bottom: 2.2rem;
}

.section-header h2 {
    font-size: 1.6rem;
    margin: 0 0 0.4rem;
}

.section-header p {
    margin: 0;
    max-width: 32rem;
    color: var(--muted);
}

/* Cards */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.3rem;
    border: 1px solid var(--border);
    box-shadow: 0 8px 26px rgba(0,0,0,0.4);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.7rem;
    font-size: 1.1rem;
}

.card p {
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--muted);
}

.card ul {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.card ul li {
    margin-bottom: 0.25rem;
}

/* Tecnologias */

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.tech-column {
    background: rgba(10, 16, 38, 0.9);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.3rem;
    border: 1px solid rgba(55,194,255,0.2);
}

.tech-column h3 {
    margin-top: 0;
    margin-bottom: 0.6rem;
}

.tech-column ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.tech-column li {
    margin-bottom: 0.25rem;
}

/* Sobre */

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.3fr) minmax(0, 2fr);
    gap: 2.5rem;
    align-items: center;
}

.about-grid p {
    color: var(--muted);
    line-height: 1.7;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.about-item {
    background: rgba(9, 15, 36, 0.95);
    border-radius: var(--radius-lg);
    padding: 1rem 1.2rem;
    border: 1px solid rgba(255,255,255,0.04);
}

.about-number {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
}

.about-label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
}

/* Contactos */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 2.3fr);
    gap: 2.4rem;
    align-items: flex-start;
}

.contact-grid p {
    color: var(--muted);
}

.contact-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.contact-list li {
    margin-bottom: 0.3rem;
}

.contact-list a {
    color: var(--primary);
}

.contact-form {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.3rem;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

.form-row {
    margin-bottom: 0.85rem;
}

.form-row label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(5,10,30,0.9);
    color: var(--text);
    padding: 0.55rem 0.65rem;
    font-family: inherit;
    font-size: 0.9rem;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: rgba(155,163,193,0.7);
}

.form-row textarea {
    resize: vertical;
}

.form-note {
    margin-top: 0.4rem;
    font-size: 0.78rem;
    color: var(--muted);
}

/* Footer */

.footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1.1rem 0 1.4rem;
    background: rgba(3,5,15,0.98);
    font-size: 0.85rem;
    color: var(--muted);
}

.footer-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--text);
}

/* Responsivo */

@media (max-width: 960px) {
    .hero-grid,
    .cards-grid,
    .tech-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .cards-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        position: absolute;
        top: 100%;
        right: 1.5rem;
        flex-direction: column;
        gap: 0.6rem;
        background: rgba(5,8,20,0.98);
        padding: 0.8rem 1rem;
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,0.08);
        display: none;
    }

    .nav.nav-open {
        display: flex;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .hero {
        padding-top: 2.5rem;
    }

    .section {
        padding: 2.4rem 0;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
