html,
body {
    height: 100%;
}

/* ================== LAYOUT ================== */

.wrap {
    width: 100%;
    min-height: calc(100vh - 245px);
    padding: 25px 0 60px;
    background: #621d3d;
}

.wrap .site-index,
.wrap .site-login,
.wrap .site-contact {
    margin-top: 170px;
    min-height: calc(100vh - 245px);
}

/* ================== FIX PRODUCTO ================== */

.wrap .producto-index,
.wrap .producto-create,
.wrap .producto-update {
    margin-top: 170px;
    min-height: calc(100vh - 200px);
}


/* config full-width */
.wrap>.container {
    width: 100%;
    padding: 0;
}

footer {
    padding: 25px 0;
    background: #111;
    color: #fff;
}

/* ================== NAVBAR ================== */

.navbar {
    height: 185px;
}

.navbar-brand {
    height: 170px;
    display: flex !important;
    align-items: center;
    padding-top: 0 !important;
}



/* ================== BRAND ================== */

.brand-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-logo {
    height: 150px;
    width: auto;
}

.brand-text-img {
    height: 100px;
    width: auto;
    transform: scaleX(1.4);
    transform-origin: left center;
}

/* ================== FOOTER ================== */

.footer {
    height: 60px;
}

/* ================== UI GENERAL ================== */

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* grid sort icons */
a.asc:after,
a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: "\e151";
}

a.desc:after {
    content: "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin-bottom: 15px;
}

/* logout button */
.nav li>form>button.logout {
    padding: 15px;
    border: none;
}

.nav>li>form>button.logout:hover,
.nav>li>form>button.logout:focus {
    text-decoration: none;
    outline: none;
}

/* carousel */

.carousel-img {
    width: 100%;
    max-height: 1200px;
    object-fit: cover;
    display: block;
}

.carousel-img.img-top {
    object-position: center 20%;
}

.img-zoom {
    transform: scale(1.2);
}

.carousel-caption {
    top: 2%;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
}

/* textos */

.text-shadow {
    text-shadow:
        1px 1px 3px rgba(0, 0, 0, .9),
        2px 2px 6px rgba(0, 0, 0, .8),
        4px 4px 12px rgba(0, 0, 0, .7);
}

.text-white {
    color: white;
}

.text-background {
    background: #621d3d;
}

/* tablas */

td,
th {
    background: #621d3d;
}

td .fc-day:hover {
    background: #11263c !important;
}

/* botones */

.btn-default {
    border-color: white;
    color: white;
}

.btn-default:active,
.btn-default.active {
    background-color: white;
    border-color: white;
    color: #621d3d;
}

/* ================== Z-INDEX ================== */

.navbar-fixed-top {
    z-index: 9999 !important;
}

.navbar-collapse {
    background-color: #11263c;
    position: relative;
    z-index: 10000;
}

/* ========================================================= */
/* ================== RESPONSIVE ============================ */
/* ========================================================= */

/* ---------- MÓVILES ---------- */
@media (max-width: 768px) {

    .wrap {
        padding-top: 18px;
    }

    .wrap .site-index,
    .wrap .site-login,
    .wrap .site-contact {
        margin-top: 130px;
        min-height: calc(100vh - 190px);
    }

    .wrap .producto-index,
    .wrap .producto-create,
    .wrap .producto-update {
        margin-top: 130px;
        min-height: calc(100vh - 190px);
    }


    .navbar {
        min-height: 110px;
        padding-top: 20px;
        height: auto;
    }


    .navbar-brand {
        height: 110px;
    }

    .navbar-header {
        margin-right: 0;
    }

    .brand-logo {
        height: 120px;
        margin-bottom: 20px;
    }

    .brand-text-img {
        height: 80px;
        transform: none;
    }

    .brand-container {
        gap: 6px;
    }

    .navbar-collapse {
        text-align: right;
        background: #621d3d;
        padding: 15px 20px;
        border-top: 1px solid rgba(255, 255, 255, .15);
    }

    .navbar-nav {
        margin: 0;
        float: right !important;
        text-align: center;
    }

    .navbar-nav>li {
        float: none;
        display: block;
    }

    .navbar-nav>li>a {
        padding: 12px 0;
    }

    .nav li>form>button.logout {
        display: block;
        width: 100%;
        padding: 10px 15px;
    }

    .site-login,
    .site-contact,
    .site-signup,
    .site-form {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    #main-carousel {
        height: calc(100vh - 110px);
        overflow: hidden;
    }

    #main-carousel .carousel-inner,
    #main-carousel .carousel-inner>.item {
        height: 100%;
    }

    #main-carousel .carousel-inner>.item>img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        max-height: none;
    }

    .carousel-img {
        width: 100%;
        height: 100%;
        object-fit: cover;

        /* 🔥 AQUÍ está el zoom */
        transform: scale(1.15);

        /* 🔥 Ajusta el encuadre (MUY IMPORTANTE) */
        object-position: center top;
    }

    .carousel-caption {
        top: 70%;
        width: 75%;
        left: 50%;
        /* transform: translateX(-50%); */
        right: auto;
    }
}

/* ================== FIX NAVBAR DESKTOP ================== */

@media (min-width: 769px) {

    .navbar {
        display: flex;
        align-items: center;
    }

    .navbar-header {
        margin-right: 0 !important;
        flex: 0 0 auto;
    }

    .navbar-collapse {
        display: flex !important;
        justify-content: flex-end;
        align-items: center;
        position: static !important;
        width: auto !important;
        background: transparent !important;
        padding: 0 !important;
        border: 0 !important;
        z-index: auto !important;
    }

    .navbar-nav {
        display: flex !important;
        align-items: center;
        float: none !important;
        margin: 0;
    }

    .navbar-nav>li {
        float: none !important;
    }
}




/* ---------- LANDSCAPE CONTROLADO ---------- */
@media screen and (min-width: 480px) and (max-width: 932px) and (orientation: landscape) {

    .navbar {
        height: auto !important;
        min-height: 60px !important;
    }

    .navbar-header {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
    }

    .brand-container {
        display: flex !important;
        justify-content: center !important;
        width: auto !important;
    }

    .brand-logo {
        height: 100px !important;
    }

    .brand-text-img {
        height: 65px !important;
        transform: none !important;
    }

    .navbar-collapse {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        background: #11263c !important;
    }

    .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        margin: 0 !important;
        width: 100% !important;
        float: none !important;
    }

    .navbar-nav>li {
        flex: 1 !important;
        text-align: center !important;
        float: none !important;
    }

    .navbar-nav>li>a {
        padding: 12px 2px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    .nav li>form {
        display: inline !important;
    }

    .nav li>form>button.logout {
        width: 100% !important;
        padding: 12px 2px !important;
        background: transparent !important;
    }
}

/* ---------- DESKTOP ---------- */
@media screen and (min-width: 933px) {

    .navbar {
        min-height: 160px;
    }

    .navbar-nav {
        display: block !important;
    }

    .navbar-nav>li {
        float: right !important;
    }

    .navbar-nav>li>a {
        line-height: 160px;
        /* debe coincidir con la altura real del header */
        padding-top: 0;
        padding-bottom: 0;
    }


    .navbar-header {
        float: left !important;
        width: auto !important;
    }
}