/* =========================================================
   INKTEK - PRODUCTO (UNITARIO)
   Archivo: css/producto.css
========================================================= */

/* =========================================================
   VARIABLES LOCALES
========================================================= */

.producto-un-hero,
.product-detail-section {
    --product-blue: #0d6efd;
    --product-blue-dark: #062f6b;
    --product-green: #198754;
    --product-green-light: #00cc88;
    --product-dark: #252a31;
    --product-text: #4f5863;
    --product-muted: #858e99;
    --product-border: #e7ebf0;
    --product-light: #f7f9fc;
    --product-shadow: 0 12px 35px rgba(20,30,50,0.07);
    --product-shadow-hover: 0 22px 55px rgba(20,30,50,0.13);
    --product-radius: 22px;
}

/* =========================================================
   HERO UNITARIO (IDÉNTICO AL DE TIENDA)
========================================================= */

.producto-un-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--gradient-main);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    margin-bottom: 20px;
    padding: 85px 0 100px;
    z-index: 1;
}

/* Fondo decorativo con círculos */
.producto-un-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Círculo grande izquierdo */
.producto-un-bg::before {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    left: -180px;
    top: -150px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.25);
    background: radial-gradient(circle, rgba(255,255,255,0.20), transparent 65%);
    box-shadow: 0 0 60px rgba(0,204,136,0.12);
    animation: productHeroFloat 10s ease-in-out infinite;
}

/* Círculo grande derecho */
.producto-un-bg::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -220px;
    top: -190px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.40);
    background: radial-gradient(circle, rgba(0,204,136,0.25), transparent 65%);
    box-shadow: 0 0 70px rgba(13,110,253,0.10);
    animation: productHeroRotate 24s linear infinite;
}

/* Contenedor principal del contenido */
.producto-un-hero .container {
    position: relative;
    z-index: 5;
}

/* Círculo pequeño arriba a la derecha */
.producto-un-hero .container::before {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    top: -40px;
    right: 8%;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.25);
    animation: productDecorFloat 6s ease-in-out infinite;
}

/* Puntos flotantes a la izquierda */
.producto-un-hero .container::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    top: 40px;
    left: 8%;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    box-shadow: 30px 55px 0 rgba(255,255,255,0.30),
                -18px 95px 0 rgba(0,204,136,0.50);
    animation: productDotsFloat 7s ease-in-out infinite;
}

/* Curva inferior blanca (clip-path) */
.producto-un-hero::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 65px;
    background: #fff;
    z-index: 10;
    pointer-events: none;
    clip-path: polygon(
        0 0,
        35% 40%,
        70% 85%,
        100% 0,
        100% 100%,
        0 100%
    );
}

/* =========================================================
   CABECERA DEL HERO (contenido)
========================================================= */

.producto-un-header-content {
    position: relative;
    z-index: 5;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 20px 55px;
    text-align: center;
    color: #fff;
}

.producto-un-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 18px;
    margin-bottom: 15px;
    border-radius: 30px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.95);
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    animation: productHeroFade 0.8s ease both;
}

.producto-un-eyebrow i {
    color: #6fffc1;
    font-size: 15px;
}

.producto-un-header-content h1 {
    margin: 0;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.15;
    font-weight: 700;
    text-shadow: 0 3px 15px rgba(0,0,0,0.15);
    animation: productHeroTitle 0.9s cubic-bezier(.22,1,.36,1) both;
}

.producto-un-header-content p {
    max-width: 680px;
    margin: 12px auto 0;
    color: rgba(255,255,255,0.90);
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 26px;
    animation: productHeroText 1s ease 0.15s both;
}

.producto-un-line {
    width: 70px;
    height: 4px;
    margin: 22px auto 0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 0 12px rgba(255,255,255,0.45);
    animation: productLineGrow 0.8s ease 0.35s both;
}

/* =========================================================
   SECCIÓN PRINCIPAL (resto del contenido)
========================================================= */

.product-detail-section {
    position: relative;
    padding: 35px 0 110px;
    background: #ffffff;
    overflow: hidden;
}

