:root {
  color-scheme: light;
  --bg: #efe5d6;
  --bg-alt: #f6efe5;
  --gold: #9f7a3b;
  --stone: #4c4a45;
  --ink: #1f1c17;
  --muted: #6f6b64;
  --accent: #3b4c54;
  --glow: rgba(159, 122, 59, 0.2);
  --shadow: rgba(29, 25, 20, 0.18);
  --radius: 20px;
  --font-serif: "Playfair Display", "Times New Roman", serif;
  --font-sans: "Montserrat", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(
    circle at 140px 70px,
    #f2f1ed 0%,
    #e2ded6 42%,
    #d5d0c6 72%,
    #c9c4bb 100%
  );
  color: var(--ink);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 28px 80px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 20px;
  min-height: 120px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: transparent;
  border-bottom: 1px solid transparent;
}

.site-header::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 6px;
  height: 120px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(245, 242, 236, 0.95), rgba(230, 226, 218, 0.8));
  box-shadow: 0 18px 40px rgba(30, 26, 21, 0.2);
  border: 1px solid rgba(159, 122, 59, 0.18);
  z-index: -1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 150px;
  animation: logo-glow 2s ease-in-out infinite;
}

.nav {
  display: flex;
  gap: 24px;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

.cta-button,
.ghost-button {
  font-family: var(--font-sans);
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 15px 28px;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.cta-number {
  margin-left: 10px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.cta-button {
  background: linear-gradient(120deg, #b8934c, #e1c48a);
  color: #101215;
  box-shadow: 0 12px 24px rgba(200, 167, 103, 0.2);
}

.site-header .cta-button {
  animation: cta-buzz 3s ease-in-out infinite;
}

.ghost-button {
  background: transparent;
  border-color: rgba(159, 122, 59, 0.6);
  color: var(--accent);
}

.cta-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  padding: 70px 0 48px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  left: -10%;
  top: -40px;
  width: 520px;
  height: 300px;
  background: radial-gradient(circle at 30% 40%, rgba(159, 122, 59, 0.28), transparent 70%);
  opacity: 0.9;
  animation: hero-pan 16s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 16px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 600;
}

h1 {
  font-size: clamp(2.9rem, 4.5vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.hero-rotate {
  display: inline-block;
  color: var(--gold);
  min-width: 180px;
}

.hero-subtitle {
  color: #413d36;
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 480px;
}

.hero-location {
  margin-top: 10px;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-contact {
  margin-top: 18px;
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--stone);
}

.hero-contact a {
  font-weight: 600;
}

.hero-metrics {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hero-metrics span {
  font-size: 1.4rem;
  color: var(--gold);
  display: block;
}

.hero-metrics small {
  color: #5e5a52;
  font-size: 0.85rem;
}

.hero-card {
  position: relative;
  padding: 28px;
  border-radius: 40px 24px 24px 40px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.65), rgba(247, 240, 229, 0.75));
  box-shadow: 0 18px 36px rgba(31, 26, 20, 0.12);
  border: 1px solid rgba(159, 122, 59, 0.18);
  overflow: hidden;
}

.hero-card h3 {
  font-size: 1.55rem;
  margin-bottom: 18px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #3f3b35;
}

.hero-card ul {
  list-style: none;
  display: grid;
  gap: 14px;
  color: #4c4a45;
  margin-bottom: 24px;
}

.hero-card li {
  position: relative;
  padding-left: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.hero-card-note {
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(159, 122, 59, 0.4);
  background: rgba(159, 122, 59, 0.12);
  position: relative;
  overflow: hidden;
}

.hero-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff4c2 0%, #f2c14d 45%, #c9921c 70%);
  box-shadow: 0 0 14px rgba(225, 186, 112, 1);
  margin-right: 10px;
  flex-shrink: 0;
  animation: glow-pulse 2.4s ease-in-out infinite;
}

.hero-plus {
  font-size: 1.2em;
  margin-right: 4px;
}

.hero-card-note::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-120%);
  animation: shine-pass 2.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine-pass {
  0% {
    transform: translateX(-120%);
  }
  50% {
    transform: translateX(120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes glow-pulse {
  0% {
    box-shadow: 0 0 10px rgba(225, 186, 112, 0.75);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 26px rgba(225, 186, 112, 1);
    transform: scale(1.25);
  }
  100% {
    box-shadow: 0 0 10px rgba(225, 186, 112, 0.75);
    transform: scale(1);
  }
}

.hero-card-line {
  height: 1px;
  background: linear-gradient(90deg, rgba(159, 122, 59, 0.6), transparent);
  margin-bottom: 18px;
}

.hero-card-glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(159, 122, 59, 0.25), transparent 70%);
}

.section {
  padding: 70px 0 20px;
  scroll-margin-top: 140px;
}

.cta-strip {
  margin: 20px 0 10px;
  padding: 26px 28px;
  border-radius: 32px;
  background: linear-gradient(120deg, rgba(59, 76, 84, 0.12), rgba(255, 255, 255, 0.6));
  border: 1px solid rgba(59, 76, 84, 0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.cta-strip p {
  color: var(--stone);
  max-width: 520px;
}

.cta-strip-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.section-header.split {
  align-items: center;
}

.section-intro {
  color: var(--stone);
  max-width: 360px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.panel {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid rgba(159, 122, 59, 0.12);
  box-shadow: 0 14px 32px rgba(31, 26, 20, 0.12);
  min-height: 180px;
}

.panel h3 {
  margin-bottom: 12px;
}

.panel p {
  color: #4f4b45;
  line-height: 1.5;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.service-list ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.service-list li {
  position: relative;
  padding-left: 16px;
  color: #4f4b45;
  line-height: 1.5;
}

.service-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
}

.service-accordion {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: start;
}

.service-list {
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-list summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #3f3b35;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.service-list:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(31, 26, 20, 0.16);
}

.service-list summary::-webkit-details-marker {
  display: none;
}

.service-list summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 1.2rem;
  color: var(--gold);
}

.service-list[open] summary::after {
  content: "–";
}

.service-emoji {
  font-size: 1.6rem;
  line-height: 1;
}

.service-icon {
  width: 210px;
  height: 210px;
  object-fit: contain;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 18px 34px rgba(31, 26, 20, 0.28));
  transform: scale(1.02);
  transition: transform 0.2s ease, filter 0.2s ease;
  animation: floaty 8s ease-in-out infinite;
}

.service-list:hover .service-icon {
  transform: scale(1.08);
  filter: drop-shadow(0 24px 42px rgba(31, 26, 20, 0.32));
}

@keyframes floaty {
  0% {
    transform: translateY(0) scale(1.02);
  }
  50% {
    transform: translateY(-6px) scale(1.02);
  }
  100% {
    transform: translateY(0) scale(1.02);
  }
}

@keyframes hero-pan {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(48px, 14px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes logo-glow {
  0% {
    filter: drop-shadow(0 0 0 rgba(159, 122, 59, 0));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(159, 122, 59, 0.9));
  }
  100% {
    filter: drop-shadow(0 0 0 rgba(159, 122, 59, 0));
  }
}

.service-title {
  text-align: center;
}

.service-list[open] .service-emoji,
.service-list[open] .service-icon {
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.2s ease, height 0.2s ease;
}

.service-list[open] summary {
  border-bottom: 1px solid rgba(159, 122, 59, 0.18);
}

.service-list ul,
.service-list .service-subtitle {
  padding: 0 16px 16px;
}

.service-list .service-subtitle {
  margin-top: 10px;
}

.service-subtitle {
  color: var(--stone);
  font-size: 0.95rem;
  margin-top: 6px;
}

.mission-grid {
  margin-top: 28px;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.mission-grid .mission-card {
  max-width: 780px;
  width: 100%;
  text-align: left;
}
.mission-header {
  margin-top: 40px;
  scroll-margin-top: 140px;
}

.mission-card p + p {
  margin-top: 12px;
}

.abogada-panel {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(200px, 1fr);
  gap: 28px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.8), rgba(246, 238, 226, 0.8));
  border: 1px solid rgba(159, 122, 59, 0.2);
  box-shadow: 0 18px 36px rgba(31, 26, 20, 0.12);
}

.abogada-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
  border: 2px solid rgba(159, 122, 59, 0.35);
  box-shadow: 0 14px 28px rgba(31, 26, 20, 0.18);
}

.abogada-info {
  display: grid;
  gap: 10px;
}

.abogada-title {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.75rem;
  color: var(--gold);
}

.abogada-name {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--ink);
}

@media (max-width: 900px) {
  .abogada-panel {
    grid-template-columns: 1fr;
  }
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(246, 238, 226, 0.75);
  border: 1px solid rgba(159, 122, 59, 0.12);
}

.timeline-item span {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold);
}

.team-grid .profile {
  text-align: center;
}

.profile-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: radial-gradient(circle at top, #e6d6c2, #cbb399);
  border: 1px solid rgba(159, 122, 59, 0.3);
}

.quote p {
  font-size: 1.05rem;
  font-style: italic;
}

.quote span {
  display: block;
  margin-top: 16px;
  color: var(--stone);
  font-size: 0.9rem;
}

.contact .contact-card {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(159, 122, 59, 0.18), rgba(242, 234, 222, 0.95));
  border: 1px solid rgba(159, 122, 59, 0.25);
  flex-wrap: wrap;
}

.contact-details {
  display: grid;
  gap: 8px;
  color: var(--stone);
  max-width: 320px;
}

.contact-details strong {
  color: var(--ink);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 900px) {
  .cta-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

.site-footer {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(159, 122, 59, 0.2);
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--stone);
  align-items: center;
  text-align: center;
}

.footer-credit {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
  justify-content: center;
  width: 100%;
  text-align: center;
}

.footer-credit-row {
  justify-self: center;
}

.footer-credit img {
  width: 110px;
  height: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(60px) scale(0.4);
  transition: opacity 1s ease, transform 1s ease, filter 1s ease;
  filter: blur(8px);
  transform-origin: top center;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    background: rgba(246, 238, 226, 0.7);
    border-radius: 18px;
    top: 0;
    backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.35);
  }

  .brand {
    width: auto;
    justify-content: flex-start;
    order: 1;
  }

  .brand img {
    margin: 0;
  }

  .nav {
    order: 3;
    flex-wrap: wrap;
    gap: 14px;
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .site-header .cta-button {
    order: 2;
    width: auto;
    padding: 12px 20px;
    font-size: 0.95rem;
    margin-left: auto;
    animation: cta-buzz 3s ease-in-out infinite;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-header .cta-button {
    justify-content: center;
  }

  .service-accordion {
    grid-template-columns: 1fr;
  }

  .section-header,
  .contact .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  z-index: 999;
  animation: whatsapp-buzz 3s ease-in-out infinite;
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.28));
}

