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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #fcf8f3;
  color: #2c2a28;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== COLORS ===== */
:root {
  --gold: #c9a96e;
  --gold-light: #e8d5b5;
  --gold-dark: #a8884c;
  --cream: #fcf8f3;
  --dark: #2c2a28;
  --white: #ffffff;
  --shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, .hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201, 169, 110, 0.15);
  padding: 0.4rem 1.2rem;
  border-radius: 40px;
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}
.section-title span {
  color: var(--gold);
}
.section-subtitle {
  color: #6b655a;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  border-radius: 60px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}
.btn-whatsapp {
  background: #25d366;
  color: white;
}
.btn-whatsapp:hover {
  background: #1da851;
  transform: translateY(-2px);
}
.btn-lg {
  padding: 1rem 3rem;
  font-size: 1.1rem;
}
.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: white;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(252, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  padding: 0.8rem 0;
  transition: 0.3s;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}
.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.nav-link {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: 0.3s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: 0.3s;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link.active {
  color: var(--gold);
}
.admin-trigger {
  color: var(--gold);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--dark);
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('https://images.unsplash.com/photo-1509440159596-0249088772ff?w=1600&q=80') center/cover no-repeat;
  padding-top: 80px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 42, 40, 0.45);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 700px;
  padding: 4rem 0;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  padding: 0.4rem 1.2rem;
  border-radius: 40px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: 4.2rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero-title span {
  color: var(--gold-light);
}
.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.9;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3.5rem;
}
.stat {
  text-align: center;
}
.stat-number {
  font-size: 2rem;
  font-weight: 700;
  display: block;
  font-family: 'Playfair Display', serif;
}
.stat-label {
  font-size: 0.85rem;
  opacity: 0.8;
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.8rem;
  letter-spacing: 1px;
  animation: bounceDown 2s infinite;
}
@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== PRODUCTS ===== */
.products {
  padding: 5rem 0;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin: 2rem 0 3rem;
}
.product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.3s;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.product-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.product-info {
  padding: 1.5rem;
}
.product-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}
.product-price {
  font-weight: 700;
  color: var(--gold);
  font-size: 1.1rem;
  margin: 0.5rem 0;
}
.product-desc {
  font-size: 0.9rem;
  color: #6b655a;
  margin-bottom: 1rem;
}
.product-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-actions .btn {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}
.products-cta {
  text-align: center;
  padding: 2.5rem 0;
  background: var(--cream);
  border-radius: 40px;
}
.products-cta p {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

/* ===== ABOUT ===== */
.about {
  padding: 5rem 0;
  background: white;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-image-frame {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-image-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(255,255,255,0.9);
  padding: 0.4rem 1.4rem;
  border-radius: 40px;
  font-weight: 600;
  color: var(--dark);
}
.about-description {
  color: #4a4744;
  margin-bottom: 1.2rem;
}
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.value {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--cream);
  padding: 0.6rem 1.2rem;
  border-radius: 60px;
  font-size: 0.9rem;
}
.value i {
  color: var(--gold);
}

/* ===== CONTACT ===== */
.contact {
  padding: 5rem 0;
  background: var(--cream);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.contact-card {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.contact-icon {
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.contact-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.contact-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
}
.contact-link:hover {
  text-decoration: underline;
}
.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #25d366;
  color: white;
  padding: 0.3rem 1.2rem;
  border-radius: 60px;
  margin-top: 0.5rem;
}
.whatsapp-link:hover {
  background: #1da851;
  text-decoration: none;
}
.contact-social {
  margin-top: 1.2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.contact-social a {
  color: var(--dark);
  font-size: 1.2rem;
  transition: 0.3s;
}
.contact-social a:hover {
  color: var(--gold);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 1.5rem;
}
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img {
  height: 40px;
  object-fit: contain;
}
.footer-brand p {
  margin-top: 0.8rem;
  font-weight: 300;
  font-size: 0.95rem;
}
.footer-links h5,
.footer-contact h5 {
  color: white;
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
}
.footer-links ul {
  list-style: none;
}
.footer-links ul li {
  margin-bottom: 0.5rem;
}
.footer-links ul li a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: 0.3s;
}
.footer-links ul li a:hover {
  color: var(--gold);
}
.footer-contact p {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}
.footer-contact i {
  width: 1.4rem;
  color: var(--gold);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.85rem;
}
.footer-admin-link {
  cursor: pointer;
  color: var(--gold);
  transition: 0.3s;
}
.footer-admin-link:hover {
  color: white;
}

/* ===== ADMIN MODAL ===== */
.admin-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.admin-modal.open {
  display: flex;
}
.admin-modal-content {
  background: white;
  max-width: 720px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 30px;
  padding: 2rem 2.5rem;
  position: relative;
  animation: slideUp 0.4s ease;
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.admin-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  transition: 0.3s;
}
.admin-modal-close:hover {
  color: var(--dark);
}
.admin-login {
  text-align: center;
  padding: 1rem 0;
}
.admin-login-icon {
  font-size: 3rem;
  color: var(--gold);
}
.admin-login h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin: 0.5rem 0;
}
.admin-hint {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: #888;
}
.admin-error {
  background: #fdecea;
  color: #b3261e;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}
.btn-block {
  width: 100%;
}
.hidden {
  display: none !important;
}
.empty-state {
  color: #888;
}
.empty-state-grid {
  grid-column: 1 / -1;
  text-align: center;
  color: #888;
}
.admin-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--cream);
}
.admin-dashboard-header h3 {
  font-family: 'Playfair Display', serif;
}
.admin-section {
  margin: 2rem 0;
}
.admin-section h4 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.admin-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  transition: 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.admin-upload-area {
  border: 2px dashed #ddd;
  border-radius: 16px;
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
}
.admin-upload-area:hover {
  border-color: var(--gold);
  background: rgba(201,169,110,0.05);
}
.admin-upload-area i {
  font-size: 2.5rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}
.admin-upload-area p {
  margin: 0.3rem 0;
  color: #888;
}
.admin-upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.admin-upload-hint {
  font-size: 0.75rem;
  color: #aaa;
}
.admin-image-preview {
  margin-top: 0.8rem;
}
.admin-image-preview img {
  max-width: 120px;
  max-height: 120px;
  border-radius: 12px;
  border: 1px solid #eee;
}
.admin-logo-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}
.admin-logo-preview img {
  height: 60px;
  width: auto;
  object-fit: contain;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 0.3rem;
}
.admin-product-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.admin-product-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--cream);
  padding: 0.8rem 1.2rem;
  border-radius: 16px;
  flex-wrap: wrap;
}
.admin-product-item .info {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.admin-product-item .info img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 10px;
}
.admin-product-item .info .name {
  font-weight: 600;
}
.admin-product-item .info .price {
  color: var(--gold);
  font-weight: 700;
}
.admin-product-item .actions {
  display: flex;
  gap: 0.6rem;
}
.admin-product-item .actions button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  transition: 0.3s;
}
.admin-product-item .actions .edit-btn {
  color: var(--gold);
}
.admin-product-item .actions .delete-btn {
  color: #d9534f;
}
.admin-product-item .actions button:hover {
  background: rgba(0,0,0,0.05);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-radius: 0 0 30px 30px;
  }
  .nav.open {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    gap: 1rem;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
  }
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-form .form-row {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
  }
}
@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .admin-modal-content {
    padding: 1.5rem;
  }
}