* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  color: #1f2937;
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* HEADER */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 8%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #0066b3;
}

.nav a {
  margin: 0 12px;
  text-decoration: none;
  color: #1f2937;
  font-weight: 500;
}

.btn-header,
.btn-primary,
.btn-secondary {
  display: inline-block;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: bold;
}

.btn-header,
.btn-primary {
  background: #0066b3;
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  color: #0066b3;
}

/* HERO */
.hero {
  min-height: 75vh;
  padding: 120px 8% 60px;
background:
  linear-gradient(
    to right,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.55) 30%,
    rgba(0,0,0,0.15) 60%,
    rgba(0,0,0,0) 100%
  ),
  url("assets/img/edificio.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #ffffff;
}

.hero-content {
  max-width: 700px;
}

.tag {
  display: inline-block;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.18);
  padding: 8px 14px;
  border-radius: 999px;
}

.hero h1 {
  font-size: 52px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.4);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* SECTIONS */
.section {
  padding: 10px 8%;
  text-align: center;
}

.section-light {
  background: #e6ebee;
}

.section h2 {
  font-size: 28px;
  color: #003259;
  margin-bottom: 8px;
}

.section-text {
  max-width: 850px;
  margin: 0 auto 40px;
  font-size: 18px;
}

/* CARDS */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  background: #e5e5e5;
  padding: 28px 20px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  font-weight: bold;
}

/* STATS */
.stats {
  margin-bottom: 60px;  
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}

.stats div {
  background: #dddddd;
  padding: 32px;
  border-radius: 14px;
}

.stats strong {
  display: block;
  font-size: 34px;
  color: #0066b3;
}

.stats span {
  display: block;
  margin-top: 8px;
}

/* CONTACT */
.contact {
  background: #0066b3;
  color: #ffffff;
}

.contact h2 {
  color: #ffffff;
}

.contact p {
  max-width: 700px;
  margin: 0 auto 30px;
}

/* FOOTER */
.footer {
  background: #0066b3;
  color: white;

  padding-top: 40px;
  padding-left: 8%;
  padding-right: 8%;
  padding-bottom: 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-logo img {
  width: 80px;
  height: auto;
}

.footer-logo-text h3 {
  font-size: 18px;
  margin: 0;
}

.footer-logo-text p {
  margin-top: 8px;
  font-size: 14px;
  opacity: 0.8;
}

.footer-info h4 {
  margin-bottom: 14px;
  font-size: 18px;
}

.footer-info p {
  margin-bottom: 6px;
}

/* RESPONSIVE */
@media (max-width: 768px) {

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-logo {
    flex-direction: column;
  }

}

/* MISION Y VISION */
.mission-vision {
  background: #f5f7fb;
}

.mv-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.mv-card {
  background: white;
  border: 1px solid #dcdcdc;
  border-radius: 20px;
  padding: 40px;
  text-align: left;
  transition: 0.3s;
}

.mv-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.mv-card h2 {
  font-size: 55px;
  margin-bottom: 25px;
  color: #1f2937;
}

.mv-card p {
  font-size: 18px;
  line-height: 1.8;
  color: #374151;
}

/* RESPONSIVE */
@media (max-width: 768px) {

  .mv-container {
    grid-template-columns: 1fr;
  }

  .mv-card {
    padding: 30px;
  }

  .mv-card h2 {
    font-size: 40px;
  }

}

.footer-logo {
    text-align: center;
    margin-top: 20px;
}

.footer-logo img {
    width: 180px; /* aumenta o disminuye el tamaño */
    height: auto;
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
}

/* SERVICIOS DESTACADOS */
.services-highlight {
  background: #f5f7fb;
}

.services-header {
  text-align: center;
  margin-bottom: 10px;
}

.services-header h2 {
  font-size: 36px;
  color: #003c6a;
  text-align: center;
  width: 100%;
  margin-bottom: 10px;
}

.services-header p {
  max-width: 850px;
  margin: 0 auto;

  text-align: center;

  font-size: 18px;
  color: #4b5563;
  line-height: 1.7;
}

.services-boxes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
}

.service-box {
  background: white;
  border-radius: 18px;
  padding: 18px 10px;
  min-height: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.service-box:hover {
  transform: translateY(-6px);
}

.service-icon {
  width: 90px;
  height: 90px;

  margin: 0 auto 20px;

  border-radius: 50%;

  background: #0066b3;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 40px;

  color: white;
}

.service-box h3 {
  font-size: 16px;
  color: #1f2937;
}

/* RESPONSIVE */
@media (max-width: 1100px) {

  .services-boxes {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 768px) {

  .services-header {
    flex-direction: column;
  }

  .services-header h2 {
    font-size: 38px;
  }

  .services-boxes {
    grid-template-columns: 1fr;
  }

}

/* PRINCIPIOS */
.principles-section {
  background: #e6ebee;
}

.principles-grid {
  display: grid;

  grid-template-columns: repeat(8, 1fr);

  gap: 20px;

  margin-top: 35px;

  align-items: start;
}

.principle-item {
  text-align: center;
}

.principle-icon {
  width: 75px;
  height: 75px;

  margin: 0 auto 12px;

  border-radius: 50%;

  background: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 30px;

  box-shadow: 0 5px 15px rgba(0,0,0,0.06);

  transition: 0.3s;
}

.principle-icon:hover {
  transform: translateY(-4px);
}

.principle-item h3 {
  font-size: 15px;
  color: #1f2937;
  line-height: 1.4;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .principles-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 700px) {
  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* GRID POR QUE ELEGIRNOS */
.why-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 22px;
}

/* LOGO HEADER */
.logo-container {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 55px;
  width: auto;

  object-fit: contain;
}

/* AJUSTES GENERALES PARA CELULAR */
@media (max-width: 768px) {
  .header {
    padding: 12px 5%;
  }

  .logo-img {
    height: 40px;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 65vh;
    padding: 100px 5% 50px;
    background-position: center;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .mv-container {
    grid-template-columns: 1fr;
  }

  .mv-card {
    padding: 28px;
  }

  .mv-card h2 {
    font-size: 38px;
  }

  .services-boxes {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .contact-container,
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}