/* Tamara Müller Advocacia - Mobile Ajustado */
:root{
  --bg:#CFE0C8;
  --bg-2:#DCE9D6;
  --bg-3:#EEF5EA;
  --texture:#C6D8BF;
  --olive:#26351F;
  --olive-2:#172114;
  --olive-soft:#5F7657;
  --gold:#D1A957;
  --gold-dark:#A77F37;
  --cream:#FCFCF8;
  --paper:#FFFFFF;
  --text:#1E211D;
  --muted:#677260;
  --line:rgba(38,53,31,.14);
  --shadow:0 24px 70px rgba(23,33,20,.12);
  --radius-lg:34px;
  --radius-md:24px;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:Inter,system-ui,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.65;
  overflow-x:hidden;
}
body.menu-open{overflow:hidden}
.container{width:min(1160px,calc(100% - 40px));margin:0 auto}

.header{
  position:fixed;
  inset:0 0 auto;
  height:82px;
  z-index:100;
  border-bottom:1px solid transparent;
  transition:.25s ease;
}
.header.scrolled{
  background:rgba(252,252,248,.95);
  backdrop-filter:blur(18px);
  border-color:var(--line);
}
.nav{
  height:82px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--text);
  min-width:0;
}
.brand-logo-img{
  width:54px;
  height:54px;
  border-radius:15px;
  object-fit:cover;
  flex:0 0 auto;
  box-shadow:0 10px 26px rgba(23,33,20,.14);
}
.brand span{min-width:0}
.brand b{
  display:block;
  font-weight:900;
  letter-spacing:-.03em;
  line-height:1.08;
  white-space:nowrap;
}
.brand small{
  display:block;
  color:var(--muted);
  font-size:.82rem;
  font-weight:600;
}

.menu{
  display:flex;
  align-items:center;
  gap:30px;
}
.menu a{
  text-decoration:none;
  color:rgba(30,33,29,.72);
  font-weight:800;
  font-size:.92rem;
  transition:.2s ease;
}
.menu a:hover{color:var(--olive)}
.menu-contact{
  padding:11px 18px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.6);
}

.menu-button{
  display:none;
  width:50px;
  height:50px;
  border-radius:50%;
  border:1px solid var(--line);
  background:var(--paper);
  box-shadow:0 10px 26px rgba(23,33,20,.1);
  flex:0 0 auto;
}
.menu-button span{
  display:block;
  width:18px;
  height:2px;
  background:var(--olive);
  margin:5px auto;
}

.hero{
  min-height:790px;
  position:relative;
  display:flex;
  align-items:center;
  padding:146px 0 96px;
}
.hero-background{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 82% 18%,rgba(255,255,255,.42),transparent 32%),
    linear-gradient(135deg,#CFE0C8 0%,#DCE9D6 52%,#EEF5EA 100%);
  z-index:-2;
}
.hero-background::after{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(38,53,31,.05) 1px,transparent 1px),
    linear-gradient(90deg,rgba(38,53,31,.05) 1px,transparent 1px);
  background-size:70px 70px;
  mask-image:linear-gradient(to bottom,#000,transparent 84%);
}

.hero-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:76px;
  align-items:center;
}
.eyebrow{
  color:var(--olive);
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:.76rem;
  font-weight:900;
  margin-bottom:18px;
}
h1,h2{
  font-family:'Playfair Display',serif;
  line-height:1.02;
  letter-spacing:-.045em;
}
h1{font-size:clamp(3.1rem,6.3vw,6rem);max-width:860px}
h2{font-size:clamp(2.25rem,4.1vw,4rem)}
.hero-description{
  max-width:700px;
  margin-top:28px;
  color:rgba(30,33,29,.72);
  font-size:1.16rem;
}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:38px}
.button{
  min-height:54px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 25px;
  border-radius:999px;
  text-decoration:none;
  font-weight:900;
  transition:.25s ease;
}
.button:hover{transform:translateY(-2px)}
.button-primary{
  background:var(--olive);
  color:white;
  box-shadow:0 16px 40px rgba(38,53,31,.22);
}
.button-secondary{
  background:rgba(255,255,255,.68);
  border:1px solid var(--line);
  color:var(--olive);
}
.button-light{
  background:var(--gold);
  color:var(--olive-2);
  margin-top:34px;
}

.hero-points{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  max-width:760px;
  gap:18px;
  margin-top:56px;
}
.hero-points div{
  padding-top:18px;
  border-top:1px solid rgba(38,53,31,.2);
}
.hero-points strong{
  display:block;
  color:var(--olive);
  font-family:'Playfair Display',serif;
  font-size:1.36rem;
}
.hero-points span{
  display:block;
  color:rgba(30,33,29,.68);
  font-size:.9rem;
  font-weight:700;
}

