/* ============================================================
   AWKA DIGITAL — Multi-page supplemental styles
   Extends style-v2.css with navigation, page layouts, new components
   ============================================================ */

/* ---- Nav: Desktop Dropdown --------------------------------- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Ocultar nav-links y nav-cta en mobile (override cascade de style-v2) */
@media (max-width: 768px) {
  .nav-links,
  .nav-cta { display: none !important; }
  .nav-hamburger { display: flex !important; }
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.nav-dropdown.open .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  padding: 8px;
  min-width: 210px;
  z-index: 200;
  flex-direction: column;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark, #2b2b2b);
  transition: background 0.15s;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: #f4f4f6;
  color: var(--purple, #534ab7);
}

/* Active nav link */
.nav-links a.active,
.nav-dropdown-trigger.active {
  color: var(--purple, #534ab7);
  font-weight: 700;
}

/* ---- Nav: Mobile Accordion --------------------------------- */
.nav-mobile-group {
  display: flex;
  flex-direction: column;
}

.nav-mobile-accordion-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(43, 43, 43, .08);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: inherit;
  cursor: pointer;
  padding: 14px 32px;
  text-align: left;
  width: 100%;
}

.nav-mobile-accordion-trigger:hover {
  background: rgba(43, 43, 43, .05);
}

.nav-mobile-accordion-trigger .nav-chevron {
  transition: transform 0.2s ease;
  margin-left: auto;
}

.nav-mobile-accordion-trigger[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

.nav-mobile-submenu {
  display: none;
  flex-direction: column;
  padding: 4px 32px 8px 48px;
  gap: 0;
  border-bottom: 1px solid rgba(43, 43, 43, .08);
}

.nav-mobile-submenu.open {
  display: flex;
}

.nav-mobile-submenu a {
  padding: 10px 0;
  font-size: 15px;
  color: var(--text-muted, #555);
  font-weight: 600;
  border-bottom: none;
}

.nav-mobile-submenu a:hover {
  color: var(--purple, #534ab7);
  background: none;
}

/* ---- Page Hero (sub-pages) --------------------------------- */
.page-hero {
  background: var(--dark-bg, #1a1a2e);
  color: #fff;
  padding: 80px 0 56px;
}

.page-breadcrumb {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.page-breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.15s;
}

.page-breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.page-breadcrumb::after {
  content: '';
}

.page-hero .section-label {
  opacity: 0.7;
  margin-bottom: 12px;
}

.page-hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #fff;
}

.page-hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  line-height: 1.6;
}

/* ---- Sobre mí Mini Card (home) ----------------------------- */
.sobre-mi-mini-section {
  padding: 80px 0;
  background: var(--gray-50, #fafafa);
}

.sobre-mi-mini-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: center;
  max-width: 820px;
  margin: 0 auto;
}

.smm-photo-wrap {
  flex-shrink: 0;
}

.smm-photo {
  width: 200px;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.smm-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}

.smm-content p {
  color: var(--text-muted, #555);
  line-height: 1.7;
  margin-bottom: 20px;
}

@media (max-width: 680px) {
  .sobre-mi-mini-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .smm-photo-wrap {
    display: flex;
    justify-content: center;
  }
}

/* ---- Proceso Condensado (home) ----------------------------- */
.proceso-condensed .proceso-condensed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.pc-step {
  text-align: center;
  padding: 24px 16px;
  background: #f9f9fb;
  border-radius: 12px;
  color: #2b2b2b;
}

.pc-step .proceso-num {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 8px;
  display: block;
}

.pc-step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #2b2b2b;
}

.pc-step p {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .proceso-condensed .proceso-condensed-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .proceso-condensed .proceso-condensed-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- CTA Simple (home sin form) ---------------------------- */
.cta-simple {
  grid-template-columns: 1fr !important;
  max-width: 700px;
  margin: 0 auto;
}

/* ---- Page CTA Mini (bottom of sub-pages) ------------------- */
.page-cta-mini {
  background: var(--dark-bg, #1a1a2e);
  padding: 80px 0;
  color: #fff;
}

/* ---- Contacto Alt CTA ------------------------------------- */
.contacto-alt-cta {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contacto-alt-cta p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin-bottom: 12px;
}

.contacto-alt-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---- FAQ toggle function (needs global) -------------------- */
/* (toggleFaq is inline onclick — handled by main.js initFaq) */

/* ---- Breadcrumb separator ---------------------------------- */
.page-breadcrumb > a + *::before,
.page-breadcrumb > span + *::before {
  content: '/';
  margin-right: 6px;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   MOBILE RESPONSIVE — Multi-page components
   ============================================================ */

@media (max-width: 768px) {
  /* Page hero */
  .page-hero {
    padding: 56px 0 40px;
  }

  /* Page CTA mini */
  .page-cta-mini {
    padding: 56px 0;
  }

  /* Sobre mi mini section */
  .sobre-mi-mini-section {
    padding: 56px 0;
  }

  /* Proceso condensed section */
  .proceso-condensed {
    padding: 56px 0;
  }

  /* Contacto alt CTA */
  .contacto-alt-cta {
    margin-top: 24px;
    padding-top: 20px;
  }
}

@media (max-width: 480px) {
  /* Page hero tighter on very small screens */
  .page-hero {
    padding: 40px 0 32px;
  }

  .page-hero-title {
    font-size: clamp(1.6rem, 8vw, 2.4rem);
  }

  /* smm photo full width on tiny screens */
  .smm-photo {
    width: 100%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 5/6;
  }

  /* CTA mini */
  .page-cta-mini {
    padding: 40px 0;
  }

  /* Sobre mi section padding */
  .sobre-mi-mini-section {
    padding: 40px 0;
  }

  /* Make sure btn is full width inside page CTA on tiny screens */
  .page-cta-mini .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
