 /* ===== ESTILOS MODERNOS GLOBALES ===== */
    :root {
        --primary-color: #009FC7;
        --primary-dark: #007a9c;
        --primary-light: #21d4fd;
        --success-color: #28B463;
        --danger-color: #E74C3C;
        --warning-color: #F39C12;
        --text-dark: #2C3E50;
        --text-light: #7F8C8D;
        --bg-light: #F8F9FA;
        --border-radius: 16px;
        --border-radius-sm: 12px;
        --border-radius-lg: 20px;
        --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
        --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
        --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
        --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
        color: var(--text-dark);
        background: var(--bg-light);
    }

    /* ===== CONTENEDOR PRINCIPAL ===== */
    #wrapper {
        margin-top: 100px;
        background: transparent !important;
    }

          /* Estilos para el selector de cantidad */
      #DdlCantidadCarrito {
        width: 100px;
        padding: 8px 12px;
        border: 2px solid #009FC7;
        border-radius: 8px;
        font-size: 18px;
        font-weight: 700;
        color: #009FC7;
        background-color: #fff;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s;
      }

      #DdlCantidadCarrito:hover {
        border-color: #21d4fd;
        box-shadow: 0 2px 8px rgba(33,212,253,0.2);
      }

      #DdlCantidadCarrito:focus {
        outline: none;
        border-color: #21d4fd;
        box-shadow: 0 0 0 3px rgba(33,212,253,0.1);
      }

    .container {
        max-width: 1200px;
    }

    /* ===== CARRUSEL DE IMÁGENES MODERNO ===== */
      .slideshow-container {
      max-width: 400px;
      min-height: 400px;
      position: relative;
      margin: auto;
      box-shadow: 0 8px 32px rgba(0,0,0,0.10);
      border-radius: 1rem;
      background: #fff;
      }

      #imgContainer {
      min-height: 350px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #fff;
      }

      .mySlides {
      display: none;
      min-height: 350px;
      align-items: center;
      justify-content: center;
      }

      .mySlides[style*="display: block"] {
      display: flex !important;
      align-items: center;
      justify-content: center;
      }

      .sliderbiitte {
      vertical-align: middle;
      max-height: 350px;
      width: auto !important;
      max-width: 100%;
      object-fit: contain !important;
      }

      #carousel-thumbnails {
      padding: 10px;
      background: #f8f9fa;
      border-radius: 0 0 1rem 1rem;
      }
      
      .carousel-thumb-img {
      width: 48px;
      height: 48px;
      object-fit: cover;
      border-radius: 8px;
      cursor: pointer;
      border: 2px solid #eee;
      margin: 2px;
      transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
      }
      
      .carousel-thumb-img:hover {
      border-color: #009FC7;
      transform: scale(1.05);
      }
      
      .carousel-thumb-img.active {
      border-color: #009FC7;
      box-shadow: 0 0 8px rgba(0,159,199,0.4);
      }
      
      @media (max-width: 600px) {
      #carousel-thumbnails {
      gap: 4px !important;
      }
      .carousel-thumb-img {
      width: 36px;
      height: 36px;
      }
      }

    .prev, .next {
        cursor: pointer;
        position: absolute;
        top: 50%;
        width: auto;
        padding: 14px 18px;
        margin-top: -22px;
        color: var(--primary-color) !important;
        font-weight: bold;
        font-size: 20px;
        transition: var(--transition);
        border-radius: 50%;
        user-select: none;
        background: rgba(255,255,255,0.95);
        box-shadow: var(--shadow-md);
        z-index: 10;
    }

    .next {
        right: 10px;
    }

    .prev {
        left: 10px;
    }

    .prev:hover, .next:hover {
        background: var(--primary-color);
        color: #fff !important;
        transform: scale(1.1);
    }

