/*
	background: #c62828;
	background: #283593;
	background: rgb(244, 244, 243);
	background: rgb(50, 50, 50);
	background: rgb(1, 37, 240);
	background: rgb(255, 155, 4);

	@blue: #283593;
	@red: #c62828;

*/

body {
    font-family: "Karla", sans-serif;
    background: rgb(244, 244, 243);
}

#top-nav {
    background-color: #c62828;
    padding: 6px 0;
    color: #ffffff;
    text-align: right;
    min-height: 45px;
    height: auto;
}

#top-nav .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#top-nav form {
    width: auto;
    max-width: 100%;
    margin: 0;
}

#top-nav form .mobile-style-show {
    display: none;
}

#top-nav .input-group {
    display: table;
}

#top-nav .form-control {
    height: 34px;
    box-shadow: none;
}

#top-nav span.input-group-addon,
#top-nav a {
    background: #283593;
    border: 0;
    color: #ffffff;
}

#top-nav span.input-group-addon:hover,
#top-nav span.input-group-addon:hover > a.btn,
#top-nav span.input-group-addon:hover > button.btn {
    color: #333333;
}

/* Addon = área clicable; altura fija alineada al input (evita deformar Entrar/Registro) */
#top-nav .input-group-addon {
    padding: 0;
    vertical-align: middle;
}

/* Iconos (sobre/llave): padding horizontal; los botones llevan su propio padding */
#top-nav .input-group-addon > .fa {
    display: inline-block;
    padding: 0 10px;
    line-height: 34px;
    vertical-align: middle;
}

#top-nav .input-group-addon > a.btn,
#top-nav .input-group-addon > button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 34px;
    margin: 0;
    padding: 0 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
    text-decoration: none;
}

#top-nav .btn {
    margin: 0;
    border: 0;
    background: none;
    box-shadow: none;
}

.navbar-right {
    margin-top: 18px;
}

.navbar-default {
    background: #283593;
    height: 80px;
    border-radius: 0px;
    border: none;
    position: relative;
    top: 0px;
    z-index: 2;
}

.navbar-default .navbar-nav > li > a {
    color: #ffffff;
    font-size: 1.3em;
    padding: 10px 10px;
    margin-top: -6px;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    color: #c62828;
    background: transparent;
}

/* Buscador del menú principal dentro de <li> (HTML válido; no rompe collapse móvil) */
.navbar-default .navbar-nav > li.navbar-search-item {
    padding: 4px 0 4px 10px;
}

.navbar-default .navbar-nav > li.navbar-search-item form {
    margin: 0;
    width: 200px;
    max-width: 100%;
}

.navbar-default .navbar-nav > li.navbar-search-item .form-control {
    height: 32px;
}

.navbar-default .navbar-nav > li.navbar-search-item .btn {
    height: 32px;
    padding: 4px 10px;
}

.seccion {
    padding-top: 40px;
    padding-bottom: 40px;
}

#logo {
    margin-top: -45px;
    height: 150px;
}

#banner img,
#bannerCarousel .carousel-inner > .item > img {
    width: 100%;
    height: 650px;
    object-fit: cover;
}

#bannerCarousel {
    margin-bottom: 0;
}

#bannerCarousel .carousel-indicators li {
    background: transparent;
    border: 1px solid #283593;
    border-radius: 10px;
    height: 20px;
    margin: 0 4px;
    position: relative;
    width: 20px;
}

#bannerCarousel .carousel-indicators li button {
    background: transparent;
    border: 0;
    cursor: pointer;
    display: block;
    height: 20px;
    left: 0;
    position: absolute;
    padding: 0;
    top: 0;
    width: 20px;
}

#bannerCarousel .carousel-indicators .active {
    background-color: #283593;
}

#bannerCarousel .carousel-control {
    background-image: none;
    color: #283593;
    opacity: 1;
    text-shadow: none;
}

#bannerCarousel .carousel-control:hover,
#bannerCarousel .carousel-control:focus {
    color: #283593;
}

#bannerCarousel .carousel-control .fa {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    font-size: 34px;
    height: 48px;
    line-height: 48px;
    margin-top: -17px;
    position: absolute;
    text-align: center;
    top: 50%;
    width: 48px;
    z-index: 5;
}

