/*
Theme Name: Astra Child
Theme URI: https://example.com/
Description: Tema hijo personalizado basado en Astra
Author: Samuel Cancinos
Author URI: https://example.com/
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/



/* ===== TIPOGRAFÍA GLOBAL ===== */
body,
.mobile-menu .nav-links li a,
.header-right a,
.language-switcher a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300; /* Light */
  letter-spacing: 0.5px; /* más elegante */
}

/* ===== HEADER LAYOUT ===== */
.custom-header {
  background: linear-gradient(135deg, #0f1e26, #1d3a32);
  padding: 12px 25px;
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  max-height: 150px;
}

/* ===== MENÚ DESPLEGABLE (SIDEBAR) ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 280px; /* ancho del sidebar */
  background: linear-gradient(135deg, #0f1e26, #1d3a32);
  padding: 80px 25px 25px; /* espacio arriba para que no quede pegado a la X */
  transform: translateX(-100%);
  transition: transform 0.4s ease, opacity 0.3s ease;
  z-index: 9998; /* debajo del botón hamburguesa */
  opacity: 0;
}

.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
}

.mobile-menu .nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px; /* espacio entre links */
  list-style: none;
  padding: 0;
  margin: 70px 0 0 0; /* 👈 desplaza toda la lista hacia abajo */
}

.mobile-menu .nav-links li a {
  color: #d1d0cb;
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-menu .nav-links li a:hover {
  color: #8cb89f;
  transform: translateX(6px);
}

/* ===== BOTONES HAMBURGUESA ===== */
.menu-toggle {
    position: fixed;  /* Ahora SIEMPRE fijo arriba */
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 8px;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10000; /* sobre todo */
  margin-left: 10px;
}

.menu-toggle:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* ===== HAMBURGUESA ANIMADA ===== */
.hamburger {
  display: inline-block;
  width: 25px;
  height: 2px;
  background: #d1d0cb;
  position: relative;
  transition: background 0.4s, transform 0.4s;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 25px;
  height: 2px;
  background: #d1d0cb;
  transition: transform 0.4s, top 0.4s, background 0.4s;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

.menu-toggle.active .hamburger {
  background: transparent; /* barra central desaparece */
}

.menu-toggle.active .hamburger::before {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .hamburger::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hover efecto premium */
.menu-toggle:hover .hamburger,
.menu-toggle:hover .hamburger::before,
.menu-toggle:hover .hamburger::after {
  background: #8cb89f;
}

/* ===== SWITCHER IDIOMA ===== */
.language-switcher a {
  color: #d1d0cb;
  font-size: 14px;
  text-decoration: none;
}

.language-switcher a:hover {
  color: #8cb89f;
}

/* ===== ENLACES HEADER DERECHO ===== */
.header-right a {
  color: #d1d0cb;
  font-weight: 300;
  text-decoration: none;
  transition: color 0.3s;
}

.header-right a:hover {
  color: #6e9277;
}

.header-right i {
  margin-right: 6px;
}

