/* guia-tallas.css - Versión completa, optimizada y lista para producción */
/* MEDALLO Jeans - Guía de Tallas Interactiva */

:root {
  --denim-dark: #0f172a;
  --gold-primary: #f59e0b;
  --rose-accent: #ec4899;
  --light-bg: #f8fafc;
  --error-color: #ef4444;
  --success-color: #10b981;
  --info-color: #3b82f6;
}

/* === HEADER === */
header {
  background: linear-gradient(180deg, var(--denim-dark) 0%, #ddd 90%);
  color: #ddd;
  padding: 20px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-content { 
  position: relative; 
  z-index: 2; 
  max-width: 1200px; 
  margin: 0 auto; 
}

.logo { 
  font-size: 1.8rem; 
  font-weight: 800; 
  letter-spacing: 1px; 
  color: #fff; 
  text-decoration: none; 
  display: inline-flex; 
  align-items: center; 
  margin-bottom: 15px; 
}

.logo span { 
  color: #e2001a; 
  font-size: 22px; 
  font-style: italic; 
  font-family: 'Montserrat', sans-serif; 
  margin-left: 8px; 
  font-weight: 700; 
}

header h1 { 
  font-size: 1.4rem; 
  margin: 0 0 10px; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
  background: linear-gradient(90deg, #fff 0%, #e0e0e0 100%); 
  -webkit-background-clip: text; 
  background-clip: text; 
  color: transparent; 
}

.subtitle { 
  font-size: 0.95rem; 
  font-weight: 400; 
  max-width: 700px; 
  margin: 0 auto 20px; 
  color: #ccc; 
}

.premium-badge { 
  display: inline-block; 
  background: linear-gradient(135deg, #d4af37 0%, #f9e076 100%); 
  color: #000; 
  padding: 8px 20px; 
  border-radius: 30px; 
  font-weight: 700; 
  text-transform: uppercase; 
  font-size: 0.9rem; 
  letter-spacing: 1px; 
  margin: 10px 0; 
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4); 
}

/* === CONTENEDOR PRINCIPAL === */
.size-guide-container { 
  max-width: 1000px; 
  margin: 2rem auto; 
  font-family: 'Montserrat', sans-serif; 
  padding: 0 1rem; 
}

.size-guide-header { 
  text-align: center; 
  margin-bottom: 2rem; 
}

.size-guide-header h1 { 
  color: var(--denim-dark); 
  font-size: 2.2rem; 
  margin-bottom: 0.5rem; 
}

.size-guide-header p { 
  color: #64748b; 
  max-width: 700px; 
  margin: 0 auto 1.5rem; 
  line-height: 1.6; 
}

/* === INPUTS DE MEDIDA === */
.measure-inputs { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 1.5rem; 
  margin-bottom: 2rem; 
  background: white; 
  padding: 2rem; 
  border-radius: 12px; 
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); 
}

@media (min-width: 768px) { 
  .measure-inputs { 
    grid-template-columns: 1fr 1fr; 
  } 
}

.measure-group { 
  position: relative; 
}

.measure-group h3 { 
  color: var(--denim-dark); 
  margin-bottom: 1rem; 
  font-size: 1.1rem; 
  display: flex; 
  align-items: center; 
}

.measure-group h3 .tooltip { 
  margin-left: 0.5rem; 
  cursor: help; 
}

.range-slider { 
  width: 100%; 
  margin: 1.5rem 0 0.5rem; 
  -webkit-appearance: none; 
  height: 10px; 
  background: #e2e8f0; 
  border-radius: 5px; 
  outline: none; 
}

.range-slider::-webkit-slider-thumb { 
  -webkit-appearance: none; 
  width: 24px; 
  height: 24px; 
  border-radius: 50%; 
  background: var(--gold-primary); 
  cursor: pointer; 
  border: 4px solid white; 
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); 
  transition: transform 0.2s ease; 
}

.range-slider::-webkit-slider-thumb:hover { 
  transform: scale(1.1); 
}

.range-slider::-moz-range-thumb { 
  width: 24px; 
  height: 24px; 
  border-radius: 50%; 
  background: var(--gold-primary); 
  cursor: pointer; 
  border: 4px solid white; 
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); 
}

