/* ============================================================
   macetas.css — CSS Neo-Brutalista
   [001]WebMacetas — Tienda de Macetas Artesanales
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --mac-primary:     #C74B35;
  --mac-secondary:   #E8722A;
  --mac-accent:      #2D6A4F;
  --mac-bg:          #F7F0E6;
  --mac-dark:        #1A1A1A;
  --mac-white:       #FFFFFF;
  --mac-light:       #FDF8F2;
  --mac-border:      2px solid #1A1A1A;
  --mac-shadow:      4px 4px 0px #1A1A1A;
  --mac-shadow-lg:   6px 6px 0px #1A1A1A;
  --mac-shadow-hover:2px 2px 0px #1A1A1A;
  --mac-font:        'Space Grotesk', Arial, sans-serif;
  --mac-radius:      0px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--mac-font);
  background-color: var(--mac-bg);
  color: var(--mac-dark);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--mac-primary);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: var(--mac-secondary); }

ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--mac-font);
  font-weight: 800;
  line-height: 1.2;
  color: var(--mac-dark);
}

/* ============================================================
   TOPBAR
   ============================================================ */
.mac-topbar {
  background: var(--mac-dark);
  color: var(--mac-white);
  text-align: center;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--mac-primary);
}

.mac-topbar span { color: var(--mac-secondary); margin: 0 8px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.mac-nav {
  background: var(--mac-bg);
  border-bottom: var(--mac-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.mac-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}

.mac-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--mac-dark);
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mac-logo:hover { color: var(--mac-primary); }

.mac-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.mac-nav-links a {
  color: var(--mac-dark);
  font-weight: 700;
  font-size: 15px;
  padding: 8px 14px;
  border: 2px solid transparent;
  transition: all 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mac-nav-links a:hover,
.mac-nav-links a.active {
  background: var(--mac-dark);
  color: var(--mac-white);
  border-color: var(--mac-dark);
}

.mac-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mac-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--mac-primary);
  color: var(--mac-white);
  font-weight: 700;
  padding: 10px 18px;
  border: var(--mac-border);
  box-shadow: var(--mac-shadow);
  cursor: pointer;
  font-family: var(--mac-font);
  font-size: 15px;
  text-decoration: none;
  transition: all 0.15s;
}

.mac-cart-btn:hover {
  box-shadow: var(--mac-shadow-hover);
  transform: translate(2px, 2px);
  color: var(--mac-white);
}

.mac-cart-count {
  background: var(--mac-dark);
  color: var(--mac-white);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
}

.mac-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.mac-hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--mac-dark);
  transition: all 0.2s;
}

/* Mobile nav */
.mac-nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--mac-bg);
  border-top: var(--mac-border);
  padding: 16px 24px;
  gap: 8px;
}

.mac-nav-mobile a {
  color: var(--mac-dark);
  font-weight: 700;
  font-size: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  display: block;
}

.mac-nav-mobile.open { display: flex; }

/* ============================================================
   CONTAINERS
   ============================================================ */
.mac-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.mac-section { padding: 60px 0; }
.mac-section-sm { padding: 40px 0; }

/* ============================================================
   BOTONES
   ============================================================ */
.mac-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mac-font);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 24px;
  border: var(--mac-border);
  box-shadow: var(--mac-shadow);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mac-btn:hover {
  box-shadow: var(--mac-shadow-hover);
  transform: translate(2px, 2px);
}

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

.mac-btn-secondary {
  background: var(--mac-secondary);
  color: var(--mac-white);
}
.mac-btn-secondary:hover { color: var(--mac-white); }

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

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

.mac-btn-outline {
  background: transparent;
  color: var(--mac-dark);
}
.mac-btn-outline:hover { background: var(--mac-dark); color: var(--mac-white); }

.mac-btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

.mac-btn-lg {
  padding: 16px 32px;
  font-size: 18px;
}

.mac-btn-full { width: 100%; justify-content: center; }

/* ============================================================
   CARDS
   ============================================================ */
.mac-card {
  background: var(--mac-white);
  border: var(--mac-border);
  box-shadow: var(--mac-shadow);
  padding: 24px;
}

.mac-card-hover {
  transition: all 0.15s;
  cursor: pointer;
}

