:root {
  --bg: #ffffff;
  --card: #f5f7fa;
  --accent: #1eb450;
  --muted: #555;
  --glass: rgba(0, 0, 0, 0.05);  
  --maxw: 1100px;
  --radius: 12px;
  --text-light: #1a1a1a;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text-light);
  min-height: 100vh;
}

.container {
  max-width: var(--maxw);
  margin: 28px auto;
  padding: 0 20px;
}

/* === ESTRUCTURA GENERAL === */
header, main, footer {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.logo {
  font-weight: 700;
  font-size: 24px;
  color: var(--accent);
}

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

nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  transition: 0.3s;
}

nav a:hover,
 nav a.active {
  color: #fff;
  background: var(--accent);
}

footer {
  text-align: center;
  font-size: 14px;
  margin-top: 24px;
}

/* === PRODUCTOS === */
.productos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.producto {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: 0.2s ease;
  display: flex;
  flex-direction: column; /* importante para alinear el botón */
  height: 100%; /* asegura altura uniforme */
}

.producto:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.producto img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 12px;
}

.producto h3 { margin: 10px 0 6px; }

.producto .descripcion {
  color: var(--muted);
   flex-grow: 1; 
  font-size: 14px;
  margin-bottom: 8px;
}

.producto .precio {
  color: var(--accent);
  font-weight: bold;
  margin-bottom: 10px;
}

.btn-comprar
 {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.3s;
   margin-top: auto;
}

.btn-comprar:hover
 {
  background: #17a34a;
}

/* === CATEGORÍAS O LINEA DIVISORA === */

section { margin-top: 40px; }

section h2 {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
  margin-bottom: 16px;
}


/* === SUCURSALES === */
main.sucursales {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
}

.mapa {
  width: 100%;
  max-width: 900px;
  text-align: center;
}

.mapa h1 { font-size: 24px; margin-bottom: 6px; }

.mapa p { color: var(--muted); margin-bottom: 16px; }

.mapa-contenedor {
  width: 100%;
  height: 500px;
  border-radius: 10px;
  overflow: hidden;
  background: #eaeaea;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.mapa-contenedor iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* === REGISTRO === */
.registro {
  max-width: 500px;
  margin: 50px auto;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.registro h1 {
  text-align: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.form-registro label {
  display: block;
  margin: 10px 0 5px;
  font-weight: bold;
  color: #333;
}

.form-registro input[type="text"],
.form-registro input[type="email"],
.form-registro input[type="password"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.form-registro .checkboxes,
.terminos {
  font-size: 14px;
  margin: 10px 0;
}

.required { color: red; }

.btn-principal {
  background: var(--accent);
  color: #fff;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-principal:hover { background: #17a34a; }

html { scroll-behavior: smooth; }
