/* Carnicería Alicia - Modern Landing & App Styles */
:root {
  --primary: #c2410c; /* Deep orange-red */
  --primary-dark: #9a3412;
  --primary-light: #ea580c;
  --secondary: #1c1917;
  --accent: #fbbf24;
  --bg: #fafaf9;
  --bg-dark: #1c1917;
  --text: #292524;
  --text-light: #78716c;
  --white: #ffffff;
  --success: #16a34a;
  --danger: #dc2626;
  --shadow: 0 10px 40px rgba(0,0,0,0.08);
  --radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== HEADER / NAV ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary);
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 15px rgba(194, 65, 12, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(194, 65, 12, 0.45);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

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

.btn-whatsapp {
  background: #25D366;
  color: white;
}

.btn-whatsapp:hover {
  background: #1da851;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

/* ========== HERO ========== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(160deg, #1c1917 0%, #292524 40%, #431407 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 150%;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(251, 191, 36, 0.15);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--primary-light);
}

.hero p {
  font-size: 1.15rem;
  color: #a8a29e;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat {
  text-align: left;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 0.85rem;
  color: #a8a29e;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
  object-fit: cover;
  width: 100%;
  height: 420px;
}

.hero-float {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: white;
  color: var(--text);
  padding: 16px 24px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-float .icon {
  width: 48px;
  height: 48px;
  background: #dcfce7;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* ========== SECTIONS ========== */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header .eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ========== FEATURES ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.feature-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid #f5f5f4;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ========== PRODUCTS ========== */
.products-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: 50px;
  border: 2px solid #e7e5e4;
  background: white;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid #f5f5f4;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.product-img {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: #f5f5f4;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

.product-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-cat {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.product-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.product-body p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.product-price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about-list {
  list-style: none;
  margin: 24px 0;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 500;
}

.about-list li::before {
  content: '✓';
  width: 28px;
  height: 28px;
  background: #dcfce7;
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.about-image {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

/* ========== CTA BANNER ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 60px 0;
  text-align: center;
  border-radius: 24px;
  margin: 0 20px;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: #fff7ed;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-item h4 {
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  color: var(--text-light);
  font-size: 0.95rem;
}

.contact-item a:hover {
  color: var(--primary);
}

.contact-form {
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e7e5e4;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: #fafaf9;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
}

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

.map-container {
  margin-top: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  height: 350px;
  box-shadow: var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-dark);
  color: #a8a29e;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 280px;
}

.footer h4 {
  color: white;
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer ul {
  list-style: none;
}

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

.footer ul a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid #292524;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
}

/* ========== FLOATING WHATSAPP ========== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 25px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 6px 35px rgba(37, 211, 102, 0.7); }
}

/* ========== ADMIN DASHBOARD ========== */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #1c1917, #431407);
  padding: 20px;
}

.login-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

.login-card h1 {
  text-align: center;
  margin-bottom: 8px;
  color: var(--primary);
}

.login-card p {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 28px;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: var(--bg-dark);
  color: white;
  padding: 24px 0;
  flex-shrink: 0;
}

.admin-sidebar .logo {
  padding: 0 24px 24px;
  border-bottom: 1px solid #292524;
  margin-bottom: 16px;
  color: white;
}

.admin-nav {
  list-style: none;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: #a8a29e;
  font-weight: 500;
  transition: var(--transition);
}

.admin-nav a:hover,
.admin-nav a.active {
  background: rgba(234, 88, 12, 0.15);
  color: var(--primary-light);
  border-right: 3px solid var(--primary);
}

.admin-main {
  flex: 1;
  background: #f5f5f4;
  overflow-y: auto;
}

.admin-header {
  background: white;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.admin-content {
  padding: 32px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: white;
  padding: 24px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.stat-card h3 {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.stat-card .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.admin-table-wrap {
  background: white;
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admin-table-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e7e5e4;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid #f5f5f4;
}

.admin-table th {
  background: #fafaf9;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
}

.admin-table tr:hover {
  background: #fafaf9;
}

.admin-table img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-right: 6px;
}

.btn-edit {
  background: #fff7ed;
  color: var(--primary);
}

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

.btn-delete {
  background: #fef2f2;
  color: var(--danger);
}

.btn-delete:hover {
  background: var(--danger);
  color: white;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal h2 {
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.hidden {
  display: none !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    height: 300px;
  }

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

  .admin-sidebar {
    width: 70px;
  }

  .admin-sidebar .logo span,
  .admin-nav a span {
    display: none;
  }

  .admin-nav a {
    justify-content: center;
    padding: 16px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    gap: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .nav-cta .btn-outline {
    display: none;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-stats {
    gap: 24px;
  }

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

  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    display: flex;
    overflow-x: auto;
    padding: 12px;
  }

  .admin-sidebar .logo {
    display: none;
  }

  .admin-nav {
    display: flex;
    gap: 8px;
  }

  .admin-nav a {
    padding: 10px 16px;
    border-radius: 8px;
    white-space: nowrap;
  }

  .admin-nav a span {
    display: inline;
  }

  .admin-content {
    padding: 16px;
  }

  .admin-table {
    font-size: 0.85rem;
  }
}
