/* ========================================
   DISEÑO COMPARADOR DE ESTILOS :D
   ======================================== */
.style-comparison-section.hybrid {
  margin: 0 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

.style-comparison-section.hybrid .section-title {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  text-align: center;
  color: #2c3e50;
}

/* Container de las cards */
.comparison-container-hybrid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

/* ========================================
   DISEÑO HORIZONTAL PARA DESKTOP
   ======================================== */
@media (min-width: 769px) {
  .style-card-horizontal {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2rem;
    align-items: center;
    padding: 1.75rem 2rem;
    background: #ffffff;
    border: 1.5px solid #e8e8e8;
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
    overflow: visible;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  }

  .style-card-horizontal::before {
    display: none;
  }

  .style-card-horizontal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border-color: #d4a574;
  }

  /* HOVER DEL CÍRCULO SINCRONIZADO CON EL GRID */
  .style-card-horizontal:hover .style-image-circle {
    transform: scale(1.05);
    border-color: #d4a574;
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.2);
  }

  .style-visual-h {
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-shrink: 0;
  }

  .style-info-h {
    flex: 1;
    min-width: 0;
    text-align: left;
  }

  .style-heading-h {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* ========================================
   DISEÑO VERTICAL APPLE PARA MÓVIL
   ======================================== */
@media (max-width: 768px) {
  .style-comparison-section.hybrid .section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .comparison-container-hybrid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .style-card-horizontal {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: #ffffff;
    border: 1.5px solid #e8e8e8;
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    -webkit-tap-highlight-color: transparent;
  }

  .style-card-horizontal::before {
    display: none;
  }

  .style-card-horizontal:hover,
  .style-card-horizontal:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border-color: #d4a574;
  }

  /* HOVER DEL CÍRCULO SINCRONIZADO EN MÓVIL */
  .style-card-horizontal:hover .style-image-circle,
  .style-card-horizontal:active .style-image-circle {
    transform: scale(1.05);
    border-color: #d4a574;
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.2);
  }

  .style-visual-h {
    width: 110px;
    height: 110px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 1.25rem;
    z-index: 1;
  }

  .style-info-h {
    width: 100%;
    text-align: center;
  }

  .style-heading-h {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .style-heading-h a {
    font-size: 1.3rem;
  }

  .style-description-h {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

/* ========================================
   ESTILOS COMUNES (Desktop + Mobile)
   ======================================== */

/* ENLACE DE IMAGEN - CRUCIAL PARA QUE SEA CLICKABLE */
.style-image-link {
  display: block;
  text-decoration: none;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 10;
  -webkit-tap-highlight-color: rgba(218, 165, 32, 0.2);
}

.style-image-link:active {
  opacity: 0.8;
}

/* Contenedor de la imagen circular */
.style-visual-h .style-image-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(218, 165, 32, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  background: #f5f5f5;
  transition: all 0.3s ease;
}

/* Efecto al tocar la imagen directamente */
.style-image-link:active .style-image-circle {
  transform: scale(0.95);
  border-color: rgba(218, 165, 32, 0.4);
}

.style-visual-h .style-image-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Círculo decorativo de fondo */
.style-visual-h::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% + 10px);
  height: calc(100% + 10px);
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.1), rgba(255, 193, 7, 0.1));
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

/* Estilos de texto */
.style-heading-h a {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2c3e50;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
  position: relative;
  z-index: 5;
}

.style-heading-h a:hover {
  color: #daa520;
}

.style-badge-h {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: rgba(218, 165, 32, 0.1);
  border: 1px solid rgba(218, 165, 32, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #8b7355;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.style-description-h {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #6e6e73;
  margin: 0;
}

.style-description-h .highlight {
  color: #2c3e50;
  font-weight: 600;
}

/*******************************************************************************/
/* ==========================================================================
   BJCP Technical Panel - Parámetros Técnicos para Estilos de Cerveza
   Añadir al final de style.css del tema hijo
   ========================================================================== */

/* Panel Principal */
.bjcp-technical-panel {
    margin: 35px 0;
    padding: 25px;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.panel-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d4a574;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-title .material-icons-outlined {
    font-size: 24px;
    color: #d4a574;
}

/* Grid Superior - OG, FG, Atenuación */
.params-grid-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.param-box-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: white;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.param-box-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.12);
    border-color: #d4a574;
}

