/* ============================= */
/*       Variables globales   */
/* ============================= */
:root {
    --primary-color: #ff3232;
    --secondary-color: #00155a;
    --ambar-color: #f59e0b;
    --verde: #1c9700;
    --hover: #255372;
    --dark-color: #111827;
    --light-color: #f3f4f6;
    --text-color: #374151;
    --transition: all 0.3s ease;
}
#contenedorProyectos{
    scroll-behavior:smooth;
}

#contenedorProyectos .col-12{
    flex:0 0 auto;
    width:300px;
}

.carousel-control-prev,
.carousel-control-next{
    width:5%;
    filter:invert(1);
}

.bot {
    position: relative;
    display: inline-block;
    margin: 0 2px;
    padding: 1px 5px;
    font-size: 13px;
    font-weight: bold;
    color: var(--light-color);
    border: none;
    border-radius: .375rem;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    outline: none;
    box-shadow: 
        0 2px 4px rgba(0,0,0,.1),
        inset 0 1px 2px rgba(255,255,255,.25);
}

.bot::before,
.bot::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    border-radius: inherit;
    pointer-events: none;
    filter: blur(1px);
}
.bot::before {bottom: 0; height: 30%;
    background: linear-gradient(0deg, rgba(0,0,0,.6), transparent);}
.bot::after { top: 0; height: 60%;
    background: linear-gradient(180deg, #fff, rgba(255,255,255,.2) 30%, transparent);}
.bot:hover  { background: var(--hover);}
.botVerde   { background: var(--verde); }
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================= */
/*       Menú de navegación     */
/* ============================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #111827;
    padding: 0.5rem 2rem;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: #111827;
    padding: 0.3rem 2rem;
}

/* Contenedor para alinear logo y navegación */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Estilos del logo */
.nav-brand {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.navbar.scrolled .nav-logo {
    height: 40px;
}

/* Lista de navegación */
.nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-link:hover {
    background: var(--primary-color);
}

/* Estilos del menú móvil */
.navbar-collapse {
    background-color: #111827;
    padding: 1rem;
}

@media (max-width: 991px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
    }
}

/* Responsive del navbar */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .nav-logo {
        height: 40px;
    }
    
    .navbar.scrolled .nav-logo {
        height: 35px;
    }
    
    .nav-list {
        gap: 1rem;
    }
}

/* Estilos del botón hamburguesa */
.navbar-toggler:hover {
    background-color: var(--dark-color);
    border-color: white;
}

.navbar-nav .nav-link {
    color: white !important;
}

.navbar-toggler {
    border-color: white !important;
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* ============================= */
/*       Sección de Banner      */
/* ============================= */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    color: white;
    background: rgba(0,0,0,0.5);
    padding: 2rem;
    padding-top: 80px; /* Nuevo: espacio para el navbar */
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInDown 1.2s ease;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeIn 1.5s ease;
}

.hero-logo {
    width: 150px;
    height: auto;
    margin-bottom: 1rem;
    animation: logoAnimation 20s infinite;
}

/* Responsive del hero */
@media (max-width: 768px) {
    .hero-content {
        padding-top: 100px; /* Nuevo: más espacio en móvil */
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .hero-logo {
        width: 120px;
    }
}

/* Botón y animaciones (sin cambios) */
.btn {
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    animation: fadeInUp 1.2s ease;
}

.btn:hover {
    background: var(--ambar-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Animaciones */
@keyframes logoAnimation {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    10% {
        transform: scale(1.2);
        opacity: 1;
    }
    20% {
        transform: scale(1);
    }
    80% {
        transform: scale(1);
        opacity: 1;
    }
    90% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================= */
/*       Estilos generales   */
/* ============================= */

.section {
    padding: 6rem 10%;
    max-width: 1400px;
    margin: auto;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    color: var(--dark-color);
    position: relative;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    display: block;
    margin: 10px auto 0;
    border-radius: 2px;
}


/* ============================= */
/*       ¿Por que elegirnos?    */
/* ============================= */
.about-features {
    list-style: none;
    margin-top: 2rem;
}

.about-features li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.about-features li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Estilos para las estadísticas */
.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--light-color);
    border-radius: 10px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s ease;
}

.stat-item.animate {
    opacity: 1;
    transform: scale(1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 1.1rem;
    color: var(--text-color);
}

/* Media queries para responsividad */
@media screen and (max-width: 768px) {
    .about-stats {
        grid-template-columns: 1fr; /* Cambia a una sola columna */
        gap: 1rem; /* Reduce el espacio entre elementos */
    }
    
    .stat-item {
        padding: 1.5rem; /* Reduce el padding en móviles */
    }
    
    .stat-number {
        font-size: 2rem; /* Reduce el tamaño de la fuente */
    }

    .about-features li {
        padding-left: 1.5rem; /* Reduce el padding del listado */
    }
}

/* ============================= */
/*      Sección Servicios       */
/* ============================= */

.services {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--dark-color) 100%);
    padding: 5rem 0;
}

.services .section-title,
#services .section-title {
    color: #ffffff !important;
    margin-bottom: 3rem;
    text-align: center;
}

.service-card {
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%;
    padding: 1rem;
}

.service-card:hover {
    transform: translateY(-10px);
}

/* Estilos específicos para SVG de Feather */
.service-card svg {
    stroke: #ff3232 !important;
    width: 45px !important;
    height: 45px !important;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.service-card p {
    color: #fff;
    font-size: 1rem;
    line-height: 1.6;
}

/* Media queries para responsividad */
@media screen and (max-width: 768px) {
    .service-card {
        padding: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }

    .service-card svg {
        width: 35px !important;
        height: 35px !important;
    }
}


/* ============================= */
/*       Proceso   */
/* ============================= */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 3rem;
}

.process {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

/* Ajuste de las tarjetas */
.step-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 100%;
    width: 100%; /* Asegura que ocupe todo el ancho disponible */
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1rem;
}

.step-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    background: rgba(255, 50, 50, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.step-card h3 {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--dark-color);
    margin: 1rem 0;
    width: 100%; /* Asegura que el título ocupe todo el ancho */
}

.step-card p {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    width: 100%; /* Asegura que el texto ocupe todo el ancho */
    padding: 0 1rem; /* Añade un poco de padding horizontal */
}

/* Hover effect */
.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .step-card {
        padding: 2rem;
        min-height: 280px;
    }
}

