/* ==========================
        RESET GENERAL
   ========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f1f1f1;
  color: #222;
}

/* ==========================
        BARRA SUPERIOR
   ========================== */
.top-bar {
  height: 25px;
  background-color: #004C86;
}

/* ==========================
        ENCABEZADO PRINCIPAL
   ========================== */
.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  padding: 10px 20px;
  position: relative;
  flex-wrap: wrap;
}

.logo img {
  height: 60px;
  width: auto;
  animation: logoIntro 1.2s ease-out forwards;
}

@keyframes logoIntro {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

.nav-wrapper {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  top: 50%;
  z-index: 1;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
  padding: 0 1rem;
  position: relative;
  transition: 0.3s;
}

.main-nav a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background-color: #000;
}

.main-nav a:hover {
  color: #004C86;
  text-decoration: underline;
}

.btn-institucional {
  display: flex;
  align-items: center;
  background-color: #004C86;
  color: #fff;
  padding: 10px 16px;
  border-radius: 5px;
  text-decoration: none;
  height: 50px;
  transition: 0.3s;
}

.btn-institucional:hover {
  background-color: #0066b3;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ==========================
        RESPONSIVE MENU
   ========================== */
@media (max-width: 900px) {
  .nav-wrapper {
    position: static;
    transform: none;
    margin-top: 10px;
  }
  .main-nav {
    flex-wrap: wrap;
    gap: 10px;
  }
  .main-nav a:not(:last-child)::after {
    display: none;
  }
  .menu-header {
    justify-content: center;
  }
  .btn-institucional {
    margin-top: 10px;
  }
}

/* ==========================
        SUB-ENCABEZADOS
   ========================== */
.sub-header {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 20px;
}

.sub-header h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.titulo-azul {
  color: #03375f;
}

.titulo-negro {
  color: #009fe3;
}

.sub-header p {
  font-size: 18px;
  font-weight: 300;
  margin-top: 5px;
  color: #333;
}

/* ==========================
        CATÁLOGOS
   ========================== */
.catalogo {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  padding: 0 15px;
}

.card {
  background: #f1f1f1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #ddd;
}

.card-content {
  padding: 15px;
}

.card-content h3 {
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 600;
}

.card-content button {
  padding: 10px 15px;
  background: #004aad;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  font-size: 15px;
}

.card-content button:hover {
  background: #003580;
}

/* ==========================
        MODAL VIDEO
   ========================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 9999;
}

.modal-content {
  background: white;
  padding: 10px;
  border-radius: 12px;
  max-width: 900px;
  width: 100%;
  position: relative;
}

.modal video {
  width: 100%;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 8px;
  right: 15px;
  font-size: 32px;
  cursor: pointer;
  font-weight: bold;
}

/* ==========================
        RESPONSIVE SUBHEADERS
   ========================== */
@media (max-width: 600px) {
  .logo img { height: 50px; }
  .sub-header h1 { font-size: 28px; }
  .sub-header p { font-size: 14px; }
}


/* ========================== SECCIÓN FINAL: CONTACTO ========================== */
/* Fondo general con degradado sutil */
.contacto-elegante {
    padding: 70px 40px;
    background: #f5f7fa;
}

.contacto-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    background:#eef3f5;
    padding: 50px;
    border-radius: 26px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    max-width: 1300px;
    margin: auto;
}

.col-info h2 {
    font-size: 40px;
    color: #0b2f6b;
    margin-bottom: 20px;
}

.lista-info li {
    margin: 12px 0;
    font-size: 18px;
    color: #333;
}

.lista-info a {
    color: #0b2f6b;
    font-weight: bold;
    text-decoration: none;
}

.social-min img {
    width: 36px;
    margin-right: 15px;
    transition: .3s;
}
.social-min img:hover { transform: scale(1.15); }

.btn-min {
    display: inline-block;
    margin-top: 25px;
    background: #0b2f6b;
    color: rgb(233, 233, 240);
    padding: 14px 26px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: .3s;
}
.btn-min:hover { background: #082552; }

.col-map iframe {
    width: 100%;
    height: 380px;
    border: none;
    border-radius: 18px;
}

@media(max-width:900px){
    .contacto-card { grid-template-columns: 1fr; }
}

