:root {
  --color-navy: #0A0B0D;
  --color-navy-dark: #000000;
  --color-gold: #1E9FE0;
  --color-bg: #F4F5F7;
  --color-card: #FFFFFF;
  --color-text: #2B333B;
  --color-text-muted: #6B7480;
  --color-border: #E6E8EC;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(15, 39, 64, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--color-navy);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

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

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(30, 159, 224, 0.5);
}

.brand span {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 20px;
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: #EDEFF2;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--color-gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

@media (max-width: 780px) {
  .nav-links {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--color-navy);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 260px; }
  .nav-links a {
    padding: 14px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-toggle { display: block; }
}

/* Hero */
.hero {
  text-align: center;
  padding: 64px 24px 40px;
}

.hero .logo-circle {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  margin: 0 auto 28px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  font-size: 42px;
  margin: 0 0 14px;
}

.hero .subtitle {
  color: var(--color-text-muted);
  font-size: 19px;
  margin: 0 0 28px;
}

.hero .intro {
  max-width: 760px;
  margin: 0 auto;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 28px;
  font-size: 16px;
}

/* Team grid */
.team-section { padding: 20px 0 70px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 20px;
}

.lawyer-card {
  background: var(--color-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.lawyer-photo-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #E4E8ED;
}

.lawyer-photo-wrap .lawyer-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lawyer-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  object-fit: cover;
  background: var(--color-navy);
}

.lawyer-body { padding: 24px 24px 26px; flex: 1; display: flex; flex-direction: column; }

.lawyer-name {
  font-family: var(--font-heading);
  color: var(--color-navy);
  font-size: 22px;
  margin: 0 0 6px;
}

.lawyer-role {
  color: var(--color-gold);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.lawyer-exp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F1F3F6;
  border-radius: 30px;
  padding: 6px 14px;
  width: fit-content;
  font-size: 13.5px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.lawyer-exp strong { color: var(--color-navy); }

.lawyer-desc {
  color: var(--color-text-muted);
  font-size: 14.5px;
  margin: 0 0 18px;
}

.lawyer-contact {
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  margin-top: auto;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14.5px;
  word-break: break-word;
}

.contact-row .icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F1F3F6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-navy);
}

.btn-contactar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #F1F3F6;
  color: var(--color-navy);
  font-weight: 600;
  padding: 13px;
  border-radius: 10px;
  margin-top: 6px;
  transition: background 0.2s;
}

.btn-contactar:hover { background: #E4E8ED; }

/* Office / location */
.office-section {
  background: #fff;
  padding: 60px 0;
  border-top: 1px solid var(--color-border);
}

.office-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 780px) {
  .office-grid { grid-template-columns: 1fr; }
}

.office-section h2 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  font-size: 30px;
  margin-top: 0;
}

.office-item { margin-bottom: 22px; }

.office-item h4 {
  margin: 0 0 6px;
  color: var(--color-navy);
  font-size: 15px;
}

.office-item p {
  margin: 0;
  color: var(--color-text-muted);
  white-space: pre-line;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 320px;
  background: #E4E8ED;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  text-align: center;
  padding: 24px;
}

.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* CTA */
.cta-section {
  background: var(--color-navy);
  color: #fff;
  text-align: center;
  padding: 56px 24px;
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  margin: 0 0 14px;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 26px;
  color: #C9D2DC;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.cta-phone,
.cta-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 40px;
  font-size: 17px;
}

.cta-phone {
  background: var(--color-gold);
  color: var(--color-navy-dark);
}

.cta-whatsapp {
  background: #25D366;
  color: #06301A;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
  z-index: 60;
  transition: transform 0.15s;
}

.whatsapp-float:hover { transform: scale(1.07); }

/* Footer */
.site-footer {
  background: var(--color-navy-dark);
  color: #A9B3BF;
  text-align: center;
  padding: 24px;
  font-size: 13.5px;
}

.site-footer a { color: var(--color-gold); }
