/* ===========================
   RESET Y GENERALES
   =========================== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
}

.container {
  width: 80%;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}

.section-padding {
  padding: 60px 0;
}

.section-padding-gray {
  padding: 60px 0;
  background-color: #f4f4f4;
}

h1,
h2,
h3,
h4 {
  color: #333;
}

h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2em;
}

h3 {
  margin-bottom: 20px;
  font-size: 1.5em;
}

h4 {
  margin-bottom: 10px;
  font-size: 1.2em;
}

section p {
  font-size: 1.38em;
  line-height: 1.7;
}

/* ===========================
   HERO / ENCABEZADO
   =========================== */
.hero {
  background-image: url("imagenes/header.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #000;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 10px;
  color: #fff;
  font-family: "Orbitron", Arial, sans-serif;
  letter-spacing: 2px;
}

.hero p {
  font-size: 1.2em;
  color: #fff;
  margin-bottom: 20px;
  font-family: "Orbitron", Arial, sans-serif;
  text-align: justify;
}

/* ===========================
   NAVBAR
   =========================== */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #003d80;
  padding: 0.5em 2em;
  min-height: 70px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-header {
  height: 60px;
  width: auto;
}

.nombre-empresa {
  font-family: "Orbitron", Arial, sans-serif;
  font-size: 1.3em;
  color: #fff;
  font-weight: bold;
  letter-spacing: 1px;
  text-shadow: 1px 1px 3px #000;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5em;
  margin: 0;
  padding: 0;
}

.main-nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1em;
  transition: color 0.2s;
}

.main-nav ul li a:hover {
  color: #00fff7;
}

/* ===========================
   ABOUT / QUIÉNES SOMOS
   =========================== */

#about p {
  text-align: justify;
}

/* ===========================
   CARRUSEL HERO
   =========================== */
