@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
  --bg: #f4f0ec;
  --surface: #ffffff;
  --pink: #b76c88;
  --pink-soft: #f8e5ea;
  --gold: #b98a70;
  --text: #362f31;
  --muted: #7b6a6e;
  --border: rgba(171, 138, 113, 0.18);
  --shadow: 0 24px 70px rgba(90, 70, 80, 0.11);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: var(--font-body), sans-serif;
  background-color: #fdf2f4; /* Color de fondo si la imagen no carga */
  background-image: url('img/background.png');
  background-repeat: no-repeat; /* La imagen ya no se repetirá */
  background-size: cover; /* La imagen cubrirá todo el fondo */
  background-position: center center; /* Se centrará la imagen */
  background-attachment: fixed; /* La imagen se quedará fija al hacer scroll */
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-color: rgba(255, 255, 255, 0.7); /* Capa semi-transparente blanca */
  background-color: rgba(255, 255, 255, 0.5); /* Capa semi-transparente blanca, ahora más transparente */
  z-index: -1; /* Asegura que esté detrás del contenido pero sobre la imagen de fondo */
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
}

@keyframes gentleGlow {
  from { transform: scale(1) translateY(0px); }
  to { transform: scale(1.02) translateY(-4px); }
}

main,
.admin-main,
.shop-main {
  max-width: 1180px;
  margin: 0 auto;
}

img {
  max-width: 100%;
  display: block;
}

main {
  max-width: 1180px;
  margin: 0 auto;
}

button, .btn {
  font: inherit;
  border: none;
  cursor: pointer;
}

.user-name {
  margin-left: 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.user-name.hidden {
  display: none;
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  background: #fff;
  border-radius: 32px;
  padding: 2rem;
  border: 1px solid rgba(196, 141, 106, 0.12);
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin: 0 0 0.5rem;
}

.faq-section details {
  background: #fff;
  border: 1px solid rgba(196, 141, 106, 0.16);
  border-radius: 26px;
  padding: 1.3rem;
  margin-bottom: 1rem;
  box-shadow: 0 20px 40px rgba(106, 58, 81, 0.08);
}

.faq-section summary {
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 900px) {
  .contact-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .user-dropdown {
    right: 0;
    left: 0;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-home .nav-actions #cartButton,
.page-home .nav-actions #userMenuButton {
  display: none !important;
}

.btn {
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--gold));
  color: #fff;
}

.btn-outline {
  border: 1px solid var(--pink);
  color: var(--pink);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--pink);
  color: #fff;
}


.video-showcase-section {
  padding: 3rem 2rem;
}

.video-track {
  display: flex; /* Cambiado a flex para mejor control */
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
  cursor: grab;
  padding: 1rem 0; /* Añade espacio para la sombra */
}
.video-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.video-slide {
  flex: 0 0 20%; /* Mostrar 5 videos en desktop */
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  scroll-snap-align: start;
}

.video-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .video-track {
    gap: 1rem;
  }
  .video-slide {
    flex: 0 0 30%; /* Mostrar ~3 videos en tablet */
  }
}

@media (max-width: 640px) {
  .video-track {
    grid-auto-columns: 80%; /* Un solo video principal en móvil */
  }

  .featured-carousel-wrapper {
    width: 90%;
  }
}

.video-track.active {
  cursor: grabbing;
}

