@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html, body {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.button-link {
    text-decoration: unset;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.625rem;
}

.title.title-secondary {
    padding-top: 0.313rem;
    padding-bottom: 0;
    color: var(--bs-secondary-color);
}

.title-header-text {
    font-size: 2.5rem;
    line-height: 3rem;
    font-weight: 600;
    letter-spacing: 0rem;
    padding: 0.3125rem 0;
}

.title-content-text {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 2.5rem;
    letter-spacing: 0rem;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80%;
    width: 100%;
}

.block-content {
    width: 31.25rem;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-width: 100%;
}

.dxbl-btn.dxbl-btn-primary,
.dxbl-btn.dxbl-btn-secondary, .btnTipoArticulo {
    border-radius: .5rem !important;
    padding-top: .5rem;
    padding-bottom: .5rem;
}

.dxbl-pager > .dxbl-btn.dxbl-btn-outline-secondary.dxbl-pager-active-page-btn {
    --dxbl-btn-bg: rgba(255, 170, 51, 0.59);
    --dxbl-btn-color: #fff;
    --dxbl-btn-disabled-bg: var(--dxbl-pager-active-page-btn-bg);
    --dxbl-btn-disabled-color: var(--dxbl-pager-active-page-btn-color);
    --dxbl-btn-disabled-background: none;
    --dxbl-pager-page-btn-hover-bg: #fff;
    --dxbl-pager-page-btn-hover-color: rgba(255, 170, 51, 0.59);
    border: none !important;
    cursor: default;
}

.dxbl-btn-standalone {
    --dxbl-btn-box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    --dxbl-btn-disabled-opacity: 0.5;
    --dxbl-btn-link-hover-color: rgba(255, 170, 51, 0.59);
    --dxbl-btn-link-text-decoration: Underline;
    --dxbl-btn-bg: rgba(255, 170, 51, 0.59);
    --dxbl-btn-color: #fff;
    --dxbl-btn-border-color: rgba(255, 255, 255, 0);
    --dxbl-btn-disabled-color: #adb5bd;
    --dxbl-btn-font-size: 0.875rem;
    --dxbl-btn-line-height: 20px;
    --dxbl-btn-padding-x: 0.75rem;
    --dxbl-btn-padding-y: 0.25rem;
    --dxbl-btn-image-spacing: 0.375rem;
    --dxbl-btn-border-width: 0.063rem;
    --dxbl-btn-border-radius: 0.125rem;
    --dxbl-btn-focus-outline-size: 0.125rem;
    --dxbl-btn-focus-outline-offset: 0.063rem;
    --dxbl-btn-focus-box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    --dxbl-btn-focus-outline-color: #FD7E14;
}

.dxbl-btn:not(.dxbl-disabled):not(:disabled):hover {
    border-color: none;
    background: #fff;
    background-color: #fff;
    color: rgba(255, 170, 51, 0.59);
}

.dxbl-btn-primary:where(:not(.dxbl-btn-standalone)) {
    --dxbl-btn-bg: rgba(255, 170, 51, 0.59);
    --dxbl-btn-border-color: rgba(255, 170, 51, 0.59);
    --dxbl-btn-color: #fff;
    --dxbl-btn-active-bg: rgba(255, 170, 51, 0.59);
    --dxbl-btn-active-color: #fff;
    --dxbl-btn-active-border-color: rgba(255, 170, 51, 0.59);
    --dxbl-btn-hover-bg: rgb(228.6, 101.7, 8.1);
    --dxbl-btn-hover-color: #fff;
    --dxbl-btn-hover-border-color: rgba(255, 170, 51, 0.59);
    --dxbl-btn-disabled-bg: rgb(254.4, 169.8, 107.4);
    --dxbl-btn-disabled-color: #fff;
    --dxbl-btn-disabled-border-color: rgb(254.4, 169.8, 107.4);
    --dxbl-btn-disabled-opacity: 1;
    --dxbl-btn-focus-shadow-color: rgba(254, 113, 9, 0.5);
    --dxbl-btn-focus-shadow-spread: 0.125rem;
    --dxbl-btn-focus-shadow-blur: 0rem;
}

.dxbl-menu-dropdown {
    --dxbl-menu-item-hover-color: inherit;
    --dxbl-menu-item-hover-bg: unset;
    --dxbl-menu-separator-width: 1px;
    --dxbl-menu-separator-color: #ced4da;
    --dxbl-menu-separator-style: solid;
    --dxbl-menu-item-selected-bg: unset;
    --dxbl-menu-item-selected-color: unset;
    --dxbl-menu-item-selected-hover-bg: unset;
    --dxbl-menu-item-selected-hover-color: unset;
    --dxbl-menu-item-disabled-bg: unset;
    --dxbl-menu-item-disabled-color: #212529;
    --dxbl-menu-item-disabled-opacity: 60%;
    --dxbl-menu-font-family: inherit;
    --dxbl-menu-color: unset;
    --dxbl-menu-bg: rgba(255, 170, 51, 0.59);
    --dxbl-menu-item-font-size: 0.875rem;
    --dxbl-menu-item-line-height: 1.4285;
    --dxbl-menu-item-image-spacing: 0.5rem;
    --dxbl-menu-item-padding-x: 0.5rem;
    --dxbl-menu-item-padding-y: 0.31253125rem;
    --dxbl-menu-dropdown-min-width: 9.9999375rem;
    --dxbl-menu-dropdown-padding-x: 0;
    --dxbl-menu-dropdown-padding-y: 0;
    --dxbl-menu-dropdown-border-radius: 0.25rem;
    --dxbl-menu-dropdown-border-width: 1px;
    --dxbl-menu-dropdown-border-color: #ced4da;
    --dxbl-menu-dropdown-border-style: solid;
    --dxbl-menu-item-image-size: 1rem;
    --dxbl-dropdown-bg: var(--dxbl-menu-bg);
    --dxbl-menu-dropdown-item-focus-outline-color: #fe7109;
    --dxbl-menu-dropdown-item-focus-outline-width: 0.125rem;
}

.dxbl-text-edit {
    border-radius: .5rem;
}

.dxbl-text-edit:has(:focus) {
    border-color: rgba(255, 170, 51, 0.59);
    -webkit-box-shadow: var(--dxbl-text-edit-box-shadow),0 0 var(--dxbl-text-edit-focus-shadow-blur) var(--dxbl-text-edit-focus-shadow-spread) var(--dxbl-text-edit-focus-shadow-color);
    box-shadow: var(--dxbl-text-edit-box-shadow),0 0 var(--dxbl-text-edit-focus-shadow-blur) var(--dxbl-text-edit-focus-shadow-spread) var(--dxbl-text-edit-focus-shadow-color);
    outline: 0
}

element.style {
    overflow: unset;
}

.dxbl-pager-container > .dxbl-pager-page-size-selector > .dxbl-text-edit {
     width:6rem; 
}

@media (min-width: 768px) {
    .modalAncho {
        max-width: 1200px !important;
    }
}


.dropzone-external {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 170, 51, 0.25);
    border-width: 2px;
    border-style: dashed;
    border-color: #fbbc04;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.dropzone-external > * {
    pointer-events: none;
}

