
@charset "utf-8";

/* =========================================================
   AMORTIGUADORES AyG
   CSS MAESTRO - VERSIÓN 1.4
   ========================================================= */


/* =========================================================
   1. VARIABLES GENERALES
   ========================================================= */

:root {
    --navbar-color: #fe0000;
    --navbar-color-hover: #d90000;

    --navbar-height: 112px;
    --navbar-logo-height: 90px;

    --whatsapp-color: #5d6263;
    --whatsapp-hover: #424748;
    --whatsapp-text: #ffffff;

    --color-principal: #fe0000;
    --color-secundario: #b00000;

    --color-texto: #333333;
    --color-fondo: #ffffff;
}


/* =========================================================
   2. CONFIGURACIÓN GENERAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    padding-top: var(--navbar-height);

    font-family: 'Inter', sans-serif;
    font-weight: 400;

    color: var(--color-texto);
    background-color: var(--color-fondo);
}

img {
    max-width: 100%;
}


/* =========================================================
   3. BARRA DE NAVEGACIÓN FIJA - AyG
   ========================================================= */

.navbar-real {
    background-color: var(--navbar-color);

    width: 100%;
    height: var(--navbar-height);

    padding: 8px 20px;

    position: fixed;
    top: 0;
    left: 0;

    z-index: 1030;
}

.navbar-real .container-fluid {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGOTIPO */

.navbar-real .navbar-brand {
    margin: 0;
    padding: 0;
}

.navbar-real .navbar-brand img {
    height: var(--navbar-logo-height) !important;
    width: auto !important;

    max-width: 100%;

    display: block;
    object-fit: contain;
}


/* =========================================================
   4. BOTÓN WHATSAPP SUPERIOR
   ========================================================= */

.btn-whatsapp {
    background-color: var(--whatsapp-color);
    color: var(--whatsapp-text);

    border: 2px solid #ffffff;

    padding: 10px 18px;

    border-radius: 8px;

    font-size: 16px;
    font-weight: 600;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    color: var(--whatsapp-text);

    transform: scale(1.05);
}

.btn-whatsapp i {
    font-size: 22px;
}


/* =========================================================
   5. CARRUSEL PRINCIPAL - AMORTIGUADORES AyG
   ========================================================= */

#carouselAG {
    width: 100%;
    overflow: hidden;
}

/* COMPUTADORES: IMAGEN COMPLETA */

#carouselAG .carousel-item {
    height: auto;
    overflow: hidden;
}

#carouselAG .carousel-item img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;
    object-position: center;
}

/* TEXTOS DEL CARRUSEL */

#carouselAG .carousel-caption {
    bottom: 35px;
}

#carouselAG .carousel-caption h2 {
    font-family: 'Inter', sans-serif;

    font-size: clamp(24px, 4vw, 46px);
    font-weight: 800;

    color: #ffffff;

    text-shadow: 2px 2px 5px #000000;
}

/* INDICADORES */

#carouselAG .carousel-indicators {
    z-index: 5;
}

/* CONTROLES */

#carouselAG .carousel-control-prev,
#carouselAG .carousel-control-next {
    width: 8%;
}


/* =========================================================
   5B. HEADERS DE PÁGINAS INTERIORES - AyG
   ========================================================= */

/* CONFIGURACIÓN GENERAL */

header[id^="inicio-"] {
    width: 100%;
    overflow: hidden;
}

header[id^="inicio-"] .carousel-inner {
    width: 100%;
}

header[id^="inicio-"] .carousel-item {
    height: auto;
    overflow: hidden;
    position: relative;
}

header[id^="inicio-"] .carousel-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

/* TEXTO SOBRE LA IMAGEN */

header[id^="inicio-"] .carousel-caption {
    bottom: 35px;
}

header[id^="inicio-"] .carousel-caption h1,
header[id^="inicio-"] .carousel-caption h2 {
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    text-shadow: 2px 2px 5px #000000;
}



/* =========================================================
   6. RESPONSIVE - TABLETAS
   ========================================================= */

@media (min-width: 577px) and (max-width: 768px) {

    :root {
        --navbar-height: 96px;
        --navbar-logo-height: 74px;
    }

    .navbar-real {
        padding: 8px 15px;
    }

    #carouselAG .carousel-caption {
        bottom: 20px;
    }

}


/* =========================================================
   7. RESPONSIVE - CELULARES
   IMAGEN CENTRAL A PANTALLA COMPLETA
   ========================================================= */

@media (max-width: 576px) {

    :root {
        --navbar-height: 76px;
        --navbar-logo-height: 60px;
    }

    /* BARRA DE NAVEGACIÓN */

    .navbar-real {
        height: var(--navbar-height);
        padding: 7px 12px;
    }

    .navbar-real .navbar-brand img {
        height: var(--navbar-logo-height) !important;
    }

    /* WHATSAPP */

    .btn-whatsapp {
        padding: 8px 12px;
        font-size: 14px;
    }

    .btn-whatsapp i {
        font-size: 20px;
    }

    /* VENTANA DEL CARRUSEL */

    #carouselAG .carousel-item {
        height: calc(100vh - var(--navbar-height));
        height: calc(100svh - var(--navbar-height));

        min-height: 0;

        overflow: hidden;
        position: relative;
    }

    /* IMAGEN AMPLIADA Y CENTRADA */

    #carouselAG .carousel-item img {
        position: absolute;

        top: 0;
        left: 0;

        width: 100% !important;
        height: 100% !important;

        max-width: none;

        object-fit: cover;
        object-position: 50% 50%;

        display: block;
    }

    /* TEXTOS */

    #carouselAG .carousel-caption {
        bottom: 25px;
    }

    #carouselAG .carousel-caption h2 {
        font-size: 23px;
    }

}


    /* =====================================================
       HEADERS INTERIORES A PANTALLA COMPLETA
       ===================================================== */

    header[id^="inicio-"] .carousel-item {
        height: calc(100vh - var(--navbar-height));
        height: calc(100svh - var(--navbar-height));

        min-height: 0;
        overflow: hidden;
        position: relative;
    }

    header[id^="inicio-"] .carousel-item img {
        position: absolute;

        top: 0;
        left: 0;

        width: 100% !important;
        height: 100% !important;

        max-width: none;

        object-fit: cover;
        object-position: center;

        display: block;
    }

    header[id^="inicio-"] .carousel-caption {
        bottom: 25px;
        left: 5%;
        right: 5%;
    }

    header[id^="inicio-"] .carousel-caption h1 {
        font-size: 24px;
    }

    header[id^="inicio-"] .carousel-caption h2 {
        font-size: 22px;
    }



/* =====================================================
   ICONOS REDES SOCIALES - AyG
   ===================================================== */

.red-social {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #fe0000;
    color: #ffffff;

    font-size: 25px;
    border-radius: 7px;

    text-decoration: none;

    transition: all 0.3s ease;
}

/* FACEBOOK */

.facebook:hover,
.facebook:focus {
    background-color: #1877F2;
    color: #ffffff;
}

/* INSTAGRAM */

.instagram:hover,
.instagram:focus {
    background-color: #E4405F;
    color: #ffffff;
}

/* TIKTOK */

.tiktok:hover,
.tiktok:focus {
    background-color: #000000;
    color: #ffffff;
}

/* EFECTO AL PASAR EL CURSOR */

.red-social:hover {
    transform: translateY(-4px);
}