#bannerCarousel .left.carousel-control .fa {
    left: 50%;
    margin-left: -10px;
}

#bannerCarousel .right.carousel-control .fa {
    margin-right: -10px;
    right: 50%;
}

#action_gol {
    background: #ffffff;
}

#action_gol #title,
#home_productos_destacados #title {
    margin: 0px;
    text-align: center;
    margin-bottom: 30px;
    padding-top: 40px;
    font-size: 4em;
    display: block;
}

#action_gol #subtitle,
#home_productos_destacados #subtitle {
    margin: 0px;
    text-align: center;
    margin-bottom: 30px;
    font-size: medium;
    display: block;
}

#action_gol .col-md-3 .fa {
    font-size: 5em;
    margin-bottom: 30px;
    margin-top: 20px;
}

#action_gol .col-md-3 {
    padding-top: 30px;
    padding-bottom: 30px;
    height: 320px;
    text-align: center;
}
/* Tarjetas con enlace: el <a> llena todo el cuadro */
#action_gol .col-md-3 > a {
    display: block;
    height: 100%;
    margin: -30px -15px;
    padding: 30px 15px;
    text-decoration: none;
    color: #ffffff;
    box-sizing: border-box;
}
#action_gol .col-md-3 a {
    text-decoration: none;
    color: #ffffff;
}

#action_gol .col-md-3 h4 {
    padding-bottom: 20px;
    font-size: 2em;
}

#home_productos_destacados {
    padding-bottom: 50px;
    text-align: center;
}

#home_productos_destacados a {
    text-decoration: none;
}

#home_productos_destacados a .sec_title {
    font-size: 3em;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: none;
    width: 100%;
}

#home_productos_destacados a > span {
    border-top: none;
    width: 100%;
    display: block;
}

.home_productos_box a > div {
    text-align: left;
    background-color: #ffffff;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    height: 180px;
    position: relative;
    border-radius: 3px;
    box-shadow: 0px 0px 2px #d1d1d1;
}

.home_productos_box a > div > .description {
    display: none;
}

.home_productos_box a:hover > div > .description {
    padding: 10px;
    text-align: left;
    display: block;
    width: 100%;
    background: #303f9f;
    position: absolute;
    bottom: 0px;
    border-radius: 0px 0px 5px 5px;
    color: #ffffff;
}

#home_productos_destacados > div > div > div > span.title {
    display: block;
    font-size: 1em;
}

#widgets {
    background-color: #283593;
    color: #ffffff;
    padding-top: 50px;
    padding-bottom: 50px;
    text-align: center;
}

#widgets .col-md-4 h2 {
    margin-bottom: 20px;
}

#widgets .col-md-4 a {
    color: #ffffff;
    margin-bottom: 7px;
    display: block;
}

#widgets .col-md-4 a:hover {
    text-decoration: none;
    color: #c62828;
}

footer {
    background: #333333;
    color: #ffffff;
}

footer .container {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Selector compuesto (ID + clase) vence a .container-fluid de Bootstrap sin !important */
#productos_home.container-fluid {
    padding-left: 0px;
    padding-top: 0px;
}

#productos_home #title {
    background: #c62828;
    color: #ffffff;
    margin-bottom: 20px;
}

#productos_home h2 {
    background: #c62828;
    color: #ffffff;
    padding: 15px;
    margin: 0px;
    border-radius: 0px 13px 0px 0px;
}

#productos_home > .col-md-3 {
    padding: 0px;
    max-width: 23%;
}

/* Solo el primer bloque del sidebar (Buscar) lleva radio; Categorías/PDF rectos */
#productos_home .col-md-3 h2 {
    border-radius: 0;
}

#productos_home #left_sidebar > h2:first-of-type {
    border-radius: 0 13px 0 0;
}

#productos_home .col-md-9 {
    background-color: #ffffff;
    margin-left: 1.5%;
    padding-bottom: 40px;
}

#productos_home .col-md-9 h2 {
    border-radius: 0px 0px 0px 0px;
}

#productos_home #left_sidebar ul {
    background-color: #283593;
    padding-left: 0px;
    color: #ffffff;
    border-radius: 0px 0px 13px 0px;
}

#productos_home #left_sidebar ul a:hover {
    text-decoration: none;
}

