/* Cremotti brand font */
.cremotti-font {
  font-family: 'Lobster Two', cursive !important;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: lowercase;
}
/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #B68B3E; /* Dorado Cremotti */
  --secondary-color: #3B2B20; /* Chocolate Profundo */
  --accent-color: #B68B3E; /* Dorado Cremotti (usado como acento) */
  --dark-color: #3B2B20; /* Chocolate Profundo */
  --light-color: #F7EFE7; /* Crema Claro */
  --gray-light: #D0D0C5; /* Gris Suave */
  --gray-medium: #D0D0C5; /* Gris Suave */
  --gray-dark: #3B2B20; /* Chocolate Profundo */
  --text-primary: #3B2B20; /* Chocolate Profundo */
  --text-secondary: #B68B3E; /* Dorado Cremotti */
  --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-large: 0 8px 32px rgba(0, 0, 0, 0.16);
  --transition-speed: 0.3s;
  --border-radius: 16px;
  --spacing-unit: 8px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--light-color);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark-color); /* Chocolate Profundo */
}

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

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

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

ul {
  list-style: none;
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-tag {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-color); /* Dorado Cremotti */
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  color: var(--dark-color); /* Chocolate Profundo */
  margin-bottom: 16px;
}

.section-description {
  font-size: 1.125rem;
  color: var(--primary-color); /* Dorado Cremotti */
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 50px;
  transition: all var(--transition-speed) ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--light-color);
  box-shadow: 0 4px 15px rgba(191, 158, 161, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

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

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--light-color);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-small);
  z-index: 1000;
  transition: all var(--transition-speed) ease;
  height: 90px;
  min-height: 0;
}

.header.scrolled {
  box-shadow: var(--shadow-medium);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
  z-index: 1001;
}

.logo-img {
  height: 70px;
  width: auto;
  object-fit: contain;
  max-width: 120px;
}

.logo-icon {
  font-size: 2rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
}

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--dark-color);
  border-radius: 3px;
  transition: all var(--transition-speed) ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('img/fondo.JPEG') center center no-repeat;
  background-size: cover;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-title-main {
  font-size: 4rem;
  font-weight: 700;
  color: var(--dark-color);
  line-height: 1.1;
}

.hero-title-sub {
  font-size: 2rem;
  font-weight: 400;
  color: var(--primary-color);
  font-style: italic;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-decorations {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 1;
}

.decoration {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
}

.decoration-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
  top: 10%;
  left: -150px;
  animation-delay: 0s;
}

.decoration-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #ff7675, #fd79a8);
  bottom: -100px;
  right: -200px;
  animation-delay: 5s;
}

.decoration-3 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, #74b9ff, #a29bfe);
  top: 50%;
  right: 10%;
  animation-delay: 10s;
}

@keyframes floatRandom {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, -20px) rotate(90deg); }
  50% { transform: translate(-20px, 20px) rotate(180deg); }
  75% { transform: translate(20px, 20px) rotate(270deg); }
}

/* ===================================
   BREADCRUMBS
   =================================== */
.breadcrumb {
  display: none; /* Ocultos en single page */
  margin-bottom: 32px;
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.breadcrumb li:not(:last-child)::after {
  content: '›';
  margin-left: 8px;
  color: var(--gray-medium);
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

.breadcrumb a:hover {
  color: var(--dark-color);
  text-decoration: underline;
}

/* ===================================
   PRODUCTS SECTION
   =================================== */
.products {
  padding: 100px 0;
  background: var(--light-color);
}

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

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.product-card {
  background: var(--light-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-small);
  transition: all var(--transition-speed) ease;
  cursor: pointer;
  animation: fadeIn 0.6s ease-out;
  animation-fill-mode: both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-large);
}

.product-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

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

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

.product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--primary-color);
  color: var(--light-color);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-small);
}

.product-info {
  padding: 24px;
}

.product-category {
  font-size: 0.875rem;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.product-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 12px;
}

.product-description {
  font-size: 0.938rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-medium);
}

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

.product-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap var(--transition-speed) ease;
}

.product-card:hover .product-cta {
  gap: 12px;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
  padding: 100px 0;
  background: var(--gray-light);
}

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

.about-image-wrapper {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-large);
}

.about-image-wrapper img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.about-image-decoration {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  bottom: 24px;
  border: 3px solid var(--light-color);
  border-radius: var(--border-radius);
  pointer-events: none;
}

.about-text {
  max-width: 560px;
}

.about-paragraph {
  font-size: 1.063rem;
  color: var(--primary-color); /* Dorado Cremotti */
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
}

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

.feature-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.feature-text h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-color); /* Dorado Cremotti */
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 0.938rem;
  color: var(--gray-dark); /* Chocolate Profundo */
  line-height: 1.6;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact {
  padding: 100px 0;
  background: var(--light-color);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}

.contact-description {
  font-size: 1.063rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

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

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

.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-detail-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 4px;
}

.contact-detail-item p {
  font-size: 0.938rem;
  color: var(--text-secondary);
}

.contact-form {
  background: var(--gray-light);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-small);
}

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

.form-group label {
  display: block;
  font-size: 0.938rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--light-color);
  border: 2px solid transparent;
  border-radius: 12px;
  transition: all var(--transition-speed) ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
}

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

.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.938rem;
  font-weight: 500;
  text-align: center;
  display: none;
}

.form-message.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--dark-color);
  color: var(--light-color);
  padding: 60px 0 24px;
}

.footer-content {
  text-align: center;
  margin-bottom: 32px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-logo .logo-img {
  height: 70px;
  width: auto;
  object-fit: contain;
  max-width: 120px;
}

.footer-text {
  font-size: 1rem;
  color: var(--gray-medium);
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.social-link {
  font-size: 0.938rem;
  color: var(--gray-medium);
  transition: color var(--transition-speed) ease;
}

.social-link:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--gray-medium);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .hero-title-main {
    font-size: 2.5rem;
  }

  .hero-title-sub {
    font-size: 1.5rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--light-color);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding: 40px;
    box-shadow: var(--shadow-large);
    transition: right 0.4s ease;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
  }

  .hero {
    padding: 100px 24px 60px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-form {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .hero-title-main {
    font-size: 2rem;
  }

  .hero-title-sub {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

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

  .btn {
    padding: 14px 24px;
    font-size: 0.938rem;
  }
}

/* ===================================
   SCROLL ANIMATIONS
   =================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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