/*
Theme Name: Gestión Legal Colombia
Theme URI: https://www.gestionlegalcolombia.com
Author: Gestión Legal Colombia
Author URI: https://www.gestionlegalcolombia.com
Description: Tema personalizado para Gestión Legal Colombia. Diseño DM Sans Mineral con sistema de diseño propio.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: gestion-legal
*/

/* ── RESET & ROOT ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:   #F81103;
  --bg:    #F9F8F5;
  --dark:  #151514;
  --mid:   #2A2A28;
  --muted: #888884;
  --line:  #E0DED8;
  --white: #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 200;
  background: var(--bg);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NAVBAR ───────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
}
.site-logo img { height: 36px; width: auto; display: block; }
.site-logo a { display: flex; align-items: center; }

/* Nav menu */
.nav-menu { display: flex; gap: 32px; list-style: none; }
.nav-menu a {
  font-size: 11px; font-weight: 300; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mid); text-decoration: none;
  transition: color 0.2s;
}
.nav-menu a:hover { color: var(--red); }
.nav-cta-btn {
  font-size: 11px; font-weight: 300; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--white); background: var(--red);
  padding: 10px 22px; text-decoration: none; transition: opacity 0.2s;
  white-space: nowrap;
}
.nav-cta-btn:hover { opacity: 0.85; }
.nav-back-link {
  font-size: 11px; font-weight: 300; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mid); text-decoration: none;
  transition: color 0.2s;
}
.nav-back-link:hover { color: var(--red); }

/* Hamburger (mobile) */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 1px; background: var(--dark); margin: 5px 0; transition: all 0.2s; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  font-size: 11px; font-weight: 300; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--white); background: var(--dark);
  padding: 14px 28px; text-decoration: none; transition: background 0.2s;
}
.btn-primary:hover { background: var(--red); color: var(--white); }
.btn-ghost {
  display: inline-block;
  font-size: 11px; font-weight: 300; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mid); text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--red); border-color: var(--red); }
.btn-ghost-light {
  display: inline-block;
  font-size: 11px; font-weight: 300; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,.5); text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost-light:hover { color: var(--white); border-color: var(--white); }

