/* =========================================================
   JP CONTABLE FISCAL — HOJA DE ESTILOS
   Estética: Editorial profesional · serif elegante + dorado
   ========================================================= */

:root {
  /* Paleta extraída del logo */
  --navy-900: #0f1d3a;
  --navy-800: #162a52;
  --navy-700: #1f3666;
  --navy-50:  #f4f6fb;

  --gold-500: #d4a72c;
  --gold-400: #e8b830;
  --gold-100: #fbf3d9;

  --ink:      #0a0f1f;
  --ink-mid:  #475064;
  --ink-soft: #6b7488;

  --paper:    #fbfaf6;
  --paper-2:  #f5f2ea;
  --line:     #e5e0d3;

  --green-wa: #25d366;
  --green-wa-dark: #128c7e;

  /* Tipografía */
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Espaciado */
  --container: 1200px;
  --radius: 4px;

  /* Transiciones */
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

/* =========================================================
   TIPOGRAFÍA
   ========================================================= */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 1.25rem;
}
.eyebrow-light { color: var(--gold-400); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--navy-700);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 1.5rem;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--ink-mid);
  max-width: 65ch;
}
.section-head { margin-bottom: 4rem; max-width: 720px; }

/* =========================================================
   BOTONES
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-wa);
  color: white;
  box-shadow: 0 6px 20px -8px rgba(37, 211, 102, 0.6);
}
.btn-primary:hover {
  background: var(--green-wa-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -8px rgba(18, 140, 126, 0.7);
}
.btn-ghost {
  color: var(--navy-800);
  border-bottom: 1px solid var(--navy-800);
  border-radius: 0;
  padding: 0.5rem 0;
}
.btn-ghost:hover { color: var(--gold-500); border-bottom-color: var(--gold-500); }
.btn-lg { padding: 1.1rem 2rem; font-size: 1rem; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.brand-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1;
  color: var(--navy-800);
  letter-spacing: -0.04em;
  position: relative;
  padding-right: 0.85rem;
}
.brand-mark::after {
  content: "";
  position: absolute;
  right: 0; top: 8%; bottom: 8%;
  width: 1px;
  background: var(--gold-500);
}
.brand-mark-sm { font-size: 1.6rem; }
.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--navy-800);
  font-weight: 500;
}

.nav-desktop {
  display: flex;
  gap: 2.4rem;
}
.nav-desktop a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-mid);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s var(--ease);
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold-500);
  transition: width 0.4s var(--ease);
}
.nav-desktop a:hover { color: var(--ink); }
.nav-desktop a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 1.5px;
  background: var(--navy-800);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 2rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.nav-mobile a {
  padding: 1rem 0;
  font-size: 1.1rem;
  font-family: var(--font-display);
  border-bottom: 1px solid var(--line);
  color: var(--navy-800);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(5rem, 12vw, 10rem) 0 clamp(4rem, 10vw, 8rem);
  overflow: hidden;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}
.hero-bg-shape {
  position: absolute;
  top: -10%;
  right: -15%;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(232, 184, 48, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  content: "JP";
  position: absolute;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20rem, 40vw, 36rem);
  line-height: 0.8;
  color: var(--navy-800);
  opacity: 0.04;
  bottom: -8%;
  right: -3%;
  letter-spacing: -0.05em;
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
  animation: fadeUp 1s var(--ease) both;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  line-height: 1;
  margin-bottom: 1.75rem;
  letter-spacing: -0.025em;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-mid);
  max-width: 58ch;
  margin-bottom: 2.5rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2rem;
}

/* =========================================================
   STRIP DE NÚMEROS
   ========================================================= */
