/* ==========================================================================
   Celler del Cambium — CSS personalizado
   (Migrado desde Apariencia → Personalizar → CSS adicional)
   ========================================================================== */

.page-header {
    visibility: hidden;
}

.iconos_productos {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.iconos_productos h3 {
    margin-left: 8px;
}

.iconos_productos img {
    margin-bottom: 12px;
}

.cky-btn-revisit-wrapper {
    visibility: hidden !important;
}


/* ============================
   Listas de calificación
   ============================ */

.calificacion-contenedor {
    margin: 20px 0;
}

.calificacion-titulo {
    display: flex;
    font-family: "Stroig", serif !important;
    align-items: center;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.calificacion-titulo::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 10px;
    background-image: url('https://cellerdelcambium.com/wp-content/uploads/2026/03/calificacion.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.calificacion-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.calificacion-item {
    background-color: #ececec;
    color: #000;
    padding: 10px 10px;
    border-radius: 50px;
    font-size: 16px;
    line-height: 1;
    display: inline-block;
}


/* ============================
   Vino atributos / semáforo
   ============================ */

.h3-analisis {
    font-family: "Stroig", serif !important;
    font-size: 16px !important;
    text-transform: uppercase;
    color: #000;
}

.icono-atributo-img {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    transition: transform .25s ease;
}

.vino-atributo-item {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    gap: 8px;
    flex-wrap: nowrap;
}

.vino-atributo-item .atributo-texto {
    display: flex;
    align-items: center;
    text-transform: uppercase;
    color: #a0a0a0;
    flex: auto;
}

.vino-atributo-item .atributo-texto .icono-atributo {
    margin-right: 6px;
    color: #ccc;
    display: inline-flex;
    align-items: center;
}

.vino-atributo-item .semaforo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.vino-atributo-item .semaforo span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
}

.vino-atributo-item .semaforo span.active {
    background-color: #630100;
}

.semaforo span {
    opacity: 0.3;
    transform: scale(0.8);
    transition: .3s ease;
}

.semaforo span.active {
    opacity: 1;
    animation: pop .25s ease forwards;
}

.semaforo span.active:nth-child(1) { animation-delay: .1s; }
.semaforo span.active:nth-child(2) { animation-delay: .2s; }
.semaforo span.active:nth-child(3) { animation-delay: .3s; }
.semaforo span.active:nth-child(4) { animation-delay: .4s; }
.semaforo span.active:nth-child(5) { animation-delay: .5s; }

@keyframes pop {
    0%   { transform: scale(0.7); }
    60%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}


/* ============================
   Generales
   ============================ */

.calificacion-vino,
.vino-atributos,
.vinedo-shortcode,
.denominacion-descripcion,
.bodega-descripcion {
    width: 100%;
}

@media (max-width: 600px) {
    .resumen-vino-grid {
        grid-template-columns: 1fr;
    }
}

.nota-cata-titulo {
    font-family: "Stroig", serif !important;
    color: #000;
    font-size: 16px !important;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.bodega-filosofia h3,
.clima-shortcode h3,
.vinedo-descripcion h3,
.denominacion-descripcion h3,
.crianza h3,
.metodo-vinificacion h3 {
    font-family: "Stroig", serif !important;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 600;
}


/* ============================
   Bodega
   ============================ */

.bodega-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bodega-logo {
    max-height: 60px;
    width: auto;
}

.bodega-imagen img {
    margin-top: 20px;
    max-width: 100%;
    height: auto;
}

.bodega-header h3 {
    font-size: 40px !important;
    font-weight: 400 !important;
    color: #fff;
}

.bodega-descripcion p {
    color: #fff;
}

@media (max-width: 768px) {
    .bodega-header h3 {
        font-size: 32px !important;
    }
}


/* ============================
   WooCommerce — ficha de producto
   ============================ */

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product .stock {
    color: #000 !important;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price,
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price {
    color: #000 !important;
}

.onsale {
    background: #630100 !important;
    border-radius: 4px !important;
    padding: 0px 8px !important;
    text-transform: uppercase;
}

table tbody > tr:nth-child(odd) > td,
table tbody > tr:nth-child(odd) > th {
    background-color: #fff !important;
}

.woocommerce-product-gallery__image {
    pointer-events: none !important;
}

.woocommerce-product-gallery__trigger {
    display: none;
}


/* ============================
   Checkout (bloques)
   ============================ */

.wc-block-checkout__form {
    margin-top: 7rem !important;
}

.wp-block-woocommerce-checkout-order-summary-block {
    margin-top: 6rem !important;
}


/* ============================
   Valoraciones
   ============================ */

.quote-section {
    background-color: #f1f0ee;
    padding: 2rem;
    display: flex;
    border-radius: 4px;
}

.quote-icon {
    font-size: 60px;
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1;
    margin-right: 20px;
    display: block;
}

.expert-quote-text {
    font-size: 16px;
}

.expert-quote-text p { margin-bottom: 15px; }
.expert-quote-text p:last-child { margin-bottom: 0; }

.author-score-row {
    padding: 20px 0;
}

.expert-author-signature {
    font-weight: bold;
    font-size: 16px;
    margin: 0 0 5px 0;
}

.expert-score-line {
    font-size: 14px;
    color: #444;
}

.expert-slider-navigation-static {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: -70px;
    position: relative;
    z-index: 99;
}

.swiper-button-prev-custom,
.swiper-button-next-custom {
    width: 40px;
    height: 40px;
    border: 2px solid #000;
    border-radius: 8px;
    background: #fff;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 0 !important;
    cursor: pointer;
    transition: 0.2s;
    font-family: 'Arial', sans-serif;
}

.swiper-button-prev-custom:hover,
.swiper-button-next-custom:hover {
    background: #000;
    color: #fff;
}

.nav-arrow { font-weight: bold; font-size: 18px; }

.swiper-button-prev-custom:hover .nav-arrow,
.swiper-button-next-custom:hover .nav-arrow { color: #fff; }

@media (max-width: 768px) {
    .expert-slider-navigation-static {
        margin-top: -20px;
        justify-content: left;
    }
    .quote-section {
        padding: 1rem;
    }
    .expert-quote-text {
        font-size: 14px;
    }
}


/* ============================
   Tabla puntuaciones
   ============================ */

.tabla-puntuaciones-acf {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    border: none;
}

.tabla-puntuaciones-acf td,
.tabla-puntuaciones-acf th {
    border: none !important;
    padding: 8px 60px 8px 0;
    text-align: left;
    gap: 16px !important;
}

.tabla-puntuaciones-acf thead {
    display: none;
}

.tabla-puntuaciones-acf td:first-child {
    color: #b5b5b5;
}

.tabla-puntuaciones-acf td:nth-child(2),
.tabla-puntuaciones-acf td:nth-child(3) {
    color: #000000;
}

.tabla-puntuaciones-acf td strong {
    margin-right: 12px !important;
}

@media (max-width: 600px) {
    .tabla-puntuaciones-acf td {
        padding-right: 20px;
        font-size: 1em;
    }
}


/* ============================
   Resumen vino
   ============================ */

.resumen-vino-fila {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.resumen-vino-label {
    display: flex;
    align-items: center;
    width: 180px;
    color: #a0a0a0;
    text-transform: uppercase;
    font-size: 16px;
    flex-shrink: 0;
}

.resumen-icono {
    width: 16px;
    height: auto;
    margin-right: 10px;
}

.resumen-vino-valor {
    color: #000;
    font-size: 16px;
}

.resumen-vino-valor br {
    display: block;
    margin-bottom: 12px;
    content: "";
}


/* ============================
   Temperatura de servicio
   ============================ */

.temperatura-servicio-container {
    margin: 20px 0;
}

.temperatura-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.icono-termometro {
    width: 16px;
    height: auto;
    margin-right: 12px;
}

.temperatura-titulo {
    color: #999;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.temperatura-frase {
    color: #000;
    font-size: 16px;
    padding-left: 0;
}


/* ============================
   Resumen maridaje
   ============================ */

.maridaje-contenedor {
    margin: 25px 0;
}

.maridaje-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.maridaje-icono-main {
    width: 16px;
    height: auto;
    margin-right: 10px;
}

.maridaje-titulo {
    color: #a0a0a0;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.maridaje-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.maridaje-item {
    background-color: #E7E7E7;
    color: #000;
    padding: 10px 10px;
    border-radius: 50px;
    font-size: 16px;
    display: flex;
    align-items: center;
    line-height: 1;
}

.maridaje-pildora-icono {
    width: 16px;
    height: auto;
    margin-right: 10px;
    display: inline-block;
}


/* ============================
   Tipo de elaboración
   ============================ */

.caracteristicas-vino {
    margin: 20px 0;
}

.caracteristicas-vino h3 {
    font-family: "Stroig", serif !important;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.caracteristicas-vino ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.caracteristica-item {
    background-color: #e7e7e7;
    color: #000;
    padding: 10px 10px;
    border-radius: 50px;
    font-size: 16px;
    display: flex;
    align-items: center;
    line-height: 1;
}

.caracteristica-item .icono {
    margin-right: 10px;
    display: flex;
    align-items: center;
    color: #000;
}

.caracteristica-item .icono svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}


/* ============================
   Reseñas de clientes
   ============================ */

.custom-reviews-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}

.custom-reviews-section * {
    box-sizing: border-box;
}

.reviews-main-title {
    font-size: 34px;
    color: #000;
    padding-bottom: 5px;
    margin-bottom: 40px;
    display: inline-block;
}

.reviews-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.reviews-summary {
    width: 250px;
    flex-shrink: 0;
}

.summary-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.stars-gold {
    color: #630808;
    font-size: 22px;
    letter-spacing: 2px;
}

.average-num {
    font-size: 22px;
    margin-left: 15px;
    color: #000;
}

.total-count {
    text-decoration: underline;
    color: #999;
    margin: 0 0 25px 0;
    font-size: 15px;
}

.bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 15px;
    color: #000;
}

.bar-label {
    width: 35px;
}

.bar-bg {
    flex-grow: 1;
    height: 12px;
    background: #e0e0e0;
    margin: 0 15px 0 5px;
}

.bar-fill {
    height: 100%;
    background: #630808;
}

.bar-qty {
    width: 25px;
    text-align: right;
}

.btn-ver-mas {
    display: block;
    text-align: center;
    padding: 12px;
    border: 1px solid #630808;
    color: #630808;
    text-decoration: none;
    margin-top: 30px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s ease;
}

.btn-ver-mas:hover {
    background: #630808;
    color: #fff;
}

.reviews-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
}

.reviews-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.review-card {
    display: flex;
    flex-direction: column;
}

.review-stars {
    color: #630808;
    margin-bottom: 5px;
    font-size: 18px;
    letter-spacing: 2px;
}

.review-author {
    font-size: 15px;
    color: #000;
    margin: 0 0 15px 0;
}

.review-text {
    font-size: 16px;
    line-height: 1.5;
    color: #000;
    white-space: normal;
    word-break: break-word;
}

@media (max-width: 1024px) {
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .reviews-layout { flex-direction: column; gap: 40px; }
    .reviews-summary { width: 100%; max-width: 400px; margin: 0 auto; }
    .reviews-grid,
    .reviews-grid-2 { grid-template-columns: 1fr; }
    .reviews-main-title { display: block; border-bottom: none; }
}


/* ============================
   Mi cuenta
   ============================ */

.woocommerce-account .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.woocommerce-MyAccount-navigation {
    flex: 0 0 250px;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation ul li {
    margin-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 12px 15px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: #630100;
    color: #fff !important;
    transform: translateX(5px);
}

.woocommerce-MyAccount-content {
    flex: 1;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    min-width: 300px;
}

.woocommerce-MyAccount-content .woocommerce-Button,
.woocommerce-MyAccount-content .button {
    background-color: #333;
    color: #fff;
    border-radius: 50px;
    padding: 10px 25px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    transition: 0.3s;
}

.woocommerce-MyAccount-content .button:hover {
    background-color: #630100;
}

.woocommerce-account .addresses .title .edit {
    float: left;
    margin-bottom: 20px;
}

.woocommerce-Address-title h2 {
    font-size: 24px !important;
}

@media (max-width: 768px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
    }
    .woocommerce-MyAccount-navigation {
        flex: 1 0 100%;
        width: 100%;
    }
}


/* ============================
   Header
   ============================ */

#nav {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: #ffffff;
    transition: transform 0.4s ease-in-out, background-color 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body.is-home-page #nav.at-top {
    background-color: transparent !important;
    box-shadow: none !important;
}

body #nav.at-top {
    background-color: #fff !important;
    box-shadow: none !important;
}

