:root {
    --bg: #1E1E1E;
    --fg: #f5f5f5;
    --accent: #4da6ff;
    --font: 'Inter', sans-serif;
    --axdevs-purple: #6A3FBF;
    --axdevs-purple-light: #7A4BD8;
    --axdevs-purple-dark: #4B2A8A;
    --axdevs-purple-gray: #2A2336;
    --axdevs-light-gold: #D2C68A;
    --axdevs-vibrant-gold: #D4B45A;
    --axdevs-dark-gold: #525100;
    --axdevs-gold-gray: #3A3528;

}

@font-face {
    font-family: 'Wallpoet';
    src: url('../fonts/Wallpoet-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    line-height: 1.6;
}
code {
    background: rgb(30, 30, 30, 0.5);
    border-radius: 7px;
    padding: 1px 4px 3px 4px;
    border: 1px solid #2A2A2A;
    font-size: 0.95rem;
}
pre {
    background: #1E1E1E;
    border-radius: 10px;
    padding: 20px 40px;
    margin: 20px 40px;
    overflow-x: auto;
}
pre>code {
    background: none;
    border:none;
}
/* HEADER */
#header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #1E1E1E;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.header {
    width: 100%;
    padding: 24px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-left,
.header-right {
    flex: 1;
}
.header-right{
    text-align: right;
}
.logo {
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: -0.5px;
    font-family: Wallpoet;
    font-variant: small-caps;
}

.nav a {
    margin-left: 24px;
    text-decoration: none;
    color: var(--fg);
    font-weight: 400;
    transition: 0.2s;
}

.nav a:hover {
    color: var(--accent);
}
@media (max-width: 768px) {
    .header .logo:first-child {
        display: none;
    }
    .header .header-right{
        display:flex;
    }
    .header {
        padding: 20px;
    }
}

/* HERO HOME*/
.hero {
    max-width: -webkit-fill-available;
    padding: 140px 48px;
    background-image: url(../img/Hero.png);
    background-size: cover;
    background-position: right center;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.75), transparent 55%);
    pointer-events: none;
    z-index: 1;
}
.hero h1 {
    font-size: 3.4rem;
    font-weight: 400;
    letter-spacing: -1px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    font-family: Wallpoet;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 60px 0;
    opacity: 0.5;
    font-size: 0.9rem;
}

/* BLOG PAGE*/
.blog-body {
    background: var(--axdevs-purple-gray);
}
.blog-container {
    padding: 50px;
}
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.post-tile {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 400px;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background: var(--axdevs-dark-gold);
}

.post-tile:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.post-tile img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-tile-content {
    bottom: 0;
    color: #f1f1f1;
    width: 100%;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
    height: auto;
    max-height: 215px;
}

.post-tile h2 {
    font-size: 1.15rem;
    margin: 0 0 8px;
    line-height: normal;
}
.post-tile h2>a {
    text-decoration: none;
    color: #e6e6e6;
}

.post-tile h2>a:hover {
    color: var(--axdevs-light-gold);
}

.post-tile .meta {
    font-size: 0.9rem;
    color: #e6e6e6;
}
.post-image-wrapper {
    position: relative;
}
@media (max-width: 768px) {
    .post-tile {
        width: -webkit-fill-available;
        margin: 0;
    }
    .posts-grid {
        display: flex;
        flex-direction: column;
    }
    .post-tile-content {
        height: auto;
    }
}

.post-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--axdevs-dark-gold); 
    padding: 6px 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    z-index: 5;
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
}

.post-badge i {
    font-size: 1.3rem;
}
.post-badge .fa-salesforce {
    color: #00A1E0;
}

/* SIDEBAR */
.blog-sidebar {
    background: #1E1A29;
    padding: 1.5rem;
    border-radius: 12px;
    height: fit-content;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.blog-sidebar h3 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.2rem;
}
@media (max-width: 768px) {
    .blog-sidebar {
        display: none;
    }
}

/* TAGS EN SIDEBAR */
#tag-filters {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.filter-tag {
    background: #2A2336;
    color: #fff;
    padding: .5rem .8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s ease;
    font-size: .9rem;
}

