:root {
  --principal: #2d5f2e;
  --secundario: #ff8c42;
  --terciario: #f0f4f0;
  --blanco: #ffffff;
  --oscuro: #000000;
  --sombra: #5a6d5a;
  --sombra2: #dde4dd;
}

/* ====== GLOBALES ====== */
html {
  font-size: 62.5%;
  font-family: "Roboto", sans-serif;
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  margin: 0;
}

/* ====== HEADER ====== */
header {
  background: linear-gradient(90deg, var(--principal), #3f6d40, #557e56);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 120px;
}

h1 {
  color: var(--blanco);
  font-size: 62px;
}

.logo_cole {
  width: 100px;
}

.logo_agro {
  width: 150px;
}

/* ====== NAV ====== */

.menu-toggle {
  display: none;
}

nav {
  display: flex;
  justify-content: space-between;
  background: var(--blanco);
  padding: 8px 120px;
  position: sticky;
  top: 0;
  z-index: 1000;
}



nav a {
  padding: 12px 22px;
  color: var(--oscuro);
  text-decoration: none;
  font-size: 18px;
  transition: 0.3s;
}

nav a:hover {
  color: var(--principal);
}

/* ====== HERO ====== */
/*Contenedor #1*/
.contenedor-1 {
  background: url("../img/fondo-agro.jpg") no-repeat center/cover;
  position: relative;
}

/* Oscurecer fondo */
.overlay {
  background: rgba(0, 0, 0, 0.5);
  height: 100%;
  display: flex;
  align-items: center;
}

.contenido {
  padding: 120px 65px;
  color: var(--blanco);
  max-width: 600px;
  margin-left: 80px;
  opacity: 0;
  transform: translateY(40px);
  animation: aparecer 1s ease forwards;
}

@keyframes aparecer {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contenido h1 {
  font-size: 48px;
  font-weight: bold;
  line-height: 1.2;
}

.contenido h1 span {
  color: var(--secundario);
}

.contenido p {
  margin: 20px 0;
  font-size: 18px;
  line-height: 1.5;
}

.btn {
  display: inline-block;
  background: var(--secundario);
  color: var(--blanco);
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
}

/* Efecto hover */
.btn:hover {
  background: var(--secundario);
  transform: scale(1.05);
}




/* CONTENEDOR */
.contenedor-3 {
  padding: 50px 0;
  text-align: center;
}

.productos-disp {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  padding: 20px 300px;
}

/* TARJETA */
.producto-disp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--terciario);
  padding: 18px 22px;
  border-radius: 16px;
  transition: all 0.3s ease;
}

/* HOVER SUAVE */
.producto-disp:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* IMAGEN */
.product-imagen {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 10px;
}

/* INFO */
.producto-info-disp {
  flex: 1;
  margin-left: 18px;
}

.producto-nombre-disp {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.producto-precio-disp {
  margin: 5px 0 0;
  font-size: 14px;
  color: var(--sombra);
}

/* ESTADO */
.estado {
  min-width: 130px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-weight: 500;
  font-size: 15px;
}

/* DISPONIBLE */
.estado.ok {
  color: var(--principal);
}

.estado.ok::before {
  background: transparent;
  border: 2px solid #2e7d32;
  color: var(--principal);
}

/* AGOTADO */
.estado.no {
  color: #c62828;
}

.estado.no::before {
  background: transparent;
  border: 2px solid #c62828;
  color: #c62828;
}

.estado span {
  font-size: 13px;
  color: var(--sombra);
  margin-left: 4px;
}

.contenedor-boton {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}



/*Blog*/
.contenedor-blog {
  padding: 50px 120px;
  background-color: var(--terciario);
}

/* GRID */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding: 40px 80px;
}

/* CARD */
.blog-card {
  background: var(--blanco);
  border-radius: 14px;
  overflow: hidden;
  transition: 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
}

/* IMAGEN */
.blog-img {
  position: relative;
}

.blog-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* ANIMACIÓN IMAGEN */
.blog-card:hover .blog-img img {
  transform: scale(1.08);
  filter: brightness(0.75);
}

/* FECHA */
.fecha {
  position: absolute;
  bottom: 20px;
  left: 10px;
  color: var(--blanco);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
}

/* INFO */
.blog-info {
  padding: 15px;
}

.cont-texto{
  text-align: center;
}
.blog-info h3 {
  margin: 10px 0;
  font-size: 18px;
}

.blog-info p {
  font-size: 14px;
  color: var(--sombra);
}