.video-modal-content {
  max-width: 90vw;
  width: 1100px;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.video-modal-content video {
  width: 100%;
  border-radius: 28px;
}

.hero-actions a {
  min-width: 200px;
  padding: 1.1rem 2rem;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.mini-features,
.bubble-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 1.75rem 2rem 2rem;
  margin-top: 2rem;
}

.bubble-features article {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 34px;
  padding: 1.7rem 1.8rem;
  border: 1px solid rgba(255, 210, 185, 0.45);
  box-shadow: 0 26px 60px rgba(106, 58, 81, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bubble-features article:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 72px rgba(106, 58, 81, 0.12);
}

.bubble-features article h3 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.bubble-features article p {
  margin: 0;
  line-height: 1.75;
  color: var(--muted);
}

.featured-section {
  padding: 3rem 1.5rem;
}

.featured-carousel-wrapper {
  position: relative;
  width: 80%;
  margin: 0 auto;
}

.carousel-container {
  position: relative;
  margin: 0 auto;
}

.carousel-track {
  position: relative;
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
  padding: 1rem 0;
  cursor: grab;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 calc(100% / 3 - 1rem);
  scroll-snap-align: start;
}

@media (max-width: 900px) {
  .carousel-slide { flex: 0 0 calc(50% - 0.75rem); }
}

@media (max-width: 640px) {
  .carousel-slide { flex: 0 0 75%; }

  .carousel-nav {
    display: none; /* Ocultar flechas en móviles pequeños */
  }
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  position: relative;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(196, 141, 106, 0.16);
  background: #fff;
  color: var(--text);
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(145, 95, 119, 0.12);
  z-index: 10;
}

.carousel-nav.left {
  left: -5%;
}

.carousel-nav.right {
  right: -5%;
}

.section-soft {
  background: rgba(255, 234, 241, 0.55);
  border-radius: 36px;
  margin: 2rem 2rem 0;
  padding: 2.5rem 2rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin: 1rem 0 1.5rem;
}

.filter-bar span {
  font-weight: 600;
  color: var(--muted);
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(196, 141, 106, 0.18);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.filter-pill:hover,
.filter-pill.active {
  background: linear-gradient(135deg, rgba(215, 125, 153, 0.15), rgba(198, 141, 106, 0.18));
}

.testimonial-card p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2rem;
  text-align: center;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}
.star-rating-display {
  color: var(--gold);
  font-size: 1.8rem; /* Aumentamos el tamaño de las estrellas */
  margin-bottom: 1rem;
}

.testimonial-card strong {
  display: block;
  margin-top: 1rem;
}

/* Star Rating Input */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 0.25rem;
}
.star-rating input { display: none; }
.star-rating label {
  font-size: 2.5rem;
  color: #ddd;
  cursor: pointer;
  transition: color 0.2s;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: var(--gold);
}

@media (max-width: 1100px) {
  .hero-home {
    grid-template-columns: 1fr;
  }
}

.features-section,
.shop-section,
.faq-section,
.contact-section {
  padding: 3rem 2rem;
}

.features-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.features-section article {
  background: #fff;
  border-radius: 28px;
  border: 1px solid rgba(196, 141, 106, 0.14);
  padding: 2rem;
  box-shadow: 0 16px 40px rgba(185, 124, 144, 0.08);
}

.features-section h3 {
  margin-top: 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2rem;
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-size: 2.4rem;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

.product-grid {
  display: grid;
  /* Ajustado para un tamaño más consistente como en el carrusel */
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(196, 141, 106, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.product-card figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-card .product-body {
  padding: 1.5rem;
  flex: 1;
}

.product-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
}

.product-card p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  line-height: 1.6;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  background: rgba(215, 125, 153, 0.12);
  color: var(--pink);
  font-size: 0.82rem;
  font-weight: 700;
}

.product-tag-secondary {
  background: rgba(198, 141, 106, 0.14);
  color: var(--text);
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.product-card .btn-outline {
  border-color: var(--pink);
  color: var(--pink);
}

.product-card:hover .btn-outline {
  background-color: var(--pink);
  color: #fff;
}

.admin-main {
  padding: 3rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.admin-hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 236, 244, 0.95));
  border: 1px solid rgba(196, 141, 106, 0.12);
  border-radius: 36px;
  box-shadow: var(--shadow);
}

.admin-hero .eyebrow {
  margin-bottom: 0.75rem;
  color: var(--pink);
}

.admin-hero h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 2.4vw, 2.8rem);
}

.admin-hero p {
  max-width: 520px;
  margin-top: 1rem;
  color: var(--muted);
}

.hero-stats-card {
  display: grid;
  gap: 1rem;
}