.numbertext {
    color: #fff;
    font-size:  13px;
    font-weight: 600;
    padding: 6px 14px;
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 0;
    z-index: 5;
}

    /* Miniaturas modernas */
    .carousel-thumb-img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: var(--border-radius-sm);
        cursor: pointer;
        border: 3px solid #e0e0e0;
        margin: 4px;
        transition: var(--transition);
    }

    .carousel-thumb-img:hover {
        border-color: var(--primary-color);
        transform: scale(1.1);
        box-shadow: var(--shadow-md);
    }

    .carousel-thumb-img.active {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px rgba(0,159,199,0.2);
    }

    @media (max-width: 600px) {
        #carousel-thumbnails {
            gap: 4px !important;
        }
        .carousel-thumb-img {
            width: 48px;
            height: 48px;
        }
    }

    /* ===== INFORMACIÓN DEL PRODUCTO ===== */
    .product-info-container {
        background: #fff;
        border-radius: var(--border-radius-lg);
        padding: 32px;
        box-shadow: var(--shadow-md);
        margin-top: 15px;
    }

    .product-title {
        font-size: 28px;
        font-weight: 700;
        color: var(--text-dark);
        margin-bottom: 24px;
        line-height: 1.3;
    }

    /* Precios modernos */
    .product-prices {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: var(--border-radius);
        padding: 24px;
        margin-bottom: 24px;
        border: 2px solid #e0e0e0;
    }

    .regular-price {
        font-size: 18px;
        color: var(--text-light);
        margin-right: 12px;
    }

    .regular-price strike {
        color: #B03A2E !important;
    }

    .current-price {
        display: flex;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
        margin-top: 12px;
    }

    .current-price strong {
        color: var(--success-color) !important;
        font-size: 42px !important;
        font-weight: 800 !important;
        letter-spacing: -1px;
    }

    .discount-percentage {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
        color: white !important;
        padding: 8px 16px;
        border-radius: 50px;
        font-size: 16px;
        font-weight: 700;
        box-shadow: var(--shadow-sm);
    }

    /* Badge de ahorro */
    .badge-pill {
        padding: 10px 20px;
        border-radius: 50px;
        font-size: 15px;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        box-shadow: var(--shadow-sm);
    }

    .badge-warning {
        background: linear-gradient(135deg, #F39C12 0%, #E67E22 100%);
        color: white !important;
    }

    /* Stock moderno */
    #stock strong {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 16px;
        background: #fff;
        border-radius: 50px;
        box-shadow: var(--shadow-sm);
        margin-top: 12px;
    }

    /* ===== COUNTDOWN TIMER MODERNO ===== */
    .countdown-timer {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 16px 24px;
        border-radius: var(--border-radius);
        font-size: 16px;
        font-weight: 700;
        text-align: center;
        box-shadow: var(--shadow-md);
        margin-bottom: 20px;
        display: inline-block;
        min-width: 100%;
    }

    .countdown-timer i {
        margin-right: 8px;
        font-size: 18px;
    }

    .countdown-timer .dias,
    .countdown-timer .horas,
    .countdown-timer .minutos,
    .countdown-timer .segundos {
        background: rgba(255,255,255,0.2);
        padding: 4px 10px;
        border-radius: 8px;
        margin: 0 4px;
        font-weight: 800;
    }

    /* ===== BOTONES MODERNOS ===== */
    .btn {
        border-radius: 50px;
        padding: 14px 32px;
        font-weight: 600;
        font-size: 16px;
        transition: var(--transition);
        border: none;
        box-shadow: var(--shadow-sm);
        text-transform: none;
        letter-spacing: 0.3px;
    }

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .btn:active {
        transform: translateY(0);
    }

    .btn-success {
        background: linear-gradient(135deg, #28B463 0%, #229954 100%);
        border: none;
    }

    .btn-success:hover {
        background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
    }

    .btn-info {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
        border: none;
    }

    .btn-info:hover {
        background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    }

    .btn-warning {
        background: linear-gradient(135deg, #F39C12 0%, #E67E22 100%);
        border: none;
    }

    .btn-outline-danger {
        border: 2px solid var(--danger-color);
        color: var(--danger-color);
        background: transparent;
    }

    .btn-outline-danger:hover {
        background: var(--danger-color);
        color: white;
        border-color: var(--danger-color);
    }

    .btn-danger {
        background: linear-gradient(135deg, var(--danger-color) 0%, #C0392B 100%);
    }

    .btn-block {
        width: 100%;
        margin-bottom: 12px;
    }

    /* Select moderno */
    .form-control {
        border-radius: var(--border-radius-sm);
        border: 2px solid #e0e0e0;
        padding: 12px 16px;
        font-size: 15px;
        transition: var(--transition);
    }

    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(0,159,199,0.1);
        outline: none;
    }

    /* ===== WHATSAPP BUTTON ===== */
    #ComprarWA a {
        text-decoration: none;
        color: #25D366;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 14px 24px;
        background: rgba(37,211,102,0.1);
        border-radius: 50px;
        transition: var(--transition);
        font-weight: 600;
        border: 2px solid #25D366;
    }

    #ComprarWA a:hover {
        background: #25D366;
        color: white;
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    #ComprarWA i {
        margin-right: 10px;
        font-size: 24px;
    }

    /* ===== COMPARTIR SOCIAL ===== */
    .social-sharing {
        padding: 20px;
        background: #fff;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-sm);
        margin-top: 20px;
    }

    .social-sharing a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        margin: 0 6px;
        transition: var(--transition);
        background: #f8f9fa;
    }

    .social-sharing a:hover {
        transform: translateY(-4px) scale(1.1);
        box-shadow: var(--shadow-md);
    }

    .social-sharing a i {
        font-size: 24px;
    }

    /* ===== CARDS DE INFORMACIÓN ===== */
    .animated-section {
        background: #fff;
        border-radius: var(--border-radius);
        padding: 24px;
        margin-bottom: 20px;
        box-shadow: var(--shadow-sm);
        border-left: 5px solid var(--primary-color);
        transition: var(--transition);
    }

    .animated-section:hover {
        box-shadow: var(--shadow-md);
        transform: translateX(4px);
    }

    #product-description-short-2 {
        border-left-color: var(--primary-color);
        background: linear-gradient(135deg, #e0f7fa 0%, #ffffff 100%);
    }

    #product-conditions-short-2 {
        border-left-color: #F39C12;
        background: linear-gradient(135deg, #fffde4 0%, #ffffff 100%);
    }

    .animated-section i {
        font-size: 24px;
        margin-right: 12px;
    }

    .animated-section p {
        margin-top: 16px;
        line-height: 1.7;
        color: var(--text-dark);
    }

    /* ===== PRODUCTOS SIMILARES ===== */
    #SimilarProducts {
        margin-top: 60px;
        padding: 40px 0;
    }

    #SimilarProducts .main-area {
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        padding: 40px 30px;
        border-radius: var(--border-radius-lg);
        box-shadow: var(--shadow-md);
    }

    #SimilarProducts h5 {
        color: var(--primary-color);
        font-size: 32px;
        font-weight: 800;
        letter-spacing: 0.5px;
        margin-bottom: 40px;
        position: relative;
        display: inline-block;
    }

    #SimilarProducts h5::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 4px;
        background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
        border-radius: 2px;
    }

    #containerSimilarOffers {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
        justify-content: center;
    }

    #containerSimilarOffers .card {
        background: #fff;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-sm);
        transition: var(--transition);
        overflow: hidden;
        border: none;
        height: 100%;
    }

    #containerSimilarOffers .card:hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-8px);
    }

    #containerSimilarOffers .card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        transition: var(--transition);
    }

    #containerSimilarOffers .card:hover img {
        transform: scale(1.1);
    }

    #containerSimilarOffers .card-body {
        padding: 20px;
    }

    #containerSimilarOffers .card-title {
        font-size: 16px;
        font-weight: 700;
        color: var(--text-dark);
        margin-bottom: 12px;
        min-height: 48px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    #containerSimilarOffers .btn {
        background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
        color: #fff;
        border-radius: 50px;
        font-weight: 700;
        padding: 12px 24px;
        border: none;
        box-shadow: var(--shadow-sm);
        transition: var(--transition);
        width: 100%;
    }

    #containerSimilarOffers .btn:hover {
        background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary-color) 100%);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    @media (max-width: 991px) {
        #containerSimilarOffers {
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
        }
    }

    @media (max-width: 600px) {
        #containerSimilarOffers {
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }

        .product-title {
            font-size: 22px;
        }

        .current-price strong {
            font-size: 32px !important;
        }
    }

    /* ===== FORMULARIO DE CONTACTO ===== */
    .jumbotron {
        background: linear-gradient(135deg, #e0f7fa 0%, #f8f9fa 100%);
        border-radius: var(--border-radius-lg);
        padding: 60px 20px;
        margin-top: 60px;
    }

    .jumbotron .container {
        background: #fff;
        padding: 40px 30px;
        box-shadow: var(--shadow-lg);
        border-radius: var(--border-radius-lg);
        max-width: 600px;
    }

    .jumbotron h5 {
        color: var(--primary-color);
        font-size: 26px;
        font-weight: 700;
        margin-bottom: 30px;
    }

    .form-group label {
        font-weight: 600;
        color: var(--primary-color);
        margin-bottom: 8px;
        font-size: 15px;
    }

    .form-group input,
    .form-group textarea {
        border-radius: var(--border-radius-sm);
        border: 2px solid #e0e0e0;
        padding: 14px 18px;
        font-size: 15px;
        transition: var(--transition);
        box-shadow: var(--shadow-sm);
    }

    .form-group input:focus,
    .form-group textarea:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(0,159,199,0.1);
        outline: none;
    }

    .btn-primary {
        background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
        color: #fff;
        font-size: 18px;
        font-weight: 700;
        padding: 14px 48px;
        border: none;
        border-radius: 50px;
        box-shadow: var(--shadow-md);
        transition: var(--transition);
        cursor: pointer;
    }

    .btn-primary:hover {
        background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary-color) 100%);
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

    /* ===== MODAL ESTILOS ===== */
    .img-modal-bg {
        background: transparent !important;
        box-shadow: none;
    }

    .close-x-modal {
        position: absolute;
        top: 10px;
        right: 40px;
        background: rgba(255,255,255,0.2);
        backdrop-filter: blur(10px);
        border: none;
        font-size: 2.5rem;
        line-height: 1;
        color: #fff;
        z-index: 10;
        cursor: pointer;
        transition: var(--transition);
        text-shadow: 0 2px 8px #000;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .close-x-modal:hover {
        background: var(--primary-color);
        transform: rotate(90deg) scale(1.1);
    }

    .modal-backdrop.show {
        opacity: 0.95 !important;
        background: rgba(20,20,20,0.95) !important;
        backdrop-filter: blur(4px);
    }

    /* ===== STICKY IMAGEN ===== */
    @media (min-width: 992px) {
        .sticky-img-offer {
            position: sticky;
            top: 110px;
            align-self: flex-start;
        }
        .sticky-disabled {
            position: static !important;
            top: unset !important;
        }
    }

    @media (max-width: 991px) {
        .sticky-img-offer {
            position: static !important;
            top: unset !important;
        }
    }

    /* ===== ANIMACIONES ===== */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes entradaCarrito {
        0% {
            opacity: 0;
            transform: translateY(20px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    #btnVerCarrito {
        animation: entradaCarrito 0.6s ease-out;
    }

    .fade {
        animation-name: fade;
        animation-duration: 0.8s;
    }

    @keyframes fade {
        from {opacity: 0.6}
        to {opacity: 1}
    }

    /* ===== ALERTAS MODERNAS ===== */
    .alert {
        border-radius: var(--border-radius);
        border: none;
        box-shadow: var(--shadow-sm);
        padding: 16px 20px;
        font-weight: 500;
    }

    .alert-success {
        background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
        color: #155724;
    }

    .alert-danger {
        background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
        color: #721c24;
    }

    /* ===== FORM VALIDATION ===== */
    form label.error {
        color: var(--danger-color);
        font-style: italic;
        font-size: 13px;
        margin-top: 4px;
    }

    /* ===== RESPONSIVE ADJUSTMENTS ===== */
    @media (max-width: 768px) {
        .product-info-container {
            padding: 20px;
        }

        .product-prices {
            padding: 16px;
        }

        .btn {
            padding: 12px 24px;
            font-size: 15px;
        }

        .jumbotron .container {
            padding: 24px 20px;
        }
    }



    /* los viejos */
    input {
  outline: none;
  border: none;
}

textarea {
  outline: none;
  border: none;
}

textarea:focus, input:focus {
  border-color: transparent !important;
}

input:focus::-webkit-input-placeholder { color:transparent; }
input:focus:-moz-placeholder { color:transparent; }
input:focus::-moz-placeholder { color:transparent; }
input:focus:-ms-input-placeholder { color:transparent; }

textarea:focus::-webkit-input-placeholder { color:transparent; }
textarea:focus:-moz-placeholder { color:transparent; }
textarea:focus::-moz-placeholder { color:transparent; }
textarea:focus:-ms-input-placeholder { color:transparent; }

input::-webkit-input-placeholder { color: #adadad;}
input:-moz-placeholder { color: #adadad;}
input::-moz-placeholder { color: #adadad;}
input:-ms-input-placeholder { color: #adadad;}

textarea::-webkit-input-placeholder { color: #adadad;}
textarea:-moz-placeholder { color: #adadad;}
textarea::-moz-placeholder { color: #adadad;}
textarea:-ms-input-placeholder { color: #adadad;}


form label.error, label.error {color: red;font-style: italic}

@keyframes entradaCarrito {
    0% {
    opacity: 0;
    transform: translateY(20px);
    }
    100% {
    opacity: 1;
    transform: translateY(0);
    }
}

#btnVerCarrito {
    animation: entradaCarrito 1s ease-out;
}