/*
Theme Name: Defiéndete Perú
Theme URI: https://www.defiendetedelasdeudas.com.pe/
Author: Defiéndete Perú
Description: Tema corporativo, responsivo e interactivo para servicios de defensa frente a deudas.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: defiendete-peru
*/

:root {
  --navy: #000061;
  --navy-2: #08083d;
  --blue: #1e73be;
  --sky: #e9f4ff;
  --cyan: #3da9fc;
  --ink: #10132a;
  --muted: #5e6478;
  --line: #dce3ef;
  --white: #fff;
  --success: #19a463;
  --shadow: 0 22px 65px rgba(0, 0, 60, .13);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 96px 0; }
.section-soft { background: linear-gradient(180deg, #f7faff 0%, #edf5ff 100%); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-size: .77rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 9px; background: var(--blue); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.035em; }
h1 { font-size: clamp(2.65rem, 5.6vw, 5.2rem); margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 18px; }
h3 { font-size: 1.25rem; }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head p, .lead { color: var(--muted); font-size: 1.08rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 97, .1);
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand img { width: 188px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 29px; font-size: .9rem; font-weight: 750; }
.site-nav a:not(.btn):hover { color: var(--blue); }
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  content: "";
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
  transition: .25s;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 850;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--blue), var(--navy)); box-shadow: 0 14px 28px rgba(0, 0, 97, .22); }
