:root {
  /* Color Palette - Luxury E-commerce & Organic */
  --color-primary: #8A0000; /* Deep elegant red from original */
  --color-primary-light: #B22222;
  --color-primary-dark: #5C0000;
  --color-text-main: #2C2C2C;
  --color-text-muted: #5E5E5E;
  --color-bg-light: #FAFAFA;
  --color-bg-card: rgba(255, 255, 255, 0.85);
  --color-white: #FFFFFF;
  --color-gold: #D4AF37;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Glassmorphism Tokens */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: 1px solid rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(138, 0, 0, 0.05);
  --glass-blur: blur(12px);
  --glass-radius: 30px; /* Made much more rounded/organic */

  /* Spacing & Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --section-padding: 80px 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background: linear-gradient(135deg, #FFF0F5 0%, #FDF5E6 100%); /* Softer, more floral background */
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

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

/* --- Utility Classes --- */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--glass-radius);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 12px 32px;
  border-radius: 30px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(138, 0, 0, 0.2);
}

.btn-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 0, 0, 0.3);
  color: var(--color-white);
}

/* --- Header & Navigation --- */
.top-bar {
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.85rem;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

.lang-toggle {
  display: flex;
  gap: 10px;
  align-items: center;
}

.lang-toggle img {
  width: 24px;
  border-radius: 2px;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 0;
  transition: var(--transition-smooth);
  background: linear-gradient(rgba(138, 0, 0, 0.85), rgba(80, 0, 0, 0.95)), url('images/header_bg.png') center/cover;
  border-bottom: 2px solid var(--color-gold);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.main-header.scrolled {
  background: linear-gradient(rgba(138, 0, 0, 0.95), rgba(80, 0, 0, 0.98)), url('images/header_bg.png') center/cover;
}

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

.logo-placeholder {
  background: var(--color-white);
  border: 2px solid var(--color-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 25px; /* Bordes más redondeados */
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  padding: 5px 15px;
}
.logo-placeholder a {
  display: block;
  line-height: 0;
}
.logo-placeholder img {
  width: 226px;
  height: 90px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-white);
  text-transform: uppercase;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: var(--transition-smooth);
}

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

.nav-links a:hover {
  color: var(--color-gold);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-white);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.4) 100%);
  z-index: -1;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}
.hero-text {
    flex: 1;
    max-width: 550px;
    padding: 40px;
    animation: fadeUp 1s ease-out;
}
.hero-slider {
    flex: 1;
    max-width: 600px;
    width: 100%;
}

.swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}
.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 320px;
    height: 420px;
    border-radius: 150px 20px 150px 20px;
    border: 3px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    overflow: hidden;
}
.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero h1 {
  font-size: 4rem;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--color-text-main);
  margin-bottom: 30px;
}

/* --- SVG Dividers --- */
.custom-shape-divider-bottom {
  position: absolute;
  bottom: -1px; /* Prevents 1px gaps */
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 15;
}

.custom-shape-divider-bottom svg {
  position: relative;
  display: block;
  width: calc(130% + 1.3px);
  height: 90px;
}

.custom-shape-divider-bottom .shape-fill {
  fill: transparent; /* Lets the body gradient show through for the first transition */
}
.hero .custom-shape-divider-bottom .shape-fill {
  fill: #FFF0F5; /* Matches the top of the body gradient */
}

.custom-shape-divider-bottom .shape-fill-gradient {
  fill: #FFF8F8; /* Matches the top of guarantees section */
}

/* --- Categories Grid --- */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-gold);
  margin: 15px auto 0;
}

.categories-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: var(--section-padding);
}

.category-card {
  position: relative;
  border-radius: var(--glass-radius);
  overflow: hidden;
  height: 350px;
  flex: 1 1 200px;
  max-width: 280px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.category-overlay h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  transform: translateY(10px);
  transition: var(--transition-smooth);
}

.category-card:hover .category-overlay h3 {
  transform: translateY(0);
}

/* --- Promotions Section --- */
.promotions-grid {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px 0;
}
.promo-card {
  position: relative;
  flex: 1 1 400px;
  max-width: 600px;
  height: 300px;
  border-radius: var(--glass-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  cursor: pointer;
}
.promo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.promo-card:hover img {
  transform: scale(1.05);
}
.promo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 20px;
  background: linear-gradient(to top, rgba(138, 0, 0, 0.9), transparent);
  color: var(--color-white);
}

