* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  background: #0f172a;
  margin: 0;
  padding: 0;
  color: #f8fafc;
}

.guia-wrap {
  background: #0f172a;
  min-height: 100vh;
}

/* Header & Nav from index.html */
header {
  padding: 1.5rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  header {
    backdrop-filter: none;
    background: #0f172a;
  }
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1550px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 600px) {
  header nav {
    padding: 0 1rem;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

.logo-icon img {
  height: clamp(24px, 6vw, 32px);
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-text {
  font-size: clamp(1.1rem, 5vw, 1.5rem);
  color: #f8fafc;
}

.logo-text span {
  color: #06b6d4;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: clamp(0.5rem, 3vw, 2rem);
  align-items: center;
}

.nav-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
  font-size: clamp(0.85rem, 3.5vw, 1rem);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #f8fafc;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background: #f8fafc;
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

/* Guide original styles */
.g-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.04);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.g-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  transition: width 0.1s;
}

.g-hero {
  padding: 140px 40px 60px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.g-hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 500;
  line-height: 1.1;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 16px;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.g-hero p {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: #94a3b8;
  line-height: 1.6;
  max-width: 800px;
  margin: 0;
  opacity: 0.9;
}

.g-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 12px 24px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(15, 23, 42, 0.3);
}

.g-back-btn:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: #38bdf8;
  transform: translateX(-5px);
}

.g-back-arrow {
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
}


.g-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 60px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}

.g-article {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px;
}

.g-section {
  margin-bottom: 36px;
}

.g-h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: #f8fafc;
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 3px solid #6366f1;
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
}

.g-p {
  font-size: 1.05rem;
  color: #94a3b8;
  line-height: 1.8;
  margin-bottom: 20px;
}

.g-formula {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.95rem;
  color: #38bdf8;
}

.g-formula strong {
  display: block;
  color: #38bdf8;
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
}

.g-success {
  background: rgba(16, 185, 129, 0.05);
  border-left: 3px solid #10b981;
  border-radius: 0 8px 8px 0;
  padding: 12px 20px;
  margin: 20px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #34d399;
}

.g-highlight {
  background: rgba(99, 102, 241, 0.05);
  border-left: 3px solid #6366f1;
  border-radius: 0 8px 8px 0;
  padding: 12px 20px;
  margin: 20px 0;
  font-size: 1rem;
  font-weight: 500;
  color: #818cf8;
}

.g-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 120px;
}

.g-sidebar-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px;
}

.g-sidebar-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: #f8fafc;
  margin-bottom: 18px;
  font-family: 'Outfit', sans-serif;
}

.g-faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 14px 0;
  cursor: pointer;
}

.g-faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.g-faq-q {
  font-size: 1rem;
  font-weight: 500;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
  user-select: none;
}

.g-faq-q span {
  font-size: 1.2rem;
  opacity: 0.6;
  font-weight: 400;
  transition: transform 0.3s;
}

.g-faq-item:hover .g-faq-q {
  color: #cbd5e1;
}

.g-faq-a {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin-top: 8px;
  display: none;
}

.g-faq-item.open .g-faq-q {
  color: #38bdf8;
}

.g-faq-item.open .g-faq-q span {
  transform: rotate(45deg);
  opacity: 1;
}

.g-faq-item.open .g-faq-a {
  display: block;
}

.g-cta {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}

.g-cta-title {
  font-size: 1.3rem;
  font-weight: 500;
  color: #f8fafc;
  margin-bottom: 10px;
  font-family: 'Outfit', sans-serif;
}

.g-cta-p {
  font-size: 1rem;
  color: #94a3b8;
  margin-bottom: 20px;
  line-height: 1.6;
}

.g-cta-btn {
  display: inline-block;
  background: #6366f1;
  color: white;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  width: 100%;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.g-cta-btn:hover {
  background: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}



/* Footer from style.css */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 4rem;
  padding: 2.5rem 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo-footer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  color: #94a3b8;
}

.logo-footer .logo-icon img {
  height: 26px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-footer .logo-text,
.logo-footer .logo-text span {
  color: #94a3b8;
}

.footer-copy {
  color: #94a3b8;
  font-size: 0.85rem;
  text-align: center;
  flex: 1;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #f8fafc;
}

@media (max-width: 768px) {
  .g-content {
    grid-template-columns: 1fr;
  }

  .g-sidebar {
    position: static;
  }

  .g-hero {
    padding: 32px;
    margin: 100px 24px 32px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    text-align: left;
  }

  .g-hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    margin-bottom: 12px;
  }

  .g-hero p {
    font-size: 1.05rem;
    line-height: 1.5;
  }

  .g-back-btn {
    width: 100%;
    justify-content: center;
    margin-top: 24px;
  }

  .g-content {
    padding: 0 24px 48px;
  }


  .g-article {
    padding: 24px;
  }

  /* Compact Dropdown Mobile Menu */
  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 1.5rem;
    height: auto;
    width: 180px;
    background: rgba(30, 41, 59, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0.75rem;
    gap: 0.5rem;
    z-index: 1000;
    transform: translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 0.95rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    width: 100%;
    text-align: left;
    transition: all 0.2s;
    border: 1px solid transparent;
    color: #94a3b8;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(6, 182, 212, 0.1);
    color: #f8fafc;
    border-color: rgba(6, 182, 212, 0.1);
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: #06b6d4;
  }

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

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background: #06b6d4;
  }
}

/* logo footer */
.logo-footer .logo-text-footer {
  font-size: 1.0em;
  /* ajusta este valor para cambiar tamanio */
  font-weight: 600;
}

@media (max-width: 600px) {

  /* Mobile footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .footer-copy {
    flex: none;
  }
}