/* ==========================================================================
   GASTROCERCANO - HOJA DE ESTILOS PRINCIPAL
   Estética: Minimalista, madera, fuego, ancestral y tecnológico.
   ========================================================================== */

/* --- 1. VARIABLES GLOBALES --- */
:root {
    --color-fondo: #1a1614; /* Carbón oscuro / Madera quemada */
    --color-texto: #e8e2d5; /* Blanco hueso / Pergamino */
    --color-fuego: #e25822; /* Naranja fuego / Acento */
    --color-madera: #3e2723; /* Madera oscura */
    --font-titulos: 'Playfair Display', serif; /* Ancestral, elegante */
    --font-texto: 'Inter', sans-serif; /* Tecnológico, minimalista */
}

/* --- 2. ESTILOS BASE Y FONDO ESTATICO --- */
body {
    background-color: var(--color-fondo);
    background-image: linear-gradient(to bottom, rgba(26, 22, 20, 0.71) 0%, rgba(26, 22, 20, 0.1) 25%), url('../../images/FondoG.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; 
    
    color: var(--color-texto);
    font-family: var(--font-texto);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-titulos);
    font-weight: 400;
}

a {
    color: var(--color-texto);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-fuego);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
	background-color: rgba(26, 22, 20, 0.78);
}

.container-home {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
	background-color: rgba(0, 0, 0, 0);
}

/* --- 3. NAVEGACIÓN REFINADA --- */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: transparent;
}

#main-nav.scrolled {
    background-color: rgba(26, 22, 20, 0.98);
    height: 70px;
    border-bottom: 1px solid rgba(232, 226, 213, 0.1);
}

.nav-brand {
    position: absolute;
    left: 3rem; 
    font-family: var(--font-titulos);
    font-size: 1.4rem;
    color: var(--color-fuego);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
    pointer-events: none;
}

#main-nav.scrolled .nav-brand {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
}

.nav-links a.activo {
    color: var(--color-fuego);
    border-bottom: 1px solid var(--color-fuego);
}

.nav-spacer {
    height: 90px; 
}

