/* ==========================================================================
    1. VARIABLES GLOBALES Y ESTILOS BASE
========================================================================== */

:root {
    --bg-primary: #142745;
    --background: #efefef;
    --bg-white: #FFF;
    --bg-secondary: #fec200;
    --bg-dark: #000;
    --general-radius: 40px;
}

body {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    font-weight: 300;
    font-size: 18px;
    background-color: var(--background);
    color: var(--bg-primary);
}

/* Tipografía base */
p {
    color: var(--bg-primary);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: var(--bg-dark);
}

/* ==========================================================================
    2. LAYOUT Y UTILIDADES GENERALES
========================================================================== */

section {
    /* margin-top: 50px; */
}

.text-justify {
    text-align: justify;
}

.bg-image-main {
    background-image: var(--bg-img-section);
    background-size: cover;
    background-position: center;
}

/* ==========================================================================
    3. COMPONENTES
========================================================================== */

/* --------------------------------- Navbar --------------------------------- */
#img-logo-navbar {
    width: 120px;
}

.navbar {
    padding: 20px 0px;
}

.navbar-nav {
    text-align: end;
}

.nav-item {
    margin: 0px 20px;
    border-radius: 8px;
    transition: background-color 0.2s ease-in-out;
}

.nav-item:hover {
    background-color: var(--bg-secondary);
}

.nav-link {
    padding: 4px 3px;
}

.nav-link-active {
    background-color: var(--bg-secondary);
}

/* ---------------------------------- Cards --------------------------------- */
.card {
    background-color: var(--background);
}

.card-nosotros {
    border-radius: var(--general-radius);
    border: none;
    background: linear-gradient(127deg, rgba(239, 239, 239, 1) 87%, rgba(207, 207, 207, 0.87) 100%);
    padding: 50px 0px;
}

/* --------------------------------- Forms (Inputs & Buttons)--------------------------------- */
.form-control-custom-line {
    background-color: transparent !important;
    border          : none !important;
    border-bottom   : 1px solid #000 !important;
    border-radius   : 0 !important;
    box-shadow      : none !important;
    padding-left    : 0 !important;
    padding-right   : 0 !important;
    font-size       : 1rem;
    color           : #000;
    line-height     : 1.5;
    margin-bottom   : 1rem;
    width           : 100%;
}

.form-control-custom-line::placeholder {
    color  : #333;
    opacity: 1;
}

.form-control-custom-line:focus {
    background-color: transparent !important;
    border-color    : #000 !important;
    box-shadow      : none !important;
    outline         : none !important;
}

textarea.form-control-custom-line {
    resize: none;
}

.btn-secondary {
    background-color: var(--bg-secondary);
    border          : 1px solid var(--bg-secondary);
    color           : var(--bg-dark);
}

#btn-whatsApp {
    width           : 70px;
    height          : 70px;
    background-color: var(--bg-dark);
}

/* ---------------------------------- Icons --------------------------------- */
.circle-icon {
    border       : 1px solid white;
    border-radius: 100px;            /* Considerar 50% para un círculo perfecto si el width/height son iguales */
    height       : 40px;
    width        : 40px;
}

/* --------------------------------- Images & Overlays --------------------------------- */
.img-proceso-trabajo {
    width : 40px;
    height: auto;
}

.img-portafolio {
    width : 50px;
    height: auto;
}

.image-overlay-container {
    position: relative;
    display : inline-block;
    overflow: hidden;
    width   : 100%;
}

.image-overlay-container img {
    display: block;
    width  : 100%;
    height : auto;
}

.image-overlay-container::before {
    content                : '';
    position               : absolute;
    top                    : 0;
    left                   : 0;
    width                  : 100%;
    height                 : 100%;
    background-color       : rgba(0, 0, 0, 0.30);
    opacity                : 1;
    transition             : opacity 0.3s ease;
    border-end-start-radius: inherit;
    z-index                : 1;
}

.image-overlay-container:hover::before {
    opacity: 0;
}

.overlay-content {
    position  : absolute;
    top       : 50%;
    left      : 50%;
    transform : translate(-50%, -50%);
    color     : white;
    text-align: center;
    opacity   : 0;
    transition: opacity 0.3s ease;
    z-index   : 2;
}

.image-overlay-container:hover .overlay-content {
    opacity: 0; /* Si quieres que aparezca, cambiar a opacity: 1; */
}