.filter-tag:hover {
    background: #3a314a;
}

.filter-tag.active {
    background: #A89A45;
    color: #1E1A29;
    font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
}
/*----POST PAGE----*/
/* Contenedor general del post */
.post-wrapper {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    line-height: 1.7;
    font-size: 1.1rem;
    color: #e6e6e6;
}

/* Título principal */
.post-wrapper h1 {
    font-size: 2.4rem;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Imagen principal */
.post-image {
    width: 100%;
    border-radius: 12px;
    margin: 20px 0;
    object-fit: cover;
}

/* Meta info */
.meta {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Contenido del post */
#post-content p {
    margin: 18px 0;
}

/* Subtítulos dentro del contenido */
#post-content h2 {
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-weight: 600;
}

#post-content h3 {
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Imágenes dentro del contenido */
#post-content img {
    width: 100%;
    border-radius: 10px;
    margin: 25px 0;
}

/* Listas */
#post-content ul,
#post-content ol {
    margin: 20px 0 20px 30px;
}

#post-content li {
    margin: 8px 0;
}

/* HERO DEL POST */
.post-hero {
    width: 100%;
    height: 320px; /* puedes subirlo a 400–500 si quieres más impacto */
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 30px;
    position: relative;
}

.post-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* centra la imagen */
    display: block;
}

/* OPCIONAL: overlay suave para dar más contraste */
.post-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.35));
    pointer-events: none;
}
.blog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    margin: 40px auto;
}

@media (max-width: 768px) {
    .blog-layout {
        display: block;
    }
}

/* HERO DEL BLOG */
.blog-hero {
    width: 100%;
    height: 400px; 
    background-image: url('/assets/img/blog-banner.png'); 
    background-size: cover;
    background-position: right center;
    position: relative;
    border-radius: 16px;
    margin: 40px auto;
    max-width: -webkit-fill-available;
    overflow: hidden;
}

.blog-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.0),
        rgba(0,0,0,0.85)
    );
}
.blog-hero-title {
    position: absolute;
    bottom: 30px;
    left: 40px;
    color: white;
    font-size: 5rem;
    font-weight: 400;
    z-index: 2;
    font-family: Wallpoet;
}


@media (max-width: 768px) {
    .blog-hero {
        height: auto;
        padding: 40px 20px;
        background-size: cover;
        background-position: center;
        text-align: center;
        margin-top: 0;
    }

    .blog-hero h1 {
        font-size: 1.8rem; /* más pequeño */
        line-height: 1.2;
    }
}
/*----DROPDOWN ORDER BY----*/
.blog-sort {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 24px;
}
@media (max-width: 768px) {
    .blog-sort {
        margin-left: 0;
    }
}
.sort-btn {
    background: transparent;
    border: 1px solid #444;
    padding: 6px 12px;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.sort-btn i {
    font-size: 14px;
}

.sort-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 6px 0;
    display: none;
    flex-direction: column;
    min-width: 140px;
    z-index: 1000;
}

.sort-dropdown div {
    padding: 8px 12px;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s;
}

.sort-dropdown div:hover {
    background: #333;
}

.blog-sort.open .sort-dropdown {
    display: flex;
}

/*=====SELECTOR DE IDIOMA=====*/
.lang-selector {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 24px;
}

.lang-btn {
    background: transparent;
    border: 1px solid #444;
    padding: 6px 12px;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.lang-btn i {
    font-size: 14px;
}

.lang-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 6px 0;
    display: none;
    flex-direction: column;
    min-width: 115px;
    z-index: 1000;
}

