html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff; 
  overflow-x: hidden;
}

/* =====================
   Encabezado.
===================== */
.header {
  position: relative;
  width: 100%;
  height: 150px;
  background-color: #161c29; 
}

/* ===============================
   LOGO.
=============================== */
.logo-container {
  position: fixed;
  top: 10px;
  left: 20px;
  background-color: #0c2253;
  padding: 0px 3px;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
  z-index: 500;
  overflow: visible;
}

.logo-container img {
  width: 240px;
  height: auto;
  transition: transform 0.3s;
  transform: scale(1.4) translateY(-30px) translateX(-20px);
  transform-origin: left top;
}

@media (max-width: 220px) {
  .logo-container {
    top: 5px;
    left: 5px;
    padding: 0px 4px;
  }

  .logo-container img {
    width: 120px;
    transform: scale(1.1) translateY(-15px) translateX(-10px);
  }
}

@media (max-width: 400px) and (min-width: 221px) {
  .logo-container {
    top: 5px;
    left: 5px;
    padding: 0px 6px;
  }

  .logo-container img {
    width: 150px;
    transform: scale(1.2) translateY(-18px) translateX(-12px);
  }
}

@media (max-width: 1024px) and (min-width: 401px) {

  .logo-container {
    top: 10px;
    left: 10px;
    padding: 0px 5px;
  }

  .logo-container img {
    width: 160px;
    transform: scale(1.25) translateY(-15px) translateX(-5px);
  }
}

/* =====================
   Barra de navegación (PC)
===================== */
.top-links {
  position: absolute;
  top: 25px;
  right: 25px;
  display: flex;
  gap: 80px;
  font-size: 29px;
  font-weight: bold;
  background-color: #0851fa;
  padding: 30px 50px;
  border-radius: 8px;
  z-index: 1001;
}

.top-links a {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}

.top-links a:hover {
  transform: scale(1.20);
  color: rgb(44, 45, 45);
}

/* =====================
   Botón menú
===================== */
.btn-menu {
  display: none;
  font-size: 28px;
  padding: 10px 14px;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 15px;
  background: #0851fa;
  color: white;
  border: none;
  border-radius: 8px;
  z-index: 2000;
}

/* =====================
   CELULAR Y TABLET
===================== */
@media (max-width: 1024px) {

  .btn-menu {
    display: block;
  }

  .top-links {
    overflow: hidden;
    max-height: 0;
    opacity: 0;

    display: flex;
    flex-direction: column;
    gap: 10px;

    position: absolute;
    top: 55px !important;
    right: 15px;

    background: #0851fa;

    font-size: 18px !important;
    padding: 0 12px;

    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
    transition: all 0.35s ease;
  }

  .top-links.active {
    max-height: 250px;
    opacity: 1;
    padding: 12px 12px;
  }
}

/* =====================
   Banner.
===================== */
.imagen-superior {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-top: 0px;

  opacity: 0;
  transform: translateY(-20px);
  animation: aparecerBanner 1.5s ease-out forwards;
}

