/* === FUENTES LOCALES (Inter + Playfair Display) === */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('libs/fonts/Inter-300.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('libs/fonts/Inter-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('libs/fonts/Inter-500.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('libs/fonts/Inter-600.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('libs/fonts/Inter-700.ttf') format('truetype');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('libs/fonts/PlayfairDisplay-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('libs/fonts/PlayfairDisplay-600.ttf') format('truetype');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('libs/fonts/PlayfairDisplay-700.ttf') format('truetype');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('libs/fonts/PlayfairDisplay-Italic-400.ttf') format('truetype');
}

:root {
  --color-bg: #030a16;
  --color-surface: #0a1424;
  --color-surface-hover: #12213a;
  --color-primary: #c5a880; /* Elegant gold */
  --color-primary-hover: #b3946a;
  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-text-white: #ffffff;
  --color-border: rgba(197, 168, 128, 0.15);
  --color-glow: rgba(197, 168, 128, 0.3);
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1280px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background sea effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% -20%, #102542 0%, #030a16 70%);
  z-index: -2;
  pointer-events: none;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-text-white);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--color-primary);
}

.text-center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

p {
  font-size: 1.05rem;
  font-weight: 300;
}

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

/* Helper Classes */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
  position: relative;
}

.text-center {
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #c5a880 0%, #a88d65 100%);
  color: #030a16;
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 15px rgba(197, 168, 128, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e2c9a1 0%, #c5a880 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(197, 168, 128, 0.45);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text-white);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(197, 168, 128, 0.1);
}

/* Aviso destacado: fijo por encima del menú, así queda visible aunque el
   usuario haga scroll. Su altura real (puede variar según el texto y el
   ancho de pantalla) se mide en JS y se guarda en --aviso-height, para que
   el menú y el hero de debajo dejen exactamente ese hueco libre. */
#site-aviso-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 101;
}

/* Header & Navigation */
header {
  position: fixed;
  top: var(--aviso-height, 0px);
  left: 0;
  width: 100%;
  z-index: 100;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background-color: rgba(3, 10, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(197, 168, 128, 0.1);
  padding: 0.8rem 0;
}

header .navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  gap: 2rem;
}

header .navbar.container {
  max-width: 100% !important;
  padding: 0 4rem;
  width: 100%;
}