/* --- 4. CABECERA TIPO BANNER (PÁGINA PRINCIPAL) --- */
.hero-section {
    padding-top: 120px; 
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.hero-banner {
    width: 100%;
    max-width: 1200px; 
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid rgba(232, 226, 213, 0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26,22,20,0.1) 0%, rgba(26,22,20,0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-pretitle {
    font-family: var(--font-texto);
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 0.75rem;
    color: var(--color-fuego);
    margin-bottom: 0.5rem;
}

.hero-main-title {
    font-family: var(--font-titulos);
    font-size: 4.5rem;
    font-weight: 400;
    margin: 0;
    color: #e25822;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

/* --- 5. CUADRÍCULA DE ARTÍCULOS (BLOG) --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-card {
    background-color: #241f1c;
    border: 1px solid rgba(232, 226, 213, 0.05);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: var(--color-fuego);
}

.post-card-link {
    display: block;
    color: inherit;
}

.post-card-link:hover {
    color: inherit;
}

.post-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid var(--color-fuego);
}

.post-content {
    padding: 1.5rem;
}

.post-content h2 {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.post-excerpt {
    font-size: 0.9rem;
    color: rgba(232, 226, 213, 0.7);
    margin-bottom: 1rem;
}

.post-date {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-fuego);
}

/* --- 6. PAGINACIÓN --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 4rem;
}

.btn-pag {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-texto);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.btn-pag:hover {
    background-color: var(--color-texto);
    color: var(--color-fondo);
}

.page-info {
    font-family: var(--font-titulos);
    font-style: italic;
    color: rgba(232, 226, 213, 0.5);
}

/* --- 7. VISTA INDIVIDUAL DEL ARTÍCULO --- */
.single-post {
    max-width: 800px; 
    margin: 0 auto;
    padding: 2rem 0;
}

.single-post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-fuego);
}

.post-meta {
    font-size: 0.85rem;
    color: rgba(232, 226, 213, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(232, 226, 213, 0.1);
    padding-bottom: 1rem;
}

.full-width-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 2rem 0;
    border: 1px solid #3e2723;
    border-radius: 4px;
}

.single-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.single-post-content p {
    margin-bottom: 1.5rem;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
}

/* Botones de Compartir */
.share-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(232, 226, 213, 0.1);
    text-align: center;
}

.share-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-share {
    background: transparent;
    border: 1px solid var(--color-texto);
    color: var(--color-texto);
    padding: 0.6rem 1.2rem;
    font-family: var(--font-texto);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.btn-share:hover {
    background: var(--color-texto);
    color: var(--color-fondo);
}

.btn-share.facebook:hover { background: #1877F2; border-color: #1877F2; color: white; }
.btn-share.x-twitter:hover { background: #1da1f2; border-color: #1da1f2; color: white; }
.btn-share.instagram:hover { background: #E1306C; border-color: #E1306C; color: white; }
.btn-share.copy-link:hover { background: var(--color-fuego); border-color: var(--color-fuego); color: white; }

/* --- 8. PÁGINAS ESTÁTICAS --- */
.static-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.static-header {
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(232, 226, 213, 0.1);
    padding-bottom: 2rem;
}

.static-header h1 {
    font-size: 2.5rem;
    color: var(--color-fuego);
    margin-bottom: 0.5rem;
}

.static-header .subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(232, 226, 213, 0.6);
}

.static-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.static-content h2 {
    color: var(--color-fuego);
    margin-top: 2.5rem;
}

/* --- 9. FORMULARIO DE CONTACTO --- */
.contact-form-container {
    max-width: 550px; 
    margin: 0 auto; 
    background-color: #241f1c;
    padding: 3rem; 
    border-radius: 8px; 
    border: 1px solid rgba(232, 226, 213, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(226, 88, 34, 0.03); 
}

.form-group {
    margin-bottom: 2rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: rgba(232, 226, 213, 0.9);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="number"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: #1a1614; 
    border: 1px solid #3e2723;
    color: var(--color-texto);
    font-family: var(--font-texto);
    box-sizing: border-box;
    border-radius: 4px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease; 
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-fuego);
    box-shadow: 0 0 10px rgba(226, 88, 34, 0.15); 
}

.captcha-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #1a1614;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #3e2723;
}

.captcha-group label {
    margin-bottom: 0;
}

.btn-submit {
    background-color: var(--color-fuego);
    color: white;
    border: none;
    padding: 18px 30px;
    font-family: var(--font-texto);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    border-radius: 4px;
    margin-top: 1rem;
}

.btn-submit:hover {
    background-color: #c94c1c;
    transform: translateY(-2px); 
    box-shadow: 0 8px 20px rgba(226, 88, 34, 0.3); 
}

.alert {
    padding: 15px;
    margin-bottom: 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    font-size: 0.95rem;
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid #4CAF50;
    color: #4CAF50;
}

.alert-error {
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid #F44336;
    color: #F44336;
}

/* --- 10. PIE DE PÁGINA (FOOTER) --- */
footer {
    margin-top: 5rem;
    padding: 3rem 0;
    border-top: 1px solid rgba(232, 226, 213, 0.1);
    background-color: var(--color-fondo);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-social {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-social a {
    font-family: var(--font-texto);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(232, 226, 213, 0.7);
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    color: var(--color-fuego);
    transform: translateY(-2px);
}

.footer-copy p {
    font-family: var(--font-texto);
    font-size: 0.8rem;
    letter-spacing: 1px;
    opacity: 0.5;
    margin: 0;
    text-align: center;
}

/* --- 11. MEDIA QUERIES (ADAPTACIÓN A MÓVILES) --- */
@media (max-width: 768px) {
    .hero-main-title { font-size: 3rem; }
    
    .nav-brand { display: none; } 
    
    .nav-links {
        gap: 1rem;
        font-size: 0.65rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .captcha-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .hero-banner {
        height: 250px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}
/* --- 12. PANEL DE ADMINISTRACIÓN --- */
body.admin-panel {
    /* Mantenemos la foto pero la oscurecemos al 95% para que parezca casi lisa */
    background-image: linear-gradient(rgba(26, 22, 20, 0.95), rgba(26, 22, 20, 0.95)), url('../../images/FondoG.jpg');
}