.dropzone-external.dropzone-hover {
    border-style: solid;
}

.upload-container > span {
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 16px;
}

.dropzone-image {
    max-width: 100%;
    max-height: 100%;
}

.dropzone-text > span {
    opacity: 0.8;
}

.upload-progress {
    display: flex;
    margin-top: 10px;
}

.flex-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dxbl-fl .dxbl-fl-item > .dxbl-fl-ctrl:not(img) {
    height: 100%;
}


.btn-selected {
    background-color: #007bff !important;
    color: white !important;
    border-color: #007bff !important;
}

.tablaPedidos .dxbl-grid-table {
    min-width: 1200px; /* ancho mínimo que fuerza scroll en contenedores pequeños */
}

.tablaPedidos .dxbl-grid-header {
    white-space: nowrap;
}

.tablaPedidos .dxbl-grid-table td {
    vertical-align: middle;
    padding: 6px 10px;
}


/*Pagina login*/

.login-page-container {
    background: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
    min-height: 100vh;
    padding: 2rem;
}

input.form-control {
    border-radius: 8px;
}

button.btn-primary {
    background-color: #ff6600;
    border-color: #ff6600;
}

button.btn-primary:hover {
    background-color: #e55b00;
    border-color: #e55b00;
}

label {
    font-weight: 600;
    font-size: 0.9rem;
}

.login-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    opacity: 1;
    /*transform: translateY(40px);*/
    animation: bounceIn 0.9s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0px rgba(255, 140, 0, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(255, 140, 0, 0.7);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0px rgba(255, 140, 0, 0.7);
    }
}

