body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f8fb;
    color: #005C99;
}

.project-card p,
.differential-card p,
.service-card p,
.about-text p,
.project-description p,
.simulator-result,

.contact-form label,
.testimonial-card p {
    text-align: justify;
    text-align-last: left; /* o center */
}

ul.about-values-list,
.differential-card ul,
.service-card ul,
.about-text ul {
    text-align: justify;
     text-align-last: left; /* o center */
    padding-left: 1.3rem;
}

.projects .section-title,
.services .section-title,
.differentials .section-title,
.about-content h2,
.contact-info h2 {
    text-align: center;
}


header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    box-sizing: border-box;
}

.logo img {
    height: 70px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #005C99;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #0099FF;
}

.hero {
    background: url('../img/porteria.jpeg') center center/cover no-repeat, linear-gradient(to right, #0099FF, #00B5FF);
    color: white;
    min-height: 180px;       /* ¡Mucho más pequeño! */
    max-height: 360px;       /* Opcional: no permite crecer demasiado */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;              /* Sin padding extra */
     margin-top: 70px;      /* Esto empuja el hero para que la navbar no lo tape */
    border-radius: 0 0 38px 38px; /* Opcional: un toque más premium, abajo redondeado */
    overflow: hidden;      /* Para que el borde redondeado se vea bien */
}

.hero-overlay {
    background: rgba(0,92,153,0.58); /* Un poco menos opaco, para lucir más la foto */
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    /* Padding unificado: top 1rem, right/left 0.5rem, bottom 2.5rem */
    padding: 1rem 0.5rem 2.5rem 0.5rem;
}

.hero-content img.about-logo {
    width: 200px;
    margin-bottom: 0.3rem;   /* menos espacio bajo la imagen */
    max-width: 90vw;
    height: auto;
}

.hero-title {
    font-size: 2rem;
    margin: 0.2rem 0;        /* corregido de 02rem a 0.2rem */
    font-weight: 700;
    color: #fff;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: #fff;
}

.hero-content p {
    font-size: 1rem;
    color: #fff;
    /* ajustado para menos separación: 0.5rem arriba, 0.8rem abajo */
    margin: 0.5rem auto 0.8rem auto;
    max-width: 450px;
}

.hero-content .btn {
    margin-bottom: 1rem;     /* reduje de 2rem */
}

@media (max-width: 600px) {
    .hero {
        min-height: 120px;
        max-height: 220px;
    }
    .hero-title { font-size: 1.2rem; }
    .hero-content img.about-logo { width: 100px; }
    .hero-subtitle { font-size: 0.95rem; }
}


.btn {
    background-color: #005C99;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.btn:hover {
    background-color: #0099FF;
}

.services {
    padding: 3rem 2rem;
    background-color: #fff;
    text-align: center;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.service-card {
    background-color: #f4f8fb;
    padding: 2rem;
    border-radius: 15px;
    max-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid #0099FF;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}

.service-icon {
    color: #0099FF;
    background-color: #e1f3fc;
    padding: 20px;
    border-radius: 50%;
    font-size: 48px;
    margin-bottom: 15px;
    display: inline-block;
    transition: color 0.3s ease;
}

.service-card:hover .service-icon {
    color: #005C99;
}



@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

body > section:first-of-type {
    margin-top: 80px;
}

/* Projects */
.projects {
    padding: 4rem 2rem;
    background-color: #fff;
    text-align: center;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin-top: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 0 1.2rem 0; /* padding bottom para el botón */
    width: 300px;
    overflow: hidden;
    padding: 0 0 1.4rem 0; /* padding BOTTOM para el botón */
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    background: #f4f8fb;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
     transition: 
        box-shadow 0.3s cubic-bezier(.25,.8,.25,1),
        transform 0.3s cubic-bezier(.25,.8,.25,1);
}

.project-card:hover {
    box-shadow: 0 10px 30px rgba(0,153,255,0.20), 0 4px 12px rgba(0,0,0,0.09);
    transform: translateY(-10px) scale(1.03);
    z-index: 10;
}

.project-card .btn {
    margin-top: 1.1rem;
    margin-bottom: 0;  /* importante: sin margen extra abajo */
    align-self: center; /* centra el botón horizontalmente */
}

.project-card img {
    width: 100%;
    height: auto;
    border-radius: 16px 16px 0 0;
}

.project-card h3 {
    color: #005C99;
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem;
}

.project-card p {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.95rem;
   color: #005C99;
}

/* differentials */


.differentials {
    padding: 4rem 2rem;
    background-color: #f4f8fb;
    text-align: center;
}

.differentials > .section-title {
    margin-bottom: 0.5rem;
    font-size: 2.1rem;
    color: #005C99;
}

.differentials > p {
    max-width: 750px;
    margin: 0 auto 2.2rem auto;
    font-size: 1.08rem;
   color: #005C99;
    line-height: 1.5;
}

.differentials-container {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: center;
    align-items: stretch;
}

.differential-card {
    flex: 1 1 220px;
    max-width: 280px;
    min-width: 210px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0,153,255,0.06);
    padding: 2rem 1.1rem 1.4rem 1.1rem;
    transition: box-shadow 0.25s, transform 0.25s;
    border: 1px solid #f4f8fb;
}

.differential-card:hover {
    box-shadow: 0 8px 26px rgba(0,153,255,0.13);
    transform: translateY(-8px) scale(1.04);
}

.differential-card i {
    font-size: 36px;
    color: #0099FF;
    margin-bottom: 10px;
}

.differential-card h4 {
    margin: 0.6rem 0 0.3rem 0;
    font-size: 1.1rem;
    color: #005C99;
    font-weight: 700;
}

.differential-card p {
    font-size: 1rem;
    color: #005C99;
    line-height: 1.4;
    margin-bottom: 0;
    margin-top: 0.2rem;
}

@media (max-width: 800px) {
    .differentials {
        padding: 2.4rem 1rem;
    }
    .differentials-container {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }
    .differential-card {
        width: 95vw;
        max-width: 340px;
    }
}


/* Testimonios */
.testimonials {
    padding: 4rem 2rem;
    background-color: #f4f8fb;
    text-align: center;
}

.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin-top: 2rem;
}

.testimonial-card {
    max-width: 300px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    padding: 2rem;
}

.testimonial-card p {
    font-style: italic;
    color: #005C99;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.testimonial-card strong {
    color: #0099FF;
    font-weight: 600;
    font-size: 0.95rem;
}

/* CTA Final */
.cta-final {
    background: #fff;
    color: #005C99;
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 0 0 38px 38px;  /* Solo redondeado abajo */
    box-shadow: 0 8px 36px rgba(0,92,153,0.06);
    margin: 0;
}

.cta-final h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.cta-final .btn {
    background: #0099FF;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.8rem 2.2rem;
    transition: background-color 0.3s;
    box-shadow: 0 2px 12px rgba(0,153,255,0.11);
}

.cta-final .btn:hover {
    background: #005C99;
}

@media (max-width: 600px) {
    .cta-final {
        border-radius: 0 0 20px 20px;
        padding: 2.2rem 0.7rem;
    }
    .cta-final h2 {
        font-size: 1.25rem;
    }
    .cta-final .btn {
        font-size: 1rem;
        padding: 0.7rem 1.5rem;
    }
}


/* Responsive */
@media (max-width: 768px) {
    .projects-container,
    .differentials-container,
    .testimonials-container {
        flex-direction: column;
        gap: 1rem;
    }
    .project-card,
    .differential-card,
    .testimonial-card {
        width: 100% !important;
        max-width: 90%;
        margin: 0 auto;
    }
    .hero-title, .services-hero h1, .about-hero h1, .contact-hero h1 {
        font-size: 1.6rem;
    }
}

/* Menu hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.menu-toggle span {
    height: 3px;
    width: 25px;
    background: #005C99;
    margin: 4px 0;
    border-radius: 2px;
}
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        background-color: white;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        display: none;
        padding: 1rem 0;
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }
    .nav-links.show {
        display: flex;
    }
    .menu-toggle {
        display: flex;
    }
    .nav-links a {
        padding: 1rem 2rem;
        border-bottom: 1px solid #eee;
        text-align: left;
    }
    .nav-links a:last-child {
        border-bottom: none;
    }
}

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #0099FF;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

@media (max-width: 600px) {
    .hero {
        min-height: 180px;
        max-height: none;
        margin-top: 60px;
        border-radius: 0 0 20px 20px;   /* Menos redondeado, más elegante en móvil */
    }
    .hero-content {
        padding: 1rem 0.4rem 2.2rem 0.4rem;
        max-width: 98vw;
    }
    .hero-content img.about-logo {
        width: 44px;
        margin-bottom: 0.3rem;
    }
    .hero-title {
        font-size: 1.15rem;
        margin: 0.2rem 0;
    }
    .hero-subtitle {
        font-size: 0.98rem;
    }
    .hero-content p {
        font-size: 0.95rem;
        max-width: 96vw;
    }
    .hero-content .btn {
        font-size: 0.98rem;
        padding: 0.7rem 1.3rem;
        margin-bottom: 1.5rem;
    }
}