.profile-panel{position:relative}
.photo-frame{
  position:relative;
  border-radius:42px;
  padding:14px;
  background:rgba(255,255,255,.64);
  border:1px solid rgba(255,255,255,.75);
  box-shadow:var(--shadow);
  backdrop-filter:blur(18px);
}
.photo-frame::before{
  content:"";
  position:absolute;
  inset:28px -18px -18px 46px;
  border-radius:40px;
  border:1px solid rgba(38,53,31,.24);
  z-index:-1;
}
.photo-frame img{
  width:100%;
  aspect-ratio:4/5;
  display:block;
  object-fit:cover;
  object-position:center top;
  border-radius:32px;
}
.profile-card{
  position:absolute;
  left:-24px;
  right:34px;
  bottom:26px;
  background:rgba(23,33,20,.94);
  color:white;
  border-radius:24px;
  padding:24px;
  border:1px solid rgba(255,255,255,.1);
  backdrop-filter:blur(16px);
}
.profile-card span{
  display:block;
  color:var(--gold);
  font-size:.76rem;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-weight:900;
  margin-bottom:6px;
}
.profile-card strong{
  font-family:'Playfair Display',serif;
  display:block;
  font-size:1.7rem;
  letter-spacing:-.03em;
}
.profile-card p{
  color:rgba(255,255,255,.72);
  font-size:.92rem;
  margin-top:4px;
}

.section{
  padding:104px 0;
  background:var(--cream);
}
.section.soft{
  background:var(--bg-2);
}
.split,.timeline-layout,.competencies{
  display:grid;
  grid-template-columns:.88fr 1.12fr;
  gap:78px;
  align-items:start;
}
.content-text p{
  color:var(--muted);
  font-size:1.07rem;
  margin-bottom:22px;
}
.center-title{
  text-align:center;
  max-width:800px;
  margin:0 auto 50px;
}
.center-title p:last-child{
  color:var(--muted);
  margin-top:16px;
}

.cards-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.service-card{
  min-height:238px;
  background:var(--paper);
  border:1px solid rgba(38,53,31,.12);
  border-radius:var(--radius-md);
  padding:34px;
  box-shadow:0 18px 60px rgba(42,34,24,.055);
  transition:.25s ease;
}
.service-card:hover{transform:translateY(-6px)}
.service-card h3{
  margin-bottom:14px;
  font-size:1.25rem;
  color:var(--olive);
}
.service-card p{color:var(--muted)}

.timeline{
  background:var(--paper);
  border:1px solid rgba(38,53,31,.14);
  border-radius:var(--radius-lg);
  padding:18px;
  box-shadow:var(--shadow);
}
.timeline-item{
  padding:28px;
  border-bottom:1px solid rgba(38,53,31,.12);
}
.timeline-item:last-child{border-bottom:0}
.timeline-item h3{color:var(--olive)}
.timeline-item p{
  color:var(--muted);
  margin-top:6px;
}

.quote-section{
  padding:92px 0;
  background:
    radial-gradient(circle at 80% 20%,rgba(209,169,87,.24),transparent 32%),
    var(--olive);
  color:white;
}
.quote-section p{
  max-width:1040px;
  font-family:'Playfair Display',serif;
  font-size:clamp(2rem,4vw,4rem);
  line-height:1.08;
  letter-spacing:-.045em;
}

.competency-list{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}
.competency-list div{
  background:var(--paper);
  border:1px solid rgba(38,53,31,.12);
  border-radius:18px;
  padding:20px 22px;
  font-weight:900;
  color:var(--olive);
}

.contact{
  padding:106px 0;
  background:var(--bg);
}
.contact-card{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:42px;
  text-align:left;
  align-items:start;
  color:white;
  border-radius:44px;
  padding:58px;
  background:
    radial-gradient(circle at 86% 16%,rgba(209,169,87,.26),transparent 28%),
    var(--olive);
  box-shadow:0 32px 90px rgba(23,33,20,.22);
}
.contact-copy h2{
  margin:0;
  color:white;
}
.contact-copy p{
  max-width:690px;
  margin:22px 0 0;
  color:rgba(255,255,255,.72);
}
.contact .eyebrow{color:var(--gold)}