.btn-pulse {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Normalmente no hace nada hasta que pasa hover */
.btn-pulse:hover {
    animation: pulse 1.5s infinite;
}

/* Efecto de hundimiento al hacer click */
.btn-pulse:active {
    transform: scale(0.97);
    box-shadow: 0 0 8px rgba(255, 140, 0, 0.6);
}


.dxbl-dropdown, .dxbl-itemlist-dropdown {
    --dxbl-dropdown-color: #ffffff !important;
}

.bg-orange {
    background-color: #fd7e14 !important;
    color: white !important;
}


.dxbl-gridlayout > .dxbl-gridlayout-root, .dxbl-stacklayout > .dxbl-stacklayout-root {
    -webkit-justify-content: normal !important;
    justify-content: normal !important;
}

/*Slider*/

.carousel-slide {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-bg {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

.carousel-caption {
    z-index: 3;
    position: relative;
    max-width: 800px;
    padding: 2rem;
}

.btn-gold {
    background-color: #d4af37;
    border: none;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
}

    .btn-gold:hover {
        background-color: #c09d2c;
    }

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*Nuestra experiencia*/

.card-animated {
    opacity: 0;
    transform: translateY(300px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
    /*transition: opacity 1s ease-out, transform 1s ease-out;*/
}

.card-animated.visible {
    opacity: 1;
    transform: translateY(0px);
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.card-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
}

.card-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.card-list li i {
    color: gold;
}

@media (max-width: 768px) {
    .dx-grid-layout {
        display: flex !important;
        flex-direction: column;
        align-items: center;
    }

    .dx-grid-layout-item {
        width: 100% !important;
    }
}

.btn-outline-gold {
    border: 2px solid #d4af37;
    color: #d4af37;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: 0.3s ease;
}

.btn-outline-gold:hover {
    background: #d4af37;
    color: white;
}

.hero-banner {
    position: relative;
    overflow: hidden;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-color: black;
}

.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../images/experiencia/diamondB.jpg'); 
    background-size: cover;
    background-position: center;
    transform: scale(1);
    animation: zoomIn 15s ease-in-out infinite;
    z-index: 0;
}

.hero-banner .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-banner .hero-text {
    position: relative;
    z-index: 2;
}

@keyframes zoomIn {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08); /* acercamiento */
    }

    100% {
        transform: scale(1);
    }
}

.hero-banner::before {
    transition: transform 3s ease;
}

.hero-banner:hover::before {
    transform: scale(1.08);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1.2s ease-out forwards;
}

    .fade-in-up.delay-1 {
        animation-delay: 0.4s;
    }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.decor-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #d4af37, #fff);
    border-radius: 2px;
}

/*Obras destacadas*/
.featured-grid-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.featured-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.4s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.featured-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
    object-fit: cover;
}

.featured-item:hover img {
    transform: scale(1.08);
}

.featured-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.featured-item:hover .overlay {
    opacity: 1;
    pointer-events: all;
}

.overlay-text {
    color: #fff;
    font-size: 1.4rem;
    font-weight: bold;
    text-align: center;
}

.featured-grid-fixed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 95%;
    margin: 0 auto;
    align-items: stretch;
}

.featured-large {
    grid-row: span 2;
    overflow: hidden;
    border-radius: 12px;
}

.featured-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-right-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
    height: 100%;
}

.featured-small {
    overflow: hidden;
    border-radius: 12px;
}

.featured-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-small:hover img {
    transform: scale(1.05);
}

.overlay-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.overlay-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.overlay-text {
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    padding: 0.5rem 1rem;
}

.overlay-container:hover .overlay {
    opacity: 1;
    pointer-events: all;
}

.overlay-container:hover img {
    transform: scale(1.05);
}

.popup-obra-container {
    text-align: center;
}

.popup-obra-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
}

.popup-obra-details {
    max-width: 600px;
    margin: 0 auto;
}

/*Section proccess*/

.container-process {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
    flex-wrap: wrap;
}

.workshop-text {
    flex: 1 1 50%;
    color: #000;
}