@media (max-width: 991px) {
    .step-card {
        margin-bottom: 2rem;
        min-height: 250px;
    }
    
    .step-card h3 {
        font-size: 1.3rem;
    }
    
    .step-card p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .step-card {
        min-height: 220px;
        padding: 1.5rem;
    }
}


/* ============================= */
/*       Portafolio   */
/* ============================= */
.portfolio {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--dark-color) 100%);
    padding: 5rem 0;
}

.portfolio .section-title {
    color: white;
    text-align: center;
    margin-bottom: 3rem;
}

/* Estilos de cada elemento del portafolio */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    aspect-ratio: 3/4; /* Mantenemos la proporción original */
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Overlay */
.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    padding: 1.8rem;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: white;
}

.portfolio-overlay p {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Botón del portafolio */
.portfolio-link {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.portfolio-link:hover {
    background-color: var(--ambar-color);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .portfolio-overlay {
        padding: 1.5rem;
    }
    
    .portfolio-overlay h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 991px) {
    .portfolio-overlay {
        padding: 1.2rem;
    }
}

@media (max-width: 768px) {
    .portfolio {
        padding: 4rem 0;
    }
    
    .portfolio-overlay h3 {
        font-size: 1.2rem;
    }
    
    .portfolio-overlay p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .portfolio-overlay {
        padding: 1rem;
    }
}


/* ============================= */
/*       Testimonios   */
/* ============================= */
.testimonials {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.testimonials .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 3rem;
}

.testimonial-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.testimonial-image {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 3px solid var(--primary-color);
    object-fit: cover;
}

.testimonial-text {
    font-size: 1.2rem;
    color: #555;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.testimonial-position {
    font-size: 1rem;
    color: var(--primary-color);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .testimonial-card {
        padding: 2rem;
    }
    
    .testimonial-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 991px) {
    .testimonial-card {
        padding: 1.8rem;
    }
    
    .testimonial-author {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .testimonials {
        padding: 4rem 0;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .testimonial-image {
        width: 80px;
        height: 80px;
    }
}

/* ============================= */
/*       Separador  */
/* ============================= */
.section-divider {
    position: relative;
    height: 300px;
    width: 100%;
    overflow: hidden;
    margin: 4rem 0;
}



.divider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ff3232;  /* Tu color secundario con opacidad */
}

.divider-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    color: var(--light-color);
}

.divider-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInDown 1s ease;
}

.divider-content p {
    font-size: 1.2rem;
    max-width: 600px;
    animation: fadeInUp 1s ease;
}

/* Media Query para dispositivos móviles */
@media (max-width: 768px) {
    .section-divider {
        height: 250px;
    }
    
    .divider-content h3 {
        font-size: 1.8rem;
    }
    
    .divider-content p {
        font-size: 1rem;
    }
}

/* ============================= */
/*       Contactos   */
/* ============================= */

#contact {
    background: #ffffff;
    padding: 4rem 0;
}

#contact h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 3rem;
}

#contact h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto 0;
}

/* Hacer que el cuadro del formulario resalte más */
form {
    max-width: 600px;
    margin: 0 auto;
    background: #f1f1f1; /* Un gris más oscuro que el fondo blanco */
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2); /* Más sombra para resaltar */
}


.form-group {
    margin-bottom: 1.5rem;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0px 0px 8px rgba(0, 123, 255, 0.2);
    outline: none;
}

textarea.form-control {
    resize: none;
}

button {
    display: inline-block;
    width: 100%;
    padding: 0.8rem;
    background: var(--primary-color);
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.form-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Dos columnas */
    gap: 1.5rem; /* Espaciado entre columnas */
}

@media (max-width: 768px) {
    .form-columns {
        grid-template-columns: 1fr; /* Se vuelve una sola columna en pantallas pequeñas */
    }
}


/* ============================= */
/*       Pie de pagina  */
/* ============================= */
.footer {
    background: var(--dark-color);
    color: #ffffff;
    padding: 5rem 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-bottom: 3rem;
}


.footer-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.footer-description {
    color: #a1a1aa;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #a1a1aa;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #a1a1aa;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    padding: 0.2rem 0;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-form input {
    padding: 0.8rem;
    border: 1px solid #374151;
    border-radius: 5px;
    background: #1f2937;
    color: white;
}

.btn-subscribe {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-subscribe:hover {
    background: var(--secondary-color);
}

.container.footer-bottom-content {
    max-width: 100%;
    width: 100%;
    padding: 0 2rem;
}


.footer-bottom {
    background: #0f172a;
    padding: 1.5rem 0;
    margin-top: 2rem;
    width: 100%; /* Asegura que la barra se extienda completamente */
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%; /* Se asegura de que el contenido use todo el ancho */
    padding: 0 2rem; /* Añade espacio a los lados para evitar que el texto quede pegado */
}

.copyright {
    color: #a1a1aa;
}


/* Responsive Footer */
@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}