.product-detail-section {
    position: relative;
    padding: 35px 0 110px;
    background: #ffffff;
    overflow: hidden;
}

/* Decoración general */
.product-detail-section::before {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    top: 70px;
    left: -300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13,110,253,0.055), transparent 68%);
    pointer-events: none;
}

.product-detail-section::after {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    right: -240px;
    top: 650px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,204,136,0.055), transparent 70%);
    pointer-events: none;
}

.product-detail-section > .container {
    position: relative;
    z-index: 2;
}


/* =========================================================
   ALERTAS
========================================================= */

.product-alert {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
    padding: 14px 18px;
    border-radius: 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 8px 25px rgba(20,30,50,0.06);
    animation: productAlertIn 0.5s ease both;
}

.product-alert-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-size: 17px;
}

.product-alert-success {
    background: #f0faf5;
    border: 1px solid #cdebdc;
    color: #146c43;
}

.product-alert-success .product-alert-icon {
    background: rgba(25,135,84,0.10);
    color: #198754;
}

.product-alert-danger {
    background: #fff5f5;
    border: 1px solid #f3d0d0;
    color: #a52a2a;
}

.product-alert-danger .product-alert-icon {
    background: rgba(220,53,69,0.10);
    color: #dc3545;
}

.product-alert-close {
    margin-left: auto;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
}

.product-alert-close:hover {
    background: rgba(0,0,0,0.06);
    transform: rotate(90deg);
}


/* =========================================================
   GALERÍA
========================================================= */

.product-gallery-modern {
    position: sticky;
    top: 110px;
}

.product-main-image {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 35px;
    background:
        radial-gradient(circle at center, rgba(13,110,253,0.06), transparent 58%),
        linear-gradient(145deg, #f8fafc, #ffffff);
    border: 1px solid #e7ebf0;
    border-radius: 26px;
    box-shadow: 0 12px 35px rgba(20,30,50,0.065);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-main-image::before {
    content: "";
    position: absolute;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13,110,253,0.09), transparent 68%);
    filter: blur(5px);
    animation: productImageGlow 6s ease-in-out infinite;
}

.product-main-image::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -85px;
    bottom: -85px;
    border-radius: 50%;
    border: 1px solid rgba(25,135,84,0.12);
}

.product-main-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(20,30,50,0.10);
}

.product-image-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-wrapper img {
    max-width: 100%;
    max-height: 420px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 22px rgba(20,30,50,0.12));
    transition: transform 0.55s cubic-bezier(.22,1,.36,1), opacity 0.3s ease;
    animation: productImageEntrance 0.8s cubic-bezier(.22,1,.36,1) both;
}

.product-main-image:hover .product-image-wrapper img {
    transform: scale(1.035) translateY(-4px);
}


/* =========================================================
   BADGE DE GALERÍA
========================================================= */

.product-gallery-badge {
    position: absolute;
    z-index: 5;
    top: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    box-shadow: 0 7px 18px rgba(0,0,0,0.12);
    animation: productBadgeFloat 4s ease-in-out infinite;
}

.product-gallery-badge.offer {
    background: #dc3545;
    color: #fff;
}

.product-gallery-badge.new {
    background: #198754;
    color: #fff;
}

.product-gallery-badge i {
    font-size: 13px;
}


/* =========================================================
   MINIATURAS
========================================================= */

.product-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 16px;
}

.product-thumbnail {
    position: relative;
    width: 76px;
    height: 76px;
    padding: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #e2e7ed;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-thumbnail:hover {
    transform: translateY(-3px);
    border-color: rgba(25,135,84,0.40);
    box-shadow: 0 8px 18px rgba(20,30,50,0.08);
}

.product-thumbnail:hover img {
    transform: scale(1.06);
}

.product-thumbnail.active {
    border-color: #198754;
    box-shadow: 0 6px 18px rgba(25,135,84,0.16);
}

.product-thumbnail.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 24px;
    height: 3px;
    border-radius: 20px;
    background: #198754;
    transform: translateX(-50%);
}


/* =========================================================
   INFORMACIÓN DEL PRODUCTO
========================================================= */

.product-info-modern {
    position: relative;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e7ebf0;
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(20,30,50,0.055);
    overflow: hidden;
}