.hero-carousel {
  position: relative;
  min-height: 700px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-content {
  background: rgba(0, 0, 0, 0.45);
  padding: 2em 3em;
  border-radius: 12px;
  text-align: center;
}

.carousel-content h1,
.carousel-content .subtitle {
  color: #fff;
  text-shadow: 2px 2px 8px #000, 0 0 10px #00fff7, 0 0 2px #000;
  font-family: "Orbitron", Arial, sans-serif;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  font-size: 2em;
  padding: 0.2em 0.6em;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
  transition: background 0.2s;
}

.carousel-btn.prev {
  left: 20px;
}
.carousel-btn.next {
  right: 20px;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* ===========================
   SECCIÓN DE NOTICIAS
   =========================== */
.news-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
}

.news-card {
  background: #1a2332;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  padding: 2em 1.5em;
  max-width: 340px;
  min-width: 260px;
  flex: 1 1 300px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-card h3 {
  margin-top: 0;
  color: #00bfff;
}

.news-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.news-link {
  display: inline-block;
  margin-top: 1em;
  color: #00bfff;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s;
}

.news-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* ===========================
   TABS DE SERVICIOS (HORIZONTAL)
   =========================== */
.servicios-tabs {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 2em 1em 2em 1em;
}

.tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  border-bottom: 2px solid #0056b3;
  margin-bottom: 2em;
  justify-content: center;
  background: #f4f8fb;
  border-radius: 12px 12px 0 0;
  padding: 0.5em 0.5em 0 0.5em;
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  color: #0056b3;
  font-family: "Orbitron", Arial, sans-serif;
  font-size: 1em;
  padding: 0.8em 1.2em;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  border-bottom: 3px solid transparent;
  transition: background 0.2s, color 0.2s, border 0.2s;
  outline: none;
  margin-bottom: -2px;
  font-weight: 600;
}

.tab-btn.active,
.tab-btn:focus {
  background: #fff;
  color: #003d80;
  border-bottom: 3px solid #0056b3;
  z-index: 2;
}

.tab-btn:hover:not(.active) {
  background: #e6f0fa;
  color: #003d80;
}

.tab-content {
  display: none;
  background: #f9f9f9;
  padding: 2em 1.5em;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-top: -1px;
  animation: fadeInTab 0.4s;
}

.tab-content.active {
  display: block;
}

@keyframes fadeInTab {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ===========================
   TABS DE SERVICIOS (VERTICAL)
   =========================== */
.servicios-tabs-vertical {
  display: flex;
  max-width: 1200px;
  margin: 2em auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  min-height: 500px;
  overflow: hidden;
}

.tabs-bar-vertical {
  display: flex;
  flex-direction: column;
  background: #f4f8fb;
  min-width: 250px;
  border-right: 2px solid #0056b3;
  padding: 1em 0.5em;
  gap: 0.2em;
}

.tabs-bar-vertical .tab-btn {
  background: none;
  border: none;
  color: #0056b3;
  font-family: "Orbitron", Arial, sans-serif;
  font-size: 1em;
  padding: 1em 1em;
  text-align: left;
  border-radius: 8px 0 0 8px;
  border-left: 4px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  outline: none;
  font-weight: 600;
}

.tabs-bar-vertical .tab-btn.active,
.tabs-bar-vertical .tab-btn:focus {
  background: #fff;
  color: #003d80;
  border-left: 4px solid #0056b3;
}

.tabs-bar-vertical .tab-btn:hover:not(.active) {
  background: #e6f0fa;
  color: #003d80;
}

.tabs-content-vertical {
  flex: 1;
  padding: 2em 2em;
  background: #f9f9f9;
  border-radius: 0 16px 16px 0;
  min-width: 0;
  display: flex;
  align-items: flex-start;
}

.tab-content {
  display: none;
  width: 100%;
  animation: fadeInTab 0.3s;
}

.tab-content.active {
  display: block;
}

.tab-content h3 {
  margin-top: 0;
  color: #0056b3;
  font-family: "Orbitron", Arial, sans-serif;
}

.servicio-img {
  display: block;
  margin: 1.5em auto 0 auto;
  max-width: 100%;
  width: 350px;
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ===========================
   FOOTER
   =========================== */
#contact.section-padding,
footer#contact {
  background: #292929;
}

#contact .container {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  align-items: flex-start;
}

.footer-form {
  flex: 0 0 300px;
  max-width: 300px;
  min-width: 220px;
  margin: 0;
  margin-left: 0;
  margin-right: auto;
  background: #003d80;
  padding: 1em;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(1, 16, 218, 0.12);
}

.footer-form h2 {
  margin-top: 0;
  color: #fff;
  font-family: "Orbitron", Arial, sans-serif;
  text-align: center;
}

.contact-form label {
  display: block;
  margin-top: 0.5em;
  margin-bottom: 0.2em;
  color: #aacdff;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5em;
  padding-left: 1em;
  padding-right: 1em;
  box-sizing: border-box;
  border: 1px solid #003d80;
  border-radius: 6px;
  font-size: 0.95em;
  margin-bottom: 0.3em;
  background: #222;
  color: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aacdff;
  opacity: 1;
}

.contact-form button {
  background: #0056b3;
  color: #fff;
  border: none;
  padding: 0.6em 1.5em;
  border-radius: 6px;
  font-size: 0.95em;
  font-family: "Orbitron", Arial, sans-serif;
  cursor: pointer;
  margin-top: 0.7em;
  transition: background 0.2s;
}

.contact-form button:hover {
  background: #003d80;
}

.footer-flex {
  flex: 1 1 350px;
  min-width: 250px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2em;
}

.footer-links a {
  color: #0056b3;
  margin-right: 1.2em;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:last-child {
  margin-right: 0;
}

.footer-links a:hover {
  color: #003d80;
  text-decoration: underline;
}

.footer-social a {
  color: #0056b3;
  font-size: 1.5em;
  margin-right: 0.7em;
  transition: color 0.2s;
}

.footer-social a:last-child {
  margin-right: 0;
}

.footer-social a:hover {
  color: #003d80;
}

.footer-flex .contact-info p,
.footer-flex .contact-info strong {
  color: #0056b3;
}

/* ===========================
   BOTÓN FLOTANTE WHATSAPP
   =========================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}

.whatsapp-float:hover {
  background: #128c7e;
  transform: scale(1.08);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .container {
    width: 95%;
    max-width: 100%;
  }
  .cards-servicios,
  .cards-mv {
    flex-direction: column;
    align-items: center;
  }
  .servicios-flex {
    flex-direction: column;
    gap: 20px;
  }
  .fondo-gif-servicios {
    flex-direction: column;
    padding-left: 0;
    background-position: center top;
    background-size: 80% auto;
    min-height: 200px;
  }
}

@media (max-width: 900px) {
  .news-cards {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .news-card {
    max-width: 95vw;
    width: 100%;
  }
  .tabs-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.5em;
  }
  .tab-btn {
    font-size: 0.95em;
    padding: 0.7em 1em;
    min-width: 180px;
    white-space: normal;
  }
  .servicios-tabs {
    padding: 1em 0.2em 1em 0.2em;
  }
  .servicios-tabs-vertical {
    flex-direction: column;
    min-height: unset;
  }
  .tabs-bar-vertical {
    flex-direction: row;
    min-width: unset;
    border-right: none;
    border-bottom: 2px solid #0056b3;
    padding: 0.5em 0.2em;
    overflow-x: auto;
    gap: 0.2em;
  }
  .tabs-bar-vertical .tab-btn {
    border-radius: 8px 8px 0 0;
    border-left: none;
    border-bottom: 4px solid transparent;
    margin-bottom: 0;
    margin-right: 0.2em;
    padding: 0.7em 1em;
    min-width: 180px;
    text-align: center;
  }
  .tabs-bar-vertical .tab-btn.active,
  .tabs-bar-vertical .tab-btn:focus {
    border-bottom: 4px solid #0056b3;
    border-left: none;
  }
  .tabs-content-vertical {
    border-radius: 0 0 16px 16px;
    padding: 1em 0.5em;
  }
  /* Footer responsive */
  #contact .container {
    flex-direction: column;
    align-items: stretch;
  }
  .footer-form {
    max-width: 100%;
    width: 100%;
    margin: 2em 0 0 0;
  }
  .footer-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
  }
  /* Nav responsive */
  .main-nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5em 1em;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0.5em;
    width: 100%;
    margin-top: 0.5em;
  }
  .nav-brand {
    margin-bottom: 0.5em;
  }
}

@media (max-width: 768px) {
  .container {
    width: 98%;
    padding: 0 5px;
  }
  .header-flex {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .logo-header {
    height: 50px;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .container {
    width: 100%;
    padding: 0 2px;
  }
  .hero {
    min-height: 200px;
    padding: 10px 0;
  }
  .hero h1 {
    font-size: 1.3em;
  }
  .hero .subtitle {
    font-size: 1em;
  }
  .contact-form {
    padding: 1em 0.5em 0.5em 0.5em;
    max-width: 100vw;
  }
  .main-nav ul {
    padding: 0.2em 0;
  }
}