.hero-stats-card div {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(196, 141, 106, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hero-stats-card span {
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-stats-card strong {
  font-size: 1.75rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.9fr;
  gap: 2rem;
}

.admin-card {
  background: #fff;
  border-radius: 32px;
  border: 1px solid rgba(196, 141, 106, 0.12);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.section-header-left {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-card .eyebrow {
  margin-bottom: 0.5rem;
  color: var(--pink);
}

.admin-card h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  background: linear-gradient(135deg, rgba(215, 125, 153, 0.15), rgba(198, 141, 106, 0.15));
  color: var(--pink);
  font-weight: 700;
}

.badge-soft {
  background: rgba(215, 125, 153, 0.08);
  color: var(--text);
}

.product-form label {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text);
}

.product-form input,
.product-form select,
.product-form textarea {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(196, 141, 106, 0.18);
  padding: 1rem 1.1rem;
  background: #fff;
  color: var(--text);
  font-size: 0.96rem;
}

.product-form textarea {
  min-height: 140px;
  resize: vertical;
}

.product-form input[type="file"] {
  padding: 0.7rem 0.85rem;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--text);
}

.checkbox-label input {
  width: auto;
  height: auto;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-status {
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.admin-tabs-container .tab-button {
  padding: 0.85rem 1.5rem;
}

.sales-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.sales-table th, .sales-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.sales-table th {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--muted);
}
.sales-table .btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}
.badge.badge-success {
    background: #eaf7ec;
    color: #34c759;
}

@media (max-width: 768px) {
  .sales-table thead {
    display: none;
  }
  .sales-table, .sales-table tbody, .sales-table tr, .sales-table td {
    display: block;
    width: 100%;
  }
}
.admin-product-grid {
  display: grid;
  gap: 1rem;
}

.admin-product-grid .product-card {
  flex-direction: row;
  min-height: 120px;
}

.admin-product-grid .product-card figure {
  min-width: 140px;
  aspect-ratio: 1 / 1;
}

.admin-product-grid .product-card img {
  object-fit: cover;
}

.admin-product-grid .product-body {
  padding: 1.5rem 1.5rem 1.5rem 0;
}

.admin-product-grid .price-row {
  flex-direction: column;
  align-items: flex-start;
}

.admin-products .product-grid {
  margin-top: 0.5rem;
}

.admin-card .btn {
  max-width: 220px;
}

@media (max-width: 1000px) {
  .admin-hero,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .top-nav {
    flex-wrap: wrap;
  }

  .admin-main {
    padding: 2rem 1rem 3rem;
  }
}

.blog-section {
  padding: 3rem 2rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.article-card {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(196, 141, 106, 0.12);
  display: flex;
  flex-direction: column;
}

.article-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card a:hover img {
  transform: scale(1.05);
}

.article-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.article-body p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  flex-grow: 1;
}

.read-more {
  color: var(--pink);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.faq-section details {
  margin-bottom: 1rem;
  background: #fff;
  border: 1px solid rgba(196, 141, 106, 0.14);
  padding: 1.25rem 1.4rem;
  border-radius: 22px;
}

.faq-section summary {
  font-weight: 600;
  cursor: pointer;
}

.contact-card {
  display: grid;
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
}

.contact-card div {
  background: #fff;
  border-radius: 24px;
  padding: 1.4rem;
  border: 1px solid rgba(196, 141, 106, 0.14);
}

.contact-card h3 {
  margin: 0 0 0.55rem;
}

.footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
}

.footer-link {
  display: inline-block;
  margin-top: 0.75rem;
}

.user-menu-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.tab-button {
  border: 1px solid rgba(196, 141, 106, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  padding: 0.85rem 1rem;
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.tab-button:hover {
  transform: translateY(-1px);
}

.tab-button.active {
  background: linear-gradient(135deg, rgba(215, 125, 153, 0.16), rgba(198, 141, 106, 0.16));
  border-color: rgba(215, 125, 153, 0.35);
}

.menu-section {
  display: none;
}

.menu-section.active {
  display: block;
}

.user-menu-content {
  width: 100%; /* Asegura que ocupe todo el ancho disponible */
}

.cart-content {
  width: min(520px, calc(100% - 2rem));
  max-height: min(90vh, 800px);
  overflow: auto;
}

.cart-items-list,
.purchased-list {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0;
}

.cart-item,
.purchased-item {
  background: #fff;
  border: 1px solid rgba(196, 141, 106, 0.14);
  border-radius: 24px;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.balance-card {
  background: rgba(215, 125, 153, 0.08);
  border: 1px solid rgba(215, 125, 153, 0.18);
  border-radius: 28px;
  padding: 1.5rem 1.3rem;
  display: grid;
  gap: 0.5rem;
  text-align: center;
}

.balance-card strong {
  font-size: 2rem;
  color: var(--pink);
}

@media (max-width: 640px) {
  .user-menu-tabs {
    grid-template-columns: 1fr;
  }
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(47, 18, 28, 0.48);
  display: grid;
  place-items: center;
}

.modal.hidden {
  display: none;
}

.modal-content {
  width: min(430px, calc(100% - 2rem));
  background: #fff;
  border-radius: 30px;
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow);
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .top-nav {
    flex-wrap: wrap;
  }

  .hero-section {
    grid-template-columns: 1fr;
  }

  .features-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.about-section {
  padding: 4rem 2rem;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.about-image-left img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 28px;
}

.about-content-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text-content {
}

.about-text-content h2 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  margin: 0.5rem 0 1.5rem;
}

.about-text-content p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-text-content .btn {
  margin-top: 1rem;
}

@media (max-width: 1024px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-text-content {
    text-align: center;
  }

  .about-image-left img {
    height: 500px;
  }
}

.benefits-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 4rem 2rem;
}

.benefit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  color: var(--pink);
  margin-bottom: 1.5rem;
}

.benefit-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.benefit-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .benefits-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Static Hero Section */
.bloom-hero {
  position: relative;
  height: 90vh;
  width: 100vw;
  margin-left: calc(-50vw + 50% - 1rem);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 10%; /* Baja la imagen para centrar mejor el rostro */
  background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('img/hero-3.jpg');
}

.hero-content {
  color: #fff;
  text-align: right;
  max-width: 550px;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 0 0 1.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: #fff;
  text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.faq-page-section {
  max-width: 800px;
  margin: 2rem auto;
}

.faq-page-section details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 30px rgba(90, 70, 80, 0.05);
}

.faq-page-section summary {
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
}

.faq-page-section p {
  margin-top: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

.site-footer {
  background-color: #2c2527;
  color: #e0e0e0;
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-column .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;  
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-bottom: 1rem;
}
.footer-column .footer-logo img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
}
.footer-column h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 1.5rem;
}
.footer-column a, .footer-column p {
  color: #a9a0a3;
  text-decoration: none;
  display: block;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}
.footer-column a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid #4a4043;
  text-align: center;
  color: #a9a0a3;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .bloom-hero {
    justify-content: center;
    text-align: center;
    background-position: 45% center; /* Mueve la imagen a la derecha para centrar la modelo */
    padding: 0 5%;
  }
  .hero-content {
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* === Checkout Page Styles === */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.checkout-form, .checkout-summary {
  background: #fff;
  border-radius: 28px;
  padding: 2.5rem;
  border: 1px solid var(--border);
}

.checkout-form h3, .checkout-summary h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin: 0 0 1.5rem;
}

