/* ============================================
   PRALINE CAKE BOUTIQUE - BOOTSTRAP CUSTOM CSS
   ============================================ */

/* ============================================
   1. VARIABLES Y COLORES
   ============================================ */

:root {
  /* Paleta de Colores */
  --color-marron-oscuro: #3E3E3E;
  --color-gris-marron: #D4AF37;
  --color-rosa-pastel: #E8DACE;
  --color-blanco-cremoso: #FFFBF7;
  --color-gris-neutro: #666666;
  --color-beige-claro: #F0EDE8;

  /* Tipografía */
  --font-titulo: 'Playfair Display', serif;
  --font-subtitulo: 'Raleway', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --font-boton: 'Montserrat', sans-serif;

  /* Espaciado */
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 48px;
}

/* ============================================
   2. RESET Y ESTILOS BASE
   ============================================ */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-marron-oscuro);
  background-color: var(--color-blanco-cremoso);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-titulo);
  color: var(--color-marron-oscuro);
  font-weight: 700;
  line-height: 1.2;
}

p {
  color: var(--color-marron-oscuro);
  font-size: 16px;
}

a {
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

/* ============================================
   3. NAVBAR - HEADER
   ============================================ */

.navbar {
  background-color: var(--color-rosa-pastel) !important;
  border-bottom: 2px solid var(--color-gris-marron);
  box-shadow: 0 2px 8px rgba(62, 62, 62, 0.08);
  padding: 0 !important;
}

.navbar-brand {
  padding: 8px 0 !important;
  margin-right: 2rem !important;
}

.logo-img {
  height: 66px;
  width: auto;
  object-fit: contain;
}

.nav-link {
  font-family: var(--font-boton);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--color-marron-oscuro) !important;
  margin-left: 24px;
  position: relative;
  padding-bottom: 8px !important;
  letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-gris-marron) !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-gris-marron);
}

/* Estilos para dropdown - Desktop */
.dropdown-menu {
  background-color: var(--color-rosa-pastel) !important;
  border: none;
  border-top: 2px solid var(--color-gris-marron);
  box-shadow: 0 4px 12px rgba(62, 62, 62, 0.15);
}

.dropdown-item {
  color: var(--color-marron-oscuro) !important;
  font-family: var(--font-boton);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 12px 16px !important;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background-color: var(--color-beige-claro) !important;
  color: var(--color-gris-marron) !important;
}

.dropdown-item.active {
  background-color: var(--color-gris-marron) !important;
  color: white !important;
}

@media (max-width: 991px) {
  .nav-link {
    margin-left: 0;
    padding: 8px 0 !important;
    border-bottom: 1px solid var(--color-beige-claro);
  }

  .nav-link.active::after {
    display: none;
  }

  /* Ocultar la flecha de Bootstrap en dropdown en móviles */
  .dropdown-toggle::after {
    display: none !important;
  }

  /* Estilos para dropdown en móviles */
  .dropdown-menu {
    background-color: var(--color-rosa-pastel) !important;
    border: none;
    box-shadow: none;
    padding: 0;
    position: static !important;
    float: none !important;
  }

  .dropdown-item {
    color: var(--color-marron-oscuro) !important;
    padding: 12px 16px !important;
    margin-left: 16px;
    font-family: var(--font-boton);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    border-bottom: 1px solid var(--color-beige-claro);
    letter-spacing: 0.5px;
  }

  .dropdown-item:last-child {
    border-bottom: none;
  }

  .dropdown-item:hover {
    background-color: var(--color-beige-claro) !important;
  }
}

/* ============================================
   4. HERO SECTION CON CAROUSEL
   ============================================ */

.hero-section {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.carousel {
  height: 100%;
  position: relative;
}

.carousel-inner {
  height: 100%;
}

.carousel-item {
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(62, 62, 62, 0.5);
  z-index: 1;
}

.carousel-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: white;
  text-align: center;
  pointer-events: none;
}

.carousel-content .container {
  max-width: 600px;
}

.hero-title {
  font-family: var(--font-titulo);
  font-size: 48px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  letter-spacing: 1.5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(212, 175, 55, 0.5);
  border-radius: 4px;
  opacity: 0.7;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  background-color: rgba(212, 175, 55, 0.8);
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
  bottom: 20px;
  z-index: 3;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  margin: 0 6px;
}

.carousel-indicators button.active {
  background-color: var(--color-gris-marron);
}

@media (max-width: 768px) {
  .hero-section {
    height: 400px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }
}

/* ============================================
   5. SECCIONES GENERALES
   ============================================ */

section {
  position: relative;
}

section:nth-child(odd) {
  background-color: var(--color-blanco-cremoso);
}