@keyframes whatsapp-buzz {
  0%,
  78%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  82% {
    transform: translateY(-2px) rotate(-2deg) scale(1.06);
  }
  86% {
    transform: translateY(2px) rotate(2deg) scale(1.08);
  }
  90% {
    transform: translateY(-2px) rotate(-2deg) scale(1.08);
  }
  94% {
    transform: translateY(2px) rotate(2deg) scale(1.06);
  }
}

@keyframes cta-buzz {
  0%,
  78%,
  100% {
    transform: translateY(0);
  }
  82% {
    transform: translateY(-2px);
  }
  86% {
    transform: translateY(2px);
  }
  90% {
    transform: translateY(-2px);
  }
  94% {
    transform: translateY(2px);
  }
}

@media (max-width: 600px) {
  html {
    scroll-padding-top: 140px;
  }

  .section {
    scroll-margin-top: 160px;
  }

  #inicio {
    scroll-margin-top: 140px;
  }

  .page {
    padding: 20px 18px 60px;
  }

  .hero {
    padding: 50px 0 32px;
  }

  h1 {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .service-icon {
    width: 160px;
    height: 160px;
  }

  .hero::before,
  .service-icon,
  .whatsapp-float {
    animation: none;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
    filter: blur(6px);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }

  .cta-button,
  .ghost-button {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .service-icon,
  .hero-dot,
  .hero-card-note::after,
  .whatsapp-float {
    animation: none;
    transition: none;
  }
}