.product-info-modern::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -110px;
    top: -100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13,110,253,0.06), transparent 70%);
    pointer-events: none;
}


/* =========================================================
   BADGES DE ESTADO
========================================================= */

.product-status-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 17px;
}

.detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.25px;
}

.detail-badge.offer {
    background: #fff0f1;
    color: #dc3545;
    border: 1px solid #ffd6d9;
}

.detail-badge.new {
    background: #edf9f3;
    color: #198754;
    border: 1px solid #ccebdc;
}

.detail-badge.popular {
    background: #fff8df;
    color: #a07800;
    border: 1px solid #f7e6a7;
}

.detail-badge.installation {
    background: #eef5ff;
    color: #0d6efd;
    border: 1px solid #d4e4ff;
}

.detail-badge i {
    font-size: 11px;
}


/* =========================================================
   CATEGORÍA
========================================================= */

.product-category-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    color: #198754;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.product-category-label i {
    font-size: 12px;
}


/* =========================================================
   TÍTULO PRODUCTO
========================================================= */

.product-detail-title {
    margin: 0;
    color: #252a31;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(25px, 3vw, 35px);
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.product-detail-description {
    margin: 13px 0 0;
    color: #737c87;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    line-height: 1.8;
}


/* =========================================================
   DIVISOR
========================================================= */

.product-detail-divider {
    width: 100%;
    height: 1px;
    margin: 22px 0;
    background: linear-gradient(90deg, #e5e9ee, transparent);
}


/* =========================================================
   PRECIO
========================================================= */

.detail-price-box {
    position: relative;
    margin-bottom: 19px;
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fbff, #f4faf7);
    border: 1px solid #e5edf0;
}

.detail-price-label {
    margin-bottom: 6px;
    color: #7c858f;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.detail-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.detail-current-price {
    color: #198754;
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.detail-current-price.offer-price {
    color: #dc3545;
}

.detail-old-price {
    margin-top: 3px;
    color: #9ca3ab;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-decoration: line-through;
}

.detail-iva {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #198754;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.detail-iva i {
    font-size: 12px;
}

.detail-saving {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 9px;
    border-radius: 8px;
    background: rgba(220,53,69,0.07);
    color: #dc3545;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;
}

.detail-saving i {
    font-size: 12px;
}


/* =========================================================
   STOCK
========================================================= */

.detail-stock {
    margin-bottom: 20px;
}

.stock-available,
.stock-unavailable {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border-radius: 14px;
}

.stock-available {
    background: #f0faf5;
    border: 1px solid #d8eee2;
}

.stock-unavailable {
    background: #fff5f5;
    border: 1px solid #f1d9dc;
}

.stock-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-size: 15px;
}

.stock-available .stock-icon {
    background: rgba(25,135,84,0.12);
    color: #198754;
}

.stock-unavailable .stock-icon {
    background: rgba(220,53,69,0.10);
    color: #dc3545;
}

.stock-available strong,
.stock-unavailable strong {
    display: block;
    margin-bottom: 2px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.stock-available strong {
    color: #146c43;
}

.stock-unavailable strong {
    color: #a52a2a;
}

.stock-available small,
.stock-unavailable small {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    line-height: 1.4;
}

.stock-available small {
    color: #6b8578;
}

.stock-unavailable small {
    color: #987b7d;
}


/* =========================================================
   CANTIDAD
========================================================= */

.product-purchase-form {
    margin-bottom: 21px;
}

.quantity-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 16px;
}

.quantity-wrapper label {
    margin: 0;
    color: #4d5661;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.quantity-selector-modern {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #dfe5eb;
    border-radius: 12px;
    background: #fff;
}

.quantity-btn-modern {
    width: 39px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f7f9fb;
    color: #555f69;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.quantity-btn-modern:hover {
    background: #edf8f2;
    color: #198754;
}

.quantity-input-modern {
    width: 45px;
    height: 40px;
    padding: 0;
    border: none;
    outline: none;
    background: #fff;
    color: #252a31;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   BOTONES DE COMPRA
========================================================= */

.product-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.detail-cart-button,
.detail-buy-button,
.detail-out-stock-button {
    position: relative;
    height: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    border-radius: 13px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.detail-cart-button {
    border: none;
    background: #198754;
    color: #fff;
    box-shadow: 0 7px 18px rgba(25,135,84,0.20);
}

.detail-cart-button::before,
.detail-buy-button::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -100%;
    width: 60%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.detail-cart-button:hover::before,
.detail-buy-button:hover::before {
    left: 140%;
}

.detail-cart-button:hover {
    background: #157347;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(25,135,84,0.28);
}

.detail-buy-button {
    border: none;
    background: linear-gradient(135deg, #0d6efd, #0756bd);
    color: #fff;
    box-shadow: 0 7px 18px rgba(13,110,253,0.20);
}

.detail-buy-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(13,110,253,0.28);
}

.detail-cart-button i,
.detail-buy-button i {
    font-size: 15px;
    transition: transform 0.25s ease;
}

.detail-cart-button:hover i {
    transform: translateX(-2px) rotate(-5deg);
}

.detail-buy-button:hover i {
    transform: scale(1.12);
}

.detail-out-stock-button {
    width: 100%;
    border: 1px solid #e2e5e8;
    background: #f5f6f7;
    color: #8b9299;
    cursor: not-allowed;
}


/* =========================================================
   CARACTERÍSTICAS
========================================================= */

.product-features-modern {
    position: relative;
    margin-top: 25px;
    padding-top: 22px;
    border-top: 1px solid #edf0f3;
}

.features-title {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 15px;
}

.features-title-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(25,135,84,0.10);
    color: #198754;
    font-size: 16px;
}

.features-title h3 {
    margin: 0;
    color: #252a31;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
}

.product-features-modern ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-features-modern li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 9px 0;
    border-bottom: 1px solid #f0f2f4;
    color: #606974;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    line-height: 1.6;
}

.product-features-modern li:last-child {
    border-bottom: none;
}

.feature-check {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #edf9f3;
    color: #198754;
    font-size: 11px;
}

.product-features-modern li strong {
    color: #3c444e;
    font-weight: 700;
}


/* =========================================================
   DESCRIPCIÓN COMPLETA
========================================================= */

.product-description-section {
    position: relative;
    margin-top: 65px;
}

.product-content-card {
    position: relative;
    padding: 35px 40px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e7ebf0;
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(20,30,50,0.055);
}

.product-content-card::before {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    right: -100px;
    top: -120px;
    border-radius: 50%;
    border: 1px solid rgba(13,110,253,0.08);
}

.product-content-card::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    left: -70px;
    bottom: -70px;
    border-radius: 50%;
    background: rgba(0,204,136,0.045);
}

.product-content-heading {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.content-heading-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(13,110,253,0.11), rgba(0,204,136,0.11));
    color: #0d6efd;
    font-size: 21px;
}

