/* === ESTILO GENERAL DE LA PÁGINA === */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  padding-top: 80px; /* espacio para el header fijo */
}

/* === ENCABEZADO Y NAVEGACIÓN === */
header {
  background: linear-gradient(90deg, #00bcd4, #0097a7);
  display: flex;
  align-items: center;
  padding: 15px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  position: fixed; /* Fijo en la parte superior */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.logo img {
  width: 60px;
  height: auto;
  margin-right: 20px;
}

nav {
  display: flex;
  gap: 10px;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 5px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
  margin: 0 10px;
}

nav a i {
  margin-right: 5px;
}

nav a:hover {
  background-color: white;
  color: black;
  text-decoration: underline;
}

/* === CONTENIDO PRINCIPAL === */
.contenido {
  padding: 40px 20px;
  text-align: center;
}

.contenido h1 {
  font-size: 2.5em;
  margin-bottom: 30px;
}

/* === CUADROS DE MISIÓN, VISIÓN Y VALORES === */
.seccion-box {
  max-width: 800px;
  margin: 20px auto;
  padding: 25px;
  border: 2px solid #00bcd4;
  border-radius: 15px;
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.seccion-box h2 {
  color: #00bcd4;
  margin-bottom: 15px;
}

.seccion-box ul {
  padding-left: 20px;
}

.seccion-box li {
  margin-bottom: 10px;
}

/* === PRODUCTOS EN GRID 3x3 === */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.producto-card {
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.producto-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 15px;
}

.producto-card h3 {
  color: #00bcd4;
  margin-bottom: 10px;
}

.producto-card p {
  font-size: 14px;
  margin-bottom: 8px;
}

/* === BOTÓN CENTRADO === */
.centrado {
  text-align: center;
  margin-top: 30px;
}

.boton-ver-mas {
  background-color: #00bcd4;
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
}

.boton-ver-mas:hover {
  background-color: #008ba3;
  transform: scale(1.05);
}

/* === RESPONSIVE === */
@media (max-width: 1000px) {
  .productos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  nav {
    flex-direction: column;
    text-align: center;
    margin-top: 10px;
  }

  nav a {
    display: block;
    margin: 10px 0;
  }

  .productos-grid {
    grid-template-columns: 1fr;
  }

  .producto-card img {
    height: 150px;
  }
}

/* === FORMULARIO DE INTRANET === */
.formulario {
  max-width: 400px;
  margin: 40px auto;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 15px;
  border: 2px solid #00bcd4;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.formulario label {
  font-weight: bold;
  color: #333;
  text-align: left;
}

.formulario input {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border 0.3s;
}

.formulario input:focus {
  border-color: #00bcd4;
  outline: none;
}

.botones-form {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.botones-form button {
  flex: 1;
  background-color: #00bcd4;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.botones-form button:hover {
  background-color: #008ba3;
  transform: scale(1.05);
}

/* Estilo del enlace como botón */
.boton-link {
  flex: 1;
  display: inline-block;
  background-color: #00bcd4;
  color: white;
  padding: 10px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s;
}

.boton-link:hover {
  background-color: #008ba3;
  transform: scale(1.05);
}

/* === CONTACTO: FORMULARIO E INFORMACIÓN === */
.contacto-contenedor {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 0;
}

.cuadro-info, .formulario-contacto {
  flex: 1;
  min-width: 300px;
  border-radius: 15px;
  padding: 25px;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Información de contacto */
.cuadro-info {
  border: 2px solid #00bcd4;
}

.contacto-item {
  margin-bottom: 20px;
}

.contacto-item i {
  color: #00bcd4;
  font-size: 20px;
  margin-right: 8px;
}

.contacto-item h3 {
  color: #00bcd4;
  margin-top: 10px;
  margin-bottom: 5px;
}

.cuadro-info a {
  color: #007BFF;
  text-decoration: none;
  font-weight: bold;
}

.cuadro-info a:hover {
  text-decoration: underline;
}

/* Formulario */
.formulario-contacto {
  border: 2px solid #28a745;
}

.formulario-contacto form {
  display: flex;
  flex-direction: column;
}

.formulario-contacto label {
  font-weight: bold;
  margin-top: 10px;
  text-align: left;
  color: #333;
}

.formulario-contacto input,
.formulario-contacto textarea {
  margin-top: 5px;
  margin-bottom: 15px;
  padding: 10px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  transition: border 0.3s;
}

.formulario-contacto input:focus,
.formulario-contacto textarea:focus {
  border-color: #00bcd4;
  outline: none;
}

.formulario-contacto button {
  padding: 12px;
  font-size: 16px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.formulario-contacto button:hover {
  background-color: #218838;
  transform: scale(1.05);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .contacto-contenedor {
    flex-direction: column;
    padding: 20px;
  }
}
.producto-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.producto-card a:hover {
  transform: scale(1.03);
  transition: 0.2s;
}
.producto-link{
  text-decoration:none;
  color:inherit;
}
.carrito-icono{
  position:relative;
  color:white;
  font-size:1.3rem;
  margin-left:15px;
}

#contador-carrito{
  position:absolute;
  top:-6px;
  right:-10px;
  background:red;
  color:white;
  font-size:0.75rem;
  padding:2px 6px;
  border-radius:50%;
  font-weight:bold;
}
.carrito-header{
  position:relative;
}

.carrito-header a{
  color:white;
  font-size:1.6rem;
  position:relative;
  text-decoration:none;
}

#contador-carrito{
  position:absolute;
  top:-8px;
  right:-12px;
  background:red;
  color:white;
  font-size:0.75rem;
  padding:2px 6px;
  border-radius:50%;
  font-weight:bold;
}

