/*
Theme Name: Sonico Pro
Theme URI: https://sonico.pro
Author: angelgrimaldo.com
Author URI: https://angelgrimaldo.com
Description: Tema oficial personalizado para Sonico Pro basado en el sistema de diseño Google Stitch y soporte integral para WooCommerce.
Version: 1.0.0
Text Domain: sonico-pro
*/

:root {
    /* Google Stitch Design System - Sonic High-Fidelity */
    --primary: #ff6600;              /* Arturia Orange */
    --primary-hover: #e05a00;
    --primary-container: #ff6600;
    --primary-fixed: #ffdbcd;
    --primary-fixed-dim: #ffb596;

    --secondary: #495f84;            /* Slate Blue */
    --secondary-container: #bcd2fe;  /* Ice Blue Container */
    --on-secondary-container: #001b3d;
    --secondary-fixed: #d6e3ff;      /* Ice Blue Button */
    --on-secondary-fixed: #001b3d;   /* Cyber Blue Navy */
    --on-secondary-fixed-variant: #31476b;

    /* Fondos Studio Minimalist */
    --bg-body: #f8f9fa;              /* Gris claro Studio (#f8f9fa) */
    --bg-surface: #ffffff;           /* Blanco puro */
    --bg-surface-alt: #f3f4f5;
    --bg-dark: #001b3d;              /* Cyber Blue */

    /* Textos */
    --text-main: #191c1d;            /* Texto oscuro nítido */
    --text-light: #5a4136;           /* Texto secundario */
    --text-muted: #73777f;
    --text-inverse: #ffffff;

    /* Bordes UI */
    --border-color: #e1e3e4;         /* Borde gris neutro */
    --border-light: #edeeef;

    /* Sombras High-Fidelity */
    --shadow-soft: 0px 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0px 15px 35px rgba(0, 0, 0, 0.09);

    /* Compatibilidad */
    --color-primary: var(--primary);
    --color-primary-hover: var(--primary-hover);
    --color-secondary: var(--secondary);
    --color-surface: var(--bg-surface);
    --color-accent: var(--primary);
    --color-text: var(--text-main);
    --color-text-muted: var(--text-light);
    --color-border: var(--border-color);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
}

/* Ocultar badge de reCAPTCHA */
.grecaptcha-badge {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Fix para iconos de medios de pago en footer (evita distorsión en single-product) */
footer .payment-badge-img,
.payment-badge-img,
body.single-product footer img.payment-badge-img,
body.woocommerce footer img.payment-badge-img {
    height: 38px !important;
    max-height: 38px !important;
    width: auto !important;
    max-width: 70px !important;
    display: inline-block !important;
    flex: 0 0 auto !important;
    object-fit: contain !important;
}

/* Botón Agregar al carrito naranja de marca en Single Product */
.single-product .single_add_to_cart_button,
.single-product button[name="add-to-cart"],
.single-product .cart .button {
    background-color: #ff6600 !important;
    background: #ff6600 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0.75rem !important;
}
.single-product .single_add_to_cart_button:hover,
.single-product button[name="add-to-cart"]:hover,
.single-product .cart .button:hover {
    background-color: #e05a00 !important;
    background: #e05a00 !important;
    color: #ffffff !important;
}

/* Alineación perfecta para formulario de ordenamiento en catálogo */
.woocommerce-ordering,
form.woocommerce-ordering {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
}
form.woocommerce-ordering select.orderby {
    margin: 0 !important;
    vertical-align: middle !important;
    line-height: normal !important;
}

/* ======================================
   Checkout Page (Stitch Design System)
   ====================================== */

/* Inputs y labels de checkout con estilos consistentes */
.woocommerce-checkout .form-row label,
.woocommerce-checkout .form-group label {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--color-on-surface-variant, #5a4136) !important;
    margin-bottom: 0.375rem !important;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    border-radius: 0.75rem !important;
    border: 1.5px solid #e1e3e4 !important;
    background-color: #f8f9fa !important;
    font-size: 0.875rem !important;
    padding: 0.75rem 1rem !important;
    color: #191c1d !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    width: 100% !important;
    outline: none !important;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
    border-color: #ff6600 !important;
    box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.15) !important;
}