.lang-dropdown div {
    padding: 8px 12px;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lang-dropdown div:hover {
    background: #333;
}

.lang-selector.open .lang-dropdown {
    display: flex;
}

/*----LATEST POSTS ----*/

.blog-preview {
    background: var(--axdevs-purple-light);
    margin: 50px 0;
    position: relative;
    padding: 140px 50px;
    clip-path: polygon(0 100px, 100% 0, 100% calc(100% - 100px), 0 100%);
}

.blog-preview .posts {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    justify-content: space-around;
}

.blog-preview h2 {
    font-family: Wallpoet;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 2rem;
}
/* Tarjeta individual */
.latest-card {
    max-width: 580px;
    width: 25%;
    background: #151515;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Imagen */
.latest-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Contenido */
.latest-card-content {
    padding: 16px 18px 18px;
}

.latest-card h3 {
    font-size: 1.1rem;
    margin: 0 0 8px;
}
.latest-card h3>a {
    text-decoration: none;
    color: #e6e6e6;
}

.latest-card h3>a:hover {
    color: var(--axdevs-purple-light);
}
.latest-meta {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Responsive: si la pantalla es pequeña, que ocupen todo el ancho */
@media (max-width: 1280px) {
    .latest-card {
        width: 100%;
    }
}

/*----LATEST PROJECTS ----*/

/* Contenedor de los posts */
.projects-preview {
    background: var(--axdevs-vibrant-gold);
    margin: 50px 0;
    position: relative;
    padding: 140px 50px;
    clip-path: polygon(0 100px, 100% 0, 100% calc(100% - 100px), 0 100%);
}

.projects-preview .posts {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* separación entre tarjetas */
    margin-top: 20px;
    justify-content: space-around;
}

.projects-preview h2 {
    font-family: Wallpoet;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 2rem;
}
/* Tarjeta individual */
.latest-card {
    max-width: 580px;
    width: 25%;
    background: #151515;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Imagen */
.latest-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Contenido */
.latest-card-content {
    padding: 16px 18px 18px;
}

.latest-card h3 {
    font-size: 1.1rem;
    margin: 0 0 8px;
}
.latest-card h3>a {
    text-decoration: none;
    color: #e6e6e6;
}

.latest-card h3>a:hover {
    color: var(--axdevs-purple-light);
}
.latest-meta {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Responsive: si la pantalla es pequeña, que ocupen todo el ancho */
@media (max-width: 1280px) {
    .latest-card {
        width: 100%;
    }
}

/*----PROJECTS PAGE----*/
.project-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    margin: 40px auto;
}
.project-layout .sort-btn {
    border-color: #e6e6e6;
}
.project-layout .filter-tag {
    background: #3A2F1F; /* marrón oscuro cálido */
    color: #E6E6E6; /* gris blanquecino */
}
.project-layout .filter-tag:hover {
    background: #4A3A22;
}
.project-layout .filter-tag.active {
    background: #A89A45;
    color: #1E1A29;
}
.project-layout .blog-sidebar {
    background-color: #2B2418;
}
.project-layout .post-badge {
    background-color: #1E1A29;
}
.projects-body {
    background: var(--axdevs-gold-gray);
}
.projects-container {
    padding: 50px;
}
.project-hero {
    width: 100%;
    height: 400px; 
    background-image: url('/assets/img/projects-banner.png'); 
    background-size: cover;
    background-position: right center;
    position: relative;
    border-radius: 16px;
    margin: 40px auto;
    max-width: -webkit-fill-available;
    overflow: hidden;
}

.project-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.0),
        rgba(0,0,0,0.85)
    );
}

.project-hero-title {
    position: absolute;
    bottom: 30px;
    left: 40px;
    color: white;
    font-size: 5rem;
    font-weight: 400;
    z-index: 2;
    font-family: Wallpoet;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
    margin-left:24px;
}

.projects-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}
.project-card {
    background: #1E1A29;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform .2s ease, box-shadow .2s ease;
    max-width: 600px;
    max-height: 460px;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-data {
    display: flex;
    flex-direction: column;
    padding: 1.2rem;
    justify-content: space-between;
    height: 55%;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: .5rem;
    color: #fff;
}

.project-description {
    font-size: .95rem;
    color: #cfcfcf;
    margin-bottom: 1rem;
}

/* TAGS */
.project-tags {
    margin-bottom: 1rem;
    color: #666;
}

.project-tag {
    display: inline-block;
    background: #A89A45;
    color: #1E1A29;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: .75rem;
    margin-right: 6px;
    margin-bottom: 5px;
}

/* BOTONES */
.project-buttons {
    display: flex;
    gap: .6rem;
}

.project-btn {
    flex: 1;
    text-align: center;
    padding: .6rem;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease;
}

.project-btn.github {
    background: #A89A45;
    color: #1E1A29;
}

.project-btn.github:hover {
    background: #c7b55a;
}

.project-btn.more {
    background: #2A2336;
    color: #fff;
}

.project-btn.more:hover {
    background: #3a314a;
}

/* ===== PROJECT PAGE ===== */

.project-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    color: #fff;
}