.strip {
  background: var(--navy-900);
  color: white;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  position: relative;
}
.strip::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}
.strip-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-inline: 1rem;
}
.strip-item:first-child { border-left: none; }
.strip-num {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 500;
  color: var(--gold-400);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.strip-label {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
  text-transform: lowercase;
}

/* =========================================================
   SERVICIOS
   ========================================================= */
.services {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--paper);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--paper);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: background 0.4s var(--ease);
  position: relative;
}
.service-card:hover {
  background: var(--paper-2);
}
.service-card:hover .service-num {
  color: var(--gold-500);
  letter-spacing: 0.04em;
}
.service-card-wide { grid-column: span 1; }
.service-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--navy-700);
  transition: all 0.4s var(--ease);
}
.service-title {
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--navy-800);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.service-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.95rem;
  color: var(--ink-mid);
  line-height: 1.55;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 8px; height: 1px;
  background: var(--gold-500);
}

/* =========================================================
   NOSOTROS
   ========================================================= */
.about {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--paper-2);
  position: relative;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.about-text p {
  font-size: 1.05rem;
  color: var(--ink-mid);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.about-text p strong { color: var(--ink); font-weight: 500; }

.pullquote {
  margin-top: 2.5rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--gold-500);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--navy-800);
}

.team {
  display: grid;
  gap: 1.25rem;
}
.team-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgba(15, 29, 58, 0.2);
}
.team-avatar {
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  background: var(--navy-800);
  color: var(--gold-400);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 50%;
  flex-shrink: 0;
}
.team-card h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}
.team-role {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.team-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy-700);
  border-bottom: 1px dotted var(--gold-500);
  display: inline-block;
}
.team-link:hover { color: var(--gold-500); }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--paper);
}
.contact-card {
  position: relative;
  background: var(--navy-900);
  color: white;
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius);
  overflow: hidden;
}
.contact-decor {
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232, 184, 48, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.contact-card > * { position: relative; z-index: 1; }

.contact-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: white;
  margin-bottom: 1rem;
  max-width: 20ch;
}
.contact-title em { color: var(--gold-400); }
.contact-lead {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 50ch;
  margin-bottom: 2.5rem;
}
.contact-actions { margin-bottom: 3rem; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.contact-grid > div {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contact-grid a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  transition: color 0.3s var(--ease);
}
.contact-grid a[href]:hover { color: var(--gold-400); }
.contact-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.6);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.site-footer .brand-mark { color: var(--gold-400); }
.site-footer .brand-mark::after { background: rgba(232, 184, 48, 0.4); }
.footer-copy {
  font-size: 0.82rem;
  margin-top: 0.6rem;
}
.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s var(--ease);
}
.footer-nav a:hover { color: var(--gold-400); }

/* =========================================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================================= */
.whatsapp-float {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  width: 60px; height: 60px;
  display: grid;
  place-items: center;
  background: var(--green-wa);
  color: white;
  border-radius: 50%;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.55), 0 4px 8px rgba(0,0,0,0.12);
  z-index: 100;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 15px 35px -8px rgba(37, 211, 102, 0.7), 0 6px 12px rgba(0,0,0,0.15);
}
.wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green-wa);
  animation: pulse 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0;   }
}

/* =========================================================
   ANIMACIONES
   ========================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   AVISO DE PRIVACIDAD (página interna)
   ========================================================= */
.legal-page {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--paper);
}
.legal-content {
  max-width: 760px;
  margin-inline: auto;
}
.legal-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}
.legal-content .updated {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--navy-800);
}
.legal-content p, .legal-content li {
  font-size: 1rem;
  color: var(--ink-mid);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.legal-content ul {
  padding-left: 1.5rem;
  list-style: disc;
  margin-bottom: 1.5rem;
}
.legal-content ul li { padding-left: 0.5rem; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .strip-item { border-left: none; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; }
  .strip-item:first-child { border-top: none; padding-top: 0; }
}

@media (max-width: 720px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  body.nav-open .nav-mobile { display: flex; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .brand-text { display: none; }
  .hero-title { font-size: clamp(2.2rem, 9vw, 3.5rem); }
  .service-card { padding: 2rem 1.5rem; }
  .team-card { grid-template-columns: 1fr; text-align: center; }
  .team-avatar { margin-inline: auto; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}