/* BOTÓN */
.leer-mas {
  display: inline-block;
  margin-top: 10px;
  color: var(--secundario);
  font-weight: bold;
  text-decoration: none;
}

.leer-mas:hover {
  text-decoration: underline;
}


/* =========================
   BLOG DETALLE (PÁGINA COMPLETA)
========================= */

.blog-detalle-layout {
  display: flex;
  gap: 40px;
  padding: 70px 30px;
  background: #f4f6f8;
  align-items: flex-start;
}

/* MAIN */
.blog-detalle-main {
  flex: 2.5;
  background: #ffffff;
  padding: 35px;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

.blog-detalle-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 20px;
}

.blog-detalle-titulo {
  font-size: 30px;
  margin-bottom: 15px;
  color: #222;
  line-height: 1.3;
}

.blog-detalle-fecha {
  color: var(--sombra);
  font-size: 14px;
  margin-bottom: 10px;
}

.blog-detalle-texto {
  font-size: 16px;
  line-height: 1.9;
  color: #444;
}

/* BOTÓN VOLVER */
.blog-detalle-volver {
  display: inline-block;
  margin-top: 25px;
  padding: 10px 16px;
  color: var(--secundario);
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.blog-detalle-volver:hover {
  transform: scale(1.05);
}

/* =========================
   SIDEBAR DETALLE
========================= */

.blog-detalle-sidebar {
  flex: 1;
  background: #ffffff;
  padding: 25px;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);
  position: sticky;
  top: 20px;
  height: fit-content;
}

.blog-detalle-sidebar-titulo {
  font-size: 18px;
  margin-bottom: 20px;
  color: #333;
  border-left: 4px solid var(--principal);
  padding-left: 10px;
}

/* CARD SIDEBAR */
.blog-detalle-card {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  text-decoration: none;
  color: inherit;
  padding: 10px;
  border-radius: 12px;
  transition: 0.3s;
}

.blog-detalle-card:hover {
  background: #f7f7f7;
  transform: translateX(4px);
}

.blog-detalle-card-img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 12px;
}

.blog-detalle-card-info h4 {
  font-size: 14px;
  margin: 0;
  color: #222;
}

.blog-detalle-card-info p {
  font-size: 12px;
  color: #777;
  margin-top: 4px;
  line-height: 1.3;
}

/*Carrusel*/
.carrusel {
  position: relative;
  max-width: 1100px;
  margin: 60px auto;
  overflow: hidden;
  border-radius: 16px;
  background-color: var(--terciario);
}

.slide {
  display: none;
  position: relative;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  filter: brightness(0.6);
}

.texto {
  position: absolute;
  bottom: 20px;
  left: 30px;
  color: white;
}

/* BOTONES */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: white;
  font-size: 20px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* DOTS */
.dots {
  text-align: center;
  margin-top: 10px;
}

.dot {
  height: 8px;
  width: 8px;
  margin: 4px;
  background: #ccc;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}

.dot.active {
  background: var(--sombra);
}

/* ====== CONTACTO ====== */
.contacto {
  padding: 60px 20px;
  background: var(--blanco);
  text-align: center;
}

.contacto-header h2 {
  color: var(--principal);
}

.contacto-container {
  max-width: 900px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contacto-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--terciario);
  padding: 20px;
  border-radius: 14px;
}

.icono {
  width: 55px;
  height: 55px;
  background: var(--sombra2);
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.icono svg {
  display: block;
}

.info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.info h3 {
  margin: 0;
  font-size: 18px;
}

.info p {
  margin: 4px 0 0 0;
  font-size: 14px;
}

.info h3 {
  color: var(--principal);

}

.info p {
  color: var(--sombra);
}



/* ====== FOOTER ====== */
.footer {
  background: linear-gradient(135deg, var(--principal), #3f6d40);
  color: var(--blanco);
  padding: 40px 20px 20px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* LOGO */

.footer-logos {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.footer-logos img {
  height: 70px;
  object-fit: contain;
}




.footer-info h3 {
  margin: 0;
}

.footer-info p {
  font-size: 14px;
  opacity: 0.8;
}

/* REDES */
.footer-redes h4 {
  margin-bottom: 10px;
}

.social {
  display: block;
  color: var(--blanco);
  text-decoration: none;
  margin: 5px 0;
  transition: 0.3s;
}

.social:hover {
  color: var(--secundario);
  transform: translateX(5px);
}



/* BOTTOM */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 20px;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ADMIN ESCONDIDO */
.admin-link {
  font-size: 10px;
  opacity: 0.1;
}

.admin-link:hover {
  opacity: 1;
  color: var(--secundario);
}