.param-icon {
    font-size: 28px !important;
    color: #8b6f47;
    margin-bottom: 8px;
    opacity: 0.8;
}

/* Iconos SVG para FG y Atenuación */
.param-icon-svg {
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
    opacity: 0.8;
    filter: brightness(0) saturate(100%) invert(50%) sepia(11%) saturate(1449%) hue-rotate(356deg) brightness(91%) contrast(86%);
}

/* Labels del grid superior */
.param-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 0.8px;
    margin-bottom: 5px;
    font-weight: 700;
}

.param-value {
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
}

/* Grid Principal - Cards grandes */
.params-grid-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    align-items: stretch;
}

.param-card {
    background: white;
    border: 1.5px solid #e8e8e8;
    border-radius: 12px;
    padding: 18px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
}

.param-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    border-color: #d4a574;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.param-card:not(.yeast-card) .card-header {
    margin-bottom: auto;
}

.card-icon {
    font-size: 36px !important;
    margin-right: 14px;
    flex-shrink: 0;
    opacity: 0.9;
}

/* Icono SVG del lúpulo */
.card-icon-svg {
    width: 36px;
    height: 36px;
    margin-right: 14px;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(61%) sepia(51%) saturate(449%) hue-rotate(43deg) brightness(96%) contrast(87%);
}

/* Vaso de cerveza con color SRM */
.beer-glass-wrapper {
    width: 36px;
    height: 36px;
    margin-right: 14px;
    flex-shrink: 0;
    position: relative;
}

.beer-glass-icon {
    width: 100%;
    height: 100%;
    /* Filtro para SRM 2-3 (amarillo pálido) - Cambiar según el estilo */
    filter: brightness(0) saturate(100%) invert(93%) sepia(89%) saturate(2464%) hue-rotate(335deg) brightness(103%) contrast(96%);
}

.card-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Labels de los cards principales */
.card-label {
    font-size: 12px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 5px;
    font-weight: 700;
}

.card-value {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
}