/* Payment Methods Radio Buttons */
.woocommerce-checkout #payment ul.payment_methods li label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    padding: 1rem !important;
    border: 1.5px solid #e1e3e4 !important;
    border-radius: 0.75rem !important;
    cursor: pointer !important;
    transition: border-color 0.2s, background-color 0.2s !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #191c1d !important;
    background: #ffffff !important;
    margin: 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods li label:hover {
    border-color: #ff6600 !important;
    background-color: rgba(255, 102, 0, 0.04) !important;
}

.woocommerce-checkout #payment ul.payment_methods li input[type="radio"]:checked + label,
.woocommerce-checkout #payment ul.payment_methods li.active label {
    border-color: #ff6600 !important;
    background-color: rgba(255, 102, 0, 0.06) !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 0.75rem 0 !important;
}

.woocommerce-checkout #payment .payment_box {
    background-color: #f3f4f5 !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    margin-top: 0.5rem !important;
    font-size: 0.8rem !important;
    border: 1px solid #e1e3e4 !important;
}

/* Shipping options table */
.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td {
    padding: 0.75rem 0.25rem !important;
    border-top: 1px solid #e1e3e4 !important;
    font-size: 0.875rem !important;
}

.woocommerce-checkout #ship-to-different-address label {
    font-weight: 700 !important;
    text-transform: none !important;
    font-size: 0.9rem !important;
    letter-spacing: 0 !important;
}

/* Place Order button */
#place_order,
.wc-block-components-checkout-place-order-button {
    background-color: #ff6600 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0.75rem !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 1rem 1.5rem !important;
    cursor: pointer !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    transition: opacity 0.2s, transform 0.1s !important;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3) !important;
}

#place_order:hover,
.wc-block-components-checkout-place-order-button:hover {
    opacity: 0.9 !important;
    background-color: #e05a00 !important;
}

/* Woocommerce notices on checkout */
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-message {
    border-radius: 0.75rem !important;
    margin-bottom: 1rem !important;
}

/* ========================================================
   GLOBAL WOOCOMMERCE BUTTONS (BRAND ORANGE #ff6600 OVERRIDE)
   ======================================================== */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.wc-block-cart__submit-button,
.wc-block-components-button,
.wc-block-grid__product-add-to-cart,
.wc-block-components-checkout-place-order-button,
.checkout-button,
a.checkout-button,
.wc-block-cart .wc-block-cart__submit-button,
.wp-block-woocommerce-cart .wc-block-cart__submit-button,
.wp-block-woocommerce-cart .wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-container .wc-block-components-button,
.add_to_cart_button,
.single_add_to_cart_button {
    background-color: #ff6600 !important;
    background: #ff6600 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0.75rem !important;
    font-weight: 700 !important;
    transition: all 0.2s ease-in-out !important;
    text-shadow: none !important;
    box-shadow: 0 4px 14px rgba(255, 102, 0, 0.25) !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-button:hover,
.wc-block-grid__product-add-to-cart:hover,
.wc-block-components-checkout-place-order-button:hover,
.checkout-button:hover,
a.checkout-button:hover,
.add_to_cart_button:hover,
.single_add_to_cart_button:hover {
    background-color: #e05a00 !important;
    background: #e05a00 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(224, 90, 0, 0.35) !important;
}

/* Fix text color inside buttons */
.wc-block-components-button span,
.wc-block-components-button a,
.checkout-button span,
.checkout-button a,
a.checkout-button {
    color: #ffffff !important;
}

/* ========================================================
   CONTAINER MAX-WIDTH LIMIT (CART & CHECKOUT 1280px LIMIT)
   ======================================================== */
.woocommerce-cart,
.woocommerce-checkout,
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout,
.wc-block-cart,
.wc-block-checkout {
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* ========================================================
   PAGINATION STYLING (STITCH DESIGN SYSTEM PILL BUTTONS)
   ======================================================== */
.pagination,
.woocommerce-pagination,
nav.pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 2.5rem !important;
    margin-bottom: 1.5rem !important;
    width: 100% !important;
    clear: both !important;
}

.pagination .nav-links,
.woocommerce-pagination ul.page-numbers,
ul.page-numbers {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    border: none !important;
    background: none !important;
}

.woocommerce-pagination ul.page-numbers li,
ul.page-numbers li {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    list-style: none !important;
}

.pagination .nav-links .page-numbers,
.woocommerce-pagination ul.page-numbers li a.page-numbers,
.woocommerce-pagination ul.page-numbers li span.page-numbers,
a.page-numbers,
span.page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    min-width: 2.75rem !important;
    height: 2.75rem !important;
    padding: 0 0.875rem !important;
    border-radius: 0.875rem !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    line-height: 1 !important;
    color: #191c1d !important;
    background-color: #ffffff !important;
    border: 1.5px solid #e1e3e4 !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.04) !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* Ensure Next / Prev arrows and icons inside are perfectly centered */
.page-numbers.next,
.page-numbers.prev,
a.next.page-numbers,
a.prev.page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    line-height: 1 !important;
}

