:root{
  --navy:#0A2342;
  --gold:#B68B50;
  --muted:#6b7280;
  --bg:#fbfbfb;
  --maxw:1100px;
  --radius:12px;
}

*{box-sizing:border-box}
body{
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  margin:0;
  color:var(--navy);
  background:var(--bg);
  line-height:1.5;
}

.container{
  width:92%;
  max-width:var(--maxw);
  margin:0 auto;
}

/* Header */
.site-header{
  background:white;
  border-bottom:1px solid #e6e9ef;
  position:sticky;
  top:0;
  z-index:40;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 0;
}
.brand{
  display:flex;
  gap:12px;
  align-items:center;
  text-decoration:none;
  color:var(--navy);
}
.logo{
  width:72px;
  height:72px;
  min-width:72px;
  min-height:72px;
  border-radius:6px;
  background:#fff;
  border:1px solid rgba(10,34,66,.18);
  box-shadow:0 8px 20px rgba(7,32,58,0.08);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.logo-img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.firm-name{
  font-size:16px;
  margin:0;
  letter-spacing:0.2px;
}
.tagline{margin:2px 0 0; font-size:13px; color:var(--muted)}

/* Nav */
.main-nav ul{list-style:none; margin:0; padding:0; display:flex; gap:18px; align-items:center; flex-wrap:wrap;}
.main-nav a{color:var(--navy); text-decoration:none; font-size:15px}
.lang-toggle{
  background:transparent;
  border:1px solid var(--navy);
  color:var(--navy);
  padding:6px 10px;
  border-radius:6px;
  cursor:pointer;
  margin-right:8px;
}

/* Hero */
.hero{
  padding:56px 0;
  background:linear-gradient(180deg, rgba(10,34,66,0.04) 0%, rgba(255,255,255,0) 100%);
}
.hero-inner{display:flex; gap:40px; align-items:center; justify-content:space-between; flex-wrap:wrap;}
.hero-text{flex:1; min-width:290px}
.hero-text h2{font-size:24px; margin:0 0 12px}
.lead{color:var(--muted); margin-bottom:18px}
.btn{display:inline-block; text-decoration:none; padding:10px 16px; border-radius:8px; border:1px solid transparent; cursor:pointer}
.btn.primary{background:var(--navy); color:white; border-color:var(--navy)}

/* Sections */
.section{padding:40px 0}
.section-title{font-size:20px; margin:0 0 16px}

/* Grid blocks */
.about-grid{
  display:grid;
  grid-template-columns:1fr 320px;
  gap:24px;
  align-items:start;
}
.small-frame{max-width:320px;}

/* Cards */
.cards{display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:16px}
.card{background:white; border-radius:10px; padding:18px; box-shadow:0 6px 18px rgba(7,32,58,0.06); border:1px solid #eef2f6}
.card-title{margin:0 0 8px}

/* Team */
.team-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:18px; margin-top:24px;}
.team-member{background:white; padding:16px; border-radius:8px; border:1px solid #eef2f6; box-shadow:0 6px 18px rgba(7,32,58,0.05);}
.avatar-frame{width:100%; border-radius:8px; overflow:hidden; background:rgba(10,34,66,.06); border:1px solid rgba(10,34,66,.15); margin-bottom:12px;}
.avatar-frame picture, .avatar-frame img{width:100%; display:block; object-fit:cover;}

/* Contact layout */
.contact-inner{display:grid; grid-template-columns:1fr 360px; gap:20px; align-items:start}
.contact-form label{display:block; margin-bottom:12px}
.contact-form input, .contact-form textarea{width:100%; padding:10px; border:1px solid #d9e0ea; border-radius:8px}
.form-actions{margin-top:8px}
.form-note{font-size:13px; color:var(--muted)}

/* Map */
.map iframe{width:100%; height:220px; border:0; border-radius:8px; margin-top:12px;}

/* Privacy section */
.privacy-inner{
  display:grid;
  grid-template-columns:80px 1fr;
  gap:16px;
  align-items:start;
}
.footer-logo{
  display:block;
  width:72px;
  height:72px;
  border-radius:6px;
  background:#fff;
  border:1px solid rgba(10,34,66,.18);
  box-shadow:0 8px 20px rgba(7,32,58,0.08);
  overflow:hidden;
}
.footer-logo img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.privacy .small{color:var(--muted); margin-top:16px; font-size:13px;}

/* WhatsApp floating button */
.whatsapp-float{
  position:fixed;
  right:18px;
  bottom:18px;
  background:#25D366;
  color:white;
  width:56px;
  height:56px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 6px 18px rgba(2, 105, 59, 0.18);
  text-decoration:none;
  z-index:2000;
  transition:transform .12s ease, box-shadow .12s ease;
}
.whatsapp-float:hover{ transform:translateY(-4px); box-shadow:0 10px 26px rgba(2,105,59,0.18)}
.whatsapp-float svg { fill: white; }

/* Image frames */
.image-frame{
  border-radius:12px;
  border:1px solid rgba(10,34,66,.18);
  box-shadow:0 12px 32px rgba(7,32,58,0.12);
  overflow:hidden;
  background:rgba(10,34,66,.8);
}
.image-frame picture,
.image-frame img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  mix-blend-mode:screen;
  opacity:.6;
}

/* Forzar que todo el contenido sea visible de inmediato */
.reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.reveal.revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* Responsive */
@media (max-width:900px){
  .about-grid,
  .contact-inner,
  .privacy-inner{
    grid-template-columns:1fr;
  }
  .main-nav ul{gap:10px;}
  .logo{width:56px;height:56px;min-width:56px;min-height:56px;}
  .footer-logo{width:56px;height:56px;}
  .small-frame{max-width:100%;}
}

/* --- LISTAS DE ÁREAS DE PRÁCTICA --- */
.practice-card ul {
  margin: 0;
  padding-left: 20px;
  list-style-type: disc;
}

.practice-card li {
  color: #4b5563;
  font-size: 0.9rem;
  margin-bottom: 6px;
  line-height: 1.4;
}

/* Viñetas doradas en pantallas pequeñas */
@media (max-width: 600px) {
  .practice-card ul {
    list-style: none;
    padding-left: 0;
  }
  .practice-card li {
    margin-bottom: 8px;
    position: relative;
  }
  .practice-card li::before {
    content: "•";
    color: var(--gold);
    position: absolute;
    left: -16px;
  }
}

/* Ajustes retrato Amaury */
.team-card .team-avatar {
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.team-card .team-avatar img[alt="Lic. Amaury Gómez Martín del Campo"] {
  object-fit: contain !important;
  width: auto !important;
  height: auto !important;
  max-width: 300px !important;
  max-height: 320px !important;
  border-radius: 50% !important;
  border: 2px solid #d4af37 !important;
  background-color: #fff !important;
  padding: 4px !important;
}