#nav.nav-hidden {
    transform: translateY(-110%);
}

.admin-bar #nav {
    top: 32px;
}

@media (max-width: 768px) {
    body.is-home-page #nav.at-top {
        background-color: #ffffff !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    }
    .admin-bar #nav {
        top: 46px;
    }
}


/* ============================
   Blog
   ============================ */

.post img {
    border-radius: 4px;
    max-height: 50vh;
}


/* ============================
   Carrito lateral
   ============================ */

.xoo-wsc-footer-txt {
    text-align: justify !important;
    font-size: 14px !important;
}


/* ============================
   Etiquetas de stock
   ============================ */

@keyframes pulso-verde {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

.woocommerce div.product p.stock.etiqueta-stock {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.woocommerce div.product p.stock.stock-disponible {
    background-color: #f0fdf4;
    color: #166534 !important;
    border: 1px solid #bbf7d0;
}

.woocommerce div.product p.stock.stock-disponible::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background-color: #2ecc71;
    border-radius: 50%;
    margin-right: 12px;
    animation: pulso-verde 1.5s infinite;
}

.woocommerce div.product p.stock.stock-agotado {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.woocommerce div.product p.stock.stock-agotado::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background-color: #e74c3c;
    border-radius: 50%;
    margin-right: 12px;
}


/* ============================
   Contador de ofertas flotante
   ============================ */

.caja-contador-oferta-flotante {
    position: fixed;
    bottom: 60px;
    left: 60px;
    z-index: 99999;
    background-color: #ffffff;
    padding: 25px 35px;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.titulo-contador {
    display: block;
    font-style: italic;
    font-size: 16px;
    color: #630808;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 0.5px;
}

.reloj-contador {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.bloque-tiempo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.bloque-tiempo span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    color: #111;
    line-height: 1;
    margin-bottom: 5px;
}

.bloque-tiempo small {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.separador {
    font-size: 20px;
    color: #d0d0d0;
    margin: 0 -2px;
    transform: translateY(-18px);
}

.btn-flotante-carrito {
    display: block !important;
    width: 100%;
    background-color: #630808 !important;
    color: #ffffff !important;
    text-align: center;
    padding: 14px 0 !important;
    margin-top: 25px;
    font-size: 14px !important;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid #630808;
    transition: all 0.3s ease;
}

.btn-flotante-carrito:hover {
    background-color: #ffffff !important;
    color: #630808 !important;
}

@media (max-width: 768px) {
    .caja-contador-oferta-flotante {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        border-radius: 0;
        border: none;
        border-top: 1px solid #eaeaea;
        padding: 15px 20px 20px;
        box-shadow: 0 -5px 25px rgba(0,0,0,0.1);
    }
    .titulo-contador { margin-bottom: 10px; }
    .btn-flotante-carrito { margin-top: 15px; padding: 12px 0 !important; }
}


/* ============================
   Checkout (Fluid Checkout)
   ============================ */

.fc-step__substep h3 {
    width: 40% !important;
    font-family: 'Stroig';
    text-transform: none !important;
    font-size: 14px !important;
}

.fc-step__substep-text {
    width: 60% !important;
}

.fc-place-order button {
    background-color: #630808 !important;
}

.fc-place-order button:hover {
    background-color: #ffffff !important;
    color: #630808 !important;
}

@media (max-width: 767px) {
    .fc-step__substep h3 {
        width: 100% !important;
    }
    .fc-step__substep-text {
        width: 100% !important;
    }
    .fc-checkout-header__inner .fc-checkout__branding a img {
        width: 80% !important;
    }
}


/* ============================
   Buscador
   ============================ */

.omnia-search__clear:hover,
.omnia-search__clear:focus,
.omnia-search__close:hover,
.omnia-search__close:focus {
    background: transparent !important;
    color: #830100 !important;
}

.omnia-search__toggle {
    padding: 0 !important;
}

.omnia-search__toggle:focus,
.omnia-search__toggle:hover {
    background: transparent !important;
}

.omnia-search__toggle svg:hover {
    color: #830100 !important;
}

.omnia-search__svg {
    opacity: 100% !important;
}

.omnia-search__input {
    border: none !important;
}

.omnia-search__panel {
    border-radius: 12px !important;
}

.omnia-search__meta:hover {
    color: #830100 !important;
}

.omnia-search__group {
    padding: 10px 16px 10px !important;
}

.omnia-search__chip:hover {
    border: 1px solid #C1C1C1 !important;
    color: #830100 !important;
}

.omnia-search__price ins {
    text-decoration: none !important;
}
