:root {
  --color-primary: #232f3e;
  --color-primary-light: #1a242f;
  --color-accent: #febd69;
  --color-accent-hover: #f3a847;
  --color-success: #27ae60;
  --color-success-hover: #229954;
  --color-btn-dark: #0f172a;
  --color-btn-dark-hover: #2980b9;
  --text-main: #222;
  --text-light: #555;
  --text-muted: #777;
  --bg-main: #f5f6fa;
  --bg-white: #fff;
  --price-color: #b12704;
  --rating-color: #ffa41c;
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-mid: 0 2px 8px rgba(0, 0, 0, 0.07);
  --shadow-strong: 0 4px 16px rgba(0, 0, 0, 0.12);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 12px;
}

/* =========================================
   GLOBAL
========================================= */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg-main);
  margin: 0;
  color: var(--text-main);
}

/* =========================================
   BOTONES GENERAL
========================================= */
.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: 0.2s;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
}

.center {
  text-align: center;
}

/* =========================================
   HEADER
========================================= */
.app-header {
  background: var(--color-primary);
  color: #fff;
  padding: 0 0.5rem;
  box-shadow: var(--shadow-soft);
}

.app-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  height: 60px;
}

.app-header__logo {
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-accent);
  text-decoration: none;
}

.app-header__nav {
  display: flex;
  gap: 1.5rem;
}

.app-header__link, .app-header__user {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  position: relative;
}

.app-header__search {
  flex: 1;
  margin: 0 2rem;
  display: flex;
}

.app-header__search input {
  width: 100%;
  padding: 0.5rem;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border: none;
  font-size: 1rem;
}

.app-header__search button {
  background: var(--color-accent);
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0 1rem;
  font-size: 1rem;
  cursor: pointer;
}

/* =========================================
   HOME
========================================= */
.home {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* =========================================
   HERO
========================================= */
.home-hero {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-mid);
}

.home-hero__text {
  max-width: 60%;
}

.home-title {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.home-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
}

.home-hero__img {
  height: 180px;
  object-fit: contain;
}

/* =========================================
   SECCIONES
========================================= */
.home-section {
  margin-top: 3rem;
}

.section-title {
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

/* =========================================
   CATEGORÍAS POPULARES 
========================================= */
.categories-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.category-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 1rem 2rem;
  font-size: 1.1rem;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: all 0.2s;
}

.category-card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px);
}

/* =========================================
   SHOP HEADER (Catálogo)
========================================= */
.header-shop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.5rem;
}

.header-shop h1 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--color-primary);
}

/* =========================================
   BOTONES REUTILIZABLES
========================================= */
.btn {
  padding: 0.6rem 1.2rem;
  background-color: var(--color-btn-dark);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-md);
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.2s;
}

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

.btn-success {
  background-color: var(--color-success);
}

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

/* =========================================
   CATÁLOGO
========================================= */
.catalog-container {
  max-width: 1200px;
  margin: 2rem auto;
  display: flex;
  gap: 2rem;
}

.catalog-sidebar {
  width: 220px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  height: fit-content;
}

.catalog-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

/* =========================================
   PRODUCT CARD (reutilizable)
========================================= */
.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-mid);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s;
}

.product-card:hover {
  box-shadow: var(--shadow-strong);
}

.product-card__img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.product-card__title {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-align: center;
}

.product-card__price {
  color: var(--price-color);
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.product-card__rating {
  color: var(--rating-color);
  margin-bottom: 0.5rem;
}

.product-card__btn {
  text-decoration: none;
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 0.5rem;
}

/* =========================================
   PRODUCT DETAIL PAGE
========================================= */
.product-detail-container {
  max-width: 1200px;
  margin: 2rem auto;
  display: flex;
  gap: 3rem;
}

.product-detail-gallery {
  background: var(--bg-white);
  padding: 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-mid);
  width: 420px;
}

.product-detail-gallery img.main-img {
  width: 100%;
  height: 380px;
  object-fit: contain;
}

.product-detail-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.product-detail-thumbs img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: #fafafa;
}

/* =========================================
   INFO
========================================= */
.product-detail-info {
  flex: 1;
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-mid);
}

.product-detail-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.product-detail-price {
  color: var(--price-color);
  font-size: 2rem;
  font-weight: bold;
  margin: 1rem 0;
}

.product-detail-rating {
  color: var(--rating-color);
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

.product-detail-desc {
  color: #333;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.product-detail-buy {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-favorite {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 0.7rem 1.2rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-favorite:hover {
  background: var(--color-primary-light);
}

/* =========================================
   REVIEWS
========================================= */
.reviews-section {
  margin-top: 2rem;
}

.review-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  margin-bottom: 1rem;
}