@keyframes aparecerBanner {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.banner-container {
  position: relative;
}


/* =====================
   Primer titulo.
===================== */
.titulo-principal {
  text-align: center;
  font-size: 37px;
  font-weight: bold;
  color: #000000;
  margin-top: 60px;
  opacity: 0;
  line-height: 1.2;
}

.titulo-principal .azul {
  color: #0851fa;
}

@media (max-width: 1024px) {
  .titulo-principal {
    font-size: 28px;
    margin-top: 50px;
  }
}

@media (max-width: 400px) {
  .titulo-principal {
    font-size: 22px;
    margin-top: 40px;
  }
}

.navbar-container {
  width: 20%;
  height: 8px;
  background-color: #0851fa;
  margin: -15px auto 0 auto;
  border-radius: 12px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  animation: expandirBarra 1s ease-out 0.5s forwards;
}

@media (max-width: 511px) {
  .navbar-container {
    width: 105%;
  }
}

@media (max-width: 510px) {
  .navbar-container {
    width: 35%;
  }
}

@keyframes aparecerIzquierda {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes expandirBarra {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }
  100% {
    transform: scaleX(1);
    opacity: 1;
  }
}

.animacion-izquierda {
  animation: aparecerIzquierda 1s ease-out forwards;
  animation-delay: 0.6s;
}

.animacion-barra {
  animation: expandirBarra 0.8s ease-out forwards;
  animation-delay: 1.2s;
}

body, h1, a {
  font-family: 'Montserrat', 'Arial', sans-serif;
}

/* =====================
Boton contactar.
===================== */
.contacto-container {
  text-align: center;
  position: relative;
  top: 40px;
  opacity: 0;
  animation: bajarCuadros 0.8s ease-out forwards;
  animation-delay: 0.3s;
}

.btn-contactar {
  padding: 15px 50px;
  background-color: #0851fa;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 24px;
  transition: background 0.3s;
}

.btn-contactar:hover {
  background-color: #2993e4;
}

@keyframes bajarCuadros {
  0% { transform: translateY(-50px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.popup {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(3px);
}

.popup.open-popup {
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-contenido {
  background: #ffffff;
  width: 330px;
  padding: 28px 28px 5px 28px;
  border-radius: 18px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  position: relative;
  opacity: 0;
  transform: scale(0.7);
  animation: aparecerPopup 0.35s ease-out forwards;
  box-shadow: 0 5px 20px rgba(0,0,0,0.25);
}

@keyframes aparecerPopup {
  to { opacity: 1; transform: scale(1); }
}

.popup-title {
  font-size: 20px;
  font-weight: bold;
  color: #000;
  margin-bottom: 12px;
}

.popup p {
  font-size: 20px !important;
  font-weight: bold !important;
  color: #000 !important;
  line-height: 1.6;
}

.label-telefono {
  display: block;
  text-align: left;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: bold;
  color: #000;
}

#telefono {
  width: 100%;
  padding: 10px;
  border: 2px solid #0851fa;
  border-radius: 10px;
  font-size: 16px;
  margin-bottom: 18px;
  box-sizing: border-box;
}

.btn-enviar {
  background-color: #0851fa;
  color: #fff;
  border: none;
  padding: 12px 35px;
  font-size: 16px;
  border-radius: 26px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-enviar:hover {
  background-color: #149be3;
}

.cerrar {
  position: absolute;
  top: 8px;
  right: 14px;
  font-size: 42px!important;
  font-weight: bold!important;
  cursor: pointer;
  color: #000!important;
  transition: 0.2s;
}

.cerrar:hover {
  color: #0851fa !important;
}

.linea-tel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}

.icono-tel {
  width: 25px;
  height: auto;
}

@media (max-width: 480px) {
  
  .popup-contenido {
    width: 85%;
    padding: 22px 20px 5px 20px;
    border-radius: 14px;
  }

  .popup-title {
    font-size: 18px;
  }

  .popup p {
    font-size: 18px !important;
  }

  .icono-tel {
    width: 20px;
  }

  .cerrar {
    font-size: 36px !important;
    top: 5px;
    right: 10px;
  }

  .btn-enviar {
    padding: 10px 28px;
    font-size: 15px;
  }
}

@media (max-width: 1024px) and (min-width: 481px) {

  .popup-contenido {
    width: 60%;
    padding: 30px;
  }

  .popup-title {
    font-size: 22px;
  }

  .popup p {
    font-size: 19px !important;
  }

  .icono-tel {
    width: 22px;
  }

  .cerrar {
    font-size: 40px !important;
  }

  .btn-enviar {
    padding: 12px 32px;
    font-size: 17px;
  }
}

/* =====================
   Contenedor de los PDF.
===================== */
.contenedor-pdfs {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  margin-top: 90px;
  flex-wrap: wrap;
  opacity: 0;
}

.pdf-box {
  width: 22%;
  min-width: 250px;
  height: 320px;
  background-color: #111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  text-align: center;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.pdf-box:hover {
  transform: scale(1.05);
}

.pdf-box embed {
  width: 100%;
  height: 250px;
  border: none;
}
/* =====================
   Texto de los PDF.
===================== */
.texto1 {
  color: #fff;
  background-color: #0851fa;
  padding: 1px 0;
  font-size: 14px;
  font-weight: bold;
}

.texto3 {
  color: #fff;
  background-color: #0851fa;
  padding: 8px 0;
  font-size: 16px;
  font-weight: bold;
}

.texto4 {
  color: #fff;
  background-color: #0851fa;
  padding: 8px 0;
  font-size: 16px;
  font-weight: bold;
}

.pdf-box {
  position: relative;
}

.pdf-box .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
  background: transparent;
}

@keyframes aparecerAbajo {
  0% {
    transform: translateY(40px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.animacion-pdfs {
  animation: aparecerAbajo 1s ease-out forwards;
  animation-delay: 1.5s;
}

@media (max-width: 1024px) {
  .contenedor-pdfs {
    gap: 15px;
    justify-content: center;
    align-items: center;
  }

  .pdf-box {
    width: 45%;
    min-width: 200px;
    height: 280px;
  }

  .pdf-box embed {
    height: 200px;
  }

  #texto1, #texto4, #texto3 {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .contenedor-pdfs {
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
    justify-content: center;
    align-items: center;
  }

  .pdf-box {
    width: 90%;              
    min-width: unset;
    height: auto;            
  }

  .pdf-box embed {
    height: 180px;           
  }

  #texto1, #texto4, #texto3 {
    font-size: 12px;         
  }
}
/* =====================
Ultimos cuadoros.
===================== */
.bottom-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  gap: 20px;
  flex-wrap: wrap;
    margin-top: 40px;
}

.bottom-section {
  flex: 1;
  min-width: 250px;
 background-color: #0851fa;
  border-radius: 10px;
  padding: 20px;
  box-sizing: border-box;
  color: #fff;
}

.bottom-section p, .bottom-section ul, .bottom-section li {
  color: #fff;
  font-size: 18px;
  line-height: 1;
}
 
.bottom-section ul {
  padding-left: 20px;
  margin-top: 10px;
}

.imagen-row {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.imagen-row img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 5px;
}

.inline-icon {
  width: 25px;
  height: 25px;
  vertical-align: middle;
  margin-right: 18px;
}

.direccion {
  display: block;
  margin-left: 43px;
  text-indent: -43px;
  line-height: 1.9;
  margin-bottom: 18px;
}


.direccion img.inline-icon {
  width: 30px;
  height: 30px;
  position: relative;
  top: 8px;
  margin-right: 18px;
}

.bottom-section.center ul {
  list-style: none;
  padding-left: 10px;
  margin-top: 35px;
  font-size: 20px;
  font-weight: bold;
}

.bottom-section.center ul li {
  margin-bottom: 10px;     
  position: relative;      
  padding-left: 20px;      
}

.bottom-section.center ul li::before {
  content: ">";            
  position: absolute;
  left: 0;                 
  color: #fff;             
  font-weight: bold;
}

.bottom-section.center ul li a {
  color: #fff;             
  text-decoration: none;   
  font-size: 19px;
  transition: color 0.3s;
}

.bottom-section.center ul li a:hover {
  color: #000000;          
}

@media (max-width: 1024px) {
  .bottom-container {
    flex-direction: column;
    align-items: center;
  }
  .bottom-section {
    width: 90%;
    margin-bottom: 20px;
  }
}

@media (max-width: 1024px) {
  .bottom-container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding-top: 350px;
  }
  .bottom-section {
    width: 90%;
    margin: 0;
    box-sizing: border-box;
  }
}

@media (max-width: 449px) {
  .bottom-container {
    padding-top: 600px;
  }

  .bottom-section.left {
    position: relative;
    padding-bottom: 120px;
  }

  .imagen-row {
    position: absolute;
    left: 50%;
    bottom: 10px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
  }

  .imagen-row img {
    width: 50px;
    height: 30px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
  }
}

@media (max-width: 1024px) {
  #bottomBar {
    height: 200px;
  }

  .bottom-container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
  }

  .bottom-section {
    width: 90%;
    margin: 0;
  }
}