.mac-card-hover:hover {
  box-shadow: var(--mac-shadow-hover);
  transform: translate(2px, 2px);
}

/* ============================================================
   PRODUCTO CARD
   ============================================================ */
.mac-producto-card {
  background: var(--mac-white);
  border: var(--mac-border);
  box-shadow: var(--mac-shadow);
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mac-producto-card:hover {
  box-shadow: var(--mac-shadow-hover);
  transform: translate(2px, 2px);
}

.mac-producto-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-bottom: var(--mac-border);
  background: var(--mac-bg);
}

.mac-producto-img-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--mac-bg);
  border-bottom: var(--mac-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
}

.mac-producto-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mac-producto-nombre {
  font-size: 16px;
  font-weight: 700;
  color: var(--mac-dark);
  line-height: 1.3;
}

.mac-producto-precio {
  font-size: 22px;
  font-weight: 800;
  color: var(--mac-primary);
}

.mac-producto-colores {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.mac-color-dot {
  width: 20px;
  height: 20px;
  border: 2px solid var(--mac-dark);
  border-radius: 0;
  display: inline-block;
  cursor: pointer;
  transition: all 0.1s;
}

.mac-color-dot:hover,
.mac-color-dot.selected {
  transform: scale(1.2);
  box-shadow: 2px 2px 0 var(--mac-dark);
}

.mac-producto-footer {
  padding: 12px 16px;
  border-top: var(--mac-border);
  background: var(--mac-light);
}

/* ============================================================
   COLOR SELECTOR (producto detalle)
   ============================================================ */
.mac-color-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.mac-color-radio {
  display: none;
}

.mac-color-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: 2px solid var(--mac-dark);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  background: var(--mac-white);
  transition: all 0.15s;
}

.mac-color-label .color-swatch {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(0,0,0,0.3);
  display: inline-block;
}

.mac-color-radio:checked + .mac-color-label {
  background: var(--mac-dark);
  color: var(--mac-white);
  box-shadow: var(--mac-shadow-hover);
}

/* ============================================================
   GRIDS
   ============================================================ */
.mac-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.mac-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mac-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.mac-grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* ============================================================
   HERO
   ============================================================ */
.mac-hero {
  background: var(--mac-bg);
  border-bottom: var(--mac-border);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.mac-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(199,75,53,0.06) 10px,
    rgba(199,75,53,0.06) 20px
  );
}

.mac-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.mac-hero-label {
  display: inline-block;
  background: var(--mac-primary);
  color: var(--mac-white);
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border: var(--mac-border);
  box-shadow: 2px 2px 0 var(--mac-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.mac-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--mac-dark);
  margin-bottom: 20px;
}

.mac-hero h1 span {
  color: var(--mac-primary);
  display: block;
}

.mac-hero p {
  font-size: 18px;
  color: #555;
  margin-bottom: 32px;
  font-weight: 500;
}

.mac-hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.mac-hero-img {
  border: var(--mac-border);
  box-shadow: var(--mac-shadow-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  background: #e8d9c5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.mac-stats-bar {
  background: var(--mac-dark);
  color: var(--mac-white);
  padding: 20px 24px;
  border-bottom: var(--mac-border);
}

.mac-stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.mac-stat-item {
  text-align: center;
}

.mac-stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--mac-secondary);
  display: block;
}

.mac-stat-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #aaa;
}

/* ============================================================
   SECCIÓN CATEGORIAS
   ============================================================ */
.mac-categoria-card {
  background: var(--mac-white);
  border: var(--mac-border);
  box-shadow: var(--mac-shadow);
  padding: 30px 20px;
  text-align: center;
  transition: all 0.15s;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: var(--mac-dark);
}

.mac-categoria-card:hover {
  background: var(--mac-primary);
  color: var(--mac-white);
  box-shadow: var(--mac-shadow-hover);
  transform: translate(2px, 2px);
}

.mac-categoria-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
}

.mac-categoria-nombre {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.mac-section-title {
  text-align: center;
  margin-bottom: 48px;
}

.mac-section-title h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  display: inline-block;
  border-bottom: 4px solid var(--mac-primary);
  padding-bottom: 8px;
}

.mac-section-title p {
  margin-top: 12px;
  font-size: 16px;
  color: #666;
  font-weight: 500;
}

/* ============================================================
   BADGES
   ============================================================ */