/* --------------------------------- Text Components --------------------------------- */
.hablemos-stretched {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* ==========================================================================
   4. SECCIONES ESPECÍFICAS DE PÁGINA
   ========================================================================== */

/* ----------------------------- Hero Section (#hero) ----------------------------- */
#hero {
    height: 80vh;
    min-height: 600px;
    background-image: var(--bg-img-section);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #ffffff;
}

#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.84);
    z-index: 1;
}

.hero-text-content {
    position: absolute;
    top: 5rem;
    max-width: 60%;
    /* Faltaba right y text-align si quieres que esté a la derecha */
    /* right: 1rem; */
    /* text-align: right; */
}

.hero-text-content p {
    color: var(--bg-secondary) !important;
    font-weight: 500;
}

.hero-s-amarilla {
    position: absolute;
    bottom: 3rem;
    right: 1rem;
    max-width: 50px;
}

.hero-s-amarilla img {
    display: block;
}

/* ----------------------------- Servicios Section ----------------------------- */
#servicios > .container:first-child {
    margin-bottom: 30px;
}

.service-item {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
}

.service-item:hover {
    /* width: 100%; */ /* Considerar otro efecto */
}

.service-item .bg-img,
.service-item .bg-img-left {
    position: absolute;
    top: 0;
    height: 100%;
    width: 84%;
    z-index: 1;
    background-image: var(--bg-img-section);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.service-item .bg-img {
    left: 0;
    border-end-end-radius: var(--general-radius);
}

.service-item .bg-img-left {
    right: 0;
    left: auto;
    border-end-start-radius: var(--general-radius);
}

.service-item .bg-img::before,
.service-item .bg-img-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.service-item .bg-img::before {
    background-color: rgba(0, 0, 0, 0.65);
}

.service-item .bg-img-left::before {
    background-color: rgba(0, 0, 0, 0.65);
}

.service-item > .container {
    position: relative;
    z-index: 2;
    min-height: 85px;
    display: flex;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

.service-item .title h4 {
    margin-bottom: 0;
    color: var(--bg-white);
}

.service-item .circle-icon {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item .circle-icon i {
    font-size: 1.2rem;
    color: white;
}

/* ==========================================================================
   5. MEDIA QUERIES
   ========================================================================== */

@media (max-width: 767.98px) {
    /* --- Hero Section --- */
    #hero {
        min-height: 450px;
    }

    .hero-text-content {
        top: 3rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        position: relative; /* O ajustar el posicionamiento absoluto */
    }

    .hero-text-content p {
        font-size: 1.25rem;
    }

    .hero-s-amarilla {
        bottom: 2rem;
        right: 1rem;
        left: 1rem;
        margin-left: auto;
        margin-right: auto;
        max-width: 100px;
        position: relative; /* O ajustar el posicionamiento absoluto */
        margin-top: 1rem; /* Si el texto está arriba y esto abajo */
    }

    /* --- Otros ajustes responsivos generales podrían ir aquí --- */
    /* Ejemplo:
    .navbar-nav {
        margin-top: 1rem;
    }
    .nav-item {
        margin: 5px 0;
    }
    */
}

/* Ejemplo de otra media query si tuvieras más */
/*
@media (max-width: 991.98px) {
    // Estilos para tablets
}

@media (max-width: 575.98px) {
    // Estilos para móviles pequeños
}
*/
/* -------------------------------------------------------------------------- */
/*                                    Toast                                   */
/* -------------------------------------------------------------------------- */
.toast-success {
    position        : fixed;
    top             : 50%;
    left            : 50%;
    transform       : translate(-50%, -50%);
    width           : 300px;
    z-index         : 10000;
    animation       : fadeInOut 3s forwards;
    background-color: #D4EDDA;
    border          : 1px solid #C3E6CB;
    color           : #155724;
    padding         : 10px;
    border-radius   : var(--general-radius) !important;
    box-shadow      : 0 0 10px rgba(0, 0, 0, 0.1);
}

.toast-error{
    position        : fixed;
    top             : 50%;
    left            : 50%;
    transform       : translate(-50%, -50%);
    width           : 300px;
    z-index         : 10000;
    animation       : fadeInOut 3s forwards;
    background-color: #F8D7DA;
    border: 1px solid #F5C6CB;
    padding         : 10px;
    border-radius   : var(--general-radius) !important;
    box-shadow      : 0 0 10px rgba(0, 0, 0, 0.1);
}