.ebc-secondary {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

/* Barras de progreso */
.card-bar {
    height: 10px;
    background: #f5f5f5;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}

.bar-fill {
    position: absolute;
    height: 100%;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.abv-bar {
    background: linear-gradient(90deg, #4a90e2, #357abd);
}

.ibu-bar {
    background: linear-gradient(90deg, #7cb342, #5a9030);
}

/* Barra de color especial con gradiente SRM */
.color-bar {
    position: relative;
    background: #f5f5f5;
    overflow: visible;
}

.color-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        #FFF7C0 0%,     /* SRM 1 - Amarillo pajizo muy claro */
        #FFEE9E 2%,     /* SRM 1.5 */
        #FFE978 4%,     /* SRM 2 - Pajizo pálido */
        #FFE45C 6%,     /* SRM 2.5 */
        #FFDF4A 8%,     /* SRM 3 - Pajizo */
        #FFD838 10%,    /* SRM 3.5 */
        #FFD025 12%,    /* SRM 4 - Dorado muy pálido */
        #FFC813 14%,    /* SRM 4.5 */
        #FFBF00 16%,    /* SRM 5 - Dorado pálido */
        #FFB700 18%,    /* SRM 5.5 */
        #FFAF00 20%,    /* SRM 6 - Dorado */
        #FFA000 22%,    /* SRM 7 */
        #FF9200 24%,    /* SRM 8 - Dorado profundo */
        #FF8300 26%,    /* SRM 9 */
        #FF7400 28%,    /* SRM 10 - Ámbar pálido */
        #F56600 30%,    /* SRM 11 */
        #EA5800 32%,    /* SRM 12 - Ámbar */
        #DF4A00 34%,    /* SRM 13 */
        #D43C00 36%,    /* SRM 14 */
        #C92E00 38%,    /* SRM 15 - Ámbar profundo */
        #BE2000 40%,    /* SRM 16 */
        #B31200 42%,    /* SRM 17 - Marrón claro */
        #A80400 44%,    /* SRM 18 */
        #9D0000 46%,    /* SRM 19 */
        #920000 48%,    /* SRM 20 - Marrón */
        #870000 50%,    /* SRM 21 */
        #7C0000 52%,    /* SRM 22 */
        #710000 54%,    /* SRM 23 */
        #660000 56%,    /* SRM 24 */
        #500100 58%,    /* SRM 25 - Marrón oscuro */
        #470100 60%,    /* SRM 26 */
        #3E0100 62%,    /* SRM 27 */
        #350100 64%,    /* SRM 28 */
        #2C0100 66%,    /* SRM 29 */
        #230100 68%,    /* SRM 30 - Marrón muy oscuro */
        #1A0100 70%,    /* SRM 31 */
        #170100 73%,    /* SRM 32 */
        #140100 76%,    /* SRM 33 */
        #110000 79%,    /* SRM 34 */
        #0E0000 82%,    /* SRM 35 - Casi negro */
        #0B0000 85%,    /* SRM 36 */
        #080000 88%,    /* SRM 37 */
        #050000 91%,    /* SRM 38 */
        #020000 94%,    /* SRM 39 */
        #000000 97%,    /* SRM 40 - Negro */
        #000000 100%    /* SRM 40+ */
    );
    border-radius: 5px;
}

/* Brillo muy sutil */
.color-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(255,255,255,0.1) 0%, 
        rgba(255,255,255,0) 30%, 
        rgba(0,0,0,0.05) 100%
    );
    border-radius: 5px;
    pointer-events: none;
}

.color-indicator {
    position: absolute;
    top: -2px;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    border: 2px solid #333;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.8); /* Brillo superior */
    z-index: 2;
}

/* Card de levadura - VERSIÓN MEJORADA CON CEPAS ALINEADAS */
.yeast-card {
    background: white;
    border: 1.5px solid #e8e8e8;
    border-radius: 12px;
    padding: 18px;
    transition: all 0.2s ease;
    min-height: 140px;
    position: relative;
}

.yeast-card .card-header {
    display: flex;
    align-items: center;
    margin-bottom: 0; /* Sin margen para mejor alineación */
}

.yeast-card .card-info {
    flex-grow: 1;
}

/* Lista de levaduras - ALINEADA COMO LOS VALORES */
.yeast-list-compact {
    position: absolute;
    top: 65%;
    left: 65px; /* Mismo margen que los valores en otros cards */
    transform: translateY(-50%);
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-width: calc(100% - 60px);
}

.yeast-item-small {
    display: inline-block;
    padding: 4px 8px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 11px;
    color: #666;
    font-weight: 500;
    transition: all 0.2s ease;
}

.yeast-item-small:hover {
    background: #9c27b0;
    color: white;
    border-color: #9c27b0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .params-grid-top {
        gap: 10px;
    }
    
    .params-grid-main {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .yeast-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .yeast-card .card-header {
        margin-bottom: 12px;
    }
    
    /* En móvil, las cepas vuelven a posición normal */
    .yeast-list-compact {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-top: 8px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .params-grid-top {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .panel-title {
        font-size: 18px;
    }
    
    .param-label {
        font-size: 11px;
    }
    
    .card-label {
        font-size: 11px;
    }
}

/* ============================================
   ESTILOS PARA TÍTULOS SUBRAYADOS
   ============================================ */

h2.subrayadito {
    display: inline-block !important;
    width: fit-content !important;
    border-bottom: 2px solid #FCB900 !important;
    padding-bottom: 0 !important;
}

h2.subrayadito .kb-svg-icon-wrap,
h2.subrayadito svg {
    margin-right: 6px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    position: relative !important;
    top: -2px !important;
}