.review-rating {
  color: var(--rating-color);
}

.review-user {
  font-weight: 600;
  color: var(--color-primary);
}

.review-date {
  color: var(--text-muted);
}

.review-comment {
  margin-top: 0.5rem;
  color: #333;
}

.review-form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.review-form textarea,
.review-form select {
  padding: 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid #ccc;
}

.review-form button {
  background: #3498db;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  cursor: pointer;
  color: var(--bg-white);
  font-weight: 600;
}

/* =========================================
   PAGINATION
========================================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
}

.pagination a,
.pagination span {
  background: var(--bg-white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 600;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: 0.2s ease;
}

.pagination a:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent-hover);
}

.pagination span {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary-light);
  cursor: default;
  box-shadow: var(--shadow-mid);
}

.pagination .disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* =========================================
   SIDEBAR - FILTROS
========================================= */
.catalog-sidebar h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--color-primary);
  font-size: 1.3rem;
  font-weight: 600;
}

.filter-form .filter-group {
  margin-bottom: 1.5rem;
}

.catalog-sidebar .btn {
  width: 100%;
  text-align: center;
  font-weight: 600;
}

.filter-form label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--color-primary);
  font-weight: 500;
}

.filter-form select,
.filter-form input[type="number"] {
  width: 100%;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid #ccc;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: 0.2s;
}

.filter-form select:focus,
.filter-form input[type="number"]:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 4px rgba(254, 189, 105, 0.5);
}

.price-range {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.price-range input {
  width: 50%;
}

.filter-form .btn-primary {
  width: 100%;
  text-align: center;
  font-weight: 600;
}

.filter-form .btn-primary:hover {
  background: var(--color-accent-hover);
}

















/* =========================================
   USERS PAGE
========================================= */

/* Contenedor principal */
.users {


  margin: 2rem auto;
  padding: 0 1rem;
  font-family: 'Segoe UI', Arial, sans-serif;
}

/* Header de la página */
.users__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.users__title {
  font-size: 2rem;
  color: var(--color-primary);
  margin: 0;
}

.users__link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
}

.users__link:hover {
  background: var(--color-accent-hover);
}

/* Tabla de usuarios */
.users__container {
  overflow-x: auto;
}

.users__table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.users__thead {
  background: var(--color-primary);
  color: #fff;
}

.users__th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.users__tbody tr {
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}

.users__tbody tr:hover {
  background: #f9f9f9;
}

.users__cell {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--text-main);
  vertical-align: middle;
}

/* Botón de eliminar */
.users__button {
  background: #e74c3c;
  color: #fff;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.2s;
}

.users__button:hover {
  background: #c0392b;
}

/* Acciones inline */
.users__cell form {
  display: inline-block;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .users__table {
    font-size: 0.85rem;
  }

  .users__title {
    font-size: 1.5rem;
  }

  .users__link {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
}


/* =========================================
   REGISTER / CREAR USUARIO
========================================= */

.register-container {
  max-width: 450px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-mid);
  font-family: 'Segoe UI', Arial, sans-serif;
}

.register-title {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Campos */
.register-field {
  position: relative;
  display: flex;
  flex-direction: column;
}

.register-label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: var(--color-primary);
}

.register-input {
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid #ccc;
  transition: 0.2s;
}

.register-input:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 6px rgba(254, 189, 105, 0.5);
}

.register-button {
  padding: 0.7rem 1rem;
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.2s;
}

.register-button:hover {
  background: var(--color-accent-hover);
}

.register-link {
  display: inline-block;
  text-align: center;
  margin-top: 0.5rem;
  color: var(--color-btn-dark);
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}

.register-link:hover {
  color: var(--color-accent-hover);
}

.register-alert {
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.register-alert.success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.register-alert.error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

@media (max-width: 576px) {
  .register-container {
    margin: 1rem;
    padding: 1.5rem;
  }

  .register-title {
    font-size: 1.5rem;
  }
}

/* =========================================
   LOGIN / INICIAR SESIÓN
========================================= */

.login-info {
  background: var(--bg-white);
  border-left: 4px solid var(--color-accent);
  padding: .75rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  font-size: .9rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-soft);
}


.login-container {
  max-width: 500px;
  margin: 3rem auto;
  padding: 2rem;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-mid);
  font-family: 'Segoe UI', Arial, sans-serif;
}

.login-title {
  font-size: 2rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-field {
  display: flex;
  flex-direction: column;
}

.login-label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: var(--color-primary);
}

.login-input {
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid #ccc;
  font-size: 1rem;
  transition: 0.2s;
}

.login-input:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 6px rgba(254, 189, 105, 0.5);
}

.login-button {
  padding: 0.7rem 1rem;
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.2s;
}