.product-content-heading span {
    display: block;
    margin-bottom: 3px;
    color: #198754;
    font-family: 'Poppins', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.1px;
}

.product-content-heading h2 {
    margin: 0;
    color: #252a31;
    font-family: 'Poppins', sans-serif;
    font-size: 23px;
    font-weight: 800;
}

.product-long-description {
    position: relative;
    z-index: 2;
    color: #626b75;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    line-height: 2;
}

.product-long-description br {
    content: "";
    display: block;
    margin-bottom: 7px;
}


/* =========================================================
   PRODUCTOS RELACIONADOS
========================================================= */

.related-products-modern {
    position: relative;
    margin-top: 75px;
}

.related-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.related-heading span {
    display: block;
    margin-bottom: 5px;
    color: #198754;
    font-family: 'Poppins', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.related-heading h2 {
    margin: 0;
    color: #252a31;
    font-family: 'Poppins', sans-serif;
    font-size: 27px;
    font-weight: 800;
}

.related-view-all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border-radius: 10px;
    background: #f1f8f4;
    color: #198754;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease;
}

.related-view-all:hover {
    background: #198754;
    color: #fff;
    transform: translateX(3px);
}

.related-view-all i {
    transition: transform 0.25s ease;
}

.related-view-all:hover i {
    transform: translateX(3px);
}