/* HEADER DEL PROYECTO */
.project-header {
    text-align: center;
    margin-bottom: 2rem;
}

#project-image {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

/* TAGS */
#project-tags {
    margin-top: .5rem;
}

/* CONTENIDO */
#project-content {
    margin-top: 2rem;
    line-height: 1.7;
    font-size: 1.05rem;
    color: #e6e6e6;
}

#project-content h3 {
    margin-top: 2rem;
    margin-bottom: .8rem;
    color: #fff;
}

#project-content ul {
    margin-left: 1.2rem;
    margin-bottom: 1.5rem;
}

#project-content li {
    margin-bottom: .4rem;
}

/* BOTONES */
.project-links {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
}

.project-btn {
    flex: 1;
    text-align: center;
    padding: .8rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease;
}

.project-btn.github {
    background: #A89A45;
    color: #1E1A29;
}
.project-btn.github i {
    margin-right:5px;
}

.project-btn.github:hover {
    background: #c7b55a;
}

.project-btn.more {
    background: #2A2336;
    color: #fff;
}

.project-btn.more:hover {
    background: #3a314a;
}

/* ===== PROJECT PAGE ===== */

/* HEADER DEL PROYECTO */
.project-header {
    text-align: center;
    margin-bottom: 2rem;
}

#project-image {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

/* TAGS */
#project-tags {
    margin-top: .5rem;
}

/* CONTENIDO */
#project-content {
    margin-top: 2rem;
    line-height: 1.7;
    font-size: 1.05rem;
    color: #e6e6e6;
}

#project-content h3 {
    margin-top: 2rem;
    margin-bottom: .8rem;
    color: #fff;
}

#project-content ul {
    margin-left: 1.2rem;
    margin-bottom: 1.5rem;
}

#project-content li {
    margin-bottom: .4rem;
}

/* BOTONES */
.project-links {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
}

.project-btn {
    flex: 1;
    text-align: center;
    padding: .8rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease;
}

.project-btn.github {
    background: #A89A45;
    color: #1E1A29;
}

.project-btn.github:hover {
    background: #c7b55a;
}

.project-btn.more {
    background: #2A2336;
    color: #fff;
}

.project-btn.more:hover {
    background: #3a314a;
}

.projects-grid {
    display: flex;
    gap: 30px;
}
/* ===== TABLAS DEL BLOG ===== */

.post-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
    border-radius: 8px;
    overflow: hidden;
    background: var(--card-bg, #ffffff);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Encabezados */
.post-wrapper table thead {
    background: var(--primary-light, #f5f5f5);
}

.post-wrapper table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-strong, #222);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Filas */
.post-wrapper table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    color: var(--text-normal, #444);
}

/* Alternancia de filas */
/*.post-wrapper table tbody tr:nth-child(even) {*/
/*    background: var(--row-alt, #fafafa);*/
/*}*/

/* Hover */
.post-wrapper table tbody tr:hover {
    background: var(--row-hover, #f0f0f0);
}
.post-wrapper a {
    color:var(--axdevs-light-gold);
}
.post-wrapper a:hover {
    color:var(--axdevs-dark-gold);
}
/* Modo oscuro automático */
@media (prefers-color-scheme: dark) {
    .post-wrapper table {
        background: #1e1e1e;
        box-shadow: 0 2px 6px rgba(255,255,255,0.05);
    }

    .post-wrapper table thead {
        background: #2a2a2a;
    }

    .post-wrapper table th {
        color: #fff;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .post-wrapper table td {
        color: #ddd;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    /*.post-wrapper table tbody tr:nth-child(even) {*/
    /*    background: #242424;*/
    /*}*/

    .post-wrapper table tbody tr:hover {
        background: #2f2f2f;
    }
}
