/*
Theme Name: RDG Consultoría
Theme URI: https://rdgcje.com
Author: RDG Consultoría Jurídica y Empresarial
Description: Tema corporativo exclusivo para RDG Consultoría Jurídica y Empresarial.
Version: 1.0.1
Text Domain: rdg-consultoria
*/

:root {
  --rdg-purple: #25113f;
  --rdg-deep: #180b2b;
  --rdg-gold: #c99a45;
  --rdg-ivory: #f7f2e9;
  --rdg-white: #fcfaf6;
  --rdg-ink: #201b27;
  --rdg-muted: #6e6675;
  --rdg-line: rgba(37, 17, 63, .14);
  --rdg-shadow: 0 22px 60px rgba(24, 11, 43, .12);
  --rdg-radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--rdg-ink);
  background: var(--rdg-white);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 9999; background: #fff; color: #111; padding: 10px 16px; }
.skip-link:focus { left: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 250, 246, .95);
  border-bottom: 1px solid var(--rdg-line);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand img { width: 210px; max-height: 72px; object-fit: contain; }
.brand-text { color: var(--rdg-purple); font-weight: 800; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 26px; font-size: .95rem; font-weight: 650; }
.nav a { position: relative; }
.nav a:not(.button)::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 0; height: 2px; background: var(--rdg-gold); transition: width .2s ease; }
.nav a:hover::after, .nav a:focus-visible::after { width: 100%; }
.menu-toggle { display: none; border: 1px solid var(--rdg-line); background: transparent; color: var(--rdg-purple); border-radius: 10px; padding: 9px 12px; font: inherit; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--rdg-gold); color: var(--rdg-deep); font-weight: 800; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(201,154,69,.25); background: #d6ab5f; }
.button-outline { background: transparent; border-color: rgba(255,255,255,.42); color: #fff; }
.button-outline:hover { background: rgba(255,255,255,.1); }

.hero { position: relative; min-height: 720px; display: grid; align-items: center; overflow: hidden; background: var(--rdg-deep); color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24,11,43,.98) 0%, rgba(24,11,43,.88) 43%, rgba(24,11,43,.34) 72%, rgba(24,11,43,.12) 100%), var(--hero-image) center/cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: auto -5vw -190px auto; width: 430px; height: 430px; border: 1px solid rgba(201,154,69,.35); border-radius: 50%; }
.hero-content { position: relative; z-index: 1; width: min(690px, 100%); padding: 110px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 11px; margin: 0 0 22px; color: var(--rdg-gold); font-size: .82rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; color: var(--rdg-purple); }
h1 { margin-bottom: 24px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 7vw, 5.6rem); font-weight: 500; letter-spacing: -.04em; }
.hero-lead { max-width: 610px; margin: 0 0 34px; color: rgba(255,255,255,.82); font-size: clamp(1.05rem, 2vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 54px; color: rgba(255,255,255,.72); font-size: .92rem; }
.hero-note span { display: flex; align-items: center; gap: 9px; }
.hero-note span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rdg-gold); }

.section { padding: 105px 0; }
.section-soft { background: var(--rdg-ivory); }
.section-dark { background: var(--rdg-purple); color: rgba(255,255,255,.82); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-heading { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: end; margin-bottom: 52px; }
.section-heading h2 { margin-bottom: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.35rem, 4vw, 4rem); font-weight: 500; letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--rdg-muted); font-size: 1.08rem; }
.section-dark .section-heading p { color: rgba(255,255,255,.7); }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { min-height: 250px; padding: 32px; background: var(--rdg-white); border: 1px solid var(--rdg-line); border-radius: var(--rdg-radius); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--rdg-shadow); border-color: rgba(201,154,69,.6); }
.service-number { display: block; margin-bottom: 38px; color: var(--rdg-gold); font-family: Georgia, serif; font-size: .96rem; }
.service-card h3 { margin-bottom: 12px; font-size: 1.25rem; }
.service-card p { margin: 0; color: var(--rdg-muted); font-size: .95rem; }

.about-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 80px; align-items: center; }
.about-copy h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.4rem, 4.5vw, 4.4rem); font-weight: 500; letter-spacing: -.04em; }
.about-copy p { color: rgba(255,255,255,.72); font-size: 1.08rem; }
.values { display: grid; gap: 16px; }
.value { padding: 25px 26px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(255,255,255,.045); }
.value strong { display: block; margin-bottom: 5px; color: var(--rdg-gold); font-size: 1.04rem; }
.value span { color: rgba(255,255,255,.67); }

.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.process-item { padding-top: 26px; border-top: 2px solid var(--rdg-gold); }
.process-item h3 { font-size: 1.2rem; }
.process-item p { color: var(--rdg-muted); }

.contact-panel { display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; border-radius: 30px; background: var(--rdg-deep); color: #fff; box-shadow: var(--rdg-shadow); }
.contact-copy { padding: clamp(38px, 6vw, 72px); }
.contact-copy h2 { color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.4rem, 4.5vw, 4.4rem); font-weight: 500; letter-spacing: -.04em; }
.contact-copy p { color: rgba(255,255,255,.72); }
.contact-details { display: grid; align-content: center; gap: 1px; padding: 28px; background: rgba(255,255,255,.06); }
.contact-item { padding: 24px; background: rgba(255,255,255,.055); }
.contact-item small { display: block; margin-bottom: 4px; color: var(--rdg-gold); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contact-item a, .contact-item address { color: #fff; font-size: 1.04rem; font-style: normal; }

.site-footer { padding: 52px 0 24px; background: #10071d; color: rgba(255,255,255,.65); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 45px; }
.footer-brand img { width: 180px; padding: 10px; background: #fff; border-radius: 8px; }
.footer-brand p { max-width: 400px; }
.footer-title { color: #fff; font-size: .9rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.footer-links { display: grid; gap: 8px; }
.copyright { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .86rem; }
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.25); font-weight: 900; font-size: 1.4rem; }

.content-page { min-height: 62vh; padding: 100px 0; }
.content-page h1 { color: var(--rdg-purple); font-size: clamp(2.7rem, 6vw, 5rem); }
.content-page article { max-width: 800px; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 88px; left: 0; right: 0; padding: 24px 20px 30px; background: var(--rdg-white); border-bottom: 1px solid var(--rdg-line); flex-direction: column; align-items: flex-start; }
  .nav.is-open { display: flex; }
  .section-heading, .about-grid, .contact-panel { grid-template-columns: 1fr; gap: 36px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1160px); }
  .header-inner { min-height: 78px; }
  .brand img { width: 150px; max-height: 58px; }
  .nav { top: 78px; }
  .hero { min-height: 680px; }
  .hero::before { background: linear-gradient(90deg, rgba(24,11,43,.97), rgba(24,11,43,.77)), var(--hero-image) 64% center/cover no-repeat; }
  .hero-content { padding: 80px 0; }
  h1 { font-size: clamp(2.75rem, 15vw, 4.2rem); }
  .section { padding: 75px 0; }
  .services-grid, .process, .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .service-card { min-height: auto; }
  .hero-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