/* ── HERO (service pages) ─────────────────────────────────── */
.page-hero {
  min-height: calc(100vh - 64px);
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.hero-left {
  padding: 80px 60px 80px 48px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-label {
  font-size: 10px; font-weight: 300; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 40px;
}
.hero-title {
  font-size: clamp(38px, 5vw, 72px); font-weight: 200;
  line-height: 1.05; letter-spacing: -0.025em;
  color: var(--dark); margin-bottom: 40px;
}
.hero-title .l1 { display: block; padding-left: 0; }
.hero-title .l2 { display: block; padding-left: clamp(20px, 3.5vw, 56px); }
.hero-title .l3 { display: block; padding-left: clamp(40px, 7vw, 112px); color: var(--red); }
.hero-sub {
  font-size: 15px; font-weight: 300; line-height: 1.7;
  color: var(--muted); max-width: 420px; margin-bottom: 40px;
}
.hero-actions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.hero-right {
  background: var(--dark);
  display: flex; align-items: flex-end;
  padding: 60px 48px;
  position: relative; overflow: hidden;
}
.hero-right::before {
  content: '';
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.1;
}
.hero-aside { position: relative; z-index: 1; }
.aside-label {
  font-size: 10px; font-weight: 300; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 16px;
}
.aside-text {
  font-size: 15px; font-weight: 200; line-height: 1.6;
  color: rgba(255,255,255,.75); margin-bottom: 24px;
}
.aside-cta {
  font-size: 11px; font-weight: 300; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--white); text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 3px;
  transition: border-color 0.2s, color 0.2s;
}
.aside-cta:hover { border-color: var(--red); color: var(--red); }

/* ── PAGE CONTENT ─────────────────────────────────────────── */
.page-content {
  padding: 100px 48px;
  border-top: 1px solid var(--line);
}
.content-intro {
  max-width: 760px; margin: 0 auto 80px;
  font-size: 17px; font-weight: 200; line-height: 1.8; color: var(--mid);
}

/* Content sections grid */
.content-sections {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; margin-bottom: 80px;
  border-top: 1px solid var(--line); padding-top: 60px;
}
.content-section h2 {
  font-size: 20px; font-weight: 300; letter-spacing: -0.01em;
  color: var(--dark); margin-bottom: 16px;
}
.content-section p {
  font-size: 13px; font-weight: 200; line-height: 1.8; color: var(--muted);
}
.content-section ul { list-style: none; margin-top: 12px; }
.content-section ul li {
  font-size: 13px; font-weight: 200; color: var(--muted);
  padding: 6px 0 6px 16px; border-bottom: 1px solid var(--line);
  position: relative;
}
.content-section ul li::before {
  content: '—'; position: absolute; left: 0; color: var(--red);
}

/* WordPress editor content */
.entry-content h2 {
  font-size: 20px; font-weight: 300; letter-spacing: -0.01em;
  color: var(--dark); margin: 40px 0 16px;
}
.entry-content h3 {
  font-size: 17px; font-weight: 300; color: var(--dark); margin: 24px 0 12px;
}
.entry-content p {
  font-size: 14px; font-weight: 200; line-height: 1.8; color: var(--mid); margin-bottom: 16px;
}
.entry-content ul, .entry-content ol {
  padding-left: 20px; margin-bottom: 16px;
}
.entry-content li {
  font-size: 13px; font-weight: 200; line-height: 1.7; color: var(--muted); margin-bottom: 6px;
}
.entry-content strong { font-weight: 400; color: var(--dark); }
.entry-content a { color: var(--red); text-decoration: none; }
.entry-content a:hover { text-decoration: underline; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-block { border-top: 1px solid var(--line); padding-top: 60px; }
.faq-label {
  font-size: 10px; font-weight: 300; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 40px;
}
.faq-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; border-top: 1px solid var(--line);
}
.faq-item {
  padding: 48px 48px 48px 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.faq-item:nth-child(2n) {
  border-right: none; padding-left: 48px; padding-right: 0;
}
.faq-q {
  font-size: 17px; font-weight: 300; color: var(--dark);
  letter-spacing: -0.01em; margin-bottom: 16px;
}
.faq-a {
  font-size: 13px; font-weight: 200; line-height: 1.75; color: var(--muted);
}

/* ── CTA SECTION ──────────────────────────────────────────── */
.cta-section {
  padding: 100px 48px;
  border-top: 1px solid var(--line);
  background: var(--dark);
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 48px;
}
.cta-title {
  font-size: clamp(26px, 3.2vw, 42px); font-weight: 200;
  letter-spacing: -0.02em; color: var(--white); line-height: 1.15;
}
.cta-title .r { color: var(--red); }
.cta-actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.cta-sub {
  font-size: 13px; font-weight: 200; line-height: 1.7;
  color: rgba(255,255,255,.5); max-width: 340px;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 32px 48px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy {
  font-size: 11px; font-weight: 200; color: rgba(255,255,255,.2);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 11px; font-weight: 200;
  color: rgba(255,255,255,.35); text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

/* ── WHATSAPP FLOAT ───────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 32px; right: 32px;
  width: 50px; height: 50px;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  z-index: 200; text-decoration: none;
}
.wa-float svg { width: 24px; height: 24px; fill: white; }

/* ── SECTION UTILITIES ────────────────────────────────────── */
.section-tag {
  font-size: 10px; font-weight: 300; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
}
.section-title {
  font-size: clamp(28px, 4vw, 52px); font-weight: 200;
  letter-spacing: -0.025em; line-height: 1.1; color: var(--dark);
}
.section-title .r { color: var(--red); }
.section-header {
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: 60px; padding: 80px 48px 0;
}

/* ── 404 PAGE ─────────────────────────────────────────────── */
.error-404 {
  min-height: calc(100vh - 64px); margin-top: 64px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; text-align: center; padding: 48px;
}
.error-404 .num {
  font-size: clamp(80px, 15vw, 180px); font-weight: 200;
  letter-spacing: -0.05em; color: var(--line); line-height: 1;
}
.error-404 h1 {
  font-size: 24px; font-weight: 300; color: var(--dark); margin-bottom: 16px;
}
.error-404 p {
  font-size: 14px; font-weight: 200; color: var(--muted);
  margin-bottom: 40px; max-width: 400px;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .site-header { padding: 0 24px; }
  .nav-menu { display: none; }
  .nav-toggle { display: block; }
  .nav-menu.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 24px; gap: 20px;
  }
  .page-hero { grid-template-columns: 1fr; }
  .hero-left { padding: 60px 24px 40px; }
  .hero-right { min-height: 280px; }
  .page-content { padding: 60px 24px; }
  .content-sections { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-item { padding: 32px 0 !important; border-right: none !important; }
  .cta-section { grid-template-columns: 1fr; padding: 60px 24px; }
  .site-footer { flex-direction: column; gap: 16px; text-align: center; padding: 24px; }
  .section-header { padding: 60px 24px 0; }
  .section-title { font-size: clamp(24px, 6vw, 36px); }
}


/* ═══════════════════════════════════════════════════════════
   DROPDOWN NAVIGATION — Session 3 upgrade
═══════════════════════════════════════════════════════════ */

/* Ensure header is always on top — fix submenu dark overlay */
.site-header {
  z-index: 9999 !important;
  isolation: isolate;
}

/* Parent items need relative positioning for dropdown anchor */
#site-nav .nav-menu > li {
  position: relative;
}

/* Sub-menu: hidden by default, white card with red top border */
#site-nav .nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  background: #ffffff;
  border-top: 3px solid var(--red);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  min-width: 240px;
  z-index: 99999;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  animation: fadeSlide 0.15s ease;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Show on hover / keyboard focus */
#site-nav .nav-menu > li:hover > .sub-menu,
#site-nav .nav-menu > li:focus-within > .sub-menu {
  display: block;
}

/* Dropdown link styles */
#site-nav .nav-menu .sub-menu li a {
  display: block;
  padding: 10px 22px;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--dark) !important;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, padding-left 0.12s;
}
#site-nav .nav-menu .sub-menu li:last-child a {
  border-bottom: none;
}
#site-nav .nav-menu .sub-menu li a:hover {
  background: #fdf0f0;
  color: var(--red) !important;
  padding-left: 28px;
}

