@charset "utf-8";
/* ROOTS */
:root {
  --color-primario: #059696;
  --color-primario-oscuro: #30302F;
  --color-texto: #4B4B4B;
  --color-gris-claro: #C9C9C7;
  --color-blanco: #ffffff;
  --color-secundario-fondo: #f8f9fa; 
  --color-verde-logo: #00AAAD;

}



p{
	font-size: 1rem;
	color: #3da092;
}

h2{
	font-size: 1.5rem;
	color:#4b4c4c;
}

li{
	font-size: 1rem;
	color: #3da092;
}

body {
  padding-top: 70px;
	background-color: f0efef;
}

.navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--color-primario);
}

.navbar.scrolled {
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar-logo {
  height: 80px;
  transition: all 0.2s ease;
}

.navbar.scrolled .navbar-logo {
  height: 40px;
}

.nav-link {
  font-size: 1.1rem;
  color: var(--color-texto) !important;
  font-weight: 400;
  transition: all 0.2s ease;
}

.nav-link:hover {
  font-weight: 600;
}

.nav-link:active {
  transform: scale(0.95);
}

.blog-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease, border 0.3s ease;
  position: relative;
  cursor: default;
}

.blog-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: border 0.4s ease;
  pointer-events: none;
}

.blog-card:hover {
  box-shadow: 0 0 20px rgba(0, 128, 0, 0.15);
}


.blog-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.blog-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: rgba(0,0,0,0.6);
  color: #fff;
  margin: 0;
  font-size: 1.1rem;
}

.blog-content {
  padding: 1rem;
  font-size: 0.95rem;
}

/* Overlay */
.blog-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 2rem;
  animation: fadeInOverlay 0.4s ease;
  
}

.blog-overlay.active {
  display: flex;
}

@keyframes fadeInOverlay {
  from {
    background-color: rgba(0,0,0,0);
  }
  to {
    background-color: rgba(0,0,0,0.85);
  }
}

.blog-reader {
  position: relative;
  background: #fff;
  border-radius: 8px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: fadeInUp 0.4s ease;
    
}

.blog-close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: #333;
  font-size: 1.5rem;
  z-index: 10000;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.blog-close-button:hover {
  transform: rotate(180deg);
}

.blog-close-button i {
  font-size: 1.8rem;
  color: #999;
}

.blog-close-button:hover i {
  color: #000;
}


.blog-reader-image {
  height: 220px;
  background-size: cover;
  background-position: center;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.blog-reader h3 {
  margin: 0;
  padding: 1rem;
  font-size: 1.5rem;
  color: #222;
}

.blog-reader-content {
  padding: 0 1rem 1.5rem 1rem;
  font-size: 1rem;
  text-align: justify;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  } to {
    opacity: 1;
    transform: translateY(0);
  }
}