.checkout-items-list {
  display: grid;
  gap: 1rem;
}

.checkout-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.checkout-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
}

.checkout-item-details {
  flex-grow: 1;
}

.remove-item-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--muted);
  cursor: pointer;
}

.checkout-totals {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.total-row.total-final {
  font-size: 1.2rem;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

/* Payment Options Section */
.payment-options-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.payment-options-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.payment-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.btn-payment-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
}
.btn-payment-option {
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  font-weight: 600;
  text-align: left;
  justify-content: flex-start;
  transition: all 0.2s ease;
}
.btn-payment-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(183, 108, 136, 0.08);
  border-color: var(--pink);
}
.btn-payment-option.active {
  border-color: var(--pink);
  background-color: var(--pink-soft);
  color: var(--pink);
  box-shadow: 0 0 0 3px var(--pink-soft);
}
.btn-payment-option svg {
  color: var(--gold);
}

/* === Header Styles === */
.shared-header {
  background-color: #fff;
  border-bottom: 1px solid #eee;
  padding: 0.8rem 5%;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s;
}
.shared-header.scrolled {
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;  
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #3d3d3d;
  text-decoration: none;
}
.header-logo-img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
}
.header-logo-text {
  display: flex;
  flex-direction: column;
}
.header-logo-text span { line-height: 1; }
.header-logo-text small {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--font-body);
}
.header-nav {
  display: flex;
  gap: 2rem;
}
.header-nav a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: color 0.2s;
}
.header-nav a:hover {
  color: #b22f4c;
}
@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}
.header-icon-btn {
  background: #fff;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #3d3d3d;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.header-icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.header-icon-btn svg {
  width: 24px;
  height: 24px;
}
.header-icon-btn .badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #b22f4c;
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border: 1px solid #eee;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
  z-index: 1001;
}
.user-dropdown a, .user-dropdown button {
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  color: #3d3d3d;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 1rem;
}
.user-dropdown a:hover, .user-dropdown button:hover {
  background-color: #f7f7f7;
}