#productos_home #left_sidebar ul a li {
    padding: 10px;
    list-style: none;
}

#productos_home #left_sidebar ul li form {
    margin-top: 0px;
    /* padding-bottom: 40px; */
    padding-left: 15px;
    padding-right: 15px;
}

#productos_home #left_sidebar ul a li:hover {
    background-color: rgb(255, 155, 4);
    color: #333333;
    text-decoration: none;
}

#productos_home #left_sidebar ul a li:active {
    color: #ffffff;
}

#productos_home #left_sidebar ul a li {
    color: #ffffff;
}

#left_sidebar > ul > li:nth-child(26) {
    border-radius: 0px 0px 13px 0px;
}

#sidebar-search,
.rv-sidebar-search {
    background: rgb(244, 244, 243);
    padding: 12px 16px 16px;
}

.rv-sidebar-search .input-group {
    width: 100%;
}

.rv-sidebar-search .form-control {
    height: 36px;
}

.rv-sidebar-search > .form-control {
    margin-bottom: 10px;
}

.rv-sidebar-search .input-group .btn {
    height: 36px;
    padding-left: 14px;
    padding-right: 14px;
}

.rv-sidebar-pdf-btn {
    margin-top: 0;
}

.rv-sidebar-cta {
    display: block;
    background: #333333;
    padding: 14px 16px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.rv-sidebar-cta:hover,
.rv-sidebar-cta:focus {
    background: rgb(240, 8, 29);
    color: #ffffff;
    text-decoration: none;
}

.rv-sidebar-cat-toggle {
    background-color: #ffffff;
    float: right;
    margin: 8px 8px 0 0;
}

#left_sidebar .rv-cat-row {
    display: flex;
    align-items: stretch;
    min-height: 40px;
}

#left_sidebar .rv-cat-link {
    flex: 1 1 auto;
    display: block;
    padding: 10px 12px;
    color: #ffffff;
    text-decoration: none;
}

#left_sidebar .rv-cat-toggle {
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
}

#left_sidebar .rv-cat-link:hover,
#left_sidebar .rv-cat-toggle:hover {
    background: rgb(240, 8, 29);
    color: #ffffff;
    text-decoration: none;
}

td,
th {
    padding-top: 10px;
    padding-bottom: 10px;
}

#admin_panel .col-md-3 {
    margin-top: 30px;
    width: 20%;
}

#admin_panel .col-md-2 i {
    font-size: 300%;
}

#admin_panel .col-md-3 i {
    font-size: 300%;
}

#search {
    z-index: 0;
}

/*DISPOSITIVOS*/

@media screen and (max-width: 768px) {
    #logo {
        margin-top: -45px;
        height: 70px;
    }
    #search {
        z-index: auto;
    }
    #top-nav {
        padding-top: 0;
        height: auto;
        min-height: 50px;
    }
    #top-nav .container {
        justify-content: center;
    }
    #top-nav form {
        width: 90%;
        max-width: 360px;
    }
    #top-nav form .mobile-style-hide {
        display: none;
    }
    #top-nav form .mobile-style-show {
        display: table-cell;
        border-radius: 4px 0 0 4px;
    }
    #top-nav span.input-group-addon {
        background: #283593 !important;
    }
    #top-nav .input-group-addon > a.btn,
    #top-nav .input-group-addon > button.btn {
        min-width: 72px;
        height: 36px;
        font-weight: 600;
    }
    .navbar-default {
        height: auto;
        min-height: 55px;
    }
    .navbar-default .container #bs-example-navbar-collapse-1 {
        background: #333333;
        position: relative;
        z-index: 10;
    }
    .navbar-default .container #bs-example-navbar-collapse-1 .navbar-nav > li > a {
        min-height: 44px;
        display: block;
        margin-top: 0;
        padding: 12px 15px;
    }
    .navbar-default .navbar-nav > li.navbar-search-item {
        padding: 10px 15px;
        float: none;
    }
    .navbar-default .navbar-nav > li.navbar-search-item form {
        width: 100%;
    }
    .navbar-right {
        margin-top: 0;
    }
    .rv-sidebar-cat-toggle {
        display: block;
    }
    #banner img,
    #bannerCarousel .carousel-inner > .item > img {
        height: 250px;
    }
    #productos_home.container-fluid {
        padding-left: 15px;
        padding-top: 0px;
    }
    #productos_home.container-fluid.seccion {
        padding-top: 0px;
    }
    #productos_home .col-md-3 {
        max-width: 100%;
        width: 100%;
        z-index: 0;
    }
    #productos_home .col-md-3 h2 {
        border-radius: 0px 0px 0px 0px;
    }
    table {
        width: 100%;
    }
    #map {
        display: none;
    }
    #bs-example-navbar-collapse-1 .navbar-search-item {
        width: 100%;
    }
    #productos_home #left_sidebar ul a li {
        color: #ffffff;
        padding-top: 5px;
        padding-bottom: 5px;
    }
    #productos_home #left_sidebar ul {
        border-radius: 0px;
    }

    .input-group {
        z-index: auto;
        position: static;
    }
    .modal-backdrop.in {
        z-index: 0 !important;
    }

    #admin_panel .col-md-3 {
        width: 100%;
    }
}