.login-button:hover {
  background: var(--color-accent-hover);
}

.login-link {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
  color: var(--color-btn-dark);
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}

.login-quickusers {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: space-between;
}

.usercard {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
  background: var(--bg-white);
  border: 2px solid var(--color-accent);
  padding: .75rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  font-size: .9rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-soft);
}

.usercard p {
  margin: 0px;
}

.usercard:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-3px);
}

.usercard strong {
  color: var(--color-primary);
}

.quick-select {
  text-decoration: none;
  color: var(--color-btn-dark-hover);
  font-weight: 600;
}

/* ALERTS */
.login-alert {
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.login-alert.success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.login-alert.error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* Responsive */
@media (max-width: 576px) {
  .login-container {
    margin: 1rem;
    padding: 1.5rem;
  }

  .login-title {
    font-size: 1.5rem;
  }
}

/* =========================================
   ALERT
========================================= */

.alert {
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.alert-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.alert-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* =========================================
   CART
========================================= */

.cart-container {
  max-width: 900px;
  margin: 20px auto;
  padding: 20px;
}

.cart-items {
  margin: 20px 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #ddd;
}

.cart-item-info {
  flex: 1;
}

.cart-item-price {
  font-weight: bold;
  color: #27ae60;
  font-size: 1.1em;
}

.cart-total {
  font-size: 1.3em;
  margin: 20px 0;
  text-align: right;
  font-weight: bold;
}

.btn {
  padding: 10px 15px;
  background-color: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 3px;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #2980b9;
}

.btn-success {
  background-color: #27ae60;
}

.btn-success:hover {
  background-color: #229954;
}

.btn-danger {
  background-color: #e74c3c;
}

.btn-danger:hover {
  background-color: #c0392b;
}

.checkout-section {
  text-align: right;
  margin-top: 30px;
}

.alert {
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 3px;
}

.alert-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.alert-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}


/* =========================================
   CHECKOUT
========================================= */

.checkout-container {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
}

.checkout-section {
  margin: 20px 0;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.checkout-summary {
  background-color: #f9f9f9;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.summary-total {
  font-size: 1.3em;
  font-weight: bold;
  color: #27ae60;
  text-align: right;
  margin-top: 10px;
}


.btn-secondary {
  background-color: #3498db;
}

.btn-secondary:hover {
  background-color: #2980b9;
}

.alert {
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 3px;
}

.alert-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* =========================================
   SUCCES
========================================= */
.success-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  text-align: center;
  border: 2px solid #27ae60;
  border-radius: 5px;
  background-color: #f0fff4;
}

.success-container h1 {
  color: #27ae60;
}

.btn {
  padding: 10px 15px;
  background-color: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 3px;
  display: inline-block;
  border: none;
  cursor: pointer;
  margin: 10px 5px;
}

.btn:hover {
  background-color: #2980b9;
}

.btn-success {
  padding: 10px 15px;
  background-color: #27ae60;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 1em;
}

.btn-success:hover {
  background-color: #229954;
}

/* =========================================
   EDITAR USUARIO / USERS FORM
========================================= */
.users__main {
    max-width: 450px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-mid);
    font-family: 'Segoe UI', Arial, sans-serif;
}

.users__title {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.users__form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.users__field {
    display: flex;
    flex-direction: column;
}

.users__label {
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: var(--color-primary);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.users__input {
    padding: 0.6rem 0.8rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid #ccc;
    transition: 0.2s;
}

.users__input:focus {
    border-color: var(--color-accent);
    outline: none;
    box-shadow: 0 0 6px rgba(254, 189, 105, 0.5);
}

.users__button {
    padding: 0.7rem 1rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
}

.users__button--primary {
    background: var(--color-accent);
    color: var(--color-primary);
}

.users__button--primary:hover {
    background: var(--color-accent-hover);
}

/* Responsive */
@media (max-width: 576px) {
    .users__main {
        margin: 1rem;
        padding: 1.5rem;
    }

    .users__title {
        font-size: 1.5rem;
    }
}

/* =========================================
   SPINNER CENTRADO GIRATORIO
========================================= */

.spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 6px solid rgba(0,0,0,0.1);
    border-top: 6px solid var(--color-accent);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 0.9s linear infinite;
    z-index: 9999;
    display: none;
}

@keyframes spin {
    0%   { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* =========================================
   FOOTER
========================================= */
.footer {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 2rem 0 1rem 0;
  margin-top: 4rem;
  position: fixed;
  bottom: 0;
  width: 100%;
}

.footer__links {
  margin-bottom: 1rem;
}

.footer__links a {
  color: var(--color-accent);
  margin: 0 1rem;
  text-decoration: none;
}

.footer__copy {
  font-size: 0.9rem;
  color: #bbb;
}