.contact-form{
  background:rgba(255,255,255,.97);
  color:var(--text);
  border-radius:28px;
  padding:28px;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 24px 70px rgba(0,0,0,.12);
}
.form-row{
  display:grid;
  gap:8px;
  margin-bottom:16px;
}
.two-columns{
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.contact-form label{
  color:var(--olive);
  font-size:.86rem;
  font-weight:900;
}
.contact-form input,.contact-form textarea{
  width:100%;
  border:1px solid rgba(38,53,31,.15);
  border-radius:16px;
  background:#fbf9f0;
  padding:15px 16px;
  font:inherit;
  color:var(--text);
  outline:none;
  transition:.2s ease;
}
.contact-form input:focus,.contact-form textarea:focus{
  border-color:var(--gold);
  background:#fff;
  box-shadow:0 0 0 4px rgba(209,169,87,.16);
}
.contact-form textarea{resize:vertical}
.form-button{
  border:0;
  cursor:pointer;
  background:var(--olive);
  color:#fff;
  width:100%;
  margin-top:6px;
}
.form-alert{
  border-radius:16px;
  padding:14px 16px;
  margin-bottom:16px;
  font-weight:900;
  font-size:.92rem;
}
.form-alert.success{background:#ecf7ef;color:#226634}
.form-alert.error{background:#fff0ef;color:#9c2d24}
.honeypot{
  position:absolute;
  left:-9999px;
  opacity:0;
}

.footer{
  padding:42px 0;
  border-top:1px solid rgba(38,53,31,.16);
  color:rgba(30,33,29,.7);
  background:var(--cream);
}
.footer-content{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:30px;
}
.footer-brand{
  display:flex;
  align-items:center;
  gap:16px;
}
.footer-brand img{
  width:72px;
  height:72px;
  border-radius:18px;
  object-fit:cover;
  flex:0 0 auto;
}
.footer strong{
  color:var(--olive);
  display:block;
  font-size:1.05rem;
}
.footer-meta{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:14px;
}
.footer-whatsapp{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 22px;
  border-radius:999px;
  background:var(--olive);
  color:white;
  text-decoration:none;
  font-weight:900;
}

.reveal{
  opacity:0;
  transform:translateY(24px);
  transition:.75s ease;
}
.reveal.visible{
  opacity:1;
  transform:translateY(0);
}

@media(max-width:930px){
  .menu-button{display:block}
  .menu{
    display:none;
    position:fixed;
    inset:92px 18px auto;
    background:rgba(255,255,255,.97);
    border:1px solid var(--line);
    border-radius:24px;
    box-shadow:var(--shadow);
    padding:24px;
    flex-direction:column;
    align-items:stretch;
  }
  .menu.active{display:flex}
  .hero-grid,.split,.timeline-layout,.competencies,.contact-card{
    grid-template-columns:1fr;
    gap:46px;
  }
  .cards-grid{grid-template-columns:1fr 1fr}
  .hero{
    min-height:auto;
    padding-top:130px;
  }
  .hero-points{grid-template-columns:1fr}
  .profile-card{
    left:20px;
    right:20px;
  }
}

@media(max-width:640px){
  .container{
    width:min(100% - 28px,1160px);
  }

  .header{
    height:78px;
  }

  .nav{
    height:78px;
    gap:10px;
  }

  .brand{
    gap:10px;
    max-width:calc(100% - 60px);
  }

  .brand-logo-img{
    width:48px;
    height:48px;
    border-radius:13px;
  }

  .brand b{
    font-size:1.05rem;
    max-width:185px;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .brand small{
    font-size:.82rem;
  }

  .menu-button{
    width:48px;
    height:48px;
  }

  .menu{
    inset:86px 14px auto;
  }

  h1{
    font-size:2.78rem;
  }

  h2{
    font-size:2.22rem;
  }

  .hero{
    padding-top:116px;
    padding-bottom:70px;
  }

  .section,.contact{
    padding:72px 0;
  }

  .cards-grid,.competency-list,.two-columns{
    grid-template-columns:1fr;
  }

  .profile-card{
    position:static;
    margin-top:14px;
  }

  .photo-frame img{
    aspect-ratio:1 / 1.12;
  }

  .contact-card{
    padding:34px 18px;
    border-radius:30px;
  }

  .contact-form{
    padding:22px;
    border-radius:24px;
  }

  .footer{
    padding:34px 0 44px;
  }

  .footer-content{
    flex-direction:column;
    align-items:flex-start;
  }

  .footer-brand{
    align-items:flex-start;
  }

  .footer-brand img{
    width:74px;
    height:74px;
    border-radius:18px;
  }

  .footer-meta{
    align-items:flex-start;
    width:100%;
  }

  .footer-whatsapp{
    width:100%;
  }
}
