/* ===================================================
   LEMM JOYAS - Guía de Talles (Estilos y Calculador)
   =================================================== */

:root {
  --guide-emerald-soft: rgba(10, 58, 42, 0.05);
  --guide-gold-soft: rgba(197, 160, 89, 0.12);
  --guide-border: rgba(10, 58, 42, 0.1);
  --guide-accent: #C5A059;
}

/* Hero Section Guía */
.guide-hero {
  background: linear-gradient(135deg, #0A3A2A 0%, #165c45 60%, #082d20 100%);
  color: #FFFFFF;
  padding: 60px 20px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.guide-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.guide-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.guide-hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.guide-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(197, 160, 89, 0.22);
  color: #f7e7c4;
  border: 1px solid rgba(197, 160, 89, 0.45);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 20px;
}

.guide-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 16px;
  font-weight: 600;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.guide-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 300;
}

/* Contenedor Principal */
.guide-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px 80px;
}

/* Tarjeta Resumen Rápido (Estilo imagen 2) */
.quick-table-card {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(197, 160, 89, 0.25);
  padding: 35px 30px;
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
}

.quick-table-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--emerald);
}

.quick-table-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
  border-bottom: 1px solid #f0ede6;
  padding-bottom: 15px;
}

.quick-table-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  color: var(--emerald);
  margin: 0;
}

.quick-table-badge {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.quick-table-scroll {
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.quick-summary-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 650px;
  border: 1px solid #e9e4dc;
  border-radius: 12px;
  overflow: hidden;
}

.quick-summary-table th,
.quick-summary-table td {
  padding: 14px 18px;
  text-align: center;
  border-right: 1px solid #e9e4dc;
  border-bottom: 1px solid #e9e4dc;
}

.quick-summary-table th:last-child,
.quick-summary-table td:last-child {
  border-right: none;
}

.quick-summary-table tr:last-child td {
  border-bottom: none;
}

.quick-summary-table th {
  background-color: var(--emerald);
  color: #FFFFFF;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.quick-summary-table .row-header {
  background-color: #faf8f5;
  color: var(--emerald);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  font-size: 0.9rem;
}

.quick-summary-table .val-cell {
  font-size: 0.95rem;
  font-weight: 500;
  color: #333333;
  transition: background-color 0.2s;
}

.quick-summary-table tr:hover td.val-cell {
  background-color: #fdfbf7;
}

.quick-table-footer {
  margin-top: 15px;
  font-size: 0.82rem;
  color: #777777;
  font-style: italic;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Calculadora Interactiva de Talles */
.size-calculator {
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 12px 35px rgba(10, 58, 42, 0.08);
  border: 1px solid #e6e0d5;
  padding: 40px;
  margin-bottom: 60px;
  position: relative;
}

.calc-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 30px;
}

.calc-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--emerald);
  margin-bottom: 8px;
}

.calc-header p {
  color: #666666;
  font-size: 0.95rem;
}

.calc-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.calc-tab-btn {
  background: #f4f1ea;
  border: 1px solid #ded7ca;
  color: #4a4a4a;
  padding: 12px 24px;
  border-radius: 30px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.calc-tab-btn:hover {
  background: #eae4d8;
  color: var(--emerald);
}

.calc-tab-btn.active {
  background: var(--emerald);
  color: #FFFFFF;
  border-color: var(--emerald);
  box-shadow: 0 4px 14px rgba(10, 58, 42, 0.25);
}

.calc-tab-content {
  display: none;
  animation: fadeIn 0.35s ease;
}

.calc-tab-content.active {
  display: block;
}

.calc-card-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.calc-input-pane {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.calc-val-display {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--emerald);
}

.calc-range {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #e2dbce;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
  accent-color: var(--emerald);
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease;
}

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

.calc-quick-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.calc-quick-btn {
  background: #faf8f5;
  border: 1px solid #ded7ca;
  color: #4a4a4a;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.calc-quick-btn:hover,
.calc-quick-btn.active {
  background: var(--gold);
  color: #FFFFFF;
  border-color: var(--gold);
}

/* Panel de Resultado del Calculador */
.calc-result-box {
  background: linear-gradient(135deg, #faf8f5 0%, #f4ede0 100%);
  border: 2px solid rgba(197, 160, 89, 0.4);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.6);
}

.calc-result-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 8px;
}

.calc-result-talle {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--emerald);
  line-height: 1;
  margin-bottom: 10px;
}

