/* =========================================================
   CSS PREMIUM FINAL: GAMIFICATION THEME (ORANGE & NAVY)
   v3.0 - Full Redesign (No white borders on cards)
   ========================================================= */
@font-face {
  font-family: 'ZingRust';
  src: url('../fonts/zing.rust-demo-base.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
    --primary-orange: #FF6B00;
    --primary-navy: #162438;
    --text-main: #2c3e50;
    --text-soft: #606f7b;
    --bg-body: #f4f7f6;
    --bg-card: #ffffff;
    --radius: 12px;
    --shadow-card: 0 4px 20px rgba(0,0,0,0.03); /* Sombra base muy sutil */
    --shadow-hover: 0 15px 35px rgba(22, 36, 56, 0.08); /* Sombra hover suave */
    --font-main: 'Roboto', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    background-color: var(--bg-body);
    font-family: var(--font-main);
    color: var(--text-main);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-orange);
    text-decoration: none;
}

/* --- 1. HEADER & MENÚ --- */
.header-area {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: relative;
    z-index: 100;
}

.site-title a {
    color: var(--primary-navy);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 26px;
    letter-spacing: -1px;
}

.mainmenu-area {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mainmenu li a {
    color: var(--primary-navy);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    padding: 20px 15px;
    display: block;
    position: relative;
}

.mainmenu li:hover a, 
.mainmenu li.active a {
    color: var(--primary-orange);
}

/* Línea naranja animada en menú */
.mainmenu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-orange);
    transition: var(--transition);
}

.mainmenu li:hover a::after,
.mainmenu li.active a::after {
    width: 100%;
}

/* --- 2. INDEX / BLOG CARDS (CORREGIDO) --- */

.inner-box {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: none;
    overflow: hidden; /* Clave para recortar la imagen */
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    padding: 0 !important; /* CORRECCIÓN: Elimina el borde blanco */
}

/* Efecto Hover Suave */
.inner-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Imagen de la tarjeta */
.inner-box .image {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0; /* Sin margen */
}

.inner-box .image img {
    width: 100%;
    height: 220px; /* Altura uniforme */
    object-fit: cover;
    display: block;
    transition: 0.5s;
    border-radius: 0; /* Sin radio en la imagen, usa el del box */
}

.inner-box:hover .image img {
    transform: scale(1.03); /* Zoom muy sutil */
}