@media (max-width: 449px) {
  #bottomBar {
    height: 150px;
  }

  .bottom-container {
    padding-top: 5px;
  }

  .bottom-section.left {
    padding-bottom: 80px;
  }

  .imagen-row {
    bottom: 5px;
    gap: 6px;
  }

  .imagen-row img {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 1024px) {
  .bottom-container {
    margin-top: 50px;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 449px) {
  .bottom-container {
    margin-top: 50px;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
}

@media (max-width: 439px) {
  .bottom-container {
    margin-top: 50px;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}

@media (min-width: 1025px) {
  .bottom-container {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 50px;
    padding-right: 20px;
  }
}

@keyframes aparecerDesdeAbajo {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.animacion-cuadros .bottom-section {
  opacity: 0;
  animation: aparecerDesdeAbajo 1s ease-out forwards;
}

.animacion-cuadros .bottom-section:nth-child(1) {
  animation-delay: 0.5s;
}
.animacion-cuadros .bottom-section:nth-child(2) {
  animation-delay: 0.8s;
}
.animacion-cuadros .bottom-section:nth-child(3) {
  animation-delay: 1.1s;
}
/* =====================
Barra con derechos.
===================== */
.footer-text {
  text-align: center;
  color: #fff;
  background-color: #161c29;
  padding: 15px 0;
  font-size: 18px;
  font-family: 'Montserrat', 'Arial', sans-serif;
  margin-top: 0;
  opacity: 0;
  transform: translateY(30px);
}

.footer-special {
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 24px;
  display: inline-block;
  margin-right: 5px;
}

@keyframes aparecerFooter {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animacion-footer {
  animation: aparecerFooter 1.2s ease-out forwards;
  animation-delay: 0.8s;
}

@media (max-width: 768px) {
  .footer-text {
    font-size: 14px;
    padding: 10px 0;
  }
}

@media (max-width: 400px) {
  .footer-text {
    font-size: 12px;
    padding: 8px 0;
  }
}

@media (max-width: 230px) {
  body {
    overflow-x: auto;
  }

  .footer-text {
    min-width: 230px;
    font-size: 16px;
  }
}

@media (max-width: 238px) {
  .bottom-section {
    min-width: 180px;
    padding: 10px;
    border-radius: 8px;
  }

  .bottom-section p,
  .bottom-section ul,
  .bottom-section li,
  .bottom-section.center ul li a {
    font-size: 12px;
    line-height: 1.2;
  }

  .bottom-section h3,
  .bottom-section h4 {
    font-size: 14px;
  }

  .imagen-row img {
    width: 25px;
    height: 25px;
    border-radius: 3px;
  }

  .inline-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
  }

  .bottom-section.center ul {
    margin-top: 15px;
    font-size: 14px;
  }

  .bottom-container {
    gap: 8px;
    padding-top: 10px;
  }
}