.workshop-image {
    flex: 1 1 45%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.workshop-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.workshop-image:hover {
    transform: scale(1.02);
}

.step-title {
    font-weight: bold;
/*    border-left: 4px solid gold;*/
/*    padding-left: 12px;*/
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .container-process {
        flex-direction: column-reverse;
        text-align: center;
    }

    .workshop-text,
    .workshop-image {
        flex: 1 1 100%;
    }

    .workshop-image {
        margin-bottom: 2rem;
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease-out;
    will-change: transform, opacity;
}

.fade-in-up.show {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.delay-4 {
    transition-delay: 0.8s;
}

.timeline-step {
    position: relative;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: flex-start;
}

.timeline-marker {
    position: absolute;
    left: -35px;
    top: 0;
    background-color: gold;
    color: black;
    font-weight: bold;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    text-align: center;
    line-height: 26px;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

.timeline-content {
    max-width: 90%;
}

.step-title {
    font-weight: bold;
}

@media (max-width: 768px) {
    .timeline {
        margin-left: 0;
        border-left: none;
        padding-left: 0;
    }

    .timeline-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .timeline-marker {
        position: static;
        margin-bottom: 0.8rem;
    }

    .timeline-content {
        max-width: 100%;
    }
}

.bg-dark-section {
    background-color: #111; /* o #0f0f0f si quieres aún más oscuro */
    color: #fff;
}

.bg-dark-section h2,
.bg-dark-section h5,
.bg-dark-section p {
    color: #fff;
}

.decor-line {
    width: 60px;
    height: 4px;
    background-color: gold;
    margin: 0 auto;
    border-radius: 4px;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: #ccc; /* Visible en fondo oscuro */
}

.bg-dark-section {
    background-color: #111;
    color: #fff;
}

@media (max-width: 768px) {
    .container-process {
        flex-direction: column-reverse;
        text-align: center;
    }

    .timeline {
        margin-left: 0;
        border-left: none;
        padding-left: 0;
    }

    .timeline-step {
        align-items: center;
    }

    .timeline-marker {
        position: static;
        margin-bottom: 0.8rem;
    }
}

/*Video hero*/

.video-hero-section {
    position: relative;
    height: 90vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem;
}

.hero-text-arte {
    max-width: 600px;
    margin-left: auto;
    color: #fff;
}

.hero-text {
    max-width: 600px;
    color: #fff;
}


/*Seccion de contacto*/

.contact-section {
    background: #fff;
    color: #000;
}

.container-contact {
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.contact-info {
    flex: 1 1 45%;
}

.contact-form {
    flex: 1 1 45%;
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-item i {
    color: gold;
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.btn-gold {
    background-color: #d4af37;
    color: #fff;
    border: none;
    font-weight: bold;
}

.btn-gold:hover {
    background-color: #c29b2e;
}


/*notifinacion envio mensaje*/
.custom-toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    background-color: #d4edda;
    color: #155724;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.text-danger {
    color: #e74c3c !important; /* rojo cálido */
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    animation: fadeIn 0.4s ease-in;
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.validation-summary-errors {
    background: #fcebea;
    color: #c0392b;
    border-left: 4px solid #e74c3c;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    animation: fadeIn 0.3s ease-in;
}
/* ===== Paleta clara y bordes consistentes ===== */
:root {
    --ip-bg: #ffffff;
    --ip-surface: #fafbff; /* sutil para paneles blandos */
    --ip-line: #e6ebf2; /* <-- UN SOLO color de borde */
    --ip-line-strong: #d9e1ee;
    --ip-shadow: 0 10px 30px rgba(15,23,42,.12);
    --ip-text: #0f172a; /* títulos */
    --ip-text-2: #1f2937; /* contenido */
    --ip-muted: #64748b; /* etiquetas */
    --ip-link: #1d4ed8; /* folio */
    --ip-chip-bg: #f6f9ff; /* chips meta */

    --ip-success: #10b981;
    --ip-warning: #f59e0b;
    --ip-info: #3b82f6;
    --ip-strong: #059669;
    --ip-neutral: #6b7280;
    --ip-radius: 12px;
    --ip-radius-lg: 14px;
}

/* Popup base */
.ingreso-popup .dxbl-popup-content,
.ingreso-popup .dxbl-dialog-content {
    background: var(--ip-bg);
    border: none;
    border-radius: var(--ip-radius-lg);
    box-shadow: var(--ip-shadow);
    padding: 18px;
}

/* ===== Encabezado refinado (más contraste) ===== */
.ip-header {
    border-bottom: 1px solid var(--ip-line);
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.ip-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eaf2ff;
    color: #2457d6;
    font-size: 18px;
}

.ip-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--ip-text)
}

.ip-folio {
    margin-left: 8px;
    color: var(--ip-link);
    font-weight: 800
}

.ip-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap
}

.ip-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--ip-muted);
    font-weight: 600;
}

.ip-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--ip-chip-bg);
    border: 1px solid var(--ip-line);
    color: #334155;
}

