/* style.css — Página web de abogada Christine
   ================================================================ */

/* ----------------------------------------------------------------
   1. CSS VARIABLES (edit these to restyle the entire site)
   ---------------------------------------------------------------- */

:root {
  --color-black:   #0a0a0a;
  --color-white:   #fafaf7;
  --color-beige:   #f0ead8;
  --color-beige-2: #e8dfc8;
  --color-accent:  #b8a882;
  --color-text:    #1a1a1a;
  --color-muted:   #0c0b0a;

  --font-display: 'Cormorant Garant', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --nav-height:      76px;
  --section-padding: clamp(80px, 10vw, 130px);
  --max-width:       1160px;
  --card-radius:     2px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}


/* ----------------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* ----------------------------------------------------------------
   3. TYPOGRAPHY HELPERS
   ---------------------------------------------------------------- */

.section-number {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--color-accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--color-black);
}

.section-header {
  margin-bottom: clamp(48px, 7vw, 80px);
}

.about .section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 100px);
}

.about .section-header > * {
  grid-column: 2;
}

@media (max-width: 900px) {
  .about .section-header {
    display: block;
  }
}

p {
  text-align: justify;
}

/* ----------------------------------------------------------------
   4. HEADER & NAVIGATION
   ---------------------------------------------------------------- */

#header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

#header.scrolled {
  background-color: rgba(250, 250, 247, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.07);
}

#header.menu-open {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-black);
  transition: color 0.2s;
}

.logo-img {
  filter: contrast(1.1);
}

.logo:hover .logo-text {
  color: var(--color-accent);
}

.logo-img {
  height: 72px;
  width: auto;
}

.logo-brand {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--color-black);
  white-space: nowrap;
  transition: color 0.2s;
}

.logo:hover .logo-brand {
  color: var(--color-accent);
}

@media (max-width: 640px) {
  .logo-brand { display: none; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--color-accent);
  transition: width 0.3s var(--ease);
}

.nav-link:hover {
  color: var(--color-black);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.hamburger span {
  display: block;
  height: 1px;
  background: var(--color-black);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-white);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mobile-link {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  font-weight: 300;
  color: var(--color-black);
  letter-spacing: -0.01em;
  padding: 10px 20px;
  display: block;
  transition: color 0.2s, transform 0.2s;
}

.mobile-link:hover {
  color: var(--color-accent);
  transform: translateX(8px);
}


/* ----------------------------------------------------------------
   5. BUTTONS
   ---------------------------------------------------------------- */

.btn-primary {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-white);
  background: var(--color-black);
  border: 1px solid var(--color-black);
  padding: 14px 36px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  background: transparent;
  color: var(--color-black);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-black);
  background: transparent;
  border: 1px solid var(--color-black);
  padding: 14px 36px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.2s;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--color-black);
  color: var(--color-white);
  transform: translateY(-2px);
}


/* ----------------------------------------------------------------
   6. HERO SECTION
   ---------------------------------------------------------------- */

.hero {
  min-height: 100vh;
  padding-top: var(--nav-height);
  background-color: var(--color-beige);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  position: relative;
  overflow: hidden;
}

.hero-rule {
  position: absolute;
  left: 50%;
  top: var(--nav-height);
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--color-accent) 20%, var(--color-accent) 80%, transparent);
  opacity: 0.35;
  pointer-events: none;
}

.hero-content {
  padding: clamp(60px, 10vw, 120px) clamp(24px, 6vw, 80px) clamp(60px, 10vw, 120px) clamp(24px, 6vw, 80px);
  max-width: 600px;
  animation: fadeUp 0.9s var(--ease) both;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 20px;
  font-weight: 400;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--color-black);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 0.95rem;
  color: var(--color-muted);
  max-width: 420px;
  margin-bottom: 40px;
  line-height: 1.75;
}

.hero-image-wrapper {
  height: 100%;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  animation: fadeIn 1.1s var(--ease) 0.2s both;
}

