* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

/* ---------------------------
   CONTENEDOR PRINCIPAL
---------------------------- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    border-radius: 8px;
}

header {
    width: 100vw;
    max-width: 100%;
    overflow: hidden;
}

/* ---------------------------
   TITULOS / TEXTOS
---------------------------- */
h1, h3, h4, h5, h6 {
    color: #1c1937;
    margin-bottom: 1rem;
    font-weight: 700;
}

h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1c1937;
    margin-bottom: 15px;
}

h1.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
}

p {
    margin-bottom: 1rem;
    color: #555;
}

/* ---------------------------
   MENU DE NAVEGACION
---------------------------- */
nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline-block;
    margin-right: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #1c1937;
}

.whatsapp-float {
    position: fixed !important; /* Asegurar que siempre esté fijo */
    bottom: 20px !important; /* Siempre 20px desde abajo */
    right: 20px !important; /* Siempre 20px desde la derecha */
    z-index: 99999 !important; /* Por encima de todo */
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.4);
}



/* ---------------------------
   SECCIÓN DE SERVICIOS
---------------------------- */

.services-container {
    margin-top: 100px;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.row.service-item {
    gap: 3.5rem; /* espacio horizontal entre columnas */
}

.service-item {
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 4rem;
}

.service-item > .col-md-6 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.service-content {
    text-align: justify; 
    padding: 1rem 1.5rem;
}

.service-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1c1937;
    margin-bottom: 1rem;
}

.service-content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-item img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* 📱 Responsive */
@media (max-width: 768px) {
    .service-item {
        text-align: center;
    }

    .service-content {
        text-align: justify;
        padding: 0 30px;
    }
}


/* ---------------------------
   CARRUSEL DE PROYECTOS 
---------------------------- */

.project-carousel-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    text-align: center;
}

.project-carousel {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Tarjetas de Proyectos */
.project-item {
    width: 100%;
    max-width: 350px;
    min-width: 300px;
    padding: 10px;
    box-sizing: border-box;
}

.project-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, #ffffff, #f9f9f9);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.12);
    border: none;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    min-height: 380px;
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
}

.project-title {
    font-size: 18px;
    font-weight: 700;
    color: #1c1937;
    margin-top: 15px;
}

.project-description {
    font-size: 15px;
    color: #444;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.project-card:hover {
    transform: scale(1.01) translateY(-6px);
    box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.25);
}

/* ---------------------------
   ESTILOS DE LOS PRODUCTOS 
---------------------------- */

.card-products img {
    transition: transform 0.3s ease-in-out;
    border-radius: 10px;
    filter: brightness(0.95);
    width: 100%;
    height: auto;
}

.card-products img:hover {
    filter: brightness(1);
}

.card-products img:hover {
    transform: scale(1.02);
}

.card-title-products {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center; 
    margin-bottom: 16px;
}

.card-text-products {
    font-size: 16px;
    color: #555;
    margin-bottom: 16px;
    line-height: 1.5;
    font-weight: 400;
}

.card-body-products {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    text-align: left;
    border-radius: 8px;
}

/* ---------------------------
   Botones
---------------------------- */

.btn-custom, .btn-cotizar, .btn-dark, .boton-especificar  {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    border: none;
    padding: 14px 24px; 
    font-size: 15px; 
    font-weight: 700;
    border-radius: 10px; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    margin-top: 12px;
    min-width: 160px; 
}

