/* ===========================
   VARIABLES
=========================== */
:root {
    --bg-main: #0C0F17;
    --bg-card: #11141D;
    --accent: #00D4FF;
    --accent-alt: #4B7BE5;
    --text-main: #E6E6E6;
    --text-muted: #9EA3B0;
    --border: #1F2430;
    --gradient-tech: linear-gradient(135deg, #00D4FF, #4B7BE5);
}

/* ===========================
   GLOBAL
=========================== */
body {
    background: var(--bg-main);
    color: var(--text-main);
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.text-muted {
    color: var(--text-muted);
}

.home-section {
    padding: 70px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
    background: var(--gradient-tech);
    -webkit-background-clip: text;
    color: transparent;
}

/* Grid reutilizable */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* ===========================
   HEADER
=========================== */
.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header {
    background: rgba(15, 17, 25, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

    header .logo {
        font-size: 1.7rem;
        font-weight: 700;
        background: var(--gradient-tech);
        -webkit-background-clip: text;
        color: transparent;
    }

nav ul {
    display: flex;
    gap: 20px;
}

nav a {
    font-weight: 500;
    color: var(--text-muted);
}

    nav a:hover,
    nav a.active {
        color: var(--accent);
    }

/* ===========================
   HERO SECTION
=========================== */
.hero {
    padding: 90px 0;
    text-align: center;
}

    .hero h1 {
        font-size: 3rem;
        font-weight: 800;
        background: var(--gradient-tech);
        -webkit-background-clip: text;
        color: transparent;
    }

    .hero p {
        font-size: 1.2rem;
        color: var(--text-muted);
        margin-top: 10px;
    }
.header-nav {
    background: rgba(15,17,25,0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1F2430;
}

/* ===========================
   CARDS
=========================== */
.card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

    .card img {
        border-radius: 10px;
        margin-bottom: 15px;
    }

    .card:hover {
        transform: translateY(-5px);
        border-color: var(--accent);
        box-shadow: 0 0 25px rgba(0, 212, 255, 0.15);
    }

.card-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* ===========================
   ABOUT PREVIEW
=========================== */
.about-preview {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.profile-preview {
    width: 260px;
    border-radius: 12px;
    border: 2px solid var(--accent);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

/* ===========================
   CONTACT PREVIEW
=========================== */
.contact-preview {
    text-align: center;
}

/* ===========================
   BOTONES
=========================== */
.btn {
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s;
}

.btn-tech {
    background: var(--gradient-tech);
    color: #000;
}

    .btn-tech:hover {
        opacity: 0.85;
    }

/* ===========================
   FOOTER
=========================== */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
}
/* GRID SOBRE MI */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}

.skills-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    text-align: center;
}

    .skills-grid .card {
        padding: 15px;
        font-weight: 600;
    }
/* ===========================
   RESPONSIVE
=========================== */
/* GRID DE CERTIFICADOS */
.cert-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
}

    .cert-card:hover {
        transform: translateY(-5px);
        border-color: var(--accent);
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
    }

.cert-img {
    width: 100%;
    border-radius: 10px;
}
/* GRID DE TECNOLOGÍAS */
.tech-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
}

    .tech-card:hover {
        transform: translateY(-6px);
        border-color: var(--accent);
        box-shadow: 0 0 18px rgba(0, 212, 255, 0.12);
    }

.tech-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

.tech-category {
    font-size: 0.85rem;
}
/* SOBRE MI */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: center;
}

.about-photo img {
    width: 100%;
    border-radius: 15px;
    border: 2px solid var(--border);
}

.skills-grid {
    margin-top: 25px;
    display: grid;
    gap: 15px;
}

.skill span {
    font-size: 0.95rem;
}

.skill-bar {
    background: #1b1e27;
    height: 8px;
    border-radius: 6px;
    margin-top: 6px;
    overflow: hidden;
}

    .skill-bar div {
        background: var(--gradient-tech);
        height: 100%;
        border-radius: 6px;
    }

.timeline {
    margin-top: 30px;
    border-left: 2px solid var(--border);
    padding-left: 25px;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

    .timeline-item .dot {
        width: 14px;
        height: 14px;
        background: var(--accent);
        border-radius: 50%;
        position: absolute;
        left: -33px;
        top: 5px;
    }

.timeline-content h3 {
    margin-bottom: 5px;
}
.home-section .grid {
    margin-bottom: 10px; /* separa las cards del botón */
}
.blog-header {
    margin-top: 80px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

    .blog-header h1 {
        font-size: 2.4rem;
        font-weight: 800;
        background: var(--gradient-tech);
        -webkit-background-clip: text;
        color: transparent;
    }

.blog-date {
    color: var(--text-muted);
    font-size: .9rem;
    margin-top: 6px;
}

.blog-content {
    max-width: 900px;
    margin: 40px auto;
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-main);
}

    .blog-content h2 {
        margin-top: 30px;
        font-size: 1.6rem;
        color: var(--accent);
    }

    .blog-content p,
    .blog-content li {
        margin-bottom: 20px;
    }

    .blog-content img {
        width: 100%;
        border-radius: 10px;
        margin: 25px 0;
        border: 1px solid var(--border);
    }
/* Tablet */
@media(max-width: 992px) {
    nav ul {
        gap: 10px;
    }

    .about-preview {
        flex-direction: column;
        text-align: center;
    }
}

/* Móvil */
@media(max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
    }

    .profile-preview {
        width: 200px;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }
}