/* VARIABLES DE COLOR */
:root {
  --primary-color: #00aaff;
  --secondary-color: #0077b6;
  --light-bg: #e6f7ff;
  --text-dark: #333;
  --text-light: #444;
}

/* CONTENEDOR PRINCIPAL */
.main-content {
  background: url('2.png') no-repeat center center;
  background-size: cover;
  min-height: calc(100vh - 90px);
  padding: 20px;
}

/* SECCIÓN COMERCIOS */
.comercios {
  max-width: 900px;
  margin: auto;
  padding: 10px;
  text-align: center;
  font-family: 'Arial', sans-serif;
  color: var(--text-dark);
}

.comercios h1 {
  font-size: 2.3rem;
  margin-bottom: 10px;
  color: white;
}

.comercios .subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 40px;
}

/* BLOQUE DE VALORES */
.valores {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 50px;
  flex-wrap: wrap;
  position: relative;
}

.valor {
  flex: 1 1 250px;
  background: var(--light-bg);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.valor:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.valor img {
  width: 100%;
  height: auto;
  max-height: 160px; /* o el alto que vos prefieras */
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 15px;
}


.valor h3 {
  color: #0074a8;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

/* PANEL EXPANDIDO */
.panel-expandido {
  display: none;
  flex-direction: row;
  align-items: flex-start;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  padding: 15px;
  gap: 15px;
  width: 85%;
  max-width: 1100px;
  margin: 0 auto;
  height: auto;
  position: relative;
}

/* Mostrar panel en escritorio si está activo */
@media screen and (min-width: 769px) {
  .panel-expandido.activo {
    display: flex;
  }
}

.panel-expandido img {
  width: 22%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.panel-expandido .contenido {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 73%;
  text-align: justify;
}

/* TÍTULO DEL PANEL */
.panel-expandido h3 {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 8px;
  border-bottom: 2px solid #0033cc;
  padding-bottom: 4px;
}

/* DESCRIPCIÓN */
.panel-expandido .descripcion p,
.panel-expandido .descripcion {
  font-size: 0.95rem;
  line-height: 1.6;
  font-family: 'Georgia', serif;
  color: var(--secondary-color);
  margin: 0;
  hyphens: auto;
  overflow-wrap: break-word;
}

/* BOTÓN OPCIONAL */
.boton-cotiza {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: white;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  align-self: flex-end;
}

.boton-cotiza:hover {
  background-color: var(--secondary-color);
}

/* PANEL EXPANDIDO EN MÓVILES */
@media screen and (max-width: 768px) {
  .panel-expandido {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    padding: 20px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: white !important;
    flex-direction: column !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    box-shadow: none !important;
  }

  .panel-expandido.activo {
    display: flex !important;
  }

  .panel-expandido img {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 15px !important;
    border-radius: 12px !important;
    box-shadow: none !important;
  }

  .panel-expandido .contenido {
    width: 100% !important;
    text-align: left !important;
  }

  .panel-expandido h3 {
    font-size: 1.3rem !important;
    text-align: center !important;
    margin-bottom: 15px !important;
  }

  .panel-expandido .descripcion {
    font-size: 1rem !important;
    text-align: justify !important;
    margin-bottom: 12px !important;
  }

  .boton-cotiza {
    align-self: center;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .navbar {
    gap: 4px; /* Reducir el espacio entre enlaces */
  }

  .navbar a {
    padding: 0 4px; /* Opcional: reducir padding horizontal */
    font-size: 1rem; /* Opcional: un pelín más chico si ves que colapsa */
  }
}