.bg-white {
    background: #fff !important;
}

.bg-light {
    background: #f4f8fb !important;
}


/* Footer base */
/* Footer base */
.footer {
  background: #005C99;
  color: #fff;
  /* Añadimos padding bottom para que no choque con el botón flotante */
   padding: 1.5rem 1rem 0.5rem 1rem;
  border-radius: 0 0 36px 36px;
  box-shadow: 0 0 24px rgba(0,92,153,0.08);
}

/* Zona principal */
.footer-main {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;      /* siempre columna en móvil y escritorio para centrar */
  align-items: center;
  gap: 1.2rem;                 /* espacio uniforme entre elementos */
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 0.4rem;      /* menos espacio abajo */
}

/* Cada “columna” */
.footer-col {
  flex: 1 1 200px;
  min-width: 200px;
  text-align: center;
  margin-bottom: 0;       /* espacio reducido */
}

/* Logo BIMCON + texto */
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}
.footer-main-logo {
  width: 60px;   /* un pelín más pequeño en todas partes */
  height: auto;
}

/* Redes sociales */
.footer-social {
  margin-top: 0.4rem;
}
.footer-social a {
  color: #fff;
  margin: 0 0.4rem;
  font-size: 1.2rem;
  transition: color 0.2s;
}
.footer-social a:hover {
  color: #0099FF;
}

