:root {
    --bg: #0a0a0a;
    --card: #161616;
    --text: #ffffff;
    --muted: #a0a0a0;
    --accent: #00d4ff;
    --gradient: linear-gradient(135deg, #00d4ff, #7a00ff);
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* ================= NAVBAR ================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

/* LOGO CONTENEDOR */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 100%;
    white-space: nowrap;
}

/* LOGO SVG / IMG */
.logo-img {
    height: 32px;
    max-height: 32px;
    width: auto;
    max-width: 32px;
    object-fit: contain;
    display: block;
}

/* TEXTO LOGO */
.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-text .accent {
    color: var(--accent);
}
.justify{
    text-align: justify;
}

/* NAV LINKS */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
}

/* BOTÓN CONTACTO */
.btn-contact {
    background: var(--gradient);
    padding: 0.5rem 1.3rem;
    border-radius: 50px;
}

/* BURGER */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger div {
    width: 24px;
    height: 2px;
    background: white;
}

/* ================= HERO ================= */

.hero {
    min-height: 100vh;
    padding: 120px 10% 80px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.badge {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    color: var(--accent);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
}

/* TEXTO CON GRADIENTE */
.gradient-text {
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* BOTONES */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.primary {
    background: var(--text);
    color: var(--bg);
}

.secondary {
    border: 1px solid var(--muted);
    color: var(--text);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* ================= SECTIONS ================= */

section {
    padding: 6rem 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

/* ================= SERVICIOS ================= */

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card);
    padding: 2rem;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ================= PORTAFOLIO ================= */

.grid-portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    height: 280px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* Oscurecer un poco la imagen para que el texto siempre se lea */
.portfolio-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.3),
        rgba(0,0,0,0.75)
    );
    z-index: 0;
}


/* OVERLAY */
.overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

/* ================= TESTIMONIOS ================= */

.testimonial {
    max-width: 700px;
    margin: auto;
    text-align: center;
}

/* RESPALDO PROFESIONAL */
.credential-card {
    max-width: 700px;
    margin: auto;
    background: var(--card);
    border-radius: 20px;
    overflow: hidden;
}

/* PREVIEW */
.credential-preview {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.credential-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* DIFUMINADO */
.credential-preview::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(
        to bottom,
        rgba(22,22,22,0),
        rgba(22,22,22,1)
    );
}

/* INFO */
.credential-info {
    padding: 2rem;
    text-align: center;
}

.credential-info h3 {
    margin-bottom: 1rem;
}

.credential-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.2rem 0 1.5rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.credential-link {
    display: inline-block;
    padding: 0.6rem 1.6rem;
    border-radius: 50px;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.credential-link:hover {
    background: var(--accent);
    color: var(--bg);
}

/* ================= CONTACT ================= */

.contact-container {
    max-width: 600px;
    margin: auto;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

input,
textarea {
    padding: 1rem;
    background: #121212;
    border: 1px solid #333;
    color: white;
    border-radius: 8px;
}

/* ================= FOOTER ================= */
footer {
    padding: 2rem;
}

.parrafo-footer {
    text-align: center;
    color: var(--muted);
}

/* ================= ANIMACIONES ================= */

.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: 1.2s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}
/* ABOUT */
#sobre-mi {
    padding: 6rem 10%;
}

.about-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: auto;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.about-content h2 {
    margin-bottom: 1rem;
}

.about-content p {
    margin-bottom: 1rem;
}

.about-list {
    list-style: none;
    margin-top: 1.5rem;
}

.about-list li {
    margin-bottom: 0.5rem;
    color: var(--muted);
}


/* ================= RESPONSIVE ================= */

@media (max-width: 700px) {

    /* OCULTAR TEXTO LOGO */
    .logo-text {
        display: none;
    }
        .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        max-width: 220px;
        margin: auto;
    }

    /* MENÚ MOBILE */
    .nav-links {
        position: fixed;
        top: 72px;
        right: 0;
        width: 100%;
        height: calc(100vh - 72px);
        background: var(--bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .nav-links.nav-active {
        transform: translateX(0);
    }

    .burger {
        display: flex;
    }

    h1 {
        font-size: 2.4rem;
    }

    .hero {
        padding: 120px 8% 60px;
    }
}