.range-value { 
  position: absolute; 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%); 
  background: var(--denim-dark); 
  color: white; 
  padding: 0.5rem 1rem; 
  border-radius: 20px; 
  font-weight: 600; 
  font-size: 0.9rem; 
  min-width: 80px; 
  text-align: center; 
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
}

.range-labels { 
  display: flex; 
  justify-content: space-between; 
  margin-top: 0.5rem; 
  color: #64748b; 
  font-size: 0.8rem; 
}

/* === BOTÓN CALCULAR === */
.calculate-btn { 
  display: block; 
  width: 100%; 
  max-width: 300px; 
  margin: 0 auto 2rem; 
  padding: 1rem; 
  background: var(--denim-dark); 
  color: white; 
  border: none; 
  border-radius: 8px; 
  font-size: 1rem; 
  font-weight: 600; 
  cursor: pointer; 
  transition: all 0.3s ease; 
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
}

.calculate-btn:hover { 
  background: #1e293b; 
  transform: translateY(-2px); 
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); 
}

.calculate-btn:active { 
  transform: translateY(0); 
}

/* === RESULTADOS === */
.result-container { 
  margin: 2rem 0; 
  padding: 2rem; 
  background: white; 
  border-radius: 12px; 
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); 
  text-align: center; 
  display: none; 
  animation: fadeIn 0.5s ease; 
}

@keyframes fadeIn { 
  from { opacity: 0; transform: translateY(10px); } 
  to { opacity: 1; transform: translateY(0); } 
}

.result-container h3 { 
  color: var(--denim-dark); 
  margin-bottom: 1rem; 
  font-size: 1.5rem; 
}

.size-result { 
  font-size: 2.5rem; 
  font-weight: 700; 
  color: var(--gold-primary); 
  margin: 0 0.5rem; 
  display: inline-block; 
}

.compatibility-score { 
  display: inline-block; 
  background: var(--success-color); 
  color: white; 
  padding: 0.3rem 0.8rem; 
  border-radius: 20px; 
  font-size: 0.9rem; 
  margin-left: 0.5rem; 
  vertical-align: middle; 
}

.result-details { 
  display: flex; 
  justify-content: center; 
  gap: 1.5rem; 
  margin-top: 1.5rem; 
  flex-wrap: wrap; 
}

.result-detail { 
  background: var(--light-bg); 
  padding: 0.8rem 1.5rem; 
  border-radius: 8px; 
  font-size: 0.9rem; 
  min-width: 120px; 
}

.result-detail strong { 
  color: var(--denim-dark); 
  display: block; 
  margin-bottom: 0.3rem; 
  font-size: 0.8rem; 
}

/* === TABLA DE TALLAS === */
.size-table-container { 
  background: white; 
  padding: 2rem; 
  border-radius: 12px; 
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); 
  overflow-x: auto; 
  margin-top: 2rem; 
}

.size-table { 
  width: 100%; 
  border-collapse: collapse; 
  margin-top: 1rem; 
  min-width: 700px; 
}

.size-table th { 
  background: var(--denim-dark); 
  color: white; 
  padding: 12px; 
  text-align: left; 
  font-weight: 500;
  font-size: 12px !important; 
}

.size-table td { 
  padding: 12px; 
  border-bottom: 1px solid #eee; 
  text-align: left; 
  font-size: 12px !important;
}

.size-table tr:nth-child(even) { 
  background: var(--light-bg); 
}

.highlight { 
  background: rgba(245, 158, 11, 0.15) !important; 
  font-weight: bold; 
  position: relative; 
  border-left: 3px solid var(--gold-primary); 
}

.highlight::after {
  content: "check Ideal";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--success-color);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem !important;
}

/* === CONSEJOS DE AJUSTE === */
.fit-tips { 
  margin-top: 2rem; 
  background: #f0fdf4; 
  padding: 1.5rem; 
  border-radius: 8px; 
  border-left: 4px solid var(--success-color); 
  text-align: left; 
}

.fit-tips h4 { 
  color: var(--denim-dark); 
  margin-top: 0; 
  margin-bottom: 0.8rem; 
  font-size: 1.1rem; 
  display: flex; 
  align-items: center; 
}