/* Línea divisoria y texto inferior */
.footer-bottom {
 
  border-top: 1px solid rgba(255,255,255,0.23);
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  text-align: center;
  font-size: 0.9rem;
}

/* Crédito Kairobits */
.footer-kairobits {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.4rem;
  text-decoration: none;
  /* Lo ponemos en blanco para mejor contraste */
  color: #fff;
  font-size: 0.9rem;
}
.footer-kairobits-logo {
  width: 48px;
  height: auto;
}

/* Ajustes específicos móviles */
@media (max-width: 600px) {
  .footer {
    padding: 1rem 0.5rem 1rem 0.5rem;
    border-radius: 0 0 16px 16px;
  }
  .footer-main {
    gap: 0.8rem;
    padding-bottom: 0.6rem;
  }
  .footer-col {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
  }
  .footer-main-logo {
    width: 50px;
  }
  .footer-social a {
    font-size: 1.1rem;
    margin: 0 0.3rem;
  }
  .footer-bottom {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    font-size: 0.85rem;
  }
  .footer-kairobits {
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.85rem;
  }
  .footer-kairobits-logo {
    width: 42px;
  }
}



@media (max-width: 800px) {
    .testimonials-container {
        flex-direction: column;
        align-items: center;
        gap: 1.1rem;
    }
    .testimonial-card {
        width: 95vw;
        max-width: 340px;
        padding: 1.2rem 0.7rem;
    }
}