/* Contenido de texto de la tarjeta */
.inner-box .lower-content {
    padding: 25px; /* Aquí va el espacio para el texto */
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Metadatos (Fecha/Autor) */
.inner-box .lower-content .post-meta {
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.inner-box .lower-content .post-meta i {
    color: var(--primary-orange);
    margin-right: 5px;
}

/* Título de tarjeta */
.inner-box .lower-content h3 {
    margin: 0 0 15px;
    line-height: 1.4;
}

.inner-box .lower-content h3 a {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-navy);
    text-decoration: none;
    transition: 0.3s;
}

.inner-box .lower-content h3 a:hover {
    color: var(--primary-orange);
}

/* Excerpt (Resumen) */
.inner-box .lower-content p {
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Enlace "Read More" */
.inner-box .lower-content .read-more {
    margin-top: auto;
    display: inline-block;
    color: var(--primary-orange);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    border-bottom: 2px solid rgba(255, 107, 0, 0.2);
    align-self: flex-start;
}

.inner-box .lower-content .read-more:hover {
    color: var(--primary-navy);
    border-bottom-color: var(--primary-navy);
}

/* --- 3. SINGLE POST (INTERIOR ARTÍCULO) --- */

.single-area {
    padding-top: 50px;
}

.single-area article.post {
    background: #fff;
    padding: 50px; /* Espacio interno amplio */
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    margin-bottom: 40px;
}

/* Imagen destacada en el post */
.post-thumbnail img {
    border-radius: 8px;
    width: 100%;
    margin-bottom: 30px;
}

/* Título H1 */
.entry-header .entry-title {
    font-size: 34px;
    color: var(--primary-navy);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Meta datos post */
.entry-header .footer-meta {
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 0;
    margin-bottom: 35px;
    color: var(--text-soft);
    font-size: 0.9rem;
    display: flex;
    gap: 15px;
    align-items: center;
}

.entry-header .footer-meta a {
    color: var(--primary-orange);
    font-weight: 600;
}

/* Tipografía del contenido */
.entry-content p {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
}

/* Subtítulos H2 (Con línea naranja lateral) */
.entry-content h2 {
    color: var(--primary-navy);
    font-size: 26px;
    font-weight: 800;
    margin-top: 45px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.entry-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 6px;
    background: var(--primary-orange);
    border-radius: 4px;
}

.entry-content h3 {
    color: var(--primary-navy);
    font-size: 22px;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 15px;
}

/* Listas con bullets naranjas */
.entry-content ul {
    list-style: none;
    padding-left: 10px;
    margin-bottom: 25px;
}

.entry-content ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    font-size: 17px;
    line-height: 1.6;
}

.entry-content ul li::before {
    content: '•';
    color: var(--primary-orange);
    font-size: 24px; /* Bullet más grande */
    position: absolute;
    left: 0;
    top: -5px;
    font-weight: bold;
}

/* Citas */
blockquote {
    background: #f9fbfd;
    border-left: 4px solid var(--primary-navy);
    margin: 30px 0;
    padding: 25px 30px;
    font-style: italic;
    color: var(--primary-navy);
    font-weight: 500;
    border-radius: 0 8px 8px 0;
}

/* --- 4. SIDEBAR & WIDGETS --- */

.widget {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    margin-bottom: 30px;
    border: none;
}

.widget h2 {
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--primary-navy);
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.widget li {
    padding: 10px 0;
    border-bottom: 1px solid #f9f9f9;
}

.widget li a {
    color: var(--text-soft);
    font-weight: 500;
    display: block;
    transition: 0.3s;
}

.widget li:hover a {
    color: var(--primary-orange);
    padding-left: 5px;
}

/* Buscador */
.search-form input[type="search"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    background: #fdfdfd;
    transition: 0.3s;
}

.search-form input[type="search"]:focus {
    border-color: var(--primary-orange);
    outline: none;
}

.search-form input[type="submit"] {
    margin-top: 10px;
    width: 100%;
    background: var(--primary-navy);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.search-form input[type="submit"]:hover {
    background: var(--primary-orange);
}

/* --- 5. FOOTER --- */
.footer-area {
    background: var(--primary-navy);
    color: rgba(255,255,255,0.7);
    padding: 50px 0;
    margin-top: 60px;
    text-align: center;
    border-top: 4px solid var(--primary-orange);
}

.footer-area a {
    color: #fff;
    font-weight: 600;
}

.footer-area a:hover {
    color: var(--primary-orange);
}

/* --- 6. RESPONSIVO --- */
@media (max-width: 768px) {
    .single-area article.post {
        padding: 5px;
    }
    .entry-header .entry-title {
        font-size: 26px;
    }
    .inner-box .image img {
        height: auto;
        min-height: 200px;
    }
    .mainmenu-area { display: none; }
}

/* =========================================================
   CSS FOOTER - REPLICA EXACTA LANDING (TAILWIND STYLE)
   ========================================================= */

/* 1. Definición de Fuente (Extraída de tu CSS) */
@font-face {
  font-family: 'ZingRust';
  /* CAMBIA ESTA URL por la ruta real de tu archivo de fuente en WordPress */
  src: url('/wp-content/uploads/fuentes/zing.rust-demo-base.otf') format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
    /* Colores extraídos de tu Tailwind CSS (convertidos a Hex para compatibilidad) */
    --pj-gray-800: #1f2937; /* Tu fondo oscuro */
    --pj-gray-400: #9ca3af; /* Tu texto gris */
    --pj-gray-700: #374151; /* Tu línea divisoria */
    --pj-white: #ffffff;
    --pj-orange: #FF6B00;   /* Tu color de marca */
}

/* 2. Contenedor Principal */
.footer-area {
    background-color: var(--pj-gray-800);
    color: var(--pj-white);
    padding: 48px 0 24px; /* py-6 ajustado */
    font-family: ui-sans-serif, system-ui, sans-serif; /* Tu font-sans */
    font-size: 16px;
    margin-top: 50px;
    border-top: none;
}

/* 3. Parte Superior */
.footer-top {
    margin-bottom: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 16px; /* mb-4 */
}

.logo-container {
    width: 32px; /* w-8 */
    height: 32px; /* h-8 */
    border-radius: 4px; /* rounded */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px; /* ml-2 gap */
}

.logo-container img {
    width: 28px; /* w-7 */
    height: 28px; /* h-7 */
    object-fit: contain;
}

.brand-name {
    font-family: 'ZingRust', 'Roboto', sans-serif; /* Tu fuente corporativa */
    font-weight: 700; /* font-bold */
    font-size: 18px; /* text-base / text-lg */
    color: var(--pj-white);
    letter-spacing: 0.5px;
}

.footer-description {
    color: var(--pj-gray-400); /* text-gray-400 */
    font-size: 14px; /* text-sm */
    line-height: 1.5;
    max-width: 400px;
    margin: 0;
}

/* 4. Divisor */
.footer-divider {
    border-top: 1px solid var(--pj-gray-700); /* border-gray-700 */
    width: 100%;
    margin-top: 24px; /* mt-6 */
    padding-top: 20px; /* pt-5 */
    margin-bottom: 0;
}

/* 5. Parte Inferior */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: var(--pj-gray-400);
    font-size: 14px; /* text-sm */
}

.footer-links {
    display: flex;
    gap: 24px; /* space-x-6 */
}

.footer-links a {
    color: var(--pj-gray-400);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--pj-white); /* hover:text-white */
}

/* Responsivo */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-links {
        flex-direction: column;
        gap: 12px;
        margin-top: 16px;
    }
}