/*
Theme Name: After Moving (Hello Elementor child)
Template: hello-elementor
Author: After Moving
Description: Hello Elementor child theme for After Moving. Sets brand fonts (Plus Jakarta Sans + Geist) and brand colors as CSS variables that Elementor's Global Colors/Fonts can consume. Import the included page template (after-moving-page.json) for the landing structure.
Version: 1.0.0
Requires Plugins: elementor
Text Domain: after-moving-child
*/

/* Brand tokens — exposed as CSS vars so you can also use them in Elementor's
 * "Custom CSS" panels: var(--am-blue), var(--am-paper), etc.
 */
/* ── Variables (ya deben existir en tu style.css; si no, agrégalas) ── */
:root {
  --am-blue:        #2563EB;
  --am-blue-dark:   #1D4ED8;
  --am-blue-light:  #EFF6FF;
  --am-navy:        #0F172A;
  --am-text:        #111827;
  --am-white:       #ffffff;
  --am-radius:      14px;
  --am-font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --am-font-body:    'Geist', system-ui, sans-serif;
}

/* ================================================================
   HEADER
   ================================================================ */
#am-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.am-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 40px;
}

/* ── Brand logo ── */
.am-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.am-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--am-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--am-font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.05em;
  color: var(--am-white);
  flex-shrink: 0;
}

.am-brand-name {
  font-family: var(--am-font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--am-white);
}

.am-brand--light .am-brand-name { color: var(--am-white); }

.am-brand-accent { color: #93C5FD; }

/* Versión clara del ícono (para el footer en fondo oscuro) */
.am-brand--light .am-brand-icon { background: var(--am-blue); }

/* ── Navegación principal ── */
#am-nav { flex: 1; }

.am-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 32px;
}

.am-nav-list li { margin: 0; }

.am-nav-list a {
  font-family: var(--am-font-body);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s;
}

.am-nav-list a:hover,
.am-nav-list .current-menu-item > a,
.am-nav-list .current_page_item > a {
  color: var(--am-white);
}

/* ── Dropdown (sub-menú si lo necesitas) ── */
.am-nav-list .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--am-navy);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 8px;
  min-width: 180px;
  list-style: none;
  z-index: 200;
}

.am-nav-list li { position: relative; }

.am-nav-list li:hover > .sub-menu { display: block; }

.am-nav-list .sub-menu a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
}

.am-nav-list .sub-menu a:hover { background: rgba(255,255,255,0.06); }

/* ── Acciones (teléfono + CTA) ── */
.am-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.am-phone-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.am-phone-link:hover { color: var(--am-white); }

.am-btn-cta {
  padding: 10px 20px;
  border-radius: 12px;
  background: var(--am-blue);
  color: var(--am-white);
  font-family: var(--am-font-display);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  transition: background 0.2s, transform 0.2s;
}

.am-btn-cta:hover {
  background: var(--am-blue-dark);
  transform: translateY(-1px);
  color: var(--am-white);
}

/* ── Hamburger (oculto en desktop) ── */
.am-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: none;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}

.am-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--am-white);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Estado abierto */
.am-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.am-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.am-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   FOOTER
   ================================================================ */
#am-footer {
  background: var(--am-navy);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--am-font-body);
}

.am-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 40px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 48px;
}

/* ── Columnas ── */
.am-footer-col {}

.am-footer-heading {
  font-family: var(--am-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--am-white);
  margin: 0 0 20px;
}

.am-footer-tagline {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
  margin: 16px 0 0;
  max-width: 300px;
}

/* ── Listas ── */
.am-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.am-footer-list a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.am-footer-list a:hover { color: var(--am-white); }

/* Lista de contacto con iconos */
.am-footer-list--contact li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.am-footer-list--contact svg { color: #93C5FD; flex-shrink: 0; }

.am-footer-list--contact a,
.am-footer-list--contact span { font-size: 14px; color: rgba(255,255,255,0.65); text-decoration: none; }

.am-footer-list--contact a:hover { color: var(--am-white); }

/* ── Redes sociales ── */
.am-footer-social {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.am-social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.am-social-link:hover {
  background: rgba(255,255,255,0.14);
  color: var(--am-white);
}

/* ── Horario ── */
.am-footer-hours {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px 16px;
}

.am-hours-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  flex-shrink: 0;
  margin-top: 4px;
  animation: am-pulse 2s ease-in-out infinite;
}

@keyframes am-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.am-footer-hours div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.am-footer-hours strong {
  font-size: 12px;
  font-weight: 700;
  color: #4ADE80;
}

.am-footer-hours span {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

/* ── Barra inferior ── */
.am-footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 40px 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.am-footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.am-footer-legal {
  display: flex;
  gap: 24px;
}

.am-footer-legal a {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.am-footer-legal a:hover { color: rgba(255,255,255,0.8); }

/* ================================================================
   RESPONSIVE — Tablet (≤ 1024px)
   ================================================================ */
@media (max-width: 1024px) {
  .am-header-inner { padding: 0 24px; gap: 24px; }

  .am-nav-list { gap: 20px; }

  .am-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding: 48px 24px 32px;
  }

  .am-footer-brand { grid-column: 1 / -1; }

  .am-footer-bottom { padding: 20px 24px 28px; }
}

/* ================================================================
   RESPONSIVE — Mobile (≤ 768px)
   ================================================================ */
@media (max-width: 768px) {
  /* Header */
  .am-header-inner {
    padding: 0 20px;
    height: 64px;
  }

  /* Ocultar nav y teléfono en móvil, mostrar hamburger */
  #am-nav        { display: none; }
  .am-phone-link { display: none; }
  .am-hamburger  { display: flex; }

  /* Menú móvil desplegable */
  #am-nav.am-nav--open {
    display: block;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--am-navy);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 16px 20px;
  }

  #am-nav.am-nav--open .am-nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  #am-nav.am-nav--open .am-nav-list a {
    display: block;
    padding: 10px 0;
    font-size: 16px;
  }

  /* Footer */
  .am-footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 20px 24px;
  }

  .am-footer-brand { grid-column: 1; }

  .am-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 20px 24px;
  }

  .am-footer-legal { flex-wrap: wrap; gap: 12px 20px; }
}