section:nth-child(even) {
  background-color: var(--color-beige-claro);
}

.section-title {
  font-family: var(--font-titulo);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-marron-oscuro);
  margin-bottom: 16px;
  letter-spacing: 1.2px;
}

.divider {
  width: 40px;
  height: 2px;
  background-color: var(--color-gris-marron);
  margin: 0 auto;
}

.text-body {
  font-size: 16px;
  color: var(--color-marron-oscuro);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ============================================
   6. TARJETAS DE CATEGORÍAS
   ============================================ */

.category-card {
  border: none;
  border-top: 3px solid var(--color-gris-marron);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(62, 62, 62, 0.08);
  transition: all 0.3s ease-in-out;
  overflow: hidden;
}

.category-card:hover {
  box-shadow: 0 8px 24px rgba(62, 62, 62, 0.15);
  transform: translateY(-5px);
}

.card-image-placeholder {
  height: 200px;
  background-color: var(--color-beige-claro);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
}

.card-title {
  font-family: var(--font-titulo);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-marron-oscuro);
  margin-bottom: 12px;
}

.card-text {
  font-size: 14px;
  color: var(--color-gris-neutro);
  line-height: 1.6;
  margin-bottom: 16px;
}

.link-accent {
  font-family: var(--font-boton);
  color: var(--color-gris-marron);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.link-accent:hover {
  color: var(--color-marron-oscuro);
  text-decoration: underline;
}

/* ============================================
   7. SECCIÓN POR QUÉ ELEGIRNOS
   ============================================ */

.feature-icon {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto;
}

.feature-icon + h5 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-marron-oscuro);
  margin-bottom: 12px;
}

/* ============================================
   8. SECCIÓN CTA
   ============================================ */

.cta-section {
  background-color: var(--color-gris-marron);
  color: var(--color-marron-oscuro);
}

.cta-title {
  font-family: var(--font-titulo);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-marron-oscuro);
  margin-bottom: 12px;
  letter-spacing: 1.2px;
}

.cta-subtitle {
  font-size: 18px;
  color: var(--color-marron-oscuro);
}

/* ============================================
   9. BOTONES
   ============================================ */

.btn {
  font-family: var(--font-boton);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 8px;
  padding: 12px 32px !important;
  font-size: 14px;
  transition: all 0.3s ease;
  border: none !important;
}

.btn-primary {
  background-color: var(--color-gris-marron) !important;
  color: white !important;
}

.btn-primary:hover {
  background-color: #B8860B !important;
  box-shadow: 0 8px 16px rgba(62, 62, 62, 0.2);
  transform: scale(1.02);
}

.btn-light {
  background-color: white !important;
  color: var(--color-marron-oscuro) !important;
  border: 2px solid var(--color-gris-marron) !important;
}

.btn-light:hover {
  background-color: var(--color-gris-marron) !important;
  color: white !important;
}

/* ============================================
   10. FOOTER
   ============================================ */

footer {
  background-color: var(--color-marron-oscuro);
  color: white;
  border-top: 2px solid var(--color-gris-marron);
}

.footer-title {
  font-family: var(--font-titulo);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-gris-marron);
  margin-bottom: 16px;
}

.footer-link {
  color: white;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--color-gris-marron);
}

.footer-divider {
  border-color: var(--color-gris-marron);
  opacity: 0.5;
}

.footer-bottom {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-gris-marron);
  color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  font-weight: 700;
}

.social-link:hover {
  background-color: var(--color-rosa-pastel);
  color: var(--color-marron-oscuro);
  transform: scale(1.1);
}

/* ============================================
   11. RESPONSIVIDAD
   ============================================ */

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

  .cta-title {
    font-size: 28px;
  }

  .card-image-placeholder {
    font-size: 36px;
  }

  .card-title {
    font-size: 20px;
  }
}

/* ============================================
   12. PRECIOS EN GRID COMPACTO (PRODUCTOS)
   ============================================ */

.producto-precios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
  font-size: 12px;
  text-align: center;
  margin-top: 12px;
}

.producto-precios-grid .cantidad {
  color: var(--color-marron-oscuro);
  font-weight: 500;
}

.producto-precios-grid .monto {
  color: var(--color-gris-marron);
  font-weight: 700;
}

/* ============================================
   13. OVERRIDE BOOTSTRAP DEFAULTS
   ============================================ */

.bg-light {
  background-color: var(--color-beige-claro) !important;
}

.text-white {
  color: white !important;
}

/* ============================================
   14. PERMITIR CLICKS EN BOTONES DEL CAROUSEL
   ============================================ */

.carousel-content .btn {
  pointer-events: auto;
}

/* ============================================
   FIN DEL STYLESHEET
   ============================================ */