/* === Modal Styles === */
.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.modal-container:not(.hidden) {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}
.modal-backdrop { position: absolute; width: 100%; height: 100%; background: rgba(0,0,0,0.5); }
.cart-summary {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}
.modal-content {
  background: #fff;
  border: 1px solid rgba(215, 125, 153, 0.18);
  border-radius: 32px;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 32px 90px rgba(106, 58, 81, 0.18);
  width: min(480px, calc(100% - 2rem));
  z-index: 1;
}
.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--pink-soft);
  border: none;
  cursor: pointer;
  color: var(--muted);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.modal-close-btn:hover {
  background-color: #f3dce2;
  transform: rotate(90deg);
}
.modal-content.modal-lg {
  width: min(900px, calc(100% - 2rem));
}
.auth-status { color: var(--pink); font-size: 0.9rem; margin-top: 1rem; min-height: 1.2em; text-align: center; }

.form-group { margin-bottom: 1rem; }
.form-group label { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; display: block; }
.form-group input, .form-group textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(196, 141, 106, 0.18);
  padding: 0.95rem 1rem;
  font-size: 0.95rem;
  background: #fff;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(215, 125, 153, 0.1);
}

.form-extra-links {
    text-align: right;
    margin: -0.5rem 0 1.5rem;
}
.form-extra-links a {
    font-size: 0.9rem;
    color: var(--muted);
    text-decoration: none;
}
.form-extra-links a:hover {
    color: var(--pink);
}

.social-login {
  text-align: center;
  margin-top: 2rem;
}
.social-login p {
  color: var(--muted);
  margin-bottom: 1rem;
}
.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #fff;
  border: 1px solid var(--border);
}
.btn-google svg { width: 20px; height: 20px; }

/* === Notification Modal === */
.notification-content {
  text-align: center;
  padding: 3rem 2.5rem 2.5rem;
}
.notification-content #notificationIcon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notification-content #notificationIcon svg {
  width: 32px;
  height: 32px;
}
.notification-content.success #notificationIcon { background-color: #eaf7ec; color: #34c759; }
.notification-content.error #notificationIcon { background-color: #fdeaea; color: #ff3b30; }
.notification-content.info #notificationIcon { background-color: #eaf4fd; color: #007aff; }

.notification-content h4 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}
.notification-content p {
  color: var(--muted);
  margin: 0 0 2rem;
}
/* === Floating Support Buttons === */
.floating-support {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1050;
}

.support-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}
.support-btn:hover {
  transform: scale(1.1);
}
.support-btn.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.support-btn.whatsapp { background-color: #25D366; }
.support-btn svg { width: 28px; height: 28px; }

/* === Thank You Page Styles === */
.page-thank-you {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
}
.thank-you-container {
  max-width: 550px;
  padding: 2rem;
}
.thank-you-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eaf7ec;
  color: #34c759;
}
.thank-you-icon svg {
  width: 40px;
  height: 40px;
}
.thank-you-container h1 { font-size: 2.5rem; margin: 0 0 1rem; }
.thank-you-container p { color: var(--muted); margin: 0 0 2.5rem; font-size: 1.1rem; }

/* === Footer Styles (Moved from footer.js) === */
.site-footer {
  background-color: #2c2527;
  color: #e0e0e0;
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-column .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
}

.footer-column h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 1.5rem;
}

.footer-column a, .footer-column p {
  color: #a9a0a3;
  text-decoration: none;
  display: block;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.footer-column a:hover { color: #fff; }
