.tpa {
  --mint:#5ED1A8;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
}

.tpa-nav{
position: relative; /* 🔥 ESTA ES LA CLAVE */
  top: 0;
  z-index: 50;
  background: #0F2139;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 0.5rem 2.5rem!important;
}
.tpa-nav-inner{
  position: relative;
  height: 78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  
}
.tpa-brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:#fff;
  min-width: 260px;
}
.tpa-logo{
  width:160px;
  height:160px;
  object-fit:contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.25));
}
.tpa-menu{
  display:flex;
  align-items:center;
  gap:22px;
}
.tpa-menu-item button:focus{
    background-color: #0F2139!important;
}
.tpa-menu-item button:hover{
    background-color: #0F2139!important;
}
.tpa-menu a{
  color:#ffffff;
  text-decoration:none;
  font-weight:500;
  font-size:14px;
}
.tpa-menu a:hover{ opacity:1; }
.tpa-nav-toggle{
  background: none;
  border: 0;
  cursor: pointer;
  display: none;          
  flex-direction: column;
  gap: 5px;
}
.tpa-nav-toggle span{
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all .3s ease;
}
@media (max-width: 980px){
  .tpa-nav-toggle{
    display: flex;
  }
  .tpa-menu{
    position: absolute;   
    top: 100%;
    left: 0;
    right: 0;
    background: #0F2139;   
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 20px;
    display: none;          /* cerrado */
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .tpa-menu.is-open{
    display: flex!important;
  }
  .tpa-menu a{
    color: #fff;
    padding: 10px 8px;
  }
  .tpa-menu-cta{
    width: 100%;
    text-align: center;
  }
  .tpa-brand{ min-width: 0; }
  .tpa-logo{ width: 120px; height: 60px; }
}
.tpa-btn{ display:inline-flex; align-items:center; justify-content:center; padding:12px 16px; border-radius: 12px; text-decoration:none; border:1px solid transparent; font-weight:700; cursor:pointer; }
.tpa-btn-green{ background: var(--mint); color:#fff; }
/* ===== Dropdown base ===== */
.tpa-menu-item{
  position: relative;
}

.tpa-menu-link{
  background: none;
  border: 0;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tpa-menu-link i{
  font-size: 11px;
  transition: transform .25s ease;
}

/* ===== Dropdown panel ===== */
.tpa-dropdown{
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 260px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
  display: none;
  flex-direction: column;
  z-index: 100;
}

.tpa-dropdown a{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #0F2139;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
}

.tpa-dropdown a i{
  width: 18px;
  text-align: center;
  color: #3ad1a1;
}

.tpa-dropdown a:hover{
  background: #f4f7fb;
}

@media (min-width: 981px){
  .has-dropdown .tpa-dropdown{
    display: none;
  }
  .has-dropdown[aria-expanded="true"] .tpa-dropdown{
    display: flex;
  }
  .has-dropdown[aria-expanded="true"] .tpa-menu-link i{
    transform: rotate(180deg);
  }
}

/* ===== Mobile ===== */
@media (max-width: 980px){
  .tpa-menu-item{
    width: 100%;
  }
  .tpa-menu-link{
    width: 100%;
    justify-content: space-between;
    padding: 10px 8px;
  }
  .tpa-dropdown{
    position: static;
    box-shadow: none;
    background: transparent;
    padding: 6px 0 0;
  }
  .tpa-dropdown a{
    color: #fff;
    padding-left: 24px;
  }
  .tpa-dropdown a i{
    color: #6be2b6;
  }
  .tpa-dropdown{
    display: flex;
  }
  .tpa-menu-item.is-open .tpa-menu-link i{
    transform: rotate(180deg);
  }
}

.tpa-footer2 {
  padding:5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, #0F2139, #1a3a52, #0F2139);
  color: #fff;
}
.tpa-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  gap: 3rem;
}
.tpa-foot-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tpa-logo {
  width: 150px;
}
.tpa-foot-text {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.6;
}
.tpa-accent-link {
  color: #5eead4;
  font-weight: 800;
  margin-left: 6px;
}
.tpa-foot-cards {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}
.tpa-foot-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 14px;
  backdrop-filter: blur(6px);
}
.tpa-foot-card-ico {
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
}
.ico-blue {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
}
.ico-green {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}
.ico-cyan {
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
}
.tpa-foot-card-t {
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.5px;
  opacity: 0.95;
}
.tpa-foot-card-d {
  opacity: 0.86;
  font-size: 12px;
  margin-top: 2px;
  line-height: 1.4;
}

.tpa-foot-col {
  display: flex;
  flex-direction: column;
}
.tpa-foot-title {
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 12px;
  position: relative;
}
.tpa-foot-title::after {
  content: "";
  width: 36px;
  height: 3px;
  background: #22d3ee;
  display: block;
  margin-top: 6px;
  border-radius: 2px;
}
.tpa-foot-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  margin: 8px 0;
  font-size: 13px;
  transition: all 0.25s ease;
}
.tpa-foot-link i {
  color: #22d3ee;
  font-size: 12px;
}
.tpa-foot-link:hover {
  color: #fff;
  transform: translateX(4px);
}
.tpa-foot-svc {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  margin: 8px 0;
  font-size: 13px;
}
.tpa-foot-svc i {
  color: #5eead4;
  width: 18px;
  text-align: center;
}
.tpa-foot-bottom {
  margin-top: 22px;
  padding: 18px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.76);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}
.tpa-social {
  display: flex;
  gap: 12px;
}
.tpa-social-btn {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  transition: all 0.25s ease;
}
.tpa-social-wp{
  background: linear-gradient(135deg, #16a34a,#4ade80) ;
}
.tpa-social-en{
  background:linear-gradient(135deg, #3b82f6 ,#22d3ee ) ;
}
.tpa-social-ins{
  background:linear-gradient(135deg, #ec4899  ,#a855f7  ) ;
}
.tpa-social-fa{
  background:linear-gradient(135deg, #1d4ed8   ,#2563eb   )  ;
}
.tpa-social-btn i {
  font-size: 1.9rem;
}
.tpa-social-btn:hover {
  background: #22d3ee;
  color: #06202f;
  transform: translateY(-2px);
}
@media (max-width: 1024px) {
  .tpa-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .tpa-footer-grid {
    grid-template-columns: 1fr;
  }
  .tpa-foot-bottom {
    flex-direction: column;
    text-align: center;
  }
}