/* Estado visible y limpio */
.ip-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    color: #fff;
}

.ip-badge--registrado {
    background: var(--ip-info)
}

.ip-badge--recibido {
    background: var(--ip-success)
}

.ip-badge--revisado {
    background: var(--ip-warning)
}

.ip-badge--inventariado {
    background: var(--ip-strong)
}

.ip-badge--default {
    background: var(--ip-neutral)
}

/* ===== Tarjetas (quitar fondo oscuro) ===== */
.ip-cards {
    display: grid;
    grid-template-columns: repeat(12,1fr);
    gap: 12px;
    margin-bottom: 14px
}

.ip-card {
    grid-column: span 3/span 3;
    background: #fff; /* CLARO */
    border: 1px solid var(--ip-line);
    border-radius: var(--ip-radius);
    padding: 12px;
}

.ip-label {
    color: var(--ip-muted);
    font-weight: 800;
    letter-spacing: .02em;
    font-size: .8rem;
    margin-bottom: 6px
}

.ip-value {
    color: var(--ip-text-2);
    font-weight: 700
}

/* ===== Observaciones (claro y con mismo borde) ===== */
.ip-note {
    background: var(--ip-surface);
    border: 1px solid var(--ip-line);
    border-radius: var(--ip-radius);
    margin-bottom: 12px;
}

.ip-note-title {
    padding: 10px 12px;
    border-bottom: 1px solid var(--ip-line);
    color: var(--ip-muted);
    font-weight: 800;
    font-size: .84rem;
}

.ip-note-body {
    padding: 12px;
    color: var(--ip-text-2)
}

/* ===== Tabla (bordes homogéneos) ===== */
.ip-table {
    border: 1px solid var(--ip-line);
    border-radius: var(--ip-radius);
    overflow: hidden
}

    .ip-table thead th {
        background: #f7faff; /* leve */
        border-bottom: 1px solid var(--ip-line);
        color: #475569;
        font-weight: 800;
        letter-spacing: .02em;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .ip-table tbody td {
        border-color: var(--ip-line)
    }

    .ip-table tbody tr:nth-child(even) {
        background: #fbfdff
    }

.ip-total-row td {
    background: #f7faff;
    border-top: 1px solid var(--ip-line-strong);
    font-weight: 800
}

/* Responsivo */
@media (max-width: 992px) {
    .ip-card {
        grid-column: span 6/span 6
    }
}

@media (max-width: 640px) {
    .ip-card {
        grid-column: 1/-1
    }

    .ip-table-wrap {
        overflow: auto;
        -webkit-overflow-scrolling: touch
    }
}

/* ====== Ajuste color de bordes unificado */
:root {
    --ip-border: #E5EAF0; /* color único para todos los bordes */
    --ip-bg-soft: #F8FAFC;
}

.ingreso-popup .dxbl-popup-content,
.ingreso-popup .dxbl-dialog-content {
    border: none;
    border-radius: 14px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 14px 44px rgba(15,23,42,.18);
}

/* header ocupa todo el ancho y reparte título/meta/estado */
.ip-header {
    border-bottom: 1px solid var(--ip-border);
    padding-bottom: 12px;
    margin-bottom: 14px;
}

/* grid: izquierda (icono+título+chips) / derecha (estado) */
.ip-header-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
}

/* icono */
.ip-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #2b6cb0;
    background: #e6f0ff;
    font-size: 18px;
}

/* título y folio */
.ip-title-wrap {
    min-width: 0;
}

.ip-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ip-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.ip-folio {
    margin-left: 8px;
    color: #2563eb;
    font-weight: 800;
    text-decoration: none;
}

    .ip-folio:hover {
        text-decoration: underline;
    }

/* meta en 3 columnas que ocupan el ancho del header */
.ip-meta-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 8px;
    margin-top: 6px;
}

/* chips */
.ip-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--ip-bg-soft);
    color: #475569;
    font-weight: 600;
    border: 1px solid #EEF2F7;
    min-height: 34px;
}

/* estado (pill) – mantiene tus clases de color vía EstadoCss */
.ip-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .84rem;
    color: #fff;
}

