/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  background: linear-gradient(135deg, #f8f9fa, #e6f0ff);
}

/* Animaciones */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}
.fade-in:nth-child(2) { animation-delay: 0.3s; }
.fade-in:nth-child(3) { animation-delay: 0.6s; }
.fade-in:nth-child(4) { animation-delay: 0.9s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* HEADER */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
  background-color: #004080;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .logo img {
  height: 55px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

.main-nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: #ffd700;
}

.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

/* HERO */
.hero {
  text-align: center;
  padding: 90px 20px;
  background: url("hero-bg.jpg") no-repeat center/cover;
  color: #fff;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.hero h1, .hero p, .hero .btn {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 25px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #ffd700;
  color: #004080;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background-color: #ffc107;
  color: #fff;
  transform: scale(1.05);
}

/* SERVICIOS */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 60px 40px;
}

.service-item {
  background-color: #fff;
  padding: 20px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.service-item img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.service-item h2 {
  color: #004080;
  margin-bottom: 10px;
}

/* FOOTER */
.site-footer {
  background-color: #00264d;
  color: #ddd;
  padding-top: 40px;
  margin-top: 60px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  padding: 0 40px 30px;
}

.footer-col h3 {
  color: #ffd700;
  margin-bottom: 15px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: #ffd700;
}

.social-icons a {
  margin-right: 12px;
  font-size: 22px;
  color: #ffd700;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding: 15px;
  background-color: #001a33;
  font-size: 14px;
}



/* RESPONSIVE */
@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: 70px;
    right: -100%;
    background: #004080;
    width: 200px;
    transition: right 0.3s;
    padding: 20px;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 15px;
  }

  .menu-toggle {
    display: block;
    color: #fff;
  }
}
/* ================== La Empresa ================== */
.empresa {
  background: #fff;
  padding: 80px 20px;
  text-align: center; /* 🔹 centra todo el contenido */
}

.empresa p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: #444;
  line-height: 1.7;
}

.empresa strong {
  color: #007acc;
}

.empresa em {
  color: #555;
  font-style: italic;
}

.empresa-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  display: inline-block; /* 🔹 para que la lista quede centrada */
  text-align: left;      /* 🔹 mantiene la lectura alineada */
}

.empresa-list li {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #333;
}

.empresa-list li::before {
  content: "✔";
  color: #007acc;
  font-weight: bold;
  margin-right: 8px;
}

/* ================== Servicios ================== */
.services {
  background: #f9f9f9;
  padding: 80px 20px;
  text-align: center;
}

.services .section-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #222;
}

.services .section-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 🔹 siempre 3 columnas en escritorio */
  gap: 30px;
}

@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr); /* 🔹 en tablet 2 columnas */
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr; /* 🔹 en móvil 1 columna */
  }
}


.service-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 1.3rem;
  color: #007acc;
  margin-bottom: 10px;
}

.service-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
/* ================== Contacto ================== */
.contacto {
  background: #f9f9f9;
  padding: 80px 20px;
  text-align: center;
}

.contacto .section-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #222;
}

.contacto .section-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: flex-start;
}

.contact-info p {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #444;
}

.contact-info a {
  color: #007acc;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  margin-bottom: 15px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.contact-form button {
  padding: 12px;
  background: #007acc;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #005fa3;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

#form-status {
  margin-top: 15px;
  font-size: 1rem;
}