.calc-result-details {
  font-size: 0.95rem;
  color: #444444;
  margin-bottom: 20px;
  line-height: 1.4;
}

.calc-result-action {
  background: var(--emerald);
  color: #FFFFFF;
  border: none;
  padding: 12px 25px;
  border-radius: 30px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(10, 58, 42, 0.2);
}

.calc-result-action:hover {
  background: var(--emerald-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(10, 58, 42, 0.3);
}

/* Grilla de Métodos (Estilo Imagen 3) */
.methods-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.methods-section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: var(--emerald);
  margin-bottom: 12px;
}

.methods-section-header p {
  color: #666666;
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto;
}

.methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.method-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 35px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid #eae5db;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.method-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.method-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--emerald);
  color: #FFFFFF;
  border-radius: 50%;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.method-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--emerald);
  margin-bottom: 15px;
  line-height: 1.3;
}

.method-desc {
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.65;
  margin-bottom: 25px;
}

.method-desc strong {
  color: var(--text-dark);
}

/* Gráficos Ilustrativos SVG */
.method-graphic {
  background: #faf8f5;
  border: 1px dashed rgba(197, 160, 89, 0.4);
  border-radius: 12px;
  padding: 25px 20px;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 190px;
}

.method-graphic svg {
  max-width: 100%;
  height: auto;
}

.method-graphic-caption {
  font-size: 0.8rem;
  color: #777777;
  margin-top: 10px;
  text-align: center;
  font-style: italic;
}

/* Tablas Detalladas por Método */
.method-table-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--emerald);
  margin-bottom: 15px;
  text-align: center;
}

.guide-detailed-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin-top: auto;
}

.guide-detailed-table th {
  background-color: #faf7f2;
  color: var(--emerald);
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 2px solid rgba(197, 160, 89, 0.3);
  text-align: left;
}

.guide-detailed-table th:last-child {
  text-align: right;
}

.guide-detailed-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f0ede8;
  color: #333333;
}

.guide-detailed-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--emerald);
}

.guide-detailed-table tr:hover td {
  background-color: #fbf9f6;
}

/* Sub-grilla para Método 2 (2 columnas de talles) */
.method2-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.method2-col {
  display: flex;
  flex-direction: column;
}

/* Consejos / Tips LEMM */
.guide-tips-box {
  background: #faf8f5;
  border-radius: 16px;
  border: 1px solid #e7e0d3;
  padding: 40px;
  margin-bottom: 50px;
}

.guide-tips-header {
  text-align: center;
  margin-bottom: 30px;
}

.guide-tips-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--emerald);
  margin-bottom: 8px;
}

.guide-tips-header p {
  color: #666666;
  font-size: 0.95rem;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.tip-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 24px 20px;
  border: 1px solid #ebe5da;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tip-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--guide-gold-soft);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.tip-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
}

.tip-desc {
  font-size: 0.88rem;
  color: #666666;
  line-height: 1.5;
}

/* Banner CTA & WhatsApp */
.guide-cta-banner {
  background: linear-gradient(135deg, #0A3A2A 0%, #165c45 100%);
  color: #FFFFFF;
  border-radius: 20px;
  padding: 50px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(10, 58, 42, 0.2);
}

.guide-cta-banner h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.guide-cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1rem;
}

.guide-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-catalog-cta {
  background: var(--gold);
  color: #FFFFFF;
  border: none;
  padding: 14px 30px;
  border-radius: 30px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-catalog-cta:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(197, 160, 89, 0.4);
}

.btn-whatsapp-cta {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 14px 30px;
  border-radius: 30px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-whatsapp-cta:hover {
  background: #25D366;
  border-color: #25D366;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

/* Enlace directo a Guía en Ficha de Producto */
.pd-size-guide-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--emerald);
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
  background: transparent;
  border: none;
  padding: 0;
}

.pd-size-guide-btn:hover {
  color: var(--gold);
}

/* Responsive */
@media (max-width: 900px) {
  .methods-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .calc-card-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

@media (max-width: 600px) {
  .guide-title {
    font-size: 2.1rem;
  }

  .guide-hero {
    padding: 40px 15px 35px;
  }

  .guide-container {
    padding: 30px 15px 60px;
  }

  .quick-table-card,
  .size-calculator,
  .method-card,
  .guide-tips-box {
    padding: 24px 18px;
  }

  .method2-two-cols {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .calc-result-talle {
    font-size: 2.8rem;
  }

  .guide-cta-banner {
    padding: 35px 20px;
  }
}

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