.hero-img-placeholder {
  width: 100%;
  background: linear-gradient(160deg, var(--color-beige-2) 0%, var(--color-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.hero-img-placeholder span {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: rgba(10,10,10,0.35);
  letter-spacing: 0.05em;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero {
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 35%;
  left: 75%;
  transform: translate(-50%, -50%);

  width: clamp(300px, 36vw, 520px);
  height: clamp(300px, 36vw, 520px);

  background-image: url("logo-abogada2.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;

  opacity: 0.07;
  pointer-events: none;
}

/* ----------------------------------------------------------------
   7. ABOUT SECTION
   ---------------------------------------------------------------- */

.about {
  background: var(--color-white);
  padding: var(--section-padding) clamp(24px, 6vw, 80px);
}

.about > *,
.about-grid {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 100px);
  align-items: start;
}
.about-watermark {
  position: relative;
  min-height: 320px;
}

.about-watermark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(200px, 28vw, 360px);
  height: clamp(200px, 28vw, 360px);
  background-image: url("logo-abogada2.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.27;
  pointer-events: none;
}

/* Hide watermark column on tablet/mobile — single column layout */
@media (max-width: 900px) {
  .about-watermark { display: none; }
}

.about-heading {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  color: var(--color-black);
}

.about-bio p {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.85;
  margin-bottom: 18px;
}

.credential-block {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--color-beige-2);
}

.credential-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.credential-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.credential-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.credential-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.credential-list strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--color-black);
}

.credential-list span {
  font-size: 0.82rem;
  color: var(--color-muted);
  letter-spacing: 0.03em;
}


/* ----------------------------------------------------------------
   8. SERVICES SECTION
   ---------------------------------------------------------------- */

.services {
  background: var(--color-black);
  padding: var(--section-padding) clamp(24px, 6vw, 80px);
}

.services > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.services .section-title {
  color: var(--color-beige);
}

.services .section-number {

}

.services-intro {
  font-size: 0.95rem;
  color: var(--color-accent);
  letter-spacing: 0.03em;
  margin-bottom: clamp(48px, 7vw, 80px);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.07);
}

.service-card {
  background: var(--color-black);
  padding: clamp(36px, 5vw, 52px) clamp(28px, 4vw, 44px);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--color-accent);
  transition: width 0.4s var(--ease);
}

.service-card:hover {
  background: #111;
  transform: translateY(-4px);
}

.service-card:hover::before {
  width: 100%;
}

.service-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 20px;
  filter: grayscale(0.3);
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-beige);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.service-desc {
  font-size: 0.88rem;
  color: rgba(240,234,216,0.55);
  line-height: 1.8;
}


/* ----------------------------------------------------------------
   9. CONTACT SECTION
   ---------------------------------------------------------------- */

.contact {
  background: var(--color-beige);
  padding: var(--section-padding) clamp(24px, 6vw, 80px);
}

.contact > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.contact-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 100px);
  align-items: start;
}

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--color-black);
}

.contact-intro p {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.85;
  max-width: 380px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--color-beige-2);
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-beige-2);
  transition: padding-left 0.3s var(--ease);
}

a.contact-item:hover {
  padding-left: 8px;
}

.contact-item-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #121210;
  font-weight: 400;
}

.contact-item-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--color-black);
  line-height: 1.5;
}


/* ----------------------------------------------------------------
   10. FOOTER
   ---------------------------------------------------------------- */

.footer {
  background: var(--color-black);
  color: rgba(240,234,216,0.45);
  padding: 36px clamp(24px, 6vw, 80px);
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  line-height: 1.9;
}

.footer-disclaimer {
  font-size: 0.72rem;
  margin-top: 4px;
  opacity: 0.55;
}

.footer p {
  text-align: center;
}

.footer-dev {
  font-size: 0.7rem;
  opacity: 0.6;
  margin-top: 6px;
}

.footer-dev a {
  color: inherit;
  text-decoration: none;
}

.footer-dev a:hover {
  opacity: 1;
  text-decoration: underline;
}

.dev-bar {
  background: var(--color-black);
  color: rgba(240, 234, 216, 0.45);
  text-align: left;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 4px clamp(24px, 6vw, 80px);
  margin-top: 1px;
}

.dev-bar a {
  color: inherit;
  text-decoration: underline;
}

.dev-bar a:hover {
  opacity: 0.8;
}
/* ----------------------------------------------------------------
   11. WHATSAPP FLOATING BUTTON
   ---------------------------------------------------------------- */

   .whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.38);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.whatsapp-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn svg {
  width: 30px;
  height: 30px;
  fill: #ffffff;
}


/* ----------------------------------------------------------------
   12. ANIMATIONS
   ---------------------------------------------------------------- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ----------------------------------------------------------------
   13. RESPONSIVE — TABLET (max 900px)
   ---------------------------------------------------------------- */

@media (max-width: 900px) {

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero::before {
    left: 50%;
    width: clamp(220px, 55vw, 380px);
    height: clamp(220px, 55vw, 380px);
    opacity: 0.07;
  }

  .hero-rule { display: none; }

  .hero-content {
    padding: 80px clamp(24px, 6vw, 48px) 48px;
    max-width: 100%;
  }

  .hero-image-wrapper {
    min-height: 55vw;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}


/* ----------------------------------------------------------------
   14. RESPONSIVE — MOBILE (max 640px)
   ---------------------------------------------------------------- */

@media (max-width: 640px) {

  .hamburger { display: flex; }
  .nav-links  { display: none; }
  .mobile-menu { display: flex; }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-img-placeholder {
    min-height: 260px;
  }
}