/* =========================================================
   TARJETA RELACIONADA
========================================================= */

.related-product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e7ebf0;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(20,30,50,0.055);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.related-product-card:hover {
    transform: translateY(-7px);
    border-color: rgba(25,135,84,0.20);
    box-shadow: 0 18px 42px rgba(20,30,50,0.11);
}

.related-product-image {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    background: linear-gradient(145deg, #f8fafc, #ffffff);
    border-bottom: 1px solid #eef1f4;
}

.related-product-image::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13,110,253,0.055), transparent 70%);
}

.related-product-image img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(20,30,50,0.10));
    transition: transform 0.4s ease;
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.07);
}

.related-product-badge {
    position: absolute;
    z-index: 5;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 50px;
    background: #dc3545;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 9px;
    font-weight: 700;
    box-shadow: 0 5px 12px rgba(0,0,0,0.10);
}

.related-product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px;
}

.related-product-content h3 {
    min-height: 43px;
    margin: 0 0 13px;
    color: #252a31;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-product-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 15px;
}

.related-iva {
    color: #198754;
    font-family: 'Poppins', sans-serif;
    font-size: 9px;
    font-weight: 600;
}

.related-product-price strong {
    color: #198754;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 800;
}

.related-product-price strong.offer-price {
    color: #dc3545;
}

.related-product-price small {
    color: #9da3aa;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    text-decoration: line-through;
}

.related-details-button {
    width: 100%;
    height: 39px;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #198754;
    border-radius: 10px;
    background: #fff;
    color: #198754;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.related-details-button:hover {
    background: #198754;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 7px 16px rgba(25,135,84,0.18);
}

.related-details-button i {
    transition: transform 0.25s ease;
}

.related-details-button:hover i {
    transform: translateX(3px);
}


/* =========================================================
   ANIMACIONES
========================================================= */

@keyframes productHeroFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(25px, 18px, 0); }
}

@keyframes productHeroRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes productDecorFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes productDotsFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(8px, -12px); }
}