header.scrolled .navbar {
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-right: 2.5rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background-color: var(--color-primary);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M 80,29 A 36,36 0 1 0 80,71 L 66,61 A 20,20 0 1 1 66,39 Z' fill='black'/%3E%3Ccircle cx='44' cy='50' r='7' fill='black'/%3E%3C/svg%3E") no-repeat center;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M 80,29 A 36,36 0 1 0 80,71 L 66,61 A 20,20 0 1 1 66,39 Z' fill='black'/%3E%3Ccircle cx='44' cy='50' r='7' fill='black'/%3E%3C/svg%3E") no-repeat center;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

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

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

.lang-switch {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  border-left: 1px solid var(--color-border);
  padding-left: 1.5rem;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  transition: var(--transition-smooth);
}

.lang-btn.active {
  color: var(--color-text-white);
  background-color: rgba(197, 168, 128, 0.15);
  border: 1px solid var(--color-border);
}

.lang-btn:hover:not(.active) {
  color: var(--color-primary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-text-white);
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: calc(80px + var(--aviso-height, 0px));
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(3, 10, 22, 0.6), rgba(3, 10, 22, 0.9)), var(--hero-bg-img, url('fotos y documentación/1.jpg')) no-repeat center center/cover;
  z-index: -1;
  transform: scale(1.05);
  animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.hero-content {
  max-width: 700px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  display: block;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

/* About Us Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.about-features {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
}

.feature-icon {
  color: var(--color-primary);
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.feature-title {
  font-weight: 600;
  color: var(--color-text-white);
  margin-bottom: 0.25rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  transition: var(--transition-smooth);
}

.gallery-img:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--color-primary);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.gallery-img:first-child {
  grid-column: span 2;
  height: 260px;
}

/* Products Section */
.products-intro {
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.product-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(197, 168, 128, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(197, 168, 128, 0.05);
}

.product-image-container {
  height: 350px;
  overflow: hidden;
  position: relative;
  background-color: #050d1a;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.product-tag {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background-color: var(--color-primary);
  color: #030a16;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  letter-spacing: 0.05em;
  border-radius: 2px;
}

.product-info {
  padding: 2.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-scientific {
  font-style: italic;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.product-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.product-description {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  flex-grow: 1;
}

.product-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
}

.detail-lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  display: block;
}

.detail-val {
  font-size: 0.95rem;
  color: var(--color-text-white);
  font-weight: 500;
}

/* Sustainability Section */
.sustainability-bg {
  background: linear-gradient(135deg, rgba(10, 20, 36, 0.95) 0%, rgba(3, 10, 22, 0.95) 100%);
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
}

.sustain-img-container {
  height: 100%;
  min-height: 450px;
  overflow: hidden;
  position: relative;
  border: 2px solid var(--color-border);
  transition: var(--transition-smooth);
}

.sustain-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.sustain-img-container:hover {
  border-color: var(--color-primary);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.sustain-img-container:hover .sustain-img {
  transform: scale(1.03);
}

.sustain-content {
  padding: 4rem;
}

.sustain-tag {
  color: var(--color-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: block;
}

.sustain-title {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.sustain-text {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.sustain-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-primary);
  display: block;
  line-height: 1.2;
}

.stat-lbl {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

/* Reviews Section */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

/* Vídeos de "Nuestro Proceso": 3 por fila, igual de alineados a la
   izquierda que el resto de secciones (Nuestra Historia, etc.). */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: left;
}

.videos-grid h4 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  min-height: 2.6em;
}

.videos-grid p {
  font-size: 0.9rem;
}

.review-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 3rem;
  border-radius: 4px;
  position: relative;
  transition: var(--transition-smooth);
}

.review-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--color-primary);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.review-card::before {
  content: '"';
  position: absolute;
  top: 1.5rem;
  left: 2.5rem;
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 1;
  color: rgba(197, 168, 128, 0.08);
}

.stars {
  color: var(--color-primary);
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.review-text {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.review-author {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-white);
  display: block;
}

.review-date {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.info-item {
  display: flex;
  gap: 1.5rem;
}

.info-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(197, 168, 128, 0.1);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.info-details h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.info-details p, .info-details a {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.info-details a:hover {
  color: var(--color-primary);
}

.contact-form {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 3rem;
  border-radius: 4px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  background-color: rgba(3, 10, 22, 0.5);
  border: 1px solid var(--color-border);
  padding: 0.85rem 1rem;
  border-radius: 4px;
  color: var(--color-text-white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(197, 168, 128, 0.1);
}

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

/* Modal spec sheet style */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(3, 10, 22, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 4px;
  position: relative;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--color-text-white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-smooth);
  z-index: 10;
}

.modal-close:hover {
  color: var(--color-primary);
  transform: rotate(90deg);
}

.modal-body {
  padding: 3rem;
}

.modal-body h3 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.modal-body .scientific {
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  display: block;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.spec-table th, .spec-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-table th {
  color: var(--color-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  width: 30%;
}

.spec-table td {
  color: var(--color-text);
  font-size: 0.95rem;
}

.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  background-color: rgba(3, 10, 22, 0.4);
  padding: 1.5rem;
  border-radius: 4px;
}

.nutrition-item {
  text-align: center;
}

.nutrition-val {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-primary);
  display: block;
}

.nutrition-lbl {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

/* Footer */
footer {
  background-color: #020710;
  border-top: 1px solid var(--color-border);
  padding: 5rem 0 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-top: 1rem;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 1px;
  background-color: var(--color-primary);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links a {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

/* Copyright fijo abajo, igual que el menú fijo arriba: se queda siempre
   visible al hacer scroll. Su altura real se mide en JS y se guarda en
   --footer-copyright-height, para que el pie de página deje ese hueco libre
   al final y no quede tapado detrás de esta barra. */
.footer-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background-color: rgb(3, 10, 22);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 2rem;
  box-sizing: border-box;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

.footer-social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  opacity: 0.75;
  transition: var(--transition-smooth);
}

.footer-social-icons a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-social-icons img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

footer {
  padding-bottom: calc(var(--footer-copyright-height, 56px) + 2rem);
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.subvenciones-wrapper {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.subvenciones-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 0 auto 1.25rem;
}

.subvenciones-logos img {
  width: auto;
  max-width: 260px;
  object-fit: contain;
}

.subvenciones-texto {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  text-align: justify;
  width: 100%;
  margin: 0 0 1rem;
}

.subvenciones-detalle {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  text-align: justify;
  width: 100%;
  margin: 0;
}

.subvenciones-detalle h5 {
  color: var(--color-text);
  font-size: 0.76rem;
  margin: 1rem 0 0.4rem;
  text-align: center;
}

.subvenciones-detalle p {
  margin-bottom: 0.6rem;
  text-align: center;
}

.footer-legal a:hover {
  color: var(--color-primary);
}

/* Scroll Animation classes */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Language Switch utility hidden states */
[lang="es"] :lang(en) { display: none !important; }
[lang="en"] :lang(es) { display: none !important; }

/* Responsive adjustments */
@media (max-width: 1366px) {
  header .navbar.container {
    padding: 0 2rem !important;
  }
  .logo {
    margin-right: 1.5rem !important;
  }
  .nav-links {
    gap: 1.25rem !important;
  }
}

@media (max-width: 1200px) {
  header .navbar.container {
    padding: 0 1.5rem !important;
  }
  .logo {
    margin-right: 1rem !important;
  }
  .logo-text {
    font-size: 1.3rem !important;
  }
  .nav-links {
    gap: 0.9rem !important;
  }
  .nav-links a {
    font-size: 0.85rem !important;
  }
  .lang-switch {
    padding-left: 0.8rem !important;
  }
}

@media (max-width: 1024px) {
  h2 { font-size: 2.2rem; }
  .about-grid, .products-grid, .sustainability-bg, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sustain-img-container { min-height: 300px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .nav-links {
    gap: 0.75rem !important;
  }
  .logo-text {
    font-size: 1.2rem !important;
  }
}

@media (max-width: 768px) {
  header .navbar.container {
    padding: 0 1.5rem !important;
  }
  header .navbar {
    height: 70px;
  }
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--color-bg);
    flex-direction: column;
    padding: 2.5rem 2rem;
    gap: 1.5rem;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--color-border);
    align-items: flex-start;
    overflow-y: auto;
    z-index: 1000;
  }
  
  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    font-size: 1.05rem;
    padding: 0.4rem 0;
  }
  
  .lang-switch {
    border-left: none;
    padding-left: 0;
    margin-top: 1.5rem;
    width: 100%;
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .hero p {
    font-size: 1.05rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .videos-grid {
    grid-template-columns: 1fr;
  }
  
  .sustain-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .nutrition-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

/* --- Cookie Consent Banner & Modal --- */
.cookie-banner-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  width: 90%;
  max-width: 1100px;
  background-color: rgba(10, 20, 36, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1.5rem 2.5rem;
  z-index: 150;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(197, 168, 128, 0.05);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner-container.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2.5rem;
}

.cookie-text {
  flex-grow: 1;
}

.cookie-text p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.cookie-text a {
  color: var(--color-primary);
  text-decoration: underline;
}

.cookie-text a:hover {
  color: var(--color-primary-hover);
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.btn-cookie {
  padding: 0.6rem 1.5rem;
  font-size: 0.8rem;
  border-radius: 4px;
}

/* Switches for settings modal */
.cookie-settings-content {
  max-width: 600px;
}

.cookie-option-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 2rem;
  text-align: left;
}

.cookie-option-item:last-of-type {
  border-bottom: none;
}

.cookie-option-info {
  flex-grow: 1;
}

.cookie-option-info p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
  font-weight: 300;
}

/* Custom Toggle Switch slider */
.switch-container {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  flex-shrink: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .4s;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--color-text-muted);
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: rgba(197, 168, 128, 0.2);
  border-color: var(--color-primary);
}

input:checked + .slider::before {
  transform: translateX(24px);
  background-color: var(--color-primary);
}

.slider.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.slider.disabled::before {
  background-color: rgba(255, 255, 255, 0.3);
}

/* --- Legal Pages CSS --- */
.legal-page-header {
  background: linear-gradient(rgba(3, 10, 22, 0.85), rgba(3, 10, 22, 0.98)), url('fotos y documentación/3.jpg') no-repeat center center/cover;
  padding: 12rem 0 5rem 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.legal-page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-content-container {
  max-width: 800px;
  margin: 4rem auto 8rem auto;
  padding: 0 2rem;
}

.legal-section-block {
  margin-bottom: 3.5rem;
}

.legal-section-block h3 {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 1.2rem;
  font-family: var(--font-serif);
  border-bottom: 1px solid rgba(197, 168, 128, 0.1);
  padding-bottom: 0.5rem;
  text-align: left;
}

.legal-section-block p {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  text-align: left;
}

.legal-section-block ul {
  list-style: none;
  margin: 1.2rem 0 1.5rem 1.5rem;
  text-align: left;
}

.legal-section-block li {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
}

.legal-section-block li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-size: 1.2rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  text-align: left;
}

.legal-table th, .legal-table td {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.legal-table th {
  background-color: rgba(197, 168, 128, 0.03);
  color: var(--color-primary);
  font-weight: 600;
  width: 30%;
}

.legal-table td {
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .cookie-banner-container {
    bottom: 1rem;
    padding: 1.5rem;
  }
  
  .cookie-banner-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .cookie-buttons {
    width: 100%;
    flex-direction: column;
  }
  
  .btn-cookie {
    width: 100%;
  }

  .legal-page-header h1 {
    font-size: 2.2rem;
  }
}

/* --- E-commerce Shopping Cart & Checkout --- */

/* Cart Header Badge */
.cart-wrapper {
  position: relative;
  list-style: none;
}

.cart-toggle-btn {
  background: none;
  border: none;
  color: var(--color-text-white);
  font-size: 1.25rem;
  cursor: pointer;
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  transition: var(--transition-smooth);
}

.cart-toggle-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: rgba(197, 168, 128, 0.05);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--color-primary);
  color: #030a16;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Product Card Purchase Section */
.product-purchase-control {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.2rem;
  text-align: left;
}

.price-display {
  margin-bottom: 1rem;
}

.price-val {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--color-primary);
  font-weight: 600;
}

.price-unit {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-left: 0.25rem;
}

.purchase-selectors {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.selector-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.selector-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.selector-control {
  background-color: rgba(3, 10, 22, 0.4) !important;
  border: 1px solid var(--color-border) !important;
  color: var(--color-text-white) !important;
  padding: 0.5rem 0.8rem !important;
  font-size: 0.88rem !important;
  height: 40px !important;
  border-radius: 4px !important;
}

.quantity-counter {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  height: 40px;
}

.qty-btn {
  background-color: rgba(255, 255, 255, 0.02);
  border: none;
  color: var(--color-text-white);
  width: 35px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.qty-btn:hover {
  background-color: rgba(197, 168, 128, 0.15);
  color: var(--color-primary);
}

.qty-input {
  background: none;
  border: none;
  color: var(--color-text-white);
  width: 100%;
  text-align: center;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.purchase-actions {
  display: flex;
  gap: 0.75rem;
}

.buy-btn {
  flex-grow: 1;
  height: 46px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
}

.info-btn-icon {
  width: 46px;
  height: 46px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border-radius: 4px;
}

/* Cart Drawer Panel */
.cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 250;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(3, 10, 22, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cart-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background-color: var(--color-surface);
  border-left: 1px solid var(--color-border);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active .cart-drawer-content {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-header h3 {
  font-size: 1.4rem;
}

.cart-close-btn {
  background: none;
  border: none;
  color: var(--color-text-white);
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.cart-close-btn:hover {
  color: var(--color-primary);
  transform: rotate(90deg);
}

.cart-drawer-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 2rem;
}

.cart-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-text-muted);
}

.cart-empty-state i {
  font-size: 3rem;
  color: var(--color-primary);
  opacity: 0.3;
  margin-bottom: 1rem;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Individual Cart Item */
.cart-item {
  display: flex;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  text-align: left;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  background-color: #050d1a;
  flex-shrink: 0;
}

.cart-item-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-title {
  font-weight: 600;
  color: var(--color-text-white);
  font-size: 0.95rem;
}

.cart-item-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.1rem;
}

.cart-item-price-qty {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.4rem;
}

.cart-item-price {
  color: var(--color-primary);
  font-weight: 500;
  font-size: 0.95rem;
}

.cart-item-qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  height: 26px;
}

.cart-item-qty-btn {
  background: none;
  border: none;
  color: var(--color-text-white);
  width: 24px;
  cursor: pointer;
  font-size: 0.85rem;
}

.cart-item-qty-btn:hover {
  color: var(--color-primary);
}

.cart-item-qty-val {
  font-size: 0.85rem;
  width: 24px;
  text-align: center;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.cart-item-remove:hover {
  color: #ea868f;
}

/* Cart Footer Summary */
.cart-drawer-footer {
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background-color: rgba(2, 7, 16, 0.8);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.total-row {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-white);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

.total-row #cart-total {
  color: var(--color-primary);
}

.checkout-action-btn {
  height: 48px;
  font-size: 0.9rem;
}

/* Checkout Modal Styling */
.checkout-modal-content {
  max-width: 760px;
}

.checkout-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  text-align: left;
}

.checkout-total-row {
  color: var(--color-text-white);
}

.checkout-item-summary {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
}

/* Modal spec scroll fixes */
@media (max-width: 768px) {
  .checkout-form-grid {
    grid-template-columns: 1fr;
  }
  .checkout-form-grid .form-group {
    grid-column: span 1 !important;
  }
}

/* --- Category Tabs Premium Design --- */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  padding: 0.4rem;
  background: rgba(10, 20, 36, 0.6);
  border: 1px solid rgba(197, 168, 128, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.tab-filter-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-filter-btn:hover {
  color: var(--color-primary);
  background-color: rgba(197, 168, 128, 0.08);
}

.tab-filter-btn.active {
  color: #030a16 !important;
  background-color: var(--color-primary) !important;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(197, 168, 128, 0.3);
}

@media (max-width: 768px) {
  .category-tabs {
    border-radius: 12px;
    width: 100%;
    padding: 0.6rem;
    gap: 0.4rem;
  }
  
  .tab-filter-btn {
    flex-grow: 1;
    text-align: center;
    padding: 0.6rem 0.8rem;
    font-size: 0.78rem;
    border-radius: 8px;
  }
  
  .tab-filter-btn.active {
    border-radius: 8px;
  }
}

/* --- Premium Auth Modal, Dropdowns & Password Strength Meter --- */
#auth-modal .modal-content, 
#checkout-modal .modal-content {
  background: rgba(10, 20, 36, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(197, 168, 128, 0.25);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(197, 168, 128, 0.1);
  border-radius: 6px;
}

.auth-tabs {
  border-bottom: 1px solid rgba(197, 168, 128, 0.15) !important;
}

.auth-tabs .tab-btn {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  padding: 0.8rem 0;
  transition: var(--transition-smooth);
}

.auth-tabs .tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-smooth);
}

.auth-tabs .tab-btn.active {
  color: var(--color-primary) !important;
}

.auth-tabs .tab-btn.active::after {
  width: 100%;
}

/* Form controls focus glow */
#auth-modal .form-control, 
#checkout-modal .form-control {
  background-color: rgba(3, 10, 22, 0.6);
  border: 1px solid rgba(197, 168, 128, 0.15);
  color: var(--color-text-white);
  transition: var(--transition-smooth);
}

#auth-modal .form-control:focus, 
#checkout-modal .form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(197, 168, 128, 0.25);
  background-color: rgba(3, 10, 22, 0.8);
}

/* User Logged Menu Hover Dropdown styling */
.user-dropdown-menu a {
  transition: var(--transition-smooth);
}

.user-dropdown-menu a:hover {
  background-color: rgba(197, 168, 128, 0.08);
  padding-left: 1.25rem !important;
  color: var(--color-primary) !important;
}

/* Password strength indicator bar styling */
.password-strength-bar {
  height: 4px;
  border-radius: 2px;
  background-color: rgba(255, 255, 255, 0.1);
  margin-top: 0.5rem;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.password-strength-bar-fill {
  height: 100%;
  width: 0;
  transition: var(--transition-smooth);
}

.password-strength-text {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: block;
  text-align: right;
  transition: var(--transition-smooth);
}

/* Checkout authentication alert hover transition */
.checkout-auth-alert {
  transition: var(--transition-smooth);
  animation: glowPulse 3s infinite alternate;
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 5px rgba(197, 168, 128, 0.05);
    border-color: rgba(197, 168, 128, 0.3);
  }
  100% {
    box-shadow: 0 0 15px rgba(197, 168, 128, 0.15);
    border-color: var(--color-primary);
  }
}

/* ==========================================
   ESTILOS DE PASARELA DE PAGO Y ÁREA DE CLIENTE
   ========================================== */

/* Tarjeta de Crédito 3D Estilizada */
.credit-card-view {
  background: linear-gradient(135deg, #12223a 0%, #061120 100%);
  border: 1px solid var(--color-primary) !important;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.credit-card-view:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(197, 168, 128, 0.15);
}

/* Spinner de carga */
.spinner {
  border: 4px solid rgba(255, 255, 255, 0.05);
  border-left-color: var(--color-primary) !important;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Tabla del Historial de Pedidos */
.orders-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.orders-table th {
  background-color: rgba(255, 255, 255, 0.02) !important;
  color: var(--color-primary) !important;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.orders-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  color: var(--color-text-white);
  vertical-align: middle;
}

.orders-table tbody tr:hover {
  background-color: rgba(197, 168, 128, 0.02);
}

/* Estado de Pago Confirmado */
.status-badge.status-pagado {
  background-color: rgba(40, 167, 69, 0.12) !important;
  color: #2e7d32 !important;
  border: 1px solid rgba(40, 167, 69, 0.3) !important;
}

/* Controles de Búsqueda y Filtrado */
.search-filters-bar select.form-control,
.search-filters-bar input.form-control {
  height: 44px !important;
  background-color: #050e1b !important;
  border: 1px solid var(--color-border) !important;
  color: var(--color-text-white) !important;
  font-size: 0.9rem !important;
  transition: var(--transition-smooth);
}

.search-filters-bar select.form-control:focus,
.search-filters-bar input.form-control:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 10px rgba(197, 168, 128, 0.2) !important;
}

/* ==============================================================================
   ESTILOS DEL GESTOR DE CONTENIDOS (CMS CORPORATIVO)
   Responsabilidad: Estilar elementos interactivos de las 22 secciones CMS.
   ============================================================================== */
.cms-items-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.cms-item-card {
  background-color: rgba(3, 10, 22, 0.4);
  border: 1px solid var(--color-luxury-border, rgba(197, 168, 128, 0.15));
  border-radius: 6px;
  padding: 1.25rem;
  transition: all 0.2s ease;
}

.cms-item-card:hover {
  border-color: var(--color-luxury-gold, #c5a880);
}

/* ==============================================================================
   LIGHTBOX DE IMÁGENES (fotos de producto y galería de "Nuestro Proceso")
   ============================================================================== */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 3000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(3, 10, 22, 0.95);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-content-wrapper {
  position: relative;
  max-width: 90%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(197, 168, 128, 0.3);
}

.lightbox-caption {
  color: #fff;
  font-size: 1.1rem;
  margin-top: 1rem;
  font-weight: 500;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.lightbox-close:hover {
  color: var(--color-primary);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(3, 10, 22, 0.5);
  border: 1px solid rgba(197, 168, 128, 0.4);
  color: #fff;
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lightbox-nav:hover {
  background-color: var(--color-primary);
  color: #030a16;
}

.lightbox-prev {
  left: -60px;
}

.lightbox-next {
  right: -60px;
}

@media (max-width: 768px) {
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}




