body {
    background: linear-gradient(135deg, #eef4ff, #f9fbff);
    font-family: 'Segoe UI', sans-serif;
}

.container {
    max-width: 1400px;
    margin: auto;
    padding: 30px;
}

.page-header {
    text-align: center;
    font-size: 42px;
    font-weight: 800;
    color: #0d3b66;
    margin: 70px 0 50px;
    position: relative;
    letter-spacing: 1px;
    animation: fadeDown 1s ease;
}

    .page-header::after {
        content: "";
        width: 110px;
        height: 5px;
        background: linear-gradient(90deg,#0077ff,#00d4ff);
        display: block;
        margin: 18px auto 0;
        border-radius: 50px;
    }

.productoTable {
    width: 100%;
}

.productoRow {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    margin-bottom: 45px;
}

.productoCell {
    flex: 1;
    min-width: 340px;
}

.productoCard {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
    transition: all .45s ease;
    position: relative;
    animation: fadeUp 1s ease;
}

    .productoCard:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: 0 25px 60px rgba(0,119,255,0.18);
    }

    .productoCard::before {
        content: "";
        position: absolute;
        top: 0;
        left: -120%;
        width: 100%;
        height: 100%;
        background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
        transition: 1s;
    }

    .productoCard:hover::before {
        left: 120%;
    }

.CategoriaTitulo {
    background: linear-gradient(135deg,#0d47a1,#1976d2,#2196f3);
    padding: 22px;
    text-align: center;
}

    .CategoriaTitulo a {
        color: white;
        text-decoration: none;
        font-size: 23px;
        font-weight: bold;
        transition: .3s ease;
    }

        .CategoriaTitulo a:hover {
            color: #d9f1ff;
        }

.CategoriaDescripcion {
    padding: 28px;
}

.ImagenModelo {
    text-align: center;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 25px;
    position: relative;
}

    .ImagenModelo img {
        width: 100%;
        border-radius: 20px;
        transition: transform .7s ease;
    }

.productoCard:hover .ImagenModelo img {
    transform: scale(1.08) rotate(1deg);
}

.ImagenDescripcion {
    color: #4a5568;
    line-height: 1.9;
    font-size: 15px;
    margin-bottom: 25px;
    text-align: justify;
}

.producto-btn {
    display: inline-block;
    background: linear-gradient(135deg,#0077ff,#00c6ff);
    color: white !important;
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: bold;
    letter-spacing: .5px;
    transition: all .35s ease;
    box-shadow: 0 10px 20px rgba(0,119,255,0.25);
}

    .producto-btn:hover {
        transform: translateY(-4px) scale(1.05);
        background: linear-gradient(135deg,#005ce6,#0099ff);
        box-shadow: 0 18px 35px rgba(0,119,255,0.4);
    }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media(max-width:768px) {

    .productoRow {
        flex-direction: column;
    }

    .page-header {
        font-size: 30px;
    }

    .CategoriaTitulo a {
        font-size: 20px;
    }

    .productoCell {
        min-width: 100%;
    }
}

#exampleModalCenter.fade .modal-dialog {
    transform: scale(0.85) translateY(-30px);
    opacity: 0;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .35s ease;
}

#exampleModalCenter.show .modal-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

#exampleModalCenter .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

#exampleModalCenter .modal-header {
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    padding: 24px 30px;
    border: none;
}

#exampleModalCenter .modal-title {
    color: white;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: left;
    width: 100%;
}

#exampleModalCenter .close {
    color: rgba(255,255,255,0.8);
    opacity: 1;
    font-size: 24px;
    text-shadow: none;
}

    #exampleModalCenter .close:hover {
        color: white;
    }

#exampleModalCenter .modal-body {
    background: #f4f8ff;
    padding: 28px 30px;
}

#exampleModalCenter .modal-footer {
    background: #f4f8ff;
    border-top: 1px solid #dde8ff;
    padding: 16px 30px;
}

.tabla-dimensiones .row {
    opacity: 0;
}

.modal.show .tabla-dimensiones .row {
    animation: filaAparece .45s ease forwards;
}

