/* ============================================
   ESTILOS GENERALES DE VBF
   ============================================ */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
  padding-bottom: 110px; /* Espacio para footer fijo */
}

header {
    background-color: #198bdd;
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

header img {
    max-width: 80px;
    height: auto;
}

header h1 {
    font-size: 1.4em;
    margin: 0;
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* ============================================
   CONTENEDORES Y ESTRUCTURA DEL BLOG
   ============================================ */
#top-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px;
  flex-wrap: wrap;
}

#inicio-btn img {
  max-height: 50px;
}

#blog-container {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background-color: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 8px;
}

.entry {
  background-color: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 20px;
  margin-bottom: 40px;
}

.entry-title {
  color: #198bdd;
  margin-bottom: 10px;
}

.entry-date {
  color: #888;
  font-size: 0.9em;
  margin-bottom: 20px;
}

.entry-content p {
    text-align: justify;
    margin-bottom: 15px;
}

.entry-content img {
    float: right;
    max-width: 350px;
    width: 100%;
    height: auto;
    margin-left: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.entry-content::after {
    content: "";
    display: table;
    clear: both;
}

.highlight {
  background-color: #198bdd;
  color: white;
  padding: 0 2px;
  border-radius: 2px;
}

@media (max-width: 600px) {
    .entry-content img {
        float: none;
        display: block;
        margin: 0 auto 20px;
        max-width: 100%;
    }
    .entry-content p {
        text-align: left;
    }
}

/* ============================================
   AVISO DE COOKIES
   ============================================ */
.cookie-notice {
  position: fixed;
  bottom: 70px;
  left: 0;
  width: 100%;
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 15px;
  display: none;
  z-index: 1000;
}

/* ============================================
   ESTILO UNIFICADO PARA TODOS LOS BOTONES 3D
   ============================================ */
.back-btn, 
#accept-button, 
.cookie-notice button, 
#inicio-btn a, 
.entry-content a[href*="noticia"], 
.entry-content a[href*="reparacion"],
.presupuesto-btn {
    display: inline-block !important;
    margin: 10px !important;
    padding: 12px 28px !important;
    background: linear-gradient(to bottom, #1e9eff, #1574ba) !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    font-weight: bold !important;
    font-size: 14px !important;
    position: relative !important;
    border: none !important;
    cursor: pointer !important;
    text-align: center !important;
    box-shadow: 
        0 8px 0 #0d3f5c,
        0 8px 15px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.3) !important;
    transition: text-shadow 0.2s ease-out !important;
    top: 0 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

.back-btn:hover, 
#accept-button:hover, 
.cookie-notice button:hover, 
#inicio-btn a:hover,
.entry-content a[href*="noticia"]:hover,
.entry-content a[href*="reparacion"]:hover,
.presupuesto-btn:hover {
    background: linear-gradient(to bottom, #1e9eff, #1574ba) !important;
    box-shadow: 
        0 8px 0 #0d3f5c,
        0 8px 15px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.3) !important;
    text-shadow: 
        0 0 10px #e8e8e8,
        0 0 20px #d0d0d0,
        0 0 30px #c0c0c0,
        0 0 40px #b0b0b0,
        0 0 8px rgba(232, 232, 232, 0.8) !important;
}

.back-btn:active, 
#accept-button:active, 
.cookie-notice button:active, 
#inicio-btn a:active,
.entry-content a[href*="noticia"]:active,
.entry-content a[href*="reparacion"]:active,
.presupuesto-btn:active {
    box-shadow: 
        0 3px 0 #0d3f5c,
        0 3px 8px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.2) !important;
    top: 5px !important;
    background: linear-gradient(to bottom, #1e9eff, #1574ba) !important;
    text-shadow: 
        0 0 10px #e8e8e8,
        0 0 20px #d0d0d0,
        0 0 30px #c0c0c0,
        0 0 40px #b0b0b0,
        0 0 8px rgba(232, 232, 232, 0.8) !important;
}

/* ============================================
   PIE DE PÁGINA (FOOTER) - IGUALADO A VBF.ES
   ============================================ */
footer {
  background-color: #198bdd;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 14px;
  box-sizing: border-box;
  line-height: normal;
  margin: 0;
  height: auto;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}

footer p {
  margin: 0;
}
