/* Variables de color */
:root {
    --primary-orange: #f28b23; /* Naranja principal */
    --dark-grey: #212529; /* Casi negro, para fondos */
    --black: #000000;
    --white: #ffffff;
    --light-grey: #6c757d; /* Gris para texto secundario o fondos más claros */
}

body {
    font-family: 'Montserrat', sans-serif; /* Fuente principal */
    line-height: 1.6;
    background-color: var(--black);
    color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.text-orange {
    color: var(--primary-orange) !important;
}

.bg-dark {
    background-color: var(--dark-grey) !important;
}

.bg-black {
    background-color: var(--black) !important;
}

.bg-secondary {
    background-color: rgba(33, 37, 41, 0.7) !important; /* Un poco más transparente para el card */
}

/* Estilos para el Hero Section */
.hero-section {
    position: relative;
    color: var(--white);
    overflow: hidden; /* Asegura que el overlay no se desborde */
    padding-top: 100px; /* Espacio para el contenido */
    padding-bottom: 50px; /* Espacio para el contenido */
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Oscurece la imagen de fondo */
    z-index: 0; /* Asegura que el overlay esté detrás del contenido */
}

.hero-section .container {
    position: relative;
    z-index: 1; /* Asegura que el contenido esté por encima del overlay */
    height: 100%; /* Permite al container ocupar toda la altura */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-section .display-4 {
    font-size: calc(1.75rem + 3vw); /* Tamaño responsive para el título */
}

.hero-section .lead {
    font-size: calc(1rem + 0.5vw);
}

/* Botones */
.custom-btn-orange {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    color: var(--white);
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.custom-btn-orange:hover {
    background-color: darken(var(--primary-orange), 10%); /* Oscurece un poco al pasar el mouse */
    border-color: darken(var(--primary-orange), 10%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Cards con borde naranja */
.custom-card-orange {
    border-left: 5px solid var(--primary-orange);
    border-radius: 5px;
}

.custom-card-orange-right {
    border-right: 5px solid var(--primary-orange);
    border-radius: 5px;
}


/* Listas de servicios / metodología */
.fa-li {
    width: 1.5em; /* Ajustar el espacio para los iconos */
}

.fa-ul {
    padding-left: 2em; /* Espacio para que los iconos no se peguen al borde */
}

/* Metodología - Lista con números profesionales */
.methodology-list {
    padding-left: 0;
}

.methodology-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 0;
}

.methodology-number {
    background-color: var(--primary-orange);
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-right: 1rem;
    box-shadow: 0 2px 4px rgba(242, 139, 35, 0.3);
}

.methodology-content {
    flex: 1;
    padding-top: 2px;
}

.methodology-content .fw-bold {
    color: var(--white);
    display: block;
    margin-bottom: 0.25rem;
}

.methodology-content .small {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* Imágenes */
img {
    max-width: 100%;
    height: auto;
    object-fit: cover; /* Asegura que las imágenes se ajusten sin distorsión */
}

/* Ajustes específicos para imágenes en diferentes secciones */
.services-section img {
    max-height: 300px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.work-section img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.project-section img {
    max-height: 250px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.contact-section img {
    max-height: 350px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Sección Proyectos - Responsividad de imágenes */
.project-item .row > div {
    margin-bottom: 1.5rem; /* Espacio entre imágenes en móvil */
}

@media (min-width: 992px) { /* Para pantallas grandes */
    .project-item .row > div {
        margin-bottom: 0; /* Eliminar espacio entre imágenes si están lado a lado */
    }
    .project-item .order-lg-1 {
        order: 1;
    }
    .project-item .order-lg-2 {
        order: 2;
    }
    .project-item:nth-child(odd) .order-lg-1 { /* Alternar orden para "zig-zag" */
        order: 2;
    }
    .project-item:nth-child(odd) .order-lg-2 {
        order: 1;
    }
}


/* Línea divisoria en proyectos */
.border-orange {
    border-color: var(--primary-orange) !important;
    border-width: 2px !important;
    opacity: 0.5;
}

/* Sección "Te Ayudamos a Crecer" */
.grow-section {
    position: relative;
    color: var(--white);
    overflow: hidden;
    min-height: 70vh; /* Altura mínima para esta sección */
    display: flex;
    align-items: center;
    justify-content: center;
}

.grow-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 0;
}

.grow-section .container {
    position: relative;
    z-index: 1;
}

/* Contacto - Iconos de redes sociales */
.social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icons a {
    color: var(--white);
    transition: color 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.social-icons a:hover {
    color: var(--primary-orange);
    transform: translateY(-2px);
}

.social-icons i {
    font-size: 1.5rem;
    display: inline-block;
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    text-align: center;
}

.social-logo {
    width: 2rem;
    height: 2rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.social-icons a:hover .social-logo {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Footer */
footer {
    background-color: var(--black);
    color: var(--white);
}

/* Efecto de scroll suave */
html {
    scroll-behavior: smooth;
}

/* Pequeñas mejoras de responsividad */
@media (max-width: 767.98px) {
    .display-5 {
        font-size: 2.5rem;
    }
    .display-4 {
        font-size: 2rem;
    }
    .hero-section .display-4 {
        font-size: calc(1.5rem + 2vw);
    }
    .hero-section .lead {
        font-size: calc(0.9rem + 0.3vw);
    }
    
    /* Ajustes de imágenes en móvil */
    .services-section img {
        max-height: 200px;
    }
    .work-section img {
        max-height: 250px;
    }
    .project-section img {
        max-height: 180px;
    }
    .contact-section img {
        max-height: 200px;
    }
}

/* Ajustes para tablets */
@media (min-width: 768px) and (max-width: 991.98px) {
    .services-section img {
        max-height: 250px;
    }
    .work-section img {
        max-height: 300px;
    }
    .project-section img {
        max-height: 200px;
    }
    .contact-section img {
        max-height: 280px;
    }
}