/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(to bottom, #fef7ed, #fed7aa);
  min-height: 100vh;
}

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

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

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

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

/* Logo Styles */
.logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo img {
  max-height: 3rem;
  width: auto;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Navigation Links - Black Color Scheme */
.nav-link {
  color: #1f2937;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #374151;
}

.contact-btn {
  background: #1f2937;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.contact-btn:hover {
  background: #374151;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  width: 1.5rem;
  height: 2px;
  background: #1f2937;
  margin: 2px 0;
  transition: 0.3s;
}

.mobile-nav {
  display: none;
  background: white;
  border-top: 1px solid #e5e7eb;
  padding: 1rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem;
  color: #1f2937;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-nav-link:hover {
  color: #374151;
}

.mobile-contact-btn {
  display: block;
  background: #1f2937;
  color: white;
  padding: 0.75rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  margin-top: 0.5rem;
  transition: background-color 0.3s ease;
}

.mobile-contact-btn:hover {
  background: #374151;
}

/* Hero Section - FIXED */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
  padding-top: 4rem;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

/* Style for the img element inside hero-background */
.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(134, 134, 134, 0.5));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 4vw, 1.875rem);
  color: #fde68a;
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-description {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #ffffff;
  margin-bottom: 3rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: #000000;
  color: white;
}

.btn-primary:hover {
  background: #fffbf9;
  color: black;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: white;
  color: #000000;
  border: 2px solid white;
  font-weight: 600;
}

.btn-secondary:hover {
  background: #fef7ed;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #030303;
  margin-bottom: 1.5rem;
}

.section-divider {
  width: 6rem;
  height: 4px;
  background: #161514;
  margin: 0 auto 2rem;
}

.section-description {
  font-size: 1.25rem;
  color: #6b7280;
  max-width: 48rem;
  margin: 0 auto;
}

/* About Section */
.about {
  padding: 5rem 0;
  background: white;
  margin-top: 4rem;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text {
  space-y: 1.5rem;
}

.about-paragraph {
  font-size: 1.425rem;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Products Section */
.products {
  padding: 5rem 0;
  background: linear-gradient(to bottom, #fef7ed, #fed7aa);
}

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

.product-card {
  background: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 2px solid #fbbf24;
  transition: all 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
  border-color: #d97706;
}

.product-image {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 1rem;
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.sandwich-img {
  opacity: 0;
}

.product-card:hover .bread-img {
  opacity: 0;
  transform: scale(1.1);
}

.product-card:hover .sandwich-img {
  opacity: 1;
  transform: scale(1.1);
}

.product-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #252424;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.product-card:hover .product-name {
  color: #d97706;
}

.product-description {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Add a specific class to the "productos en desarrollo" section in your HTML */
/* Then add this CSS rule */
.productos-desarrollo .product-image {
  aspect-ratio: 1 / 1;
  height: auto;
  width: 100%;
}

.productos-desarrollo .product-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background: white;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  background: #fef3c7;
  padding: 0.75rem;
  border-radius: 50%;
  color: #424140;
  flex-shrink: 0;
}

.contact-details h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #474645;
  margin-bottom: 0.25rem;
}

.contact-details p {
  color: #6b7280;
}

.contact-form-container {
  background: white;
  border: 2px solid #fbbf24;
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #3a3938;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 2px solid #fbbf24;
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #d97706;
}

.btn-full {
  width: 100%;
  padding: 0.75rem;
}

/* Footer */
.footer {
  background: #2e2d2d;
  color: white;
  padding: 3rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-description {
  color: #f1eee5;
  line-height: 1.6;
}

.footer-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #dfdbd2;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-hours p {
  color: #cccac6;
  margin-bottom: 0.25rem;
}

.footer-bottom {
  border-top: 1px solid #ffffff;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: #ffffff;
}

/* Responsive Design */
@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .about-content {
    grid-template-columns: 1fr 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-nav.active {
    display: block;
  }

  .hero {
    padding: 2rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .about,
  .products,
  .contact {
    padding: 3rem 0;
  }

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

  .contact-info {
    gap: 1.5rem;
  }

  .logo img {
    max-height: 2.5rem;
  }

  /* Igualar el tamaño de las imágenes en móviles */
  .productos-desarrollo .product-image {
    height: 200px;
    aspect-ratio: 1 / 1;
    width: 200px;
    margin: 0 auto;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile menu animation */
.mobile-menu-btn.active .hamburger:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active .hamburger:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}