@media print {
    #top-nav,
    .navbar.navbar-default,
    .navbar-toggle,
    #left_sidebar,
    #sidebar-search,
    #categories,
    #banner,
    #bannerCarousel,
    .carousel-control,
    .carousel-indicators,
    #widgets,
    #map,
    #action_gol,
    footer,
    .modal,
    .modal-backdrop,
    #top-nav form,
    #bs-example-navbar-collapse-1 form,
    #sidebar-search form,
    #left_sidebar .btn,
    #top-nav .btn {
        display: none !important;
    }
    a[href]:after {
        content: none;
    }
}

/* ====== left_sidebar.css merged ====== */
#left_sidebar .panel-group {
	margin-bottom: 0;
}

#left_sidebar .panel-group .panel {
	margin-bottom: 0;
	border-radius: 0;
	border: 0;
	color: #ffffff;
	box-shadow: none;
}

#left_sidebar .panel-group .panel .panel-heading {
	background-color: #001064;
	border: 0;
	border-radius: 0;
	padding: 0;
}

#left_sidebar .panel-group .panel .panel-body {
	background: #333333 !important;
	border: 0 !important;
	border-radius: 0;
	padding: 0;
}

#left_sidebar .panel-group .panel .panel-body a {
	display: block;
	padding: 10px 12px 10px 24px;
	color: #ffffff;
	text-decoration: none;
}

#left_sidebar .panel-group .panel .panel-body a:hover {
	background: rgb(240, 8, 29);
	color: #ffffff;
}

.icon-bar {
	background-color: #001064;
}

#left_sidebar {
	margin-bottom: 30px;
}

#categories {
	padding: 0;
}

#left_sidebar #accordion .panel + .panel {
	margin-top: 0;
}

#left_sidebar .active-category > .panel-heading {
	background: rgb(240, 8, 29) !important;
}

#left_sidebar .active-category .rv-cat-link,
#left_sidebar .active-category .rv-cat-toggle {
	color: #ffffff;
}

#left_sidebar .active-subcategory {
	background: rgb(240, 8, 29) !important;
	color: #ffffff !important;
}

/* h1 styling to match existing h2 in productos section */
#productos_home h1 {
    background: #c62828;
    color: #ffffff;
    padding: 15px;
    margin: 0px;
    border-radius: 0px 13px 0px 0px;
    font-size: 1.5em;
}

#productos_home .col-md-9 h1 {
    border-radius: 0px 0px 0px 0px;
}

/* ====== Home product carousel ====== */
.home-product-carousel-section {
    padding: 40px 0;
    background: #ffffff;
}

.home-product-carousel-title {
    margin: 0 0 30px 0;
    text-align: center;
    font-size: 4em;
    display: block;
}

.home-product-carousel .carousel-inner {
    padding: 0;
}

.home-product-carousel-card-col {
    padding: 0 8px;
}

.home-product-carousel-card {
    display: block;
    text-decoration: none;
    color: #333333;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    margin-bottom: 15px;
}

.home-product-carousel-card:hover,
.home-product-carousel-card:focus {
    text-decoration: none;
    color: #333333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.home-product-carousel-img {
    position: relative;
    height: 0;
    padding-bottom: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: #fafafa;
}

.home-product-carousel-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #c62828;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    line-height: 1.4;
    z-index: 1;
}

