/*
 * HOJA DE ESTILOS DEL SITIO WEB NAPOLEÓN S.A. DE C.V.
 * Fecha de creación: 24/06/2025
 * 2025 © Napoleón S.A. de C.V. Todos los derechos reservados.
*/

@import url('color_scheme.css');
@import url('font_icon.css');
@import url('font_face.css');


/* ========================================================= */
/* LAYOUT */
/* ========================================================= */
body {
    background-color: rgb(var(--color_bg));
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.5rem;
    color: rgb(var(--nap_black));
}

/* Wraps & Containers */
.comp_parallax {
    height: calc(100vh - 50vh);
    background-image: url('../imgs/img_parallax.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}
.comp_parallax::before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: rgb(var(--nap_black), 0.75);
}

.comp_parallax .wrap_heading {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    color: white;
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 250px;
}

/* COMPONENTS */
/* Header */
.main_header { height: 70px; }

/* Carousel */
.carousel img {
    width: 100%;
    height: calc(100vh - 50vh);
    object-fit: cover;
}

.carousel-control-next,
.carousel-control-prev { font-size: 2rem; }

/* Grid */
.comp_grid, .comp_grid_row {
    display: grid;
    grid-template-columns: auto;
    gap: 1.5rem;
}

.comp_card {
    background-color: white;
    padding: 1.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 0.75rem;
}

.comp_grid_row .comp_card {
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* BRANDING */
.main_header .site_brand {
    width: 70px;
    height: auto;
}

.main_footer .site_brand {
    width: 150px;
    height: auto;
}

/* UTILITIES */
.gap_responsive { gap: 3rem; }

.mb_responsive { margin-bottom: 3rem; }



/* ========================================================= */
/* BREAKPOINTS */
/* ========================================================= */
@media (min-width: 600px) {
    /* Grids */
    .comp_grid { grid-template-columns: auto auto; }
    .comp_card {
        gap: 1.5rem;
        min-height: 300px;
    }
    .comp_grid .comp_card:last-child {
        grid-column: 1 / span 2;
        flex-direction: row;
        align-items: center;
    }

    .comp_grid_row { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    /* Utilities */
    .mb_responsive { margin-bottom: 7.5rem; }
}

@media (min-width: 1024px) {
    /* Wraps & Containers */
    .comp_parallax { height: 600px; }
    .comp_parallax .wrap_heading {
        width: 50%;
        text-align: left;
    }

    /* Header */
    .main_header { height: 100px; }

    /* Carousel */
    .carousel img { height: 700px; }

    /* Branding */
    .main_header .site_brand { width: 110px; }
    .main_footer .site_brand { width: 180px; }

    /* Utilities */
    .gap_responsive { gap: 7.5rem; }
}



/* ========================================================= */
/* BOOTSTRAP OVERRIDES */
/* ========================================================= */
/* Navbars */
.nav-link { --bs-nav-link-color: rgb(var(--nap_black)); }

.navbar-nav .nav-link.active {
    font-weight: 600;
    box-shadow: 0 4px 0 rgb(var(--nap_yellow));
}

/* Buttons & links */
.btn {
    --bs-btn-color: rgb(var(--nap_black));
    --bs-btn-padding-x: 1.5rem;
    --bs-btn-paddin-y: 0.75rem;
    --bs-btn-border-radius: 0.25rem;
    --bs-btn-font-weight: 600;
    letter-spacing: 2px;
}

.btn-primary {
    --bs-btn-bg: rgb(var(--nap_yellow));
    --bs-btn-border-color: rgb(var(--nap_yellow));
    --bs-btn-hover-bg: rgb(var(--nap_black));
    --bs-btn-hover-border-color: rgb(var(--nap_black));
    --bs-btn-hover-color: white;
}

a, a:focus {
    --bs-link-color-rgb: var(--nap_black);
    font-weight: 600;
    text-decoration: none;
    transition: ease-in-out 0.25s;
}
a:hover {
    --bs-link-color-rgb: var(--nap_black);
    opacity: 0.5;
}

/* Headgins */
h1, h2, h3, .h1, .h2, .h3 { font-weight: bold; }
h4, h5, h6, .h4, .h5, .h6 { font-weight: 600; }

h1, .h1 { font-size: 2.5rem; }

h2, .h2 { font-size: 2.25rem; }

h3, .h3 { font-size: 2rem; }

h4, .h4 { font-size: 1.5rem; }

h5, .h5 { font-size: 1.25rem; }

h6, .h6 { font-size: 1rem; }

/* Carousel */
#carHero .carousel-item::before {
    content: '';
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 50%;
    top: 50%;
    left: 0;
    background: #3E548D;
    background: linear-gradient(180deg, rgba(62, 84, 141, 0) 0%, rgba(62, 84, 141, 1) 100%);
}

.carousel-caption {
    bottom: 3rem;
    z-index: 2;
}

.carousel-indicators .active { background-color: rgb(var(--nap_yellow)); }

/* Cards */
.card {
    border-width: 0;
    border-radius: 0;
}

/* Forms */
.form-label {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.form-control {
    --bs-border-color: rgb(var(--color_border));
    --bs-border-radius: 0;
    padding: 0.75rem 1.5rem;
}
.form-control::placeholder { color: rgba(var(--nap_black), 0.5); }


/* Utilities */
.fs-4 {
    font-size: 1.25rem;
    font-weight: 600;
}

.gap-3 { gap: 1.25rem!important; }

.mb-3 { margin-bottom: 1.5rem; }

.p-3 { padding: 1.5rem!important; }

.text-body-tertiary { --bs-tertiary-color: rgb(var(--color_border))!important; }