/* RESPONSIVE: 2 columnas / 1 columna para meta */
@media (max-width: 992px) {
    .ip-meta-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 640px) {
    .ip-header-grid {
        grid-template-columns: 1fr;
    }

    .ip-right {
        justify-self: start;
    }

    .ip-meta-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Unifica bordes del resto de bloques ===== */
.ip-cards .ip-card,
.ip-note,
.ip-table {
    border-color: var(--ip-border);
}

    .ip-table thead th {
        background: var(--ip-bg-soft);
        border-bottom: 1px solid var(--ip-border);
    }

    .ip-table tbody td {
        border-color: var(--ip-border);
    }

.ip-total-row td {
    background: var(--ip-bg-soft);
    border-top: 1px solid var(--ip-border);
}


/* ===== Header: layout a dos columnas (izq: info, der: estado) ===== */
.ip-header.ip-header-grid {
    display: grid;
    grid-template-columns: 1fr auto; /* ocupa todo el ancho + estado a la derecha */
    align-items: start;
    gap: 16px;
    padding: 14px 16px; /* padding para que no pegue al borde */
    border-bottom: 1px solid #e9eef5; /* mismo color de bordes del modal */
    margin-bottom: 14px;
}

/* Columna izquierda */
.ip-left {
    min-width: 0;
}
/* permite truncar/ajustar si hay textos largos */

/* Icono */
.ip-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #eaf2ff;
    color: #2b6cb0;
    font-size: 18px;
    flex: 0 0 42px;
}

/* Título + folio */
.ip-title-wrap {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px
}

.ip-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap
}

.ip-title {
    font-weight: 800;
    font-size: 20px;
    color: #0f172a;
    line-height: 1.1
}

.ip-folio {
    margin-left: 8px;
    font-weight: 800;
    color: #2563eb;
    text-decoration: none
}

    .ip-folio:hover {
        text-decoration: underline
    }

/* Meta en 3 columnas, a lo ancho */
.ip-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
}

.ip-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    color: #475569;
    font-weight: 600;
    min-width: 0;
}

    .ip-chip i {
        opacity: .85
    }

/* Columna derecha: estado */
.ip-right {
    display: flex;
    align-items: flex-start
}

.ip-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .85rem;
    color: #fff;
    white-space: nowrap;
}

/* Mapeo de colores ya existentes (usa tu helper EstadoCss) */
.ip-badge-registrado {
    background: #3b82f6
}

.ip-badge-recibido {
    background: #10b981
}

.ip-badge-revisado {
    background: #f59e0b
}

.ip-badge-inventariado {
    background: #059669
}

.ip-badge-default {
    background: #6b7280
}

/* Responsivo: 2 columnas en tablets, 1 columna en móviles */
@media (max-width: 992px) {
    .ip-meta-grid {
        grid-template-columns: repeat(2, minmax(0,1fr))
    }
}

@media (max-width: 640px) {
    .ip-header.ip-header-grid {
        grid-template-columns: 1fr
    }

    .ip-right {
        justify-content: flex-start
    }

    .ip-meta-grid {
        grid-template-columns: 1fr
    }
}


.inventario-tabs-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    padding: 24px 16px 32px 16px;
    margin: 30px auto;
    max-width: 98vw;
}

.custom-tabs .dx-tab {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: #f9ede3 !important;
    border-radius: 10px 10px 0 0;
    margin-right: 2px;
    color: #bb914b;
    border-bottom: 2px solid #d6b680;
    transition: background .2s;
}

    .custom-tabs .dx-tab.dx-tab-active {
        background: #fff !important;
        color: #2d2d2d;
        border-bottom: 4px solid #bb914b;
        box-shadow: 0 4px 12px rgba(187,145,75,0.08);
    }

.modern-grid {
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(187,145,75,0.09);
    border: 1px solid #f5f1ea;
    margin-top: 8px;
    font-size: 0.95rem;
    overflow-x: auto; /* Scroll horizontal en móviles */
}

.modern-grid table {
    width: auto !important; /* Ajusta ancho a contenido */
    table-layout: auto !important;
}

.modern-grid th,
.modern-grid td {
    white-space: nowrap; /* Evita salto de línea en celdas */
    padding: 6px 10px;
}

.full-width-grid {
    width: 100% !important;
}

.full-width-grid table {
    width: 100% !important;
    table-layout: auto; /* Ajusta ancho según contenido */
}

.full-width-grid th,
.full-width-grid td {
    white-space: nowrap; /* No cortar texto */
    padding: 6px 10px;
}

@media (max-width: 768px) {
    .col-ocultar-movil {
        display: none;
    }
}