@keyframes productHeroFade {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes productHeroTitle {
    from { opacity: 0; transform: translateY(25px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes productHeroText {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes productLineGrow {
    from { width: 0; opacity: 0; }
    to { width: 65px; opacity: 1; }
}

@keyframes productImageGlow {
    0%, 100% { transform: scale(0.95); opacity: 0.75; }
    50% { transform: scale(1.08); opacity: 1; }
}

@keyframes productImageEntrance {
    from { opacity: 0; transform: translateY(20px) scale(0.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes productBadgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes productAlertIn {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}


/* =========================================================
   AOS - REFUERZO VISUAL
========================================================= */

[data-aos="product-fade-up"] {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.22,1,.36,1);
}

[data-aos="product-fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   REDUCIR MOVIMIENTO
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .product-detail-hero-bg::before,
    .product-detail-hero-bg::after,
    .product-detail-hero .container::before,
    .product-detail-hero .container::after,
    .product-gallery-badge,
    .product-main-image::before,
    .product-image-wrapper img {
        animation: none !important;
    }
    .product-main-image,
    .product-thumbnail,
    .related-product-card,
    .detail-cart-button,
    .detail-buy-button {
        transition: none !important;
    }
}


/* =========================================================
   RESPONSIVE
========================================================= */

/* Tablet */
@media (max-width: 991.98px) {
    .product-detail-hero {
        min-height: 350px;
        padding: 90px 0 125px;
    }
    .product-detail-section {
        padding-top: 25px;
    }
    .product-gallery-modern {
        position: relative;
        top: auto;
        margin-bottom: 10px;
    }
    .product-main-image {
        min-height: 450px;
    }
    .product-image-wrapper {
        min-height: 380px;
    }
    .product-info-modern {
        padding: 25px;
    }
    .product-description-section {
        margin-top: 50px;
    }
    .related-products-modern {
        margin-top: 60px;
    }
}

/* Móvil */
@media (max-width: 767.98px) {
    .product-detail-hero {
        min-height: 340px;
        padding: 85px 0 120px;
    }
    .product-detail-hero-bg::before {
        width: 280px;
        height: 280px;
        left: -150px;
        top: -100px;
    }
    .product-detail-hero-bg::after {
        width: 320px;
        height: 320px;
        right: -180px;
        top: -110px;
    }
    .product-detail-header {
        padding: 0 15px;
    }
    .product-detail-eyebrow {
        font-size: 9px;
        padding: 7px 11px;
    }
    .product-detail-header h1 {
        font-size: 28px;
        line-height: 1.2;
    }
    .product-detail-header p {
        font-size: 12px;
        line-height: 1.7;
    }
    .product-detail-line {
        margin-top: 18px;
    }
    .product-detail-section {
        padding: 20px 0 75px;
    }
    .product-alert {
        align-items: flex-start;
        font-size: 11px;
    }
    .product-main-image {
        min-height: 350px;
        padding: 25px;
        border-radius: 20px;
    }
    .product-image-wrapper {
        min-height: 300px;
    }
    .product-image-wrapper img {
        max-height: 300px;
    }
    .product-gallery-badge {
        top: 14px;
        left: 14px;
    }
    .product-thumbnail {
        width: 64px;
        height: 64px;
    }
    .product-info-modern {
        padding: 20px;
        border-radius: 20px;
    }
    .product-detail-title {
        font-size: 25px;
    }
    .detail-price-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
    .detail-current-price {
        font-size: 27px;
    }
    .product-action-buttons {
        grid-template-columns: 1fr;
    }
    .detail-cart-button,
    .detail-buy-button {
        height: 48px;
    }
    .quantity-wrapper {
        align-items: flex-start;
        flex-direction: column;
    }
    .quantity-selector-modern {
        width: 100%;
        justify-content: center;
    }
    .quantity-btn-modern {
        flex: 1;
    }
    .quantity-input-modern {
        width: 65px;
    }
    .product-content-card {
        padding: 25px 20px;
        border-radius: 20px;
    }
    .product-content-heading {
        align-items: flex-start;
    }
    .content-heading-icon {
        width: 43px;
        height: 43px;
        border-radius: 12px;
        font-size: 18px;
    }
    .product-content-heading h2 {
        font-size: 20px;
    }
    .product-long-description {
        font-size: 12px;
        line-height: 1.9;
    }
    .related-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .related-heading h2 {
        font-size: 23px;
    }
    .related-view-all {
        align-self: flex-start;
    }
    .related-product-image {
        height: 190px;
    }
}

/* Móvil pequeño */
@media (max-width: 480px) {
    .product-detail-header h1 {
        font-size: 25px;
    }
    .product-detail-header p {
        font-size: 11px;
    }
    .product-main-image {
        min-height: 300px;
        padding: 20px;
    }
    .product-image-wrapper {
        min-height: 250px;
    }
    .product-image-wrapper img {
        max-height: 250px;
    }
    .product-thumbnails {
        gap: 8px;
    }
    .product-thumbnail {
        width: 58px;
        height: 58px;
    }
    .product-info-modern {
        padding: 17px;
    }
    .product-status-badges {
        gap: 5px;
    }
    .detail-badge {
        font-size: 8px;
        padding: 6px 9px;
    }
    .product-detail-title {
        font-size: 22px;
    }
    .detail-current-price {
        font-size: 25px;
    }
    .stock-available,
    .stock-unavailable {
        padding: 11px;
    }
    .product-content-card {
        padding: 22px 17px;
    }
    .related-product-content {
        padding: 16px;
    }
}


/* =========================================================
   CORRECCIÓN PARA ELEMENTOS BOOTSTRAP
========================================================= */

.product-detail-section .row {
    position: relative;
    z-index: 2;
}

.product-detail-section img {
    max-width: 100%;
}




/* Contenedor de la imagen principal */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.product-image-wrapper img {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease;
    opacity: 1;
}

/* Cuando la imagen está cambiando (clase temporal) */
.product-image-wrapper img.changing {
    opacity: 0;
    transform: scale(0.95);
}
/* =========================================================
   FIN PRODUCTO.CSS
========================================================= */