/* ==========================================================================
   TABLA DE CONTENIDOS
   1. Variables Globales
   2. Reset y Estilos Base
   3. Cabecera y Menú
   4. Componentes y Layout
   5. Pie de Página
   6. Media Queries
   ========================================================================== */

/* --- 1. Variables Globales --- */
:root {
  --color-primario: #006341; /* Verde */
  --color-secundario: #58595B; /* Gris */
  --color-acento: #C5A866; /* Dorado */
  --radio-pildora: 50px;
}

/* --- 2. Reset y Estilos Base --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-image: url('../IMG/fondoformu.png'); /* Ojo con la ruta, asumiendo que css/ está al lado de IMG/ */
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
}

/* --- 3. Cabecera y Menú --- */
header {
  background-color: var(--color-primario);
  color: white;
  padding: 10px 20px;
  position: relative;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo img {
  height: 50px;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

.menu {
  display: flex;
  list-style: none;
  gap: 15px;
}

.menu li a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  display: block;
}

.menu li a:hover {
  background-color: var(--color-acento); /* Hover en dorado */
  border-radius: 4px;
}

/* --- 4. Componentes y Layout --- */
.slider-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 80px auto 40px auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slider-wrapper img {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
  height: 300px;
}

.slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 10px;
  box-sizing: border-box;
}

.slider-nav button {
  background-color: rgba(0, 99, 65, 0.8);
  border: none;
  color: white;
  font-size: 24px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.slider-nav button:hover {
  background-color: rgba(0, 99, 65, 1);
}

/* Contenedor central (Layout estático y limpio) */
.contenedor-info {
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  max-width: 1000px;
  margin: 40px auto;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  text-align: center;
}

.contenedor-info .titulo {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  color: white;
}

.contenedor-info p {
  margin-bottom: 20px;
}

/* Botón Minimalista Píldora */
.btn-pildora {
  background-color: var(--color-primario);
  color: white;
  border: none;
  padding: 12px 28px;
  cursor: pointer;
  border-radius: var(--radio-pildora);
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-pildora:hover {
  background-color: var(--color-acento);
}

/* --- 5. Pie de Página --- */
footer.pie-pagina {
  background-color: var(--color-primario);
  color: white;
  padding: 20px;
}

.pie-pagina .grupo-1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-bottom: 10px;
}

.pie-pagina .box {
  flex: 1 1 250px;
  margin: 10px;
}

.pie-pagina .box h2 {
  margin-bottom: 10px;
}

.social-icons a {
  color: #fff;
  background-color: var(--color-secundario);
  margin: 0 5px;
  padding: 10px;
  border-radius: 50%;
  display: inline-block;
  font-size: 18px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--color-acento);
}

.pie-pagina .grupo-2 {
  text-align: center;
  font-size: 14px;
}

/* --- 6. Media Queries --- */
@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--color-primario);
  }

  .menu li {
    text-align: center;
    border-top: 1px solid var(--color-acento);
  }

  .menu-toggle {
    display: block;
    color: white;
  }

  .menu.active {
    display: flex;
  }

  .slider-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin-top: 20px;
  }

  .slider-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 0;
  }

  .pie-pagina .grupo-1 {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}