.btn-light { color: var(--navy); background: #fff; }
.btn-outline { color: var(--navy); border-color: rgba(0, 0, 97, .25); background: rgba(255,255,255,.7); }

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 30%, rgba(61,169,252,.32), transparent 31%),
    linear-gradient(120deg, #050527 0%, #000061 53%, #1161aa 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to right, black, transparent 90%);
}
.hero-grid { position: relative; min-height: 685px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 60px; padding: 74px 0 86px; }
.hero-copy { position: relative; z-index: 2; }
.hero .eyebrow { color: #79c7ff; }
.hero .eyebrow::before { background: #79c7ff; }
.hero h1 span { color: #73c4ff; }
.hero-copy > p { max-width: 640px; color: rgba(255,255,255,.78); font-size: 1.17rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin: 33px 0 34px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 23px; color: rgba(255,255,255,.83); font-size: .9rem; }
.hero-proof span { display: flex; align-items: center; gap: 8px; }
.hero-proof span::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--navy); background: #78c9ff; font-weight: 900; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 470px; }
.hero-shield { width: min(100%, 475px); filter: drop-shadow(0 35px 55px rgba(0,0,0,.32)); animation: float 5s ease-in-out infinite; }
.case-card {
  position: absolute;
  right: 0;
  bottom: 28px;
  width: 235px;
  padding: 19px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  background: rgba(5, 5, 50, .72);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 44px rgba(0,0,0,.23);
}
.case-card strong { display: block; margin-bottom: 5px; font-size: 1.12rem; }
.case-card small { color: rgba(255,255,255,.68); }
@keyframes float { 50% { transform: translateY(-12px); } }

.trust-strip { position: relative; z-index: 4; margin-top: -39px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 20px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.trust-item { padding: 24px; border-right: 1px solid var(--line); }
.trust-item:last-child { border: 0; }
.trust-item strong { display: block; color: var(--navy); font-size: 1.05rem; }
.trust-item span { color: var(--muted); font-size: .87rem; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  position: relative;
  min-height: 292px;
  padding: 29px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(4, 23, 66, .06);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-7px); border-color: #9fcff4; box-shadow: var(--shadow); }
.service-num { color: #b6d9f5; font-size: .8rem; font-weight: 900; letter-spacing: .15em; }
.service-icon { display: grid; place-items: center; width: 55px; height: 55px; margin: 22px 0; border-radius: 17px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--navy)); font-size: 1.6rem; }
.service-card p { color: var(--muted); }
.service-card a { color: var(--blue); font-weight: 850; }

.assessment { color: #fff; background: var(--navy-2); }
.assessment-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: start; }
.assessment .eyebrow { color: #78c9ff; }
.assessment .eyebrow::before { background: #78c9ff; }
.assessment-copy p { color: rgba(255,255,255,.7); }
.assessment-box { padding: 32px; border: 1px solid rgba(255,255,255,.13); border-radius: 26px; background: rgba(255,255,255,.07); box-shadow: 0 30px 60px rgba(0,0,0,.2); }
.question { margin-bottom: 26px; }
.question > strong { display: block; margin-bottom: 13px; }
.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.option {
  min-height: 50px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 13px;
  color: #fff;
  background: rgba(255,255,255,.05);
  text-align: left;
}
.option:hover, .option.is-selected { border-color: #72c6ff; background: rgba(61,169,252,.19); }
.assessment-result { display: none; margin-top: 18px; padding: 17px; border-radius: 14px; color: #dff3ff; background: rgba(61,169,252,.14); }
.assessment-result.is-visible { display: block; }
.assessment-box .btn { width: 100%; border: 0; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: steps; }
.step { padding: 28px 24px; border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 60, .07); counter-increment: steps; }
.step::before { content: "0" counter(steps); display: block; margin-bottom: 36px; color: var(--blue); font-size: 1.75rem; font-weight: 900; }
.step p { margin-bottom: 0; color: var(--muted); font-size: .93rem; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 76px; align-items: center; }
.about-panel {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 32px;
  color: #fff;
  background: linear-gradient(145deg, var(--navy), var(--blue));
}
.about-panel::before { content: ""; position: absolute; width: 390px; height: 390px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.04), 0 0 0 140px rgba(255,255,255,.035); }
.about-mark { position: relative; text-align: center; }
.about-mark strong { display: block; font-size: clamp(4rem, 8vw, 7rem); line-height: 1; }
.about-mark span { color: #9fd8ff; font-weight: 850; }
.check-list { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 35px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: #fff; background: var(--blue); font-size: .75rem; font-weight: 900; }

.warning-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.warning { padding: 24px; border: 1px solid #e4e8f0; border-radius: 18px; background: #fff; }
.warning strong { display: block; margin-bottom: 7px; color: var(--navy); }
.warning p { margin: 0; color: var(--muted); font-size: .92rem; }

.faq-wrap { max-width: 880px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; display: flex; justify-content: space-between; gap: 22px; padding: 24px 0; border: 0; color: var(--ink); background: transparent; text-align: left; font-weight: 850; }
.faq-question::after { content: "+"; color: var(--blue); font-size: 1.5rem; line-height: 1; transition: .2s; }
.faq-item.is-open .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; color: var(--muted); transition: max-height .35s ease; }
.faq-answer p { padding: 0 44px 24px 0; margin: 0; }

.contact { color: #fff; background: linear-gradient(130deg, var(--navy-2), var(--navy)); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 65px; align-items: start; }
.contact .eyebrow { color: #7fcbff; }
.contact .eyebrow::before { background: #7fcbff; }
.contact-copy p, .contact-list { color: rgba(255,255,255,.7); }
.contact-list { display: grid; gap: 13px; padding: 0; list-style: none; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 30px; border: 1px solid rgba(255,255,255,.14); border-radius: 25px; background: rgba(255,255,255,.08); }
.field-full { grid-column: 1 / -1; }
.contact-form label { display: block; margin-bottom: 7px; font-size: .8rem; font-weight: 800; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; color: #fff; background: rgba(0,0,0,.18); outline: none; }
.contact-form textarea { min-height: 105px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: #75c7ff; }
.contact-form select option { color: var(--ink); }
.contact-note { grid-column: 1 / -1; margin: 0; color: rgba(255,255,255,.58); font-size: .76rem; }

.site-footer { padding: 49px 0 28px; color: rgba(255,255,255,.68); background: #05051d; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 55px; }
.footer-brand img { width: 190px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-grid h3 { color: #fff; font-size: 1rem; }
.footer-links { display: grid; gap: 8px; font-size: .9rem; }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .77rem; }
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; color: #fff; background: #20c76a; box-shadow: 0 15px 35px rgba(20,160,84,.35); font-size: 1.65rem; font-weight: 900; }
.entry-wrap { min-height: 60vh; padding: 80px 0; }
.entry-content { max-width: 820px; margin: auto; }
.entry-content a { color: var(--blue); text-decoration: underline; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .site-nav { position: fixed; inset: 82px 0 auto 0; display: grid; gap: 0; padding: 18px 20px 28px; background: #fff; box-shadow: 0 25px 40px rgba(0,0,60,.15); transform: translateY(-130%); opacity: 0; pointer-events: none; transition: .3s; }
  .site-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 13px 8px; }
  .site-nav .btn { margin-top: 8px; }
  .hero-grid, .assessment-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 67px; gap: 18px; }
  .hero-visual { min-height: 370px; }
  .hero-shield { width: 375px; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .process-grid, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1160px); }
  .section { padding: 72px 0; }
  .brand img { width: 154px; }
  .header-inner { min-height: 72px; }
  .site-nav { top: 72px; }
  h1 { font-size: 2.7rem; }
  h2 { font-size: 2.1rem; }
  .hero-grid { min-height: auto; padding: 55px 0 79px; }
  .hero-visual { min-height: 300px; }
  .hero-shield { width: 290px; }
  .case-card { right: 0; bottom: 0; width: 200px; }
  .hero-actions .btn { width: 100%; }
  .trust-grid, .cards-3, .process-grid, .warning-grid, .option-grid, .contact-form { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
  .service-card { min-height: 0; }
  .assessment-box, .contact-form { padding: 22px; }
  .field-full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

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