/* Small caret on items with children */
#site-nav .nav-menu > .menu-item-has-children > a::after {
  content: "  ▾";
  font-size: 10px;
  opacity: 0.55;
}

/* ── FIX: Hero / cover blocks must not overlap dropdown ─── */
.wp-block-cover,
.wp-block-group,
.hero-grid,
.hero-right,
.wp-block-columns,
main > *,
.entry-content > * {
  isolation: auto !important;
  z-index: auto !important;
}

/* ── AGENDAR CONSULTA — keep as red button in nav ─────── */
#menu-item-485 > a {
  background: var(--red);
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: 3px;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-left: 8px;
  transition: opacity 0.2s;
  white-space: nowrap;
}
#menu-item-485 > a:hover {
  opacity: 0.85;
  color: var(--white) !important;
}

/* ── WHATSAPP FLOATING BUTTON ─────────────────────────── */
.glc-whatsapp-float {
  position: fixed;
  bottom: 100px;
  left: 16px;
  z-index: 99999;
  background: #25D366;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.glc-whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.28);
}
.glc-whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* ── GLC FOOTER LOGO ─────────────────────────────────── */
.glc-footer-logo {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 9000;
  opacity: 0.45;
  transition: opacity 0.2s;
}
.glc-footer-logo:hover { opacity: 0.9; }
.glc-footer-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* ── REDUCE SIDE MARGINS / WIDER CONTENT ─────────────── */
.wp-site-blocks {
  padding-inline-start: 0 !important;
  padding-inline-end: 0 !important;
}

/* Posts and pages: wider comfortable layout */
.site-main, .entry-content, article.hentry {
  max-width: 1180px;
  margin-inline: auto;
}

/* Content inside Gutenberg blocks */
.wp-block-cover .wp-block-cover__inner-container,
.wp-block-group > .wp-block-group__inner-container {
  max-width: 1180px !important;
  margin-inline: auto !important;
  padding-inline: 24px !important;
}

/* ── SITE LOGO SIZING ────────────────────────────────── */
.site-logo img {
  max-height: 60px;
  width: auto;
}

/* ── MOBILE DROPDOWN ─────────────────────────────────── */
@media (max-width: 768px) {
  #site-nav .nav-menu .sub-menu {
    position: static;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--red);
    margin-left: 14px;
    min-width: auto;
    background: #fafafa;
    animation: none;
  }
  .glc-whatsapp-float {
    bottom: 72px;
    left: 12px;
    width: 46px;
    height: 46px;
  }
}


/* ══ GLC FORM AESTHETIC ══════════════════════════════════════ */

/* Remove ALL CF7 default input styling */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 textarea,
.wpcf7 select {
  display: block !important;
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #E0DED8 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 14px 0 10px !important;
  font-size: 15px !important;
  font-weight: 300 !important;
  color: #151514 !important;
  font-family: 'DM Sans', sans-serif !important;
  outline: none !important;
  -webkit-appearance: none !important;
  transition: border-color 0.3s !important;
  margin: 0 !important;
}
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
  border-bottom-color: #151514 !important;
  box-shadow: none !important;
  outline: none !important;
}
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: #888884 !important;
  font-weight: 300 !important;
  font-size: 15px !important;
}

/* Remove CF7 paragraph wrapping spacing */
.wpcf7 p {
  margin: 0 0 28px !important;
  padding: 0 !important;
}

/* Submit button — full width, dark, minimal */
.wpcf7 input[type="submit"] {
  display: block !important;
  width: 100% !important;
  padding: 18px 28px !important;
  background: #151514 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  transition: background 0.2s !important;
  margin-top: 8px !important;
  text-align: left !important;
}
.wpcf7 input[type="submit"]:hover {
  background: #F81103 !important;
}

/* Validation */
.wpcf7-not-valid-tip {
  font-size: 11px !important;
  color: #F81103 !important;
  font-weight: 300 !important;
  margin-top: 4px !important;
  border: none !important;
  padding: 0 !important;
}
.wpcf7 input.wpcf7-not-valid {
  border-bottom-color: #F81103 !important;
}
.wpcf7-response-output {
  margin: 12px 0 0 !important;
  font-size: 12px !important;
  font-weight: 300 !important;
  border: none !important;
  padding: 0 !important;
  color: #888884 !important;
}
.wpcf7 .ajax-loader { display: none !important; }

/* Home page form */
.glc-field { margin-bottom: 32px; }
.glc-field input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #E0DED8;
  border-radius: 0;
  padding: 14px 0 10px;
  font-size: 15px;
  font-weight: 300;
  color: #151514;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  transition: border-color 0.3s;
}
.glc-field input:focus { border-bottom-color: #151514; }
.glc-field input::placeholder { color: #888884; font-weight: 300; }

/* ══ END GLC FORM AESTHETIC ══════════════════════════════════ */
/