/* FORMULARIO DE CONTACTO */
.contact-form-section {
    background: #fff;
    padding: 3rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-form {
    background: #f7fafd;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0,153,255,0.06);
    padding: 2.2rem 2.3rem 2rem 2.3rem;
    max-width: 430px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 6px;
    color: #005C99;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    padding: 0.65rem 1rem;
    border: 1.2px solid #c2e2fa;
    border-radius: 10px;
    font-size: 1rem;
    background: #fff;
    transition: border 0.2s;
    outline: none;
    color: #222;
}

.form-group input:focus,
.form-group textarea:focus {
    border: 1.4px solid #0099FF;
    background: #f1faff;
}

.contact-form .btn {
    margin-top: 1rem;
    align-self: center;
    padding: 0.9rem 2.3rem;
    font-size: 1.07rem;
}

.g-recaptcha {
    margin: 1rem 0 0.6rem 0;
    align-self: center;
}

@media (max-width: 700px) {
    .contact-form-section {
        padding: 2rem 0.5rem;
    }
    .contact-form {
        padding: 1.2rem 0.7rem 1.2rem 0.7rem;
    }
}

/* INFORMACIÓN DE CONTACTO */
.contact-info {
    background: #f4f8fb;
    padding: 2.5rem 1rem 2.5rem 1rem;
    text-align: center;
}

.contact-info h2 {
    color: #005C99;
    margin-bottom: 1.1rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.contact-info p,
.contact-info a {
    font-size: 1.09rem;
    color: #005C99;
    margin: 0.35rem 0;
    text-decoration: none;
}

.contact-info .footer-social {
    margin-top: 1.1rem;
}

.contact-info .footer-social a {
    color: #0099FF;
    margin: 0 8px;
    font-size: 1.3rem;
    transition: color 0.18s;
}

.contact-info .footer-social a:hover {
    color: #005C99;
}

.about-content {
    padding: 4rem 0 2.5rem 0;
    background: #fff;
    text-align: left;
    display: flex;
    justify-content: center;
}
.about-text {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}
.about-icon {
    color: #0099FF;
    margin-right: 6px;
}
.about-alliances {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
    margin: 3rem 0 2.5rem 0;
}
.about-alliance-card {
    background: #f7fafd;
    border-radius: 13px;
    padding: 1.2rem;
    box-shadow: 0 4px 12px rgba(0,153,255,0.07);
    text-align: center;
    min-width: 120px;
    max-width: 140px;
}
.about-alliance-card img {
    width: 60px;
    height: auto;
    margin-bottom: 7px;
}
.about-alliance-card p {
    font-size: 0.95rem;
    margin: 0;
    color: #005C99;
}
.about-values-list {
    margin-top: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.3rem;
}
.about-values-list li {
    font-size: 1rem;
    margin-bottom: 0.7rem;
    color: #222;
}

.about-cta {
    background: #fff;
    color: #005C99;
    text-align: center;
    padding: 3.2rem 1rem 2.8rem 1rem;
    border-radius: 0 0 38px 38px;
    box-shadow: 0 8px 36px rgba(0,92,153,0.04);
}

.about-cta h2 {
    font-size: 1.5rem;
    margin-bottom: 1.3rem;
}

.about-cta .btn {
    background: #0099FF;
    color: #fff;
    font-size: 1.08rem;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
}

@media (max-width: 700px) {
    .about-content {
        padding: 2.1rem 0 1.5rem 0;
    }
    .about-text {
        padding: 0 0.3rem;
    }
    .about-alliances {
        gap: 18px;
        margin: 2.1rem 0 1.5rem 0;
    }
    .about-alliance-card {
        padding: 0.6rem;
        min-width: 85px;
        max-width: 110px;
    }
    .about-alliance-card img {
        width: 38px;
    }
}


.project-dashboard {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 2.5rem 0;
}

.project-stats {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.stat-card {
    background: #f7fafd;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(0,153,255,0.07);
    padding: 1.2rem 2.3rem;
    text-align: center;
    min-width: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.22s, transform 0.22s;
    border: 1px solid #e7f3fa;
}
.stat-card:hover {
    box-shadow: 0 6px 26px rgba(0,153,255,0.13);
    transform: translateY(-4px) scale(1.03);
}

.stat-icon {
    font-size: 2.3rem;
    color: #0099FF;
    margin-bottom: 0.4rem;
}

.stat-label {
    color: #005C99;
    font-size: 1.09rem;
    font-weight: 500;
    margin-bottom: 0.45rem;
    display: block;
}

.stat-value {
    font-size: 2.1rem;
    font-weight: 700;
    color: #0099FF;
    letter-spacing: 1px;
}
@media (max-width: 900px) {
    .project-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.2rem;
        justify-content: center;
    }
    .stat-card {
        min-width: 130px;
        padding: 1rem 0.8rem;
    }
}
@media (max-width: 600px) {
    .project-stats {
        flex-direction: column;
        gap: 0.8rem;
    }
    .stat-card {
        min-width: 90vw;
        max-width: 360px;
        margin: 0 auto;
        padding: 1rem 0.5rem;
    }
}


.project-simulator {
    background: #fff;
    border-radius: 13px;
    box-shadow: 0 2px 10px rgba(0,153,255,0.06);
    padding: 2rem 1.5rem;
    min-width: 290px;
    max-width: 340px;
}

.project-simulator h3 {
    margin-bottom: 1.2rem;
    color: #005C99;
}

.simulator-result {
    margin-top: 1.5rem;
    color: #222;
    font-size: 1.1rem;
    min-height: 2.2rem;
}
@media (max-width: 900px) {
    .project-dashboard {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .project-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.2rem;
        justify-content: center;
    }
    .stat-card {
        min-width: 120px;
        padding: 1rem 0.8rem;
    }
}
.project-simulator .form-group select,
.contact-form .form-group select {
    padding: 0.65rem 1rem;
    border: 1.2px solid #c2e2fa;
    border-radius: 10px;
    font-size: 1rem;
    background: #fff;
    transition: border 0.2s;
    outline: none;
    color: #222;
    width: 100%;
    appearance: none;         /* quita el estilo nativo en la mayoría de navegadores */
    -webkit-appearance: none; /* para Safari/Chrome */
    -moz-appearance: none;    /* para Firefox */
    background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='22' viewBox='0 0 24 24' width='22' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 1.1em;
}

.project-simulator .form-group select:focus,
.contact-form .form-group select:focus {
    border: 1.4px solid #0099FF;
    background: #f1faff;
}
.about-values-list li {
    font-size: 1rem;
    margin-bottom: 0.7rem;
    color: #005C99;
    text-align: justify;
    line-height: 1.6;
}

.about-values-list li strong {
    color: #0099FF;
    font-weight: 600;
}
@media (max-width: 700px) {
    .about-content {
        padding: 2.1rem 0 1.5rem 0;
        /* O puedes dejar solo padding vertical y controlar los lados en .about-text */
    }
    .about-text {
        padding: 0 0.9rem; /* Más aire a los lados en móvil */
    }
    .about-alliances {
        gap: 12px;
        margin: 1.5rem 0 1.2rem 0;
    }
    .about-alliance-card {
        padding: 0.5rem;
        min-width: 72px;
        max-width: 98px;
    }
    .about-alliance-card img {
        width: 32px;
    }
}

@media (max-width: 700px) {
    .about-text {
        padding: 0 1rem;   /* 16px por lado, lo ideal mínimo para móviles */
    }
    .about-content {
        padding: 2.1rem 0 1.5rem 0;
        margin: 0 0.2rem;
    }
}
.services > p,
.differentials > p {
    text-align: justify;
     text-align-last: left; /* o center */
}

.gallery {
  max-width: 800px;
  margin: 2rem auto;
  text-align: center;
}
.gallery .main-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.gallery .thumbnails {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.gallery .thumbnails img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color .2s;
}
.gallery .thumbnails img:hover,
.gallery .thumbnails img.active {
  border-color: #082C6C; /* o el color de tu tema */
}
/* Aseguramos que todo use box-sizing para calcular bien anchos */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Contenedor principal */
.gallery {
  width: 100%;
  max-width: 800px;      /* límite en desktop */
  margin: 2rem auto;
  padding: 0 1rem;       /* un poco de espacio en móvil */
}

/* Imagen grande siempre al 100% del contenedor */
.gallery .main-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Flex con wrap para miniaturas */
.gallery .thumbnails {
  display: flex;
  flex-wrap: wrap;       /* permite saltar a la siguiente línea si no caben */
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Miniaturas flexibles */
.gallery .thumbnails img {
  flex: 1 1 calc(25% - 0.5rem);  /* 4 en fila en desktop */
  max-width: 100px;              /* no crezcan más de 100px */
  height: auto;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color .2s;
}

/* Estado hover/activo */
.gallery .thumbnails img:hover,
.gallery .thumbnails img.active {
  border-color: #082C6C;
}

/* Ajustes para pantallas muy estrechas */
@media (max-width: 600px) {
  .gallery .thumbnails img {
    flex: 1 1 calc(33.333% - 0.5rem);  /* 3 en fila */
    max-width: 80px;
  }
}

@media (max-width: 400px) {
  .gallery .thumbnails img {
    flex: 1 1 calc(50% - 0.5rem);      /* 2 en fila */
    max-width: 100px;
  }
}

p {
  text-align: justify !important;
  text-align-last: left !important;
  hyphens: auto !important;
}
