@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  line-height: 1.6;
  color: #1e1e1e;
  background-color: #ffffff;
  display: grid;
  grid-template-areas: "header" "main" "footer";
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  scroll-padding-top: 60px;
}

main {
  grid-area: main;
  width: 100%;
  padding-top: 60px;
}

h1 {
  font-size: 2.5rem;
  color: #ffffff;
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
  font-size: 2rem;
  color: #4e2a8a;
  text-align: center;
  margin-bottom: 20px;
}

h3 {
  font-size: 1.2rem;
  color: #4e2a8a;
  margin-bottom: 10px;
}

p {
  margin-bottom: 15px;
  color: #666666;
}

a {
  color: #6e39b7;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.page-title {
  color: #6e39b7;
  font-weight: 700;
  text-align: center;
  text-shadow: none;
  margin-bottom: 40px;
}

.small {
  font-size: 0.9rem;
  color: #666666;
  font-style: italic;
}

.producto-card {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
}
.producto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-card, .testimonial-card-mobile {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.testimonial-card:hover, .testimonial-card-mobile:hover {
  transform: translateY(-5px);
}
.testimonial-card p, .testimonial-card-mobile p {
  font-style: italic;
  color: #666666;
  margin: 0;
}

.u-section-space {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.u-section-space--soft {
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.text-body {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.7;
  color: #666666;
}

.u-heading-lead {
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

.site-header {
  grid-area: header;
  background: linear-gradient(135deg, #6e39b7, #e78bd6, #79b6ff);
  padding: 0;
  color: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

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

.navbar {
  background: linear-gradient(135deg, #6e39b7, #e78bd6, #79b6ff) !important;
  padding: 8px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
  min-height: 60px;
}
.navbar .container-fluid {
  max-width: 1800px;
  margin: 0 auto;
}

.navbar-brand {
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0;
}

.navbar-logo {
  height: 70px;
  width: auto;
}

.navbar-nav .nav-link {
  color: #ffffff !important;
  font-weight: 500;
  padding: 8px 15px !important;
  border-radius: 20px;
  transition: all 0.3s ease;
  margin: 0 3px;
  font-size: 0.95rem;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  transform: translateY(-1px);
}
.navbar-nav .nav-link.active {
  background-color: rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
  font-weight: 600;
}

.navbar-search {
  max-width: 160px;
}
.navbar-search .input-group {
  flex-wrap: nowrap;
  align-items: center;
}
.navbar-search .input-group > .form-control,
.navbar-search .input-group > .btn {
  height: 28px;
  padding-top: 0;
  padding-bottom: 0;
}
.navbar-search .form-control {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-right: none !important;
  color: #ffffff !important;
  font-size: 0.75rem;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
  border-radius: 15px 0 0 15px !important;
}
.navbar-search .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.navbar-search .form-control:focus {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  border-right: none !important;
  box-shadow: none !important;
}
.navbar-search .btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-left: none !important;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: 0 15px 15px 0 !important;
  display: flex;
  align-items: center;
}
.navbar-search .btn-outline-light:hover, .navbar-search .btn-outline-light:focus {
  background: rgba(255, 255, 255, 0.2) !important;
}
.navbar-search .btn-outline-light svg {
  width: 12px;
  height: 12px;
}

.navbar-toggler {
  border: none;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 6px 10px;
}
.navbar-toggler:focus {
  box-shadow: none;
}

.site-footer {
  grid-area: footer;
  background-color: #4e2a8a;
  color: #ffffff;
  padding: 35px 0 15px 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 25px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.footer-column {
  flex: 1;
  min-width: 220px;
}
.footer-column h3 {
  color: #ffffff;
  margin-bottom: 12px;
  font-size: 1.1rem;
}
.footer-column p {
  color: #ffffff;
  margin-bottom: 6px;
  font-size: 0.85rem;
  line-height: 1.4;
}
.footer-column a {
  color: #79b6ff;
}
.footer-column a:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
}
.footer-bottom p {
  color: #79b6ff;
  font-size: 0.9rem;
  margin: 0;
}

.newsletter-form {
  margin-top: 15px;
}
.newsletter-form input {
  width: 70%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 20px;
  margin-bottom: 10px;
  margin-right: 10px;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  border: none;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  margin: 20px 0;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #6e39b7;
  color: #ffffff;
}
.btn-primary:hover {
  background: #4e2a8a;
  text-decoration: none;
}

.btn-newsletter {
  background-color: #6e39b7;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 20px;
}
.btn-newsletter:hover {
  background-color: #4e2a8a;
}

.btn-toggle-password {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  text-decoration: none;
  line-height: 1;
  padding: 0.375rem 0.75rem;
  background: transparent;
  border: none;
  color: #666666;
  cursor: pointer;
}
.btn-toggle-password:hover {
  color: #6e39b7;
}
.btn-toggle-password:focus {
  outline: none;
  box-shadow: none;
}
.btn-toggle-password svg {
  display: block;
}

.producto-card {
  border: none;
  transition: all 0.3s ease;
}
.producto-card .card-img-top {
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.producto-card:hover .card-img-top {
  transform: scale(1.05);
}
.producto-card .card-body {
  padding: 25px;
  background: white;
}
.producto-card .card-title {
  color: #6e39b7;
  font-weight: 600;
  margin-bottom: 15px;
}
.producto-card .card-text {
  color: #666666;
  line-height: 1.6;
}
.producto-card .precio {
  color: #4e2a8a;
  font-weight: 600;
  font-size: 1.1rem;
}

.testimonial-card {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  padding: 20px;
}
.testimonial-card p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.client-photo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 12px auto;
  display: block;
  object-fit: cover;
  border: 3px solid #6e39b7;
}

.testimonial-card-bootstrap {
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.testimonial-card-bootstrap:hover {
  transform: translateY(-5px);
}
.testimonial-card-bootstrap .card-body {
  background: linear-gradient(135deg, #f5f5f5, #ffffff);
}

.testimonial-card-mobile {
  padding: 30px 20px;
  margin: 20px 10px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.testimonial-card-mobile .client-photo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 15px auto;
  display: block;
  object-fit: cover;
  border: 3px solid #6e39b7;
}
.testimonial-card-mobile p {
  font-size: 1rem;
  line-height: 1.6;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-qty-input {
  width: 70px;
}

.nav-user-icon {
  vertical-align: -3px;
}

.app-toast {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 1055;
  min-width: 280px;
}

.promo-section {
  background: linear-gradient(135deg, #f5f5f5, #ffffff);
  min-height: 400px;
  position: relative;
}

.carousel-img {
  height: 320px;
  object-fit: cover;
  border-radius: 15px;
  filter: brightness(0.7);
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 15px;
  padding: 25px;
  bottom: 25px;
  max-width: 80%;
  left: 50%;
  transform: translateX(-50%);
}
.carousel-caption h5 {
  color: #e78bd6;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1.6rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.carousel-caption p {
  color: white;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.carousel-indicators {
  bottom: -60px;
}
.carousel-indicators button {
  background-color: #6e39b7;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  margin: 0 8px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 8%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: #6e39b7;
  border-radius: 50%;
  padding: 20px;
  width: 60px;
  height: 60px;
}

#testimonialsCarousel .carousel-control-prev,
#testimonialsCarousel .carousel-control-next {
  width: 8%;
  top: 50%;
  transform: translateY(-50%);
  height: 50px;
}
#testimonialsCarousel .carousel-control-prev-icon,
#testimonialsCarousel .carousel-control-next-icon {
  background-color: #6e39b7;
  border-radius: 50%;
  padding: 15px;
  width: 40px;
  height: 40px;
}
#testimonialsCarousel .carousel-indicators {
  bottom: -40px;
}
#testimonialsCarousel .carousel-indicators button {
  background-color: #6e39b7;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 6px;
}

.hero-section {
  min-height: 50vh;
  position: relative;
}

.hero-background {
  background: linear-gradient(rgba(110, 57, 183, 0.1), rgba(110, 57, 183, 0.5)), url("../img/hero.jpg") center/cover no-repeat;
  min-height: 50vh;
  position: relative;
  padding-top: 60px;
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  text-align: center;
}
.hero-content h1 {
  margin: 0;
}
.hero-content .btn {
  margin: 0;
}

.custom-section {
  background-color: #ffffff;
}

.custom-content {
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.custom-image {
  flex: 0 0 45%;
  max-width: 500px;
}
.custom-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.custom-text {
  flex: 1;
  text-align: center;
  padding-left: 20px;
}
.custom-text h2 {
  text-align: left;
  margin-bottom: 15px;
}
.custom-text p {
  text-align: left;
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.testimonials-section {
  background-color: #f5f5f5;
  margin-top: clamp(1.5rem, 4vw, 3rem);
}

.testimonials-grid {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.wrap {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 25px;
}
.wrap article {
  margin-bottom: 40px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
}
.wrap article h2 {
  color: #6e39b7;
  text-align: left;
  margin-bottom: 15px;
}
.wrap article img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  margin: 15px 0;
}

.tortas-personalizadas {
  background: linear-gradient(135deg, #79b6ff, #e78bd6);
  border: none;
  border-radius: 15px;
  padding: 30px;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}
.tortas-personalizadas .alert-heading {
  color: #4e2a8a;
  font-weight: 700;
}

.precio-especial {
  font-size: 1.8rem;
  font-weight: 700;
  color: #4e2a8a;
}

.gallery-section {
  margin-bottom: 60px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
  aspect-ratio: 1;
}
.gallery-item:hover {
  transform: scale(1.05);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(110, 57, 183, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-icon {
  font-size: 2rem;
  color: white;
}

.nosotros-image {
  text-align: center;
  margin: 20px 0 10px;
}
.nosotros-image img {
  max-width: 500px;
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
}

.nosotros-hero {
  padding: clamp(1.5rem, 4vw, 3rem) 0 2rem;
}
.nosotros-hero .page-title {
  margin-bottom: 25px;
}

.nosotros-history {
  padding: 12px 0 36px;
}

.nosotros-content {
  max-width: 800px;
  margin: 0 auto;
}

.texto-nosotros p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

.promos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.promo-card {
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease;
  transition-property: transform, box-shadow;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}
.promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.promo-card:nth-child(1) {
  background: linear-gradient(135deg, #ff6b9d, #ff8a9b);
}

.promo-card:nth-child(2) {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.promo-card:nth-child(3) {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.promo-card:nth-child(4) {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

.promo-image {
  position: relative;
  padding: 25px 20px 20px 20px;
  text-align: center;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.promo-image img {
  width: 100%;
  max-width: 200px;
  height: auto;
  max-height: 180px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.promo-card:hover .promo-image img {
  transform: scale(1.05);
}

.promo-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.95);
  color: #1e1e1e;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}

.promo-content {
  background: #ffffff;
  padding: 25px 20px;
  text-align: center;
  border-radius: 20px 20px 0 0;
  margin-top: -10px;
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.promo-content h2 {
  color: #1e1e1e;
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-weight: 700;
  line-height: 1.2;
}
.promo-content .btn {
  width: 100%;
  padding: 12px 20px;
  font-weight: 700;
  border-radius: 12px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  margin: 0;
  border: none;
  cursor: pointer;
}
.promo-content .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(110, 57, 183, 0.4);
}

.promo-description {
  color: #666666;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 15px;
  opacity: 0.8;
}

.promo-price {
  margin-bottom: 15px;
}

.old-price {
  display: block;
  color: #666666;
  text-decoration: line-through;
  font-size: 0.85rem;
  margin-bottom: 3px;
  opacity: 0.7;
}

.new-price {
  color: #6e39b7;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  display: block;
}

.promo-validity {
  color: #e78bd6;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 20px;
  opacity: 0.9;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
    padding: 0 20px;
  }
  .wrap {
    max-width: 950px;
    padding: 0 20px;
  }
}
@media (max-width: 992px) {
  .container {
    max-width: 900px;
    padding: 0 15px;
  }
  .wrap {
    max-width: 750px;
    padding: 0 15px;
  }
}
@media (max-width: 992px) and (min-width: 769px) {
  .hero-section,
  .hero-background {
    min-height: 45vh;
  }
  .carousel-img {
    height: 350px;
  }
  .testimonials-grid {
    gap: 18px;
  }
  .testimonial-card {
    min-width: calc(50% - 9px);
    max-width: calc(50% - 9px);
  }
  .custom-content {
    gap: 25px;
  }
  .custom-image img {
    height: 320px;
  }
  .promos-grid {
    gap: 28px;
    max-width: 800px;
  }
  .promo-image {
    padding: 22px 18px 18px 18px;
    height: 200px;
  }
  .promo-image img {
    max-width: 180px;
    max-height: 160px;
  }
  .promo-content {
    padding: 22px 18px;
  }
  .promo-content h2 {
    font-size: 1.25rem;
  }
  .new-price {
    font-size: 1.7rem;
  }
}
@media (max-width: 768px) {
  .container,
  .wrap {
    padding: 0 15px;
  }
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .carousel-img {
    height: 250px;
  }
  .carousel-caption {
    padding: 15px;
    bottom: 15px;
    max-width: 90%;
  }
  .carousel-caption h5 {
    font-size: 1.2rem;
  }
  .carousel-caption p {
    font-size: 0.9rem;
  }
  .navbar-brand .navbar-logo {
    height: 65px;
  }
  .navbar-search {
    max-width: 100%;
    margin: 10px 0;
    order: 10;
  }
  .hero-section,
  .hero-background {
    min-height: 40vh;
  }
  .hero-content {
    padding: 15px 0;
  }
  .producto-card .card-img-top {
    height: 200px;
  }
  .tortas-personalizadas {
    padding: 20px;
    text-align: center;
  }
  .precio-especial {
    font-size: 1.5rem;
  }
  .custom-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .custom-image {
    flex: none;
    max-width: 100%;
  }
  .custom-image img {
    height: 280px;
  }
  .custom-text {
    padding-left: 0;
  }
  .custom-text h2,
  .custom-text p {
    text-align: center;
  }
  .testimonials-grid {
    gap: 15px;
    flex-direction: column;
  }
  .testimonial-card {
    min-width: 100%;
    max-width: 100%;
    margin-bottom: 15px;
  }
  .testimonials-section .row > div {
    margin-bottom: 20px;
  }
  .promos-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 35px;
    max-width: 400px;
  }
  .promo-image {
    padding: 20px 15px 15px 15px;
    height: 180px;
  }
  .promo-image img {
    max-width: 160px;
    max-height: 150px;
  }
  .promo-content {
    padding: 20px 18px;
  }
  .promo-content h2 {
    font-size: 1.2rem;
    margin-bottom: 6px;
  }
  .promo-content .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  .promo-description {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }
  .new-price {
    font-size: 1.6rem;
  }
  .promo-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    top: 12px;
    right: 12px;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }
  .gallery-icon {
    font-size: 1.5rem;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .newsletter-form input {
    width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
  }
  .btn-newsletter {
    width: 100%;
  }
  .nosotros-image img {
    height: 200px;
  }
  .texto-nosotros p {
    text-align: left;
    font-size: 1rem;
  }
}