.mac-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid var(--mac-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mac-badge-primary   { background: var(--mac-primary); color: #fff; }
.mac-badge-secondary { background: var(--mac-secondary); color: #fff; }
.mac-badge-accent    { background: var(--mac-accent); color: #fff; }
.mac-badge-dark      { background: var(--mac-dark); color: #fff; }
.mac-badge-light     { background: var(--mac-light); color: var(--mac-dark); }
.mac-badge-success   { background: #28a745; color: #fff; }
.mac-badge-warning   { background: #ffc107; color: var(--mac-dark); }
.mac-badge-danger    { background: #dc3545; color: #fff; }

/* ============================================================
   FORMULARIOS
   ============================================================ */
.mac-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.mac-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mac-dark);
}

.mac-input,
.mac-select,
.mac-textarea {
  font-family: var(--mac-font);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 16px;
  border: var(--mac-border);
  background: var(--mac-white);
  color: var(--mac-dark);
  width: 100%;
  outline: none;
  border-radius: 0;
  transition: box-shadow 0.15s;
}

.mac-input:focus,
.mac-select:focus,
.mac-textarea:focus {
  box-shadow: var(--mac-shadow);
}

.mac-textarea {
  resize: vertical;
  min-height: 120px;
}

.mac-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 6 5-6' stroke='%231A1A1A' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.mac-input-group {
  display: flex;
  border: var(--mac-border);
}

.mac-input-group .mac-input {
  border: none;
  flex: 1;
}

.mac-input-group .mac-btn {
  border: none;
  border-left: var(--mac-border);
  box-shadow: none;
}

/* ============================================================
   TABLA ADMIN
   ============================================================ */
.mac-table-wrapper {
  overflow-x: auto;
  border: var(--mac-border);
  box-shadow: var(--mac-shadow);
}

.mac-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--mac-white);
}

.mac-table th {
  background: var(--mac-dark);
  color: var(--mac-white);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 16px;
  text-align: left;
  border-right: 1px solid #333;
}

.mac-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  border-right: 1px solid #eee;
  vertical-align: middle;
}

.mac-table tr:hover td { background: #fdf5ee; }

.mac-table tr:last-child td { border-bottom: none; }

.mac-table-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border: 2px solid var(--mac-dark);
}

/* ============================================================
   ALERTS
   ============================================================ */
.mac-alert {
  padding: 14px 20px;
  border: var(--mac-border);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 20px;
}

.mac-alert-success {
  background: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.mac-alert-error {
  background: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

.mac-alert-warning {
  background: #fff3cd;
  border-color: #ffc107;
  color: #856404;
}

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */
.mac-admin-layout {
  display: flex;
  min-height: 100vh;
  background: #f0ece6;
}

.mac-sidebar {
  width: 260px;
  min-width: 260px;
  background: var(--mac-dark);
  color: var(--mac-white);
  border-right: var(--mac-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.mac-sidebar-logo {
  padding: 24px 20px;
  border-bottom: 2px solid #333;
  font-size: 18px;
  font-weight: 800;
  color: var(--mac-secondary);
  display: block;
  text-decoration: none;
}

.mac-sidebar-section {
  padding: 8px 0;
  border-bottom: 1px solid #333;
}

.mac-sidebar-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  padding: 12px 20px 4px;
}

.mac-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  color: #ccc;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}

.mac-sidebar a:hover {
  background: #2a2a2a;
  color: var(--mac-white);
  border-left-color: var(--mac-secondary);
}

.mac-sidebar a.active {
  background: var(--mac-primary);
  color: var(--mac-white);
  border-left-color: var(--mac-secondary);
}

.mac-sidebar a .nav-icon {
  font-size: 18px;
  width: 22px;
  text-align: center;
}

.mac-admin-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.mac-admin-topbar {
  background: var(--mac-white);
  border-bottom: var(--mac-border);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.mac-admin-topbar h1 {
  font-size: 22px;
  font-weight: 800;
}

.mac-admin-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}

.mac-admin-content {
  padding: 32px 28px;
  flex: 1;
}

/* Stats cards admin */
.mac-stat-card {
  background: var(--mac-white);
  border: var(--mac-border);
  box-shadow: var(--mac-shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mac-stat-card .stat-num {
  font-size: 42px;
  font-weight: 800;
  color: var(--mac-primary);
  line-height: 1;
}

.mac-stat-card .stat-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
}

.mac-stat-card .stat-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

/* ============================================================
   CARRITO
   ============================================================ */
.mac-carrito-tabla th,
.mac-carrito-tabla td {
  padding: 14px 16px;
}

.mac-qty-input {
  width: 70px;
  text-align: center;
  font-weight: 700;
  border: var(--mac-border);
  padding: 6px 10px;
  font-family: var(--mac-font);
  font-size: 15px;
}

/* ============================================================
   CHECKOUT
   ============================================================ */
.mac-checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.mac-pago-option {
  display: none;
}

.mac-pago-label {
  display: flex;
  align-items: center;
  gap: 12px;
  border: var(--mac-border);
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
  background: var(--mac-white);
  transition: all 0.15s;
  margin-bottom: 8px;
}

.mac-pago-option:checked + .mac-pago-label {
  background: var(--mac-dark);
  color: var(--mac-white);
  box-shadow: var(--mac-shadow);
}

/* ============================================================
   BLOG
   ============================================================ */
.mac-blog-card {
  background: var(--mac-white);
  border: var(--mac-border);
  box-shadow: var(--mac-shadow);
  overflow: hidden;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
}

.mac-blog-card:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--mac-shadow-hover);
}

.mac-blog-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: var(--mac-border);
  background: var(--mac-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
}

.mac-blog-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mac-blog-fecha {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mac-blog-titulo {
  font-size: 20px;
  font-weight: 800;
  color: var(--mac-dark);
  line-height: 1.3;
}

.mac-blog-extracto {
  font-size: 14px;
  color: #555;
  flex: 1;
}

/* ============================================================
   GALERIA
   ============================================================ */
.mac-galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.mac-galeria-item {
  border: var(--mac-border);
  box-shadow: var(--mac-shadow);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}

.mac-galeria-item:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--mac-shadow-hover);
}

.mac-galeria-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.mac-galeria-caption {
  padding: 10px 12px;
  background: var(--mac-white);
  border-top: 2px solid var(--mac-dark);
  font-weight: 700;
  font-size: 13px;
}

/* Lightbox */
.mac-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.mac-lightbox.open { display: flex; }

.mac-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border: 4px solid var(--mac-white);
  box-shadow: 8px 8px 0 var(--mac-primary);
  object-fit: contain;
}

.mac-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--mac-primary);
  color: #fff;
  border: 2px solid #fff;
  width: 44px;
  height: 44px;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--mac-font);
}