.fit-tips h4 svg { 
  margin-right: 0.5rem; 
  color: var(--success-color); 
}

.fit-tips ul { 
  margin: 0; 
  padding-left: 1.2rem; 
}

.fit-tips li { 
  margin-bottom: 0.5rem; 
  line-height: 1.5; 
}

/* === MENSAJE DE ERROR === */
.error-message { 
  color: var(--error-color); 
  text-align: center; 
  margin: 1rem 0; 
  font-weight: 500; 
  display: none; 
  padding: 1rem; 
  background: #fef2f2; 
  border-radius: 8px; 
}

/* === CÓMO MEDIR === */
.how-to-measure { 
  margin-top: 3rem; 
  background: #f8fafc; 
  padding: 2rem; 
  border-radius: 12px; 
}

.how-to-measure h2 { 
  color: var(--denim-dark); 
  margin-top: 0; 
  text-align: center; 
  font-size: 1.5rem; 
}

.measure-steps { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 1.5rem; 
  margin-top: 1.5rem; 
}

@media (min-width: 768px) { 
  .measure-steps { 
    grid-template-columns: 1fr 1fr; 
    gap: 2rem; 
  } 
}

.measure-step { 
  display: flex; 
  gap: 1rem; 
  align-items: flex-start; 
}

.step-number { 
  background: var(--gold-primary); 
  color: white; 
  width: 30px; 
  height: 30px; 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-weight: bold; 
  flex-shrink: 0; 
  font-size: 0.9rem; 
}

.step-content h4 { 
  margin-top: 0; 
  margin-bottom: 0.5rem; 
  color: var(--denim-dark); 
}

.step-content p { 
  margin: 0; 
  color: #64748b; 
  line-height: 1.6; 
  font-size: 0.9rem; 
}

.measure-visual img { 
  max-width: 100%; 
  height: auto; 
  border-radius: 8px; 
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
}

/* === CTA SECTION === */
.cta-section { 
  text-align: center; 
  margin-top: 3rem; 
  padding: 2.5rem; 
  background: linear-gradient(135deg, var(--denim-dark), #1e293b); 
  color: white; 
  border-radius: 12px; 
}

.cta-section h2 { 
  margin-top: 0; 
  font-size: 1.8rem; 
  margin-bottom: 0.5rem; 
}

.cta-section p { 
  max-width: 600px; 
  margin: 0 auto 1.5rem; 
  opacity: 0.9; 
}

.cta-button { 
  display: inline-block; 
  padding: 1rem 2rem; 
  background: var(--gold-primary); 
  color: var(--denim-dark); 
  font-weight: 600; 
  text-decoration: none; 
  border-radius: 8px; 
  margin-top: 1rem; 
  transition: all 0.3s ease; 
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
}

.cta-button:hover { 
  background: #fbbf24; 
  transform: translateY(-2px); 
  box-shadow: 0 6px 12px rgba(245, 158, 11, 0.3); 
}

/* === GRÁFICO DE COMPATIBILIDAD === */
.compatibility-chart { 
  margin: 2rem 0; 
  display: flex; 
  flex-direction: column; 
  gap: 0.5rem; 
}

.size-match { 
  display: flex; 
  align-items: center; 
  gap: 1rem; 
}

.size-label { 
  width: 50px; 
  font-weight: 600; 
}

.match-bar { 
  flex-grow: 1; 
  height: 20px; 
  background: #e2e8f0; 
  border-radius: 10px; 
  overflow: hidden; 
  position: relative; 
}

.match-progress { 
  height: 100%; 
  background: linear-gradient(90deg, var(--gold-primary), var(--rose-accent)); 
  width: 0%; 
  transition: width 1s ease; 
}

.match-percent { 
  position: absolute; 
  right: 10px; 
  top: 50%; 
  transform: translateY(-50%); 
  font-size: 0.7rem; 
  color: var(--denim-dark); 
}

/* === TOOLTIP === */
.tooltip-icon { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  width: 18px; 
  height: 18px; 
  background: var(--denim-dark); 
  color: white; 
  border-radius: 50%; 
  font-size: 0.7rem; 
  cursor: help; 
  margin-left: 0.5rem; 
}

.tooltip-box { 
  display: none; 
  position: absolute; 
  background: var(--denim-dark); 
  color: white; 
  padding: 0.8rem; 
  border-radius: 6px; 
  z-index: 100; 
  max-width: 250px; 
  font-size: 0.8rem; 
  line-height: 1.4; 
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); 
}