.btn-custom:hover, .btn-cotizar:hover, .btn-dark:hover, .boton-especificar:hover  {
    background: linear-gradient(135deg, #0056b3, #003d80);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px) scale(1.05); /* 🔹 Ligeramente más grande */
}

.btn-custom:active, .btn-cotizar:active, .btn-dark:active, .boton-especificar:active  {
    transform: translateY(1px) scale(1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* ICONO DEL BOTÓN */
.btn-custom i {
    font-size: 16px;
}

/* ---------------------------
   INDICADORES DE CARRUSEL
---------------------------- */

.carousel-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.carousel-indicators span {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-indicators span.active {
    background-color: #1c1937;
}

/* ---------------------------
   FOOTER
---------------------------- */

.footer-container {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    flex-wrap: wrap; 
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 30px; 
}

.footer-section {
    flex: 1;
    min-width: 250px;
    text-align: left;
}

.footer {
    background: #2e3c5d;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.footer p {
    color: #fff;
}

/* Títulos de las secciones */

.footer-section h6 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Listas dentro del footer */
.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    text-decoration: none;
    color: white;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.footer-section p {
    margin: 5px 0;
}

.footer-section i {
    margin-right: 8px;
    color: #fff;
}

.footer .social-icons a {
    transition: transform 0.3s ease;
}

.footer .social-icons a:hover {
    transform: translateY(-5px);
}

/* Estilos de las redes sociales */

.social-icons {
    display: flex;
    justify-content: center; /* Centra los iconos */
    gap: 15px; /* Espaciado entre iconos */
}

.social-icons a {
    display: inline-block;
    font-size: 20px;
    color: white;
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: scale(1.2);
}

/* Línea de Copyright */

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    margin-top: 10px;
}

/* Menu de navegación */ 

#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease-in-out;
}
  
.logo img {
    height: 55px;
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.menu-btn {
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    color: #222;
    padding: 10px 18px;
    position: relative;
    transition: all 0.3s ease;
}

.menu-btn::after {
    content: "";
    width: 0;
    height: 3px;
    background: #0056b3;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease-in-out;
}

.menu-btn:hover::after {
    width: 100%;
}

.menu-btn:hover {
    color: #0056b3;
}

.menu-btn.active {
    color: #0056b3;
    font-weight: 700;
}

/* MENÚ RESPONSIVO */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.hero-text {
    position: relative;
    z-index: 2;
    font-size: clamp(16px, 5vw, 50px);
    font-weight: bold;
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    max-width: 80%;
}

/* Animación de caída */
@keyframes drop {
    from {
      opacity: 0;
      transform: translateY(-50px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
}

.hero-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(-50px);
    animation: drop 0.5s ease-out forwards;
}

/* ---------------------------
   IMÁGENES (MISIÓN, VISIÓN, ABOUT)
---------------------------- */

.mission-vision-img, .about-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Efecto al pasar el cursor */
.mission-vision-img:hover, .about-img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* ---------------------------
   TARJETAS (MISIÓN, VISIÓN, ABOUT)
---------------------------- */
.mission-vision-card, .about-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    padding: 20px;
    transition: box-shadow 0.3s ease-in-out;
}

/* Efecto sutil al pasar el cursor */
.mission-vision-card:hover, .about-card:hover {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

/* ---------------------------
   RESPONSIVIDAD
---------------------------- */
@media (max-width: 1024px) {

    /* Proyectos */ 

    .project-carousel-container {
        padding: 70px 15px;
    }

    /* Servicios */ 

    .services-row {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .services-img img {
        max-width: 90%;
        margin-bottom: 1rem;
    }
    
    .services-content {
        padding: 1rem;
    }

}

/* Ajuste para pantallas pequeñas */

@media (max-width: 768px) {

    .project-carousel-container {
        padding: 40px 30px;
    }

    .project-carousel {
        gap: 10px;
        padding: 10px 0;
    }

    .project-item {
        max-width: 90%;
        min-width: auto;
        padding: 0;
    }

    .project-card {
        padding: 15px;
        min-height: 380px;
    }

    .project-card img {
        height: 200px;
    }

    .carousel-controls {
        margin-top: 16px;
    }

    .btn-custom, .btn-cotizar, .btn-dark, .boton-especificar {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 140px;
    }
    .menu-toggle { display: flex; }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background: white;
        padding: 20px 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        z-index: 999;
    }

    .nav-links.show { display: flex; }
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        text-align: center;
    }
    .mission-vision-img, .about-img {
        max-height: 260px;
        border-radius: 10px;
        margin-bottom: 10px;
    }

    .mission-vision-card, .about-card {
        padding: 15px;
    }
    .list-group-item-products{
        margin-left: 10px;
    }
}