/* ============================================================
   FOOTER
   ============================================================ */
.mac-footer {
  background: var(--mac-dark);
  color: var(--mac-white);
  border-top: var(--mac-border);
  padding: 60px 0 0;
}

.mac-footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.mac-footer-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--mac-secondary);
  display: block;
  margin-bottom: 16px;
}

.mac-footer p {
  font-size: 14px;
  color: #aaa;
  line-height: 1.7;
  margin-bottom: 20px;
}

.mac-footer h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mac-secondary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #333;
}

.mac-footer ul li {
  margin-bottom: 10px;
}

.mac-footer ul li a {
  color: #aaa;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.mac-footer ul li a:hover { color: var(--mac-white); }

.mac-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.mac-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid #444;
  color: #aaa;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.15s;
}

.mac-social-btn:hover {
  border-color: var(--mac-secondary);
  color: var(--mac-secondary);
  background: #111;
}

.mac-footer-bottom {
  border-top: 2px solid #333;
  padding: 20px 24px;
  margin-top: 48px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.mac-footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: #666;
}

/* ============================================================
   PAGINAS INTERNAS — BREADCRUMB
   ============================================================ */
.mac-breadcrumb {
  padding: 14px 0;
  font-size: 13px;
  font-weight: 600;
  color: #888;
  border-bottom: 1px solid #ddd;
  margin-bottom: 32px;
}

.mac-breadcrumb a { color: var(--mac-primary); }
.mac-breadcrumb span { margin: 0 8px; }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.mac-wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  background: #25D366;
  color: #fff;
  border: 3px solid var(--mac-dark);
  box-shadow: var(--mac-shadow);
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}

.mac-wa-float:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--mac-shadow-hover);
  color: #fff;
}