.tabla-dimensiones .row:nth-child(1) {
    animation-delay: 0s;
}

.tabla-dimensiones .row:nth-child(2) {
    animation-delay: .03s;
}

.tabla-dimensiones .row:nth-child(3) {
    animation-delay: .06s;
}

.tabla-dimensiones .row:nth-child(4) {
    animation-delay: .09s;
}

.tabla-dimensiones .row:nth-child(5) {
    animation-delay: .12s;
}

.tabla-dimensiones .row:nth-child(6) {
    animation-delay: .15s;
}

.tabla-dimensiones .row:nth-child(7) {
    animation-delay: .18s;
}

.tabla-dimensiones .row:nth-child(8) {
    animation-delay: .21s;
}

.tabla-dimensiones .row:nth-child(9) {
    animation-delay: .24s;
}

.tabla-dimensiones .row:nth-child(10) {
    animation-delay: .27s;
}

.tabla-dimensiones .row:nth-child(11) {
    animation-delay: .30s;
}

.tabla-dimensiones .row:nth-child(12) {
    animation-delay: .33s;
}

.tabla-dimensiones .row:nth-child(13) {
    animation-delay: .36s;
}

.tabla-dimensiones .row:nth-child(14) {
    animation-delay: .39s;
}

.tabla-dimensiones .row:nth-child(15) {
    animation-delay: .42s;
}

.tabla-dimensiones .row:nth-child(16) {
    animation-delay: .45s;
}

.tabla-dimensiones .row:nth-child(17) {
    animation-delay: .48s;
}

.tabla-dimensiones .row:nth-child(18) {
    animation-delay: .51s;
}

.tabla-dimensiones .row:nth-child(19) {
    animation-delay: .54s;
}

.tabla-dimensiones .row:nth-child(20) {
    animation-delay: .57s;
}

.tabla-dimensiones .row:nth-child(21) {
    animation-delay: .60s;
}

.tabla-dimensiones .row:nth-child(22) {
    animation-delay: .63s;
}

.tabla-dimensiones .row:nth-child(23) {
    animation-delay: .66s;
}

.tabla-dimensiones .row:nth-child(24) {
    animation-delay: .69s;
}

.tabla-dimensiones .row:nth-child(25) {
    animation-delay: .72s;
}

@keyframes filaAparece {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tabla-dimensiones .row:first-child {
    background: linear-gradient(135deg, #0d47a1, #1565c0) !important;
    border-radius: 12px 12px 0 0;
    padding: 14px 0;
    margin-bottom: 4px;
}

    .tabla-dimensiones .row:first-child .col-2 {
        color: white !important;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        line-height: 1.5;
    }

.tabla-dimensiones .row:not(:first-child) {
    border-radius: 8px;
    padding: 11px 0;
    margin-bottom: 3px;
    transition: background 0.2s ease, transform 0.15s ease;
    cursor: default;
}

    .tabla-dimensiones .row:not(:first-child):hover {
        background: #dbeaff !important;
        transform: translateX(4px);
    }

.tabla-dimensiones .row:nth-child(odd):not(:first-child) {
    background: #ffffff;
}

.tabla-dimensiones .row.bg-light {
    background: #edf3ff !important;
}

.tabla-dimensiones .col-2 {
    font-size: 14px;
    color: #1a2e4a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tabla-dimensiones .row:not(:first-child) .col-2:first-child {
    font-weight: 700;
    color: #0d47a1;
    font-size: 14px;
}

#exampleModalCenter .modal-footer .btn-primary {
    background: linear-gradient(135deg, #0077ff, #00c6ff);
    border: none;
    border-radius: 50px;
    padding: 10px 28px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(0, 119, 255, 0.3);
    transition: all 0.3s ease;
}

    #exampleModalCenter .modal-footer .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 30px rgba(0, 119, 255, 0.45);
    }

.modal-backdrop {
    z-index: 1040 !important;
}

#exampleModalCenter {
    z-index: 1050 !important;
}

    #exampleModalCenter .modal-content {
        position: relative;
        z-index: 1051;
        background: #ffffff !important;
    }
