/*
Theme Name: Amariles Legal
Theme URI: https://www.joseotonielamarilesv.com
Author: Mauricio
Description: Tema para el bufete de Jose Otoniel Amariles Valencia (abogado, Medellín). Incluye página de inicio, lista de servicios, páginas de servicio, política de privacidad y menú de navegación. Se crean las páginas y el menú automáticamente al activar el tema.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: amariles-legal
*/

:root {
  --navy: #14213d;
  --navy-2: #1f3360;
  --gold: #c9a227;
  --gold-soft: #f4ead0;
  --ink: #1d2433;
  --muted: #5b6475;
  --bg: #ffffff;
  --bg-alt: #f5f6f9;
  --line: #e3e6ee;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 33, 61, .10);
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-decoration: none; }
a:hover, a:focus { color: var(--gold); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .9rem 0; flex-wrap: wrap;
}
.brand { color: #fff; display: flex; flex-direction: column; line-height: 1.2; }
.brand:hover { text-decoration: none; color: var(--gold); }
.brand-name { font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 700; font-size: 1.1rem; letter-spacing: .02em; }
.brand-tag { font-size: .8rem; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; }

.menu-toggle {
  display: none; background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.4); border-radius: 8px;
  padding: .4rem .9rem; font: inherit; cursor: pointer;
}

.site-nav .menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; align-items: center;
}
.site-nav .menu li { position: relative; }
.site-nav .menu a {
  color: #fff; font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: .95rem; padding: .3rem 0; display: inline-block;
  border-bottom: 2px solid transparent;
}
.site-nav .menu a:hover,
.site-nav .menu .current-menu-item > a,
.site-nav .menu .current_page_item > a { color: var(--gold); border-bottom-color: var(--gold); text-decoration: none; }

/* submenú (Servicios) */
.site-nav .menu .sub-menu {
  display: none; position: absolute; top: 100%; left: -.5rem;
  background: var(--navy-2); min-width: 280px; list-style: none;
  padding: .5rem 0; margin: 0; border-radius: 10px; box-shadow: var(--shadow);
  flex-direction: column; gap: 0;
}
.site-nav .menu .sub-menu a { display: block; padding: .55rem 1rem; border: 0; }
.site-nav .menu li:hover > .sub-menu,
.site-nav .menu li:focus-within > .sub-menu { display: flex; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; background: var(--gold); color: var(--navy);
  font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 700;
  padding: .75rem 1.5rem; border-radius: 999px; border: 2px solid var(--gold);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover, .btn:focus { background: #d9b53a; color: var(--navy); text-decoration: none; transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 5rem 0;
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1.1fr .9fr; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .15em; font-size: .85rem; font-family: "Helvetica Neue", Arial, sans-serif; }
.hero p.lead { font-size: 1.15rem; color: #e6e9f2; max-width: 36em; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Secciones ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 2.5rem; }
.section-head p { color: var(--muted); }

/* ---------- Tarjetas de servicio ---------- */
.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: 0 2px 8px rgba(0,0,0,.03);
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--gold-soft);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 a { color: var(--navy); }
.card p { color: var(--muted); flex: 1; }
.card .more { font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 700; color: var(--navy-2); }
.badge {
  display: inline-block; background: var(--gold-soft); color: var(--navy);
  font-family: "Helvetica Neue", Arial, sans-serif; font-size: .8rem; font-weight: 700;
  padding: .2rem .7rem; border-radius: 999px; margin-bottom: .6rem;
}

/* ---------- Sobre / contacto ---------- */
.two-col { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr; align-items: center; }
.values { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.values li { padding: .45rem 0 .45rem 1.8rem; position: relative; }
.values li::before { content: "✓"; color: var(--gold); position: absolute; left: 0; font-weight: 700; }

.contact-box {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
}
.contact-box h3 { color: #fff; }
.contact-box a { color: var(--gold); }
.contact-box ul { list-style: none; padding: 0; margin: 0; }
.contact-box li { padding: .45rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-box li:last-child { border-bottom: 0; }

.cta-band { background: var(--gold-soft); padding: 3.5rem 0; text-align: center; }
.cta-band .btn { margin-top: .5rem; }

/* ---------- Páginas internas ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 3rem 0; }
.page-hero h1 { color: #fff; margin: 0; }
.breadcrumbs { font-size: .9rem; color: #c8cfdd; margin-bottom: .6rem; }
.breadcrumbs a { color: var(--gold); }
.content-wrap { padding: 3rem 0 4rem; }
.service-layout { display: grid; gap: 2.5rem; grid-template-columns: 1.6fr 1fr; align-items: start; }
.service-img { border-radius: var(--radius); margin-bottom: 1.5rem; box-shadow: var(--shadow); width: 100%; height: auto; }
.side-box { background: var(--bg-alt); border-radius: var(--radius); padding: 1.6rem; position: sticky; top: 110px; }
.side-box .price { font-family: "Helvetica Neue", Arial, sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--navy); margin: .3rem 0 1rem; }
.side-box ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.side-box li { padding: .4rem 0; }
.side-box .btn { width: 100%; text-align: center; margin-top: .5rem; }

.legal-doc h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal-doc h4 { font-size: 1rem; }
.legal-doc ul { padding-left: 1.3rem; }
.legal-doc .updated { color: var(--muted); font-style: italic; }
.notice { background: var(--gold-soft); border-left: 4px solid var(--gold); padding: 1rem 1.2rem; border-radius: 8px; margin: 1.5rem 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c8cfdd; padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { color: #c8cfdd; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .25rem 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.2rem; text-align: center; font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .two-col, .service-layout { grid-template-columns: 1fr; }
  .side-box { position: static; }
  .menu-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.is-open { display: block; }
  .site-nav .menu { flex-direction: column; align-items: flex-start; padding: .6rem 0; }
  .site-nav .menu .sub-menu { position: static; display: flex; background: transparent; box-shadow: none; padding-left: 1rem; min-width: 0; }
}