/* ============================================================
   FILTROS CATALOGO
   ============================================================ */
.mac-filtros {
  background: var(--mac-white);
  border: var(--mac-border);
  box-shadow: var(--mac-shadow);
  padding: 20px;
  margin-bottom: 28px;
}

.mac-filtros-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.mac-filtros .mac-form-group {
  margin-bottom: 0;
  flex: 1;
  min-width: 160px;
}

/* ============================================================
   PAGINACIÓN
   ============================================================ */
.mac-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.mac-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: var(--mac-border);
  background: var(--mac-white);
  color: var(--mac-dark);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: var(--mac-shadow);
  transition: all 0.15s;
  font-family: var(--mac-font);
  cursor: pointer;
}

.mac-page-btn:hover,
.mac-page-btn.active {
  background: var(--mac-dark);
  color: var(--mac-white);
  box-shadow: var(--mac-shadow-hover);
  transform: translate(2px, 2px);
}

/* ============================================================
   PRODUCTO DETALLE
   ============================================================ */
.mac-producto-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.mac-producto-detail .mac-precio-grande {
  font-size: 42px;
  font-weight: 800;
  color: var(--mac-primary);
}

.mac-producto-detail .mac-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.mac-qty-control {
  display: flex;
  align-items: center;
  border: var(--mac-border);
  width: fit-content;
}

.mac-qty-btn {
  width: 42px;
  height: 42px;
  background: var(--mac-dark);
  color: #fff;
  border: none;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mac-font);
}

.mac-qty-num {
  width: 60px;
  height: 42px;
  border: none;
  border-left: 2px solid var(--mac-dark);
  border-right: 2px solid var(--mac-dark);
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  font-family: var(--mac-font);
}

/* ============================================================
   YESITOS SECCIÓN
   ============================================================ */
.mac-yesitos-section {
  background: var(--mac-accent);
  color: var(--mac-white);
  border-top: var(--mac-border);
  border-bottom: var(--mac-border);
  padding: 60px 0;
}

.mac-yesitos-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.mac-yesitos-section h2 {
  color: var(--mac-white);
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
}

.mac-yesitos-section p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 28px;
}

.mac-yesitos-img-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mac-yesito-thumb {
  border: 3px solid rgba(255,255,255,0.4);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  background: rgba(255,255,255,0.1);
}

/* ============================================================
   PAGINA SEGUIMIENTO
   ============================================================ */
.mac-seguimiento-card {
  max-width: 640px;
  margin: 0 auto;
}

.mac-estado-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 32px 0;
}

.mac-estado-steps::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 0; right: 0;
  height: 3px;
  background: #ddd;
  z-index: 0;
}

.mac-estado-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
  position: relative;
}

.mac-estado-step .dot {
  width: 38px;
  height: 38px;
  border: var(--mac-border);
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.mac-estado-step.done .dot {
  background: var(--mac-accent);
  color: #fff;
}

.mac-estado-step.current .dot {
  background: var(--mac-primary);
  color: #fff;
}

.mac-estado-step span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  max-width: 70px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .mac-hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .mac-hero::before { display: none; }
  .mac-hero-btns { justify-content: center; }
  .mac-checkout-layout { grid-template-columns: 1fr; }
  .mac-footer-grid { grid-template-columns: 1fr 1fr; }
  .mac-producto-detail { grid-template-columns: 1fr; }
  .mac-yesitos-inner { grid-template-columns: 1fr; }
  .mac-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .mac-nav-links { display: none; }
  .mac-hamburger { display: flex; }
  .mac-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .mac-grid-2 { grid-template-columns: 1fr; }
  .mac-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .mac-sidebar { transform: translateX(-260px); transition: transform 0.3s; }
  .mac-sidebar.open { transform: translateX(0); }
  .mac-admin-main { margin-left: 0; }
  .mac-section { padding: 40px 0; }
  .mac-stats-inner { gap: 32px; }
}

@media (max-width: 480px) {
  .mac-grid-3, .mac-grid-4 { grid-template-columns: 1fr; }
  .mac-galeria-grid { grid-template-columns: repeat(2, 1fr); }
  .mac-hero h1 { font-size: 32px; }
  .mac-container { padding: 0 16px; }
  .mac-admin-content { padding: 20px 16px; }
}
