/* Estilos base y aplicación de la nueva paleta de colores */

:root {
  /* Nueva paleta:
     1) RGB(114, 112, 11)   → #72700B
     2) RGB(0, 154, 80)     → #009A50
     3) RGB(132, 194, 37)   → #84C225
     4) RGB(184, 219, 124)  → #B8DB7C
     5) RGB(154, 205, 87)   → #9ACD57
  */
  --salem:       #009A50;
  --mine-shaft:  #72700B;
  --sushi:       #84C225;
  --conifer:     #B8DB7C;
  --atlantis-1:  #9ACD57;

  /* Variables duplicadas para mantener compatibilidad */
  --caper:       #B8DB7C;
  --atlantis-2:  #84C225;
  --emperor:     #72700B;
  --atlantis-3:  #9ACD57;
  --moss-green:  #B8DB7C;
}

/* Reseteo básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  color: var(--mine-shaft);
}

/*********************
     ENCABEZADO & NAVBAR
*********************/
.navbar {
  background-color: var(--salem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.logo img {
  height: 50px;
}

.nav-links {
  list-style-type: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
}

.nav-links a:hover {
  text-decoration: underline;
}

.social-icons {
  display: flex;
  align-items: center;
}

.social-icons a {
  color: #ffffff;
  font-size: 1.2rem;
  margin-left: 1rem;
}

/*********************
       CARRUSEL
*********************/
.carousel {
  position: relative;
  width: 100%;
  margin: 2rem auto;
  overflow: hidden;
}

.carousel-container {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
}

.carousel-slide img {
  width: 100%;
  display: block;
  max-height: 700px;
  object-fit: cover;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(102, 66, 66, 0.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

/*********************
  BOTONES CON ÍCONOS PERSONALIZADOS
*********************/
.buttons-section {
  padding: 2rem;
  text-align: center;
}

.buttons-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.icon-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Botón circular original modificado: fondo blanco, solo borde, con efecto de giro y escalado */
.circle-button {
  background-color: #fff;
  border: 2px solid var(--sushi);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.circle-button:hover {
  background-color: #b8db7c;
  border-color: var(--atlantis-1);
  transform: rotate(15deg) scale(1.1);
}

/* Ajuste del tamaño del ícono (redimensiona la imagen para adaptarse) */
.custom-icon {
  width: 40%;
  height: 40%;
  object-fit: contain;
}

/* Texto debajo del botón */
.icon-text {
  margin-top: 0.5rem;
  color: var(--mine-shaft);
  font-weight: bold;
}

/*********************
     IMÁGENES TIPO POST
*********************/
.news-section {
  padding: 20px;
  text-align: center;
}

.images-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px; /* Espacio entre imágenes */
}

.post-image {
  max-width: 100%;
  width: 300px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);

  /* 👇 Agrega esto para la animación */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-image:hover {
  /* 👇 Esto aplica el efecto al pasar el cursor */
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/*********************
     COOPERATIVISMO
*********************/
.cooperativism-section {
  text-align: center;
  padding: 2rem 0;
}

.cooperativism-section h2 {
  color: var(--salem);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.cooperativism-section h3 {
  color: var(--emperor);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.cooperativism-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  justify-items: center;
}

.coop-image {
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.coop-image:hover {
  transform: scale(1.05);
}

/*********************
        CONTACTO
*********************/
.contact-section {
  padding: 2rem;
  background-color: #ffffff;
  color: #000000;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.contact-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
}

.contact-column h3 {
  margin-bottom: 0.5rem;
}

.contact-column p {
  margin: 0.25rem 0;
}

.contact-column img {
  width: 300px;
  height: auto;
}

/*********************
    BOTONES POLÍTICAS
*********************/
.policy-section {
  padding: 2rem;
  display: flex;
  justify-content: center;
  background-color: var(--salem);
}

.policy-buttons {
  display: flex;
  gap: 1rem;
}

.policy-button {
  padding: 0.75rem 1.5rem;
  border: none;
  background-color: var(--salem);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.policy-button:hover {
  background-color: var(--atlantis-1);
}


