/* ========================================
   NUEVO MENU SIMPLE - WOORX 2027
   ======================================== */

/* Header principal */
.header-woorx {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background-color: #fff;
  padding: 0;
}

.header-woorx .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Logo */
.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.nav-logo img {
  height: 35px;
  width: auto;
}

.nav-logo span {
  font-size: 0.65rem;
  color: #666;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

/* Menu principal */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a,
.nav-menu > li > span {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1c1c1c;
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.nav-menu > li > a:hover,
.nav-menu > li > span:hover,
.nav-menu > li.active > a {
  color: #000;
  border-bottom-color: #1c1c1c;
}

/* Subrayado en item activo */
.nav-menu > li > a.active {
  border-bottom-color: #1c1c1c;
}

/* Flecha dropdown */
.nav-menu .dropdown-arrow {
  font-size: 0.6rem;
  transition: transform 0.3s ease;
}

.nav-menu > li:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-radius: 0 0 4px 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  list-style: none;
  padding: 10px 0;
  margin: 0;
}

.nav-menu > li:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  position: relative;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.85rem;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
  background-color: #f5f5f5;
  color: #000;
  padding-left: 25px;
}

/* Submenu (segundo nivel) */
.dropdown-menu .submenu {
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 250px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-radius: 0 4px 4px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.3s ease;
  list-style: none;
  padding: 10px 0;
  margin: 0;
}

.dropdown-menu li:hover > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.dropdown-menu li.has-submenu > a::after {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  float: right;
  font-size: 0.7rem;
}

/* Contacto info */
.nav-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.nav-contact a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1c1c1c;
  text-decoration: none;
}

.nav-contact span {
  font-size: 0.7rem;
  color: #666;
  margin-top: 2px;
}

/* Menu hamburguesa mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #1c1c1c;
  transition: all 0.3s ease;
}

/* Menu mobile abierto */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media screen and (max-width: 1200px) {
  .nav-menu > li > a,
  .nav-menu > li > span {
    padding: 10px 15px;
    font-size: 0.85rem;
  }
}

@media screen and (max-width: 992px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu > li > a,
  .nav-menu > li > span {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
    background: #f9f9f9;
    border-radius: 0;
  }

  .nav-menu > li.dropdown-open > .dropdown-menu {
    max-height: 500px;
    padding: 10px 0;
  }

  .dropdown-menu li a {
    padding: 12px 20px;
  }

  /* Submenu en mobile */
  .dropdown-menu .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    background: #f0f0f0;
  }

  .dropdown-menu li.submenu-open > .submenu {
    max-height: 500px;
    padding: 10px 0;
  }

  .dropdown-menu li.has-submenu > a::after {
    content: '\f107';
    transition: transform 0.3s ease;
  }

  .dropdown-menu li.submenu-open > a::after {
    transform: rotate(180deg);
  }

  .nav-contact {
    display: none;
  }
}

@media screen and (max-width: 576px) {
  .nav-wrapper {
    height: 70px;
  }

  .nav-logo img {
    height: 28px;
  }

  .nav-logo span {
    display: none;
  }

  .nav-menu {
    top: 70px;
    height: calc(100vh - 70px);
  }
}

/* ========================================
   AJUSTE PARA CONTENIDO DEBAJO DEL HEADER
   ======================================== */
body.has-fixed-header {
  padding-top: 80px;
}

body.menu-open {
  overflow: hidden;
}

@media screen and (max-width: 576px) {
  body.has-fixed-header {
    padding-top: 70px;
  }
}

/* Link externo icon */
.external-link::after {
  content: '\f35d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.6rem;
  margin-left: 5px;
  opacity: 0.5;
}

a {
  text-decoration: none; 
  color: inherit;         
}

/* ****- - - FACEBOOK & INSTAGRAM ADS SECTION - - -**** */
.fb-ads-h {
  padding: 80px 0 0 0;
  background-color: #ffffff;
  overflow: hidden;
}

.fb-ads-h .pd0 {
  padding: 0;
}

.label-fb {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 3px;
  color: #999;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 40px;
}

.label-fb::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: #ccc;
}

.frase-fb {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: #1a1a1a;
  padding: 40px 0 40px 40px;
  margin: 0;
}

.frase-fb strong {
  font-weight: 700;
}

.cont-info-fb {
  padding: 40px 60px;
}

.cont-info-fb h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.1;
  margin-bottom: 15px;
}

.cont-info-fb h3 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 400;
  color: #333;
  line-height: 1.4;
  margin-bottom: 25px;
}

.cont-info-fb p {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #666;
  line-height: 1.8;
  margin-bottom: 30px;
}

.cont-btns-fb {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-woorx-outline {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  border: 1.5px solid #1a1a1a;
  border-radius: 30px;
  padding: 10px 28px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-woorx-outline:hover {
  background-color: #1a1a1a;
  color: #ffffff;
}

/* Rotating words */
.rotating-words {
  display: inline-block;
  position: relative;
  width: auto;
  min-width: 200px;
  height: 1.2em;
  vertical-align: bottom;
  overflow: hidden;
}

.rotating-words .word {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  font-weight: 700;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.5s ease;
}

.rotating-words .word.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 991px) {
  .fb-ads-h {
    padding: 60px 0 0 0;
  }

  .cont-info-fb {
    padding: 30px 20px;
  }

  .frase-fb {
    padding: 30px 0 30px 20px;
  }

  .label-fb {
    padding: 0 20px;
  }
}

/* ========================================
   NAVBAR — Corregir color amarillo inline
   en el enlace de Posicionamiento SEO
   ======================================== */
.sub-menu li a[style*="ffcc00"],
.dropdown-menu li a[style*="ffcc00"] {
  color: #000 !important;
}