.page-numbers.next *,
.page-numbers.prev *,
a.next.page-numbers *,
a.prev.page-numbers * {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* Hover State */
.pagination .nav-links a.page-numbers:hover,
.woocommerce-pagination ul.page-numbers li a.page-numbers:hover,
a.page-numbers:hover {
    background-color: #ff6600 !important;
    color: #ffffff !important;
    border-color: #ff6600 !important;
    box-shadow: 0px 4px 12px rgba(255, 102, 0, 0.3) !important;
}

/* Current / Active Page State */
.pagination .nav-links .page-numbers.current,
.woocommerce-pagination ul.page-numbers li span.page-numbers.current,
span.page-numbers.current {
    background-color: #ff6600 !important;
    color: #ffffff !important;
    border-color: #ff6600 !important;
    font-weight: 800 !important;
    box-shadow: 0px 4px 14px rgba(255, 102, 0, 0.35) !important;
}

/* Dots / Ellipsis */
.pagination .nav-links .page-numbers.dots,
.woocommerce-pagination ul.page-numbers li span.page-numbers.dots,
span.page-numbers.dots {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #5a4136 !important;
}

/* Hide screen reader headers in pagination */
.pagination .screen-reader-text,
.woocommerce-pagination .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}

/* Custom scrollbar para la columna de filtros sticky en desktop */
.custom-scrollbar::-webkit-scrollbar {
    width: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #e1e3e4;
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: #ff6600;
}

/* ========================================================
   GLOBAL RESPONSIVE SAFEGUARDS & MOBILE OPTIMIZATIONS
   ======================================================== */
html, body {
    overflow-x: clip !important;
    max-width: 100vw !important;
}

img, video, iframe, svg {
    max-width: 100% !important;
}

h1, h2, h3, h4, h5, h6, p, a, span {
    overflow-wrap: break-word;
    word-break: break-word;
}

