/* Estilos generales */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: #000;
    background-color: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: justify; /* Para uniformidad en textos */
}

/* Menú fijo */
#navbar {
    background-color: #001f3f; /* Azul marino */
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    margin: 0;
    white-space: nowrap;
}

#navbar ul {
    list-style: none;
    display: flex;
    margin: 0;
    flex-wrap: nowrap;
   /* overflow-x: auto;*/
}

#navbar ul li {
    margin-left: 20px;
    white-space: nowrap;
}

#navbar ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

/* Botón WhatsApp flotante */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-btn img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section {
    padding: 60px 0;
    background-color: #fff;
    animation: fadeIn 1s ease-out;
}

/* Secciones generales */
.section h2 {
    text-align: center;
    color: #001f3f;
}

.section-icon {
    display: block;
    margin: 20px auto;
    width: 100px;
    height: auto;
}

.cta-btn {
    display: inline-block;
    background-color: #001f3f;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-btn:hover {
    background-color: #003366;
    transform: scale(1.05);
}

/* Carrusel general */
.carousel {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: none;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    display: block;
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    width: 80%;
}

.carousel-content img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 50%;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 16px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Carrusel en Inicio */
#inicio {
    height: 80vh;
}

/* Carrusel en Referencias */
#referencias-carousel {
    height: 400px;
}

/* Cards uniformes */
.services-grid, .news-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}


.service-card, .news-card, .blog-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px; /* Altura mínima para uniformidad */
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover, .news-card:hover, .blog-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Imágenes ocupando todo el ancho de la card */
.service-card img, .news-card img, .blog-card img {
    width: 100%;          /* Ocupa todo el ancho de la card */
    height: 200px;        /* Altura fija para uniformidad */
    object-fit: cover;    /* Rellena sin deformar */
    margin-bottom: 15px;  /* Espacio entre imagen y contenido */
    border-radius: 10px;  /* Mantiene esquinas redondeadas */
}


/* Responsividad */
@media (max-width: 768px) {
    #navbar ul {
        /*overflow-x: auto;*/
        flex-wrap: nowrap;
    }

    .services-grid, .news-grid, .blog-grid {
        grid-template-columns: 1fr;
    }

    .carousel-content {
        padding: 10px;
        font-size: 14px;
        width: 90%;
    }

    .prev, .next {
        padding: 10px;
        font-size: 18px;
    }

    #referencias-carousel {
        height: auto;
    }
}



#sobre-nosotros {
  padding: 60px 20px;
}

.sobre-nosotros-grid {
  display: flex;
  align-items: stretch; /* igual altura */
  gap: 40px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.sobre-nosotros-imagen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sobre-nosotros-imagen img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* mantiene proporciones sin deformar */
  max-height: 100%;
}

.sobre-nosotros-texto {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sobre-nosotros-texto h2 {
  margin-bottom: 15px;
}

/* Responsivo */
@media (max-width: 768px) {
  .sobre-nosotros-grid {
    flex-direction: column;
  }
  .sobre-nosotros-imagen img {
    max-height: 250px;
  }
}
/* Estilo general del botón */
.cta-btn {
  display: inline-block;
  background-color: #003366; /* cambia al color de tu marca */
  color: #fff;
  padding: 14px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* Hover elegante */
.cta-btn:hover {
  background-color: #0055a5;
  transform: scale(1.05);
}

/* Contenedor centrado */
.cta-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  width: 100%;
}

/* Responsividad perfecta */
@media (max-width: 768px) {
  .cta-btn {
    width: 90%;
    text-align: center;
    font-size: 1rem;
  }
}
#mision-vision {
  text-align: center;
  padding: 60px 20px;
}

.mision-vision-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  margin-top: 30px;
}

.mision-box, .vision-box {
  flex: 1 1 450px;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 30px 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: center;
}

.mision-box:hover, .vision-box:hover {
  transform: translateY(-5px);
  background: #094894;
}

.icono {
  font-size: 60px;
  color: #003366;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.mision-box:hover .icono {
  color: #000c17;
}

.vision-box:hover .icono {
  color: #000c17;
}

.mision-box h3, .vision-box h3 {
  color: #003366;
  margin-bottom: 15px;
}

.mision-box p, .vision-box p {
  color: #333;
  line-height: 1.6;
  margin-bottom: 10px;
  text-align: justify;
}

/* Botón centrado y responsivo */
.cta-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.cta-btn {
  display: inline-block;
  background-color: #003366;
  color: #fff;
  padding: 14px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background-color: #001b35;
  transform: scale(1.05);
}

/* Responsivo */
@media (max-width: 768px) {
  .mision-vision-grid {
    flex-direction: column;
  }
  .icono {
    font-size: 50px;
  }
  .cta-btn {
    width: 90%;
    text-align: center;
  }
}






.timeline {
    position: relative;
    margin: 40px 0;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #003366;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    padding-left: 30px;
    padding-right: 30px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #003366;
    border: 4px solid #fff;
    z-index: 1;
}

.timeline-item:nth-child(odd)::before {
    right: -10px;
}

.timeline-item:nth-child(even)::before {
    left: -10px;
}

.timeline-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    display: inline-block;
    max-width: 400px;
}

.timeline-content h3 {
    color: #003366;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #333;
    line-height: 1.5;
    text-align: justify;
}

/* Botón centrado y responsivo */
.cta-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.cta-btn {
    display: inline-block;
    background-color: #003366;
    color: #fff;
    padding: 14px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background-color: #0055a5;
    transform: scale(1.05);
}

/* Responsivo */
@media (max-width: 768px) {
    .timeline {
        padding-left: 0;
    }
    .timeline::before {
        left: 20px;
    }
    .timeline-item, .timeline-item:nth-child(even), .timeline-item:nth-child(odd) {
        left: 0 !important;
        width: 100%;
        text-align: left;
        padding-left: 50px;
        padding-right: 20px;
    }
    .timeline-item::before {
        left: 0 !important;
    }
    .timeline-content {
        max-width: 100%;
    }
    .cta-btn {
        width: 90%;
        text-align: center;
    }
}



/* Contacto en dos columnas */
.contact-grid {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.contact-info, .contact-map {
    flex: 1 1 400px;
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.contact-info h3, .contact-map h3 {
    color: #003366;
    margin-bottom: 20px;
    text-align: center;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.5;
}

.contact-info i {
    color: #003366;
    margin-right: 10px;
}

.contact-info a {
    color: #151616;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-map iframe {
    border-radius: 12px;
    width: 100%;
    height: 100%;
}

/* Botón centrado */
.contact-info .cta-btn {
    margin-top: 20px;
    align-self: center;
}

/* Responsivo */
@media (max-width: 768px) {
    .contact-grid {
        flex-direction: column;
        gap: 20px;
    }
    .contact-info, .contact-map {
        flex: 1 1 100%;
    }
}
