/*
Theme Name: Tracker Theme
Theme URI: https://tusitio.com
Author: Tú
Description: Tema tipo landing full width
Version: 1.0
License: GNU GPL v2 or later
Text Domain: tracker-theme
*/

:root {
  --color-bg: #ffffff;
  --color-primary: #9ab5f8ff;
  --color-secondary: #9ab5f8;
  --color-text: #272f49;
  --color-title: #7194ecff;
  --borderligth: #baceffff;
  --max-width-content : 1200px;
}

/* RESET */
/* * { margin:0; padding:0; box-sizing:border-box; } */
a { color:#007bff; text-decoration:none; }
a:hover { text-decoration:underline; }

/* HEADER */
header { 
  position:sticky; 
  top:0; 
  width:100%; 
  z-index:1000; display:flex; 
  justify-content:space-between; 
  align-items:center; 
  box-shadow:0 2px 4px rgba(0,0,0,0.05);
  background-color: var(--color-text); /*var(--color-bg);*/
  padding: 6px 6%;
  box-sizing: border-box;
}

/* ==== NAVBAR ==== */
.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==== ENLACES ==== */
.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  transition: all 0.35s ease;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
}

/* ==== BOTÓN HAMBURGUESA ==== */
.menu-toggle {
  width: 30px;
  height: 22px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* ==== EFECTO “X” ==== */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* MAIN */
main { flex:unset; width:100%; }

/* BLOQUES GUTENBERG - FULL WIDTH POR DEFECTO */
.wp-block { width:100%; }

/* Alignwide: bloques más estrechos */
.alignwide {
    max-width:1200px;
    margin-left:auto;
    margin-right:auto;
}

/* Alignfull: cubrir toda la pantalla */
.alignfull {
    width:100vw !important;
    max-width:100% !important;
    margin-right: calc(-50vw + 50%) !important;
    padding-left:0 !important;
    padding-right:0 !important;
}
.alignfull > .wp-block-group__inner-container,
.alignfull > .wp-block-cover__inner-container {
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
}

footer {
  padding: 1.5rem;
  background-color: var(--color-text);
  text-align: center;
  font-size: 0.9rem;
  color:var(--color-bg);
}

.page-content {
  max-width: var(--max-width-content);
  margin: 2rem auto;
  padding: 0 2.5rem 2.5rem 2.5rem;
  background-color: var(--color-bg);
  min-height: calc(100vh - 344px); 
}
.page-content h1, h2, h3 {
  color: var(--color-title);
}

.page-content a{
  color: var(--borderligth);
  text-decoration: underline;
}

.page-content ul {
  padding-left: 1.5em;
  list-style-type: disc;
}

.highlight-box {
  background-color: #f0f8ff;
  border-left: 4px solid #0073e6;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
}

/* BODY */
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
  flex-direction: column;
  min-height: auto;
}

header .branding {
  display: flex;
  align-items: center;
  gap: 15px;
}

.custom-logo {
  width: 150px;
  height: auto;
}

.site-info {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-size: 1.5rem;
  font-weight: bold;
}

.site-description {
  font-size: 1rem;
  color: #ffffffaa;
}

/* Responsivo */
/* @media (max-width: 600px) {
  .branding {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .custom-logo {
    width: 100px;
  }

  .site-title {
    font-size: 1.2rem;
  }

  .site-description {
    display: none;
  }
} */




/* ==== VERSIÓN MÓVIL AJUSTADA ==== */
@media (max-width: 768px) {

  /* MENÚ */
  .menu-toggle {
    display: flex;
    cursor: pointer;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 63px; /* justo debajo del header */
    left: 0;
    width: 100%;
    flex-direction: column;
    background: #00041f;
    text-align: center;
    z-index: 1000;
    height: calc(100vh - 60px);
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: all 0.35s ease;
  }

  .nav-links.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links li {
    padding: 12px 0;
  }

  .nav-links a {
    color: #9ab5f8;
    font-size: 1.1em;
  }

  
  /* HEADER */
  .branding {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .custom-logo {
    width: 100px;
  }

  .site-title {
    font-size: 1.2rem;
  }

  .site-description {
    display: none;
  }

  /* Page content */
  .page-content {
    font-size: 14px;
    /* padding: 0 1rem; */
    margin: 1rem 0;
  }

  .page-content h1{
    font-size: 20px;
  }
  .page-content h2{
    font-size: 18px;
  }
  .page-content h3{
    font-size: 16px;
  }
}