@media (max-width: 640px) {
    .max-w-\[1280px\] {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Fix para evitar que el botón 'Añadir' se comprima o rompa el texto */
.add_to_cart_button,
.ajax_add_to_cart,
a.button.add_to_cart_button,
button.add_to_cart_button {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    max-width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

/* ========================================================
   LISTINGS PRICE STYLING (CENTRED NORMAL / STACKED SALE PRICE)
   ======================================================== */
.product-card-price,
body:not(.single-product) .price,
ul.products li.product .price {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
}

/* Normal price (without offer) OR single price amount */
.product-card-price > .amount,
.product-card-price > span:only-child,
body:not(.single-product) .price > .amount:only-child,
body:not(.single-product) .price > span:only-child,
ul.products li.product .price > .amount,
ul.products li.product .price > span:only-child {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #ff6600 !important;
}

/* Crossed out original price (placed ON TOP) */
.product-card-price del,
body:not(.single-product) .price del,
ul.products li.product .price del {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #888888 !important; /* Muted gray */
    text-decoration: line-through !important;
    opacity: 0.85 !important;
    margin-bottom: 2px !important;
    order: 1 !important;
}

/* Final sale price (placed BELOW crossed out price) */
.product-card-price ins,
body:not(.single-product) .price ins,
ul.products li.product .price ins {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #ff6600 !important; /* Brand Orange */
    text-decoration: none !important;
    background: transparent !important;
    order: 2 !important;
}

/* Footer menu link individual hover safeguard */
footer ul li a,
footer .flex-col a {
    color: #e1e3e4;
    transition: color 0.2s ease-in-out !important;
}

footer ul li a:hover,
footer .flex-col a:hover {
    color: #ff6600 !important;
}

/* ========================================================
   BLOG COMMENTS STYLING (STITCH DESIGN SYSTEM)
   ======================================================== */
.comments-area {
    margin-top: 1rem;
}
.comments-title,
.comment-reply-title {
    font-family: 'Space Grotesk', 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #191c1d;
    margin-bottom: 1.25rem;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
}
.comment-list .comment {
    margin-bottom: 1.5rem;
    list-style: none;
}
.comment-body {
    background-color: #f8f9fa;
    border: 1px solid #e1e3e4;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
}
.comment-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.comment-author img {
    border-radius: 9999px;
    width: 40px;
    height: 40px;
    object-fit: cover;
}
.comment-author .fn {
    font-weight: 700;
    color: #191c1d;
    font-style: normal;
}
.comment-metadata a {
    color: #73777f;
    font-size: 0.8rem;
    text-decoration: none;
}
.comment-content {
    color: #495f84;
    font-size: 0.95rem;
    line-height: 1.6;
}
.reply a {
    display: inline-block;
    margin-top: 0.75rem;
    color: #ff6600;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.reply a:hover {
    text-decoration: underline;
}
.comment-respond {
    background-color: #f8f9fa;
    border: 1px solid #e1e3e4;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}
.comment-form p {
    margin-bottom: 1rem;
}
.comment-form label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #5a4136;
    margin-bottom: 0.35rem;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background-color: #ffffff;
    border: 1.5px solid #e1e3e4;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #191c1d;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}
.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #ff6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.12);
}
.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #73777f;
}
.comment-form .form-submit input[type="submit"],
.comment-form .submit {
    background-color: #ff6600 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 0.75rem 2rem !important;
    border-radius: 0.75rem !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: 0 4px 14px rgba(255, 102, 0, 0.25) !important;
}
.comment-form .form-submit input[type="submit"]:hover,
.comment-form .submit:hover {
    background-color: #e05a00 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(224, 90, 0, 0.35) !important;
}

/* ==========================================================================
   SISTEMA DE VALORACIONES: ESTRELLAS ACUMULATIVAS & DROPZONE DE FOTOS
   ========================================================================== */

/* 1. Selección Acumulativa de Estrellas (#review_form p.stars) */
#review_form #respond p.stars,
.woocommerce #review_form #respond p.stars {
    margin-top: 6px !important;
    display: inline-flex !important;
    gap: 6px !important;
    line-height: 1 !important;
}

#review_form #respond p.stars a,
.woocommerce #review_form #respond p.stars a {
    color: #cbd5e1 !important;
    font-size: 1.4rem !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
    display: inline-block !important;
}

#review_form #respond p.stars:hover a,
.woocommerce #review_form #respond p.stars:hover a {
    color: #ff6600 !important;
}

#review_form #respond p.stars a:hover ~ a,
.woocommerce #review_form #respond p.stars a:hover ~ a {
    color: #cbd5e1 !important;
}

#review_form #respond p.stars.selected a,
.woocommerce #review_form #respond p.stars.selected a {
    color: #ff6600 !important;
}

#review_form #respond p.stars.selected a.active ~ a,
.woocommerce #review_form #respond p.stars.selected a.active ~ a {
    color: #cbd5e1 !important;
}

#review_form #respond p.stars.selected:hover a,
.woocommerce #review_form #respond p.stars.selected:hover a {
    color: #ff6600 !important;
}

#review_form #respond p.stars.selected a:hover ~ a,
.woocommerce #review_form #respond p.stars.selected a:hover ~ a {
    color: #cbd5e1 !important;
}

#review_form #respond p.stars.selected a.active-star,
.woocommerce #review_form #respond p.stars.selected a.active-star {
    color: #ff6600 !important;
}

