/* =========================
   PALETA
========================= */
:root {
  --green-dark: #2F6F4E;
  --green-soft: #E6F2EB;
  --yellow-main: #F2B705;
  --yellow-soft: #FFE8A3;
  --text-main: #2B2B2B;
  --text-brown: #4A3B2A;
}

html {
  scroll-behavior: smooth;
}

/* =========================
   BASE
========================= */
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-main);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-brown);
}

/* =========================
   NAVBAR
========================= */
.custom-navbar {
  background-color: var(--green-dark);
}

.navbar-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.nav-link {
  color: #fff !important;
  margin-left: 1rem;
}

.nav-link:hover {
  color: var(--yellow-main) !important;
}

/* =========================
   HERO
========================= */
.hero-section {
  background: var(--green-dark);
  padding: 5rem 1rem;
}

.hero-title {
  font-size: 2.8rem;
  color: #fff;
}

.hero-subtitle {
  max-width: 700px;
  margin: 1rem auto 0;
  font-size: 1.1rem;
  color: var(--yellow-soft);
}

/* =========================
   SECCIONES
========================= */
.section {
  padding: 4rem 1rem;
}

section,
header {
  scroll-margin-top: 80px;
}

.bg-soft-green {
  background: var(--green-soft);
}

.section-title {
  margin-bottom: 2.5rem;
  position: relative;
}

.section-title::after {
  content: "";
  width: 60px;
  height: 4px;
  background: var(--yellow-main);
  display: block;
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* =========================
   TALLERISTAS
========================= */
.card-img-top {
  height: 260px;
  object-fit: cover;
}

.btn-outline-success {
  border-color: var(--green-dark);
  color: var(--green-dark);
}

.btn-outline-success:hover {
  background-color: var(--green-dark);
  color: #fff;
}

/* =========================
   HEXÁGONOS BASE
========================= */
.hex {
  width: 140px;
  height: 160px;
  margin: auto;
  clip-path: polygon(
    25% 5%, 75% 5%,
    100% 50%,
    75% 95%, 25% 95%,
    0% 50%
  );
  position: relative;
  overflow: hidden;
}

.hex-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inherit;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* =========================
   POLINIZADORES
========================= */
.polinizador-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.polinizador-title {
  font-weight: 600;
  color: var(--text-brown);
  font-size: 0.95rem;
  text-align: center;
  margin-top: 0.75rem;
}

/* OVERLAY SOLO DESKTOP */
.polinizador-overlay {
  position: absolute;
  inset: 0;
  background: rgba(47, 111, 78, 0.9);
  color: #fff;
  padding: 1.25rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.polinizador-overlay p {
  margin: 0;
  line-height: 1.35;
}

/* Hover solo desktop */
@media (hover: hover) and (min-width: 992px) {
  .polinizador-hex:hover .polinizador-overlay {
    opacity: 1;
  }

  .polinizador-hex:hover img {
    filter: brightness(0.75);
    transform: scale(1.05);
  }
}

/* =========================
   POLINIZADORES – MÓVIL
========================= */
@media (max-width: 768px) {

  .polinizador-item {
    gap: 1rem;
  }

  /* Hex más grande */
  .hex {
    width: 220px;
    height: 250px;
  }

  /* Overlay eliminado completamente */
  /*
  .polinizador-overlay {
    display: none;
  }*/

   /* Overlay se convierte en texto normal */
  .polinizador-overlay {
    position: static;
    opacity: 1;
    background: none;
    color: var(--text-main);
    padding: 0;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 320px;
    text-align: center;
  }

  /* Texto normal bajo imagen */
  .polinizador-title {
    font-size: 1.05rem;
  }

  .polinizador-text {
    max-width: 320px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
  }

  /* Elimina cualquier forma heredada */
  .polinizador-overlay,
  .polinizador-overlay * {
    clip-path: none !important;
  }
}

/* =========================
   CARDS GENERALES
========================= */
.custom-card {
  border: none;
  border-top: 4px solid var(--yellow-main);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  height: 100%;
}

/* =========================
   JORNADAS
========================= */
#jornadas .card-img-top {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

#jornadas .carousel-control-prev-icon,
#jornadas .carousel-control-next-icon {
  filter: invert(1);
}

/* =========================
   GALERÍA
========================= */
.gallery-item {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

@media (min-width: 992px) {
  .gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.85);
  }
}

#galleryModal {
  background: rgba(0, 0, 0, 0.85);
}

/* =========================
   FOOTER
========================= */
.footer {
  background: var(--green-dark);
  color: #fff;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

.footer a {
  color: var(--yellow-soft);
  text-decoration: none;
}

.footer a:hover {
  color: var(--yellow-main);
}

.footer i {
  margin-right: 6px;
  font-size: 1.1rem;
}

/* =========================
   RESPONSIVE GENERAL
========================= */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
}