.tooltip:hover .tooltip-box { 
  display: block; 
}

/* === SILUETA EN VIVO === */
.body-visualization { 
  margin: 2rem 0; 
  padding: 1.5rem; 
  background: white; 
  border-radius: 12px; 
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); 
  text-align: center; 
}

.silhouette-container { 
  position: relative; 
  max-width: 260px; 
  margin: 0 auto; 
}

.body-silhouette { 
  width: 100%; 
  height: auto; 
  border-radius: 8px; 
  box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
}

#measurement-labels { 
  position: absolute; 
  bottom: 15px; 
  left: 0; 
  right: 0; 
  display: flex; 
  justify-content: center; 
  gap: 8px; 
  flex-wrap: wrap; 
  padding: 0 10px; 
}

.measurement-label { 
  background: #ec4899; 
  color: white; 
  padding: 6px 12px; 
  border-radius: 20px; 
  font-size: 12px; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
}

.measurement-label .measurement-value { 
  font-weight: bold; 
  font-size: 14px; 
}

.measurement-label .measurement-name { 
  font-size: 10px; 
  opacity: 0.9; 
}

.hip-label { background: #3b82f6; }
.height-label { background: #10b981; }

.body-type-description { 
  margin-top: 1rem; 
  padding: 1rem; 
  background: #f8fafc; 
  border-radius: 8px; 
  text-align: left; 
  max-width: 500px; 
  margin-left: auto; 
  margin-right: auto; 
  border-left: 4px solid #f59e0b; 
  font-size: 0.9rem; 
}

.body-type { 
  font-weight: 600; 
  color: #f59e0b; 
}

/* === WHATSAPP SHARE === */
.whatsapp-share-container { 
  margin-top: 2rem; 
  text-align: center; 
  display: none; 
}

.whatsapp-share-btn { 
  display: inline-flex; 
  align-items: center; 
  gap: 10px; 
  background: #25D366; 
  color: white; 
  padding: 12px 24px; 
  border-radius: 50px; 
  font-weight: 600; 
  text-decoration: none; 
  font-size: 1rem; 
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3); 
  transition: all 0.3s ease; 
}

.whatsapp-share-btn:hover { 
  background: #128C7E; 
  transform: translateY(-2px); 
}

/* === ANIMACIÓN LIVE HINT === */
@keyframes bounce { 
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 
  40% { transform: translateY(-10px); } 
  60% { transform: translateY(-5px); } 
}

.live-hint { 
  text-align: center; 
  margin: 1rem 0; 
  font-size: 0.8rem; 
  color: var(--gold-primary); 
  font-weight: 600; 
}

.live-hint i { 
  animation: bounce 2s infinite; 
}

/* === ENLACES === */
a { 
  color: black; 
  font-weight: bold; 
  text-decoration: none; 
}

a:hover { 
  text-decoration: underline; 
}

/* === LIVE SILHOUETTE RESPONSIVE === */
.live-silhouette {
  width: 260px;
  height: 400px;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 2rem auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
}

@media (max-width: 768px) {
  .size-guide-header h1 { font-size: 1.8rem; }
  .measure-inputs { padding: 1.5rem; }
  .result-container { padding: 1.5rem; }
  .result-details { gap: 1rem; }
  .result-detail { min-width: 100px; padding: 0.8rem 1rem; }
  .live-silhouette { width: 220px; height: 338px; }
}

@media (max-width: 480px) {
  .live-silhouette { width: 200px !important; height: 308px !important; }
}

/* === NAVEGACIÓN MÓVIL === */
.mobile-bottom-nav { 
  position: fixed; 
  bottom: 0; 
  left: 0; 
  width: 100%; 
  background: #ffffff; 
  border-top: 1px solid #ddd; 
  display: flex; 
  justify-content: space-around; 
  align-items: center; 
  padding: 10px 0; 
  z-index: 9999; 
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05); 
}