/* 2. Dropzone de Subida de Fotos en Formulario de Reseñas */
.sonico-review-image-upload-wrapper,
.pn-review-image-upload-wrapper {
    margin: 18px 0 20px;
    width: 100%;
}

.sonico-review-image-label,
.pn-review-image-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    color: var(--text-main, #191c1d) !important;
    margin-bottom: 8px !important;
}

.sonico-review-image-dropzone,
.pn-review-image-dropzone {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 18px 20px;
    background: #f8f9fa;
    text-align: center;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
}

.sonico-review-image-dropzone:hover,
.sonico-review-image-dropzone.is-dragover,
.pn-review-image-dropzone:hover,
.pn-review-image-dropzone.is-dragover {
    border-color: #ff6600;
    background-color: #fff7ed;
}

.sonico-review-file-input,
.pn-review-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.sonico-dropzone-prompt,
.pn-dropzone-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.sonico-dropzone-text,
.pn-dropzone-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.sonico-dropzone-text strong,
.pn-dropzone-text strong {
    color: #ff6600;
}

.sonico-dropzone-hints,
.pn-dropzone-hints {
    font-size: 0.78rem;
    color: #64748b;
}

/* Caja de Vista Previa de Imagen */
.sonico-review-image-preview-box,
.pn-review-image-preview-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    text-align: left;
    position: relative;
    z-index: 10;
}

.sonico-review-image-preview-box.is-hidden,
.pn-review-image-preview-box.is-hidden,
.sonico-dropzone-prompt.is-hidden,
.pn-dropzone-prompt.is-hidden {
    display: none !important;
}

.sonico-review-preview-img,
.pn-review-preview-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.sonico-review-preview-info,
.pn-review-preview-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sonico-review-preview-filename,
.pn-review-preview-filename {
    font-size: 0.86rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sonico-review-preview-filesize,
.pn-review-preview-filesize {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.sonico-review-remove-file-btn,
.pn-review-remove-file-btn {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background-color 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.sonico-review-remove-file-btn:hover,
.pn-review-remove-file-btn:hover {
    background: #fca5a5;
    color: #991b1b;
    transform: scale(1.1);
}

/* Mensaje de Error */
.sonico-review-image-error,
.pn-review-image-error {
    margin-top: 8px;
    padding: 8px 12px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    color: #b91c1c;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
}

.sonico-review-image-error.is-hidden,
.pn-review-image-error.is-hidden {
    display: none !important;
}

/* 3. Fotos Adjuntas en los Comentarios de Clientes */
.sonico-review-attached-images,
.pn-review-attached-images {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sonico-review-img-link,
.pn-review-img-link {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.sonico-review-img-link:hover,
.pn-review-img-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 102, 0, 0.2);
    border-color: #ff6600;
}

.sonico-review-comment-thumb,
.pn-review-comment-thumb {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

.sonico-review-img-link:hover .sonico-review-comment-thumb,
.pn-review-img-link:hover .pn-review-comment-thumb {
    transform: scale(1.08);
}

.sonico-review-img-zoom-icon,
.pn-review-img-zoom-icon {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.sonico-review-img-link:hover .sonico-review-img-zoom-icon,
.pn-review-img-link:hover .pn-review-img-zoom-icon {
    opacity: 1;
    transform: scale(1.15);
    background: #ff6600;
}

/* 4. Modal Lightbox de Fotos de Valoraciones */
.sonico-review-lightbox-modal,
.pn-review-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 20px;
    box-sizing: border-box;
}

.sonico-review-lightbox-modal.is-active,
.pn-review-lightbox-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.sonico-review-lightbox-content,
.pn-review-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    max-height: 85dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sonico-review-lightbox-img,
.pn-review-lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    max-height: 85dvh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    user-select: none;
}

.sonico-review-lightbox-close,
.pn-review-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: none;
    font-size: 1.8rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.sonico-review-lightbox-close:hover,
.pn-review-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

@media (max-width: 640px) {
    .sonico-review-img-link,
    .pn-review-img-link {
        width: 70px;
        height: 70px;
    }
    .sonico-review-lightbox-close,
    .pn-review-lightbox-close {
        top: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.6);
    }
}