.home-product-carousel-name {
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.3;
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    text-align: center;
}

.home-product-carousel-indicators {
    position: static;
    margin: 15px 0 0 0;
    width: auto;
    padding-left: 0;
    text-align: center;
}

.home-product-carousel-indicators li {
    background: transparent;
    border: 1px solid #283593;
    border-radius: 10px;
    height: 14px;
    margin: 0 4px;
    position: relative;
    width: 14px;
}

.home-product-carousel-indicators li button {
    background: transparent;
    border: 0;
    cursor: pointer;
    display: block;
    height: 14px;
    left: 0;
    position: absolute;
    padding: 0;
    top: 0;
    width: 14px;
}

.home-product-carousel-indicators .active {
    background-color: #283593;
}

.home-product-carousel-control,
.home-product-carousel-control.left,
.home-product-carousel-control.right {
    background-image: none !important;
    background: none !important;
    filter: none !important;
    color: #283593;
    opacity: 1;
    text-shadow: none;
    width: 40px;
}

.home-product-carousel-control:hover,
.home-product-carousel-control:focus {
    color: #283593;
    opacity: 0.8;
}

.home-product-carousel-control .fa {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    font-size: 24px;
    height: 40px;
    line-height: 40px;
    margin-top: -20px;
    position: absolute;
    text-align: center;
    top: 40%;
    width: 40px;
    z-index: 5;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.home-product-carousel-control.left .fa {
    left: 50%;
    margin-left: -20px;
}

.home-product-carousel-control.right .fa {
    margin-right: -20px;
    right: 50%;
}

@media screen and (max-width: 991px) {
    .home-product-carousel-card-col {
        padding: 0 6px;
    }

    .home-product-carousel-title {
        font-size: 3em;
    }
}

@media screen and (max-width: 767px) {
    .home-product-carousel-card-col {
        padding: 0 4px;
    }

    .home-product-carousel-title {
        font-size: 2em;
    }

    .home-product-carousel-control {
        width: 30px;
    }

    .home-product-carousel-control .fa {
        font-size: 18px;
        height: 30px;
        line-height: 30px;
        width: 30px;
        margin-top: -15px;
    }

    .home-product-carousel-control.left .fa {
        margin-left: -15px;
    }

    .home-product-carousel-control.right .fa {
        margin-right: -15px;
    }
}

/* ====== End home product carousel ====== */

/* ====== Most quoted section ====== */

.home-most-quoted-section {
    margin: 30px 0;
}

.home-most-quoted-fluid {
    background-color: #2A3B93;
    padding: 40px 0;
}

.home-most-quoted-card {
    background: #ffffff;
    border-radius: 6px;
    padding: 30px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.home-most-quoted-title {
    margin: 0 0 30px 0;
    text-align: center;
    font-size: 3em;
    color: #333333;
}

.home-most-quoted-card-col {
    padding: 0 8px;
}

.home-most-quoted-product-card {
    display: block;
    text-decoration: none;
    color: #333333;
    background: #fafafa;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    margin-bottom: 15px;
}

.home-most-quoted-product-card:hover,
.home-most-quoted-product-card:focus {
    text-decoration: none;
    color: #333333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.home-most-quoted-img {
    position: relative;
    height: 0;
    padding-bottom: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: #fafafa;
}

.home-most-quoted-name {
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.3;
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    text-align: center;
}

@media screen and (max-width: 991px) {
    .home-most-quoted-title {
        font-size: 2.5em;
    }

    .home-most-quoted-card-col {
        padding: 0 6px;
    }
}

@media screen and (max-width: 767px) {
    .home-most-quoted-fluid {
        padding: 20px 0;
    }

    .home-most-quoted-card {
        padding: 20px 10px;
    }

    .home-most-quoted-title {
        font-size: 2em;
    }

    .home-most-quoted-card-col {
        padding: 0 4px;
    }
}

/* ====== End most quoted section ====== */

/* Focus ring: hide Bootstrap/browser outline on mouse click; keep keyboard. */
a:focus,
button:focus,
.btn:focus,
.btn:active:focus,
.btn.active:focus,
input[type="file"]:focus,
input[type="checkbox"]:focus,
input[type="radio"]:focus {
    outline: none;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #c62828;
    outline-offset: 2px;
}