.mobile-bottom-nav a { 
  flex: 1; 
  text-align: center; 
  text-decoration: none; 
  color: var(--denim-dark); 
  font-size: 0.6rem; 
  position: relative; 
  transition: color 0.3s; 
  padding: 0.5rem 0; 
}

.mobile-bottom-nav a:hover { 
  color: var(--gold-primary); 
}

.mobile-bottom-nav i { 
  font-size: 22px; 
  display: block; 
  margin-bottom: 0.3rem; 
}

.mobile-bottom-nav .badge { 
  position: absolute; 
  top: 0.2rem; 
  right: 20%; 
  background: var(--rose-accent); 
  color: #fff; 
  font-size: 0.6rem; 
  padding: 0.1rem 0.4rem; 
  border-radius: 10px; 
  font-weight: bold; 
}

@media (min-width: 769px) { 
  .mobile-bottom-nav { display: none; } 
}
/* FAQ SECTION */
.faq-section {
  margin: 3rem 0;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.faq-section h2 {
  text-align: center;
  color: var(--denim-dark);
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
}

.faq-question {
  background: var(--light-bg);
  padding: 1rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--denim-dark);
  font-size: 1rem;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #fef3c7;
}

.faq-icon {
  color: var(--gold-primary);
  transition: transform 0.3s ease;
  font-size: 0.9rem;
}

details[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 1.5rem;
  background: white;
  line-height: 1.6;
  color: #4b5563;
}

.faq-answer p {
  margin: 0 0 0.8rem;
}

.faq-answer ul {
  margin: 0.8rem 0;
  padding-left: 1.2rem;
}

.faq-answer li {
  margin-bottom: 0.4rem;
}

.faq-answer a {
  color: var(--gold-primary);
  text-decoration: none;
  font-weight: 600;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .faq-question {
    font-size: 0.95rem;
    padding: 1rem;
  }
  .faq-answer {
    padding: 1.2rem;
  }
}
/* ÍNDICE DE NAVEGACIÓN */
.table-of-contents {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin: 2rem auto;
  max-width: 1000px;
  border-left: 4px solid var(--gold-primary);
}

.toc-title {
  font-size: 1.4rem;
  color: var(--denim-dark);
  margin: 0 0 1rem;
  text-align: center;
  font-weight: 700;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
}

.toc-link {
  display: block;
  padding: 0.8rem 1rem;
  background: var(--light-bg);
  color: var(--denim-dark);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.toc-link:hover {
  background: var(--gold-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(245, 158, 11, 0.2);
}

.toc-link::before {
  content: "→";
  margin-right: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.toc-link:hover::before {
  opacity: 1;
}

/* Scroll suave */
html {
  scroll-behavior: smooth;
}

/* Resaltado al hacer scroll (opcional con JS) */
.toc-link.active {
  background: var(--denim-dark);
  color: white;
  font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
  .toc-list {
    grid-template-columns: 1fr;
  }
  .toc-title {
    font-size: 1.3rem;
  }
}
/* BREADCRUMBS */
.breadcrumbs {
  background: #f8fafc;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin: 1rem auto;
  max-width: 1000px;
  font-size: 0.9rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.breadcrumb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  margin: 0 0.6rem;
  color: #64748b;
  font-weight: bold;
}

.breadcrumb-link {
  color: var(--denim-dark);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: var(--gold-primary);
}

.breadcrumb-link i {
  font-size: 0.9rem;
  color: var(--gold-primary);
}

.breadcrumb-item.active span {
  color: var(--denim-dark);
  font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
  .breadcrumbs {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }
  .breadcrumb-item + .breadcrumb-item::before {
    margin: 0 0.4rem;
  }
}
/* BOTÓN VOLVER ARRIBA */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  z-index: 999;
  background: var(--gold-primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  transform: translateY(10px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #d97706;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.back-to-top i {
  animation: float 2s ease-in-out infinite;
}

/* Animación suave de flecha */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Mobile: más pequeño */
@media (max-width: 768px) {
  .back-to-top {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    bottom: 1.5rem;
    right: 1rem;
  }
}