/* --- Guarantees Section --- */
.guarantees-section {
  padding: var(--section-padding);
  background: radial-gradient(circle at center, #ffffff 0%, #FFF8F8 100%);
  position: relative;
}

.guarantees-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.video-wrapper {
  border-radius: var(--glass-radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.video-wrapper video {
  width: 100%;
  display: block;
}

/* --- Scattered Petals (Guarantees Section) --- */
.scattered-petals-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}
.static-petal {
    position: absolute;
    background: radial-gradient(circle at 30% 30%, #ffb6c1, #ff69b4);
    border-radius: 50% 0 50% 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    opacity: 0.6;
    transition: transform 0.5s ease, opacity 0.5s ease;
    pointer-events: auto; /* allow hover */
    /* Use variables to combine parallax Y and base rotation */
    transform: translateY(var(--parallax-y, 0px)) rotate(var(--base-rot, 0deg));
}
.static-petal:hover {
    transform: translateY(var(--parallax-y, 0px)) scale(1.5) rotate(calc(var(--base-rot, 0deg) + 20deg)) !important;
    opacity: 1;
    cursor: pointer;
}

.guarantees-content ul {
  list-style: none;
  margin-top: 30px;
}

.guarantees-content li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--color-text-main);
}

.guarantees-content li i {
  color: var(--color-primary);
  font-size: 1.5rem;
}

/* --- Payment & Footer --- */
.payment-section {
  padding: 60px 20px;
  text-align: center;
  background: var(--color-bg-light);
}

.payment-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.payment-icons img {
  height: 50px;
  object-fit: contain;
}

.main-footer {
  background: linear-gradient(rgba(30, 0, 0, 0.95), rgba(10, 0, 0, 0.98)), url('images/footer_bg.png') center/cover;
  color: rgba(255,255,255,0.8);
  padding: 80px 20px 40px;
  text-align: center;
  border-top: 4px solid var(--color-gold);
  position: relative;
  box-shadow: inset 0 20px 50px rgba(0,0,0,0.5);
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-gold);
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.footer-divider {
  width: 100px;
  height: 2px;
  background: var(--color-gold);
  margin: 20px auto;
  opacity: 0.5;
}

.footer-socials {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--color-gold);
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}

.footer-socials a:hover {
  background: var(--color-gold);
  color: var(--color-primary-dark);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.main-footer a {
  color: var(--color-white);
  text-decoration: none;
}

.main-footer a:hover {
  color: var(--color-gold);
}

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Falling Petals Decoration --- */
.falling-petals {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}

.petal {
  position: absolute;
  background: radial-gradient(circle at 30% 30%, #ffb6c1, #ff69b4);
  border-radius: 15px 0 15px 0;
  opacity: 0.6;
  box-shadow: 0 4px 10px rgba(255, 105, 180, 0.3);
  animation: fall linear infinite, sway ease-in-out infinite alternate;
}

@keyframes fall {
  0% { top: -10%; }
  100% { top: 110%; }
}

@keyframes sway {
  0% { transform: translateX(0) rotate(0deg); }
  100% { transform: translateX(80px) rotate(60deg); }
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .guarantees-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: all 0.4s ease-in-out;
  }

  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

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

  .logo-placeholder img {
    width: 170px;
    height: 70px;
  }

  .logo-placeholder {
    padding: 3px 10px;
  }

  .hero-container {
    flex-direction: column;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .swiper-slide {
    width: 250px;
    height: 350px;
  }

  .top-bar .container {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 6px 10px;
  }
  .top-bar-left {
    font-size: 0.75rem;
  }
  .top-bar-right {
    display: flex;
    gap: 15px;
    justify-content: center;
  }
  .top-bar-right span {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .logo-placeholder img {
    width: 130px;
    height: 55px;
  }
  .logo-placeholder {
    padding: 3px 8px;
    border-radius: 15px;
  }
  .mobile-menu-btn {
    font-size: 1.3rem;
  }
}

/* --- Footer Addresses & Branch Grid --- */
.footer-addresses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 35px auto 25px;
  text-align: left;
}

.footer-branch {
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(212, 175, 55, 0.15);
  transition: var(--transition-smooth);
}

.footer-branch:hover {
  border-color: rgba(212, 175, 55, 0.45);
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.footer-branch h4 {
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-branch p {
  font-size: 0.85rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 5px;
}

.footer-branch a.footer-map-link {
  font-size: 0.8rem;
  color: var(--color-gold) !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  text-decoration: underline !important;
}

.footer-branch a.footer-map-link:hover {
  color: var(--color-white) !important;
}

/* --- Swiper Navigation Custom Styling --- */
.swiper-button-next,
.swiper-button-prev {
  color: var(--color-gold) !important;
  width: 45px;
  height: 45px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  backdrop-filter: blur(5px);
  transition: var(--transition-smooth);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.1rem !important;
  font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--color-gold);
  color: var(--color-primary-dark) !important;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

