:root {
  --color-navy: #0B1626;
  --color-navy-dark: #050B14;
  --color-gold: #C9A04B;
  --color-gold-light: #E6C77E;
  --color-bg: #F5F3EE;
  --color-card: #FFFFFF;
  --color-text: #2B333B;
  --color-text-muted: #6B7480;
  --color-border: #E6E8EC;
  --font-display: 'Cinzel', Georgia, serif;
  --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(11, 22, 38, 0.10);
}

* { 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(201, 160, 75, 0.6);
  border-radius: 50%;
}

.brand span {
  color: var(--color-gold-light);
  font-family: var(--font-display);
  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 {
  position: relative;
  text-align: center;
  padding: 72px 24px 64px;
  color: #fff;
  background-color: var(--color-navy-dark);
  background-size: cover;
  background-position: center;
  border-bottom: 3px solid var(--color-gold);
}

.hero .logo-circle {
  width: 190px;
  height: 190px;
  border-radius: 18px;
  margin: 0 auto 26px;
  object-fit: cover;
  border: 1px solid rgba(201, 160, 75, 0.55);
  box-shadow: 0 14px 40px rgba(0,0,0,0.5);
}

.hero h1 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 40px;
  letter-spacing: 1px;
  margin: 0 0 12px;
}

.hero .subtitle {
  color: var(--color-gold-light);
  font-size: 18px;
  margin: 0;
}

.intro-section { padding: 44px 0 8px; }

.intro-section .intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 16.5px;
}

@media (max-width: 600px) {
  .hero { padding: 48px 16px 44px; }
  .hero .logo-circle { width: 150px; height: 150px; }
  .hero h1 { font-size: 28px; }
  .hero .subtitle { font-size: 16px; }
  .container { padding: 0 16px; }
  .brand span { 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;
  object-position: center top;
}

.lawyer-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  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: #9C7A2E;
  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-license {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: -6px 0 14px;
}

.lawyer-edu {
  background: #FAF6EC;
  border-left: 3px solid var(--color-gold);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 0 0 14px;
}

.lawyer-edu-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #8A6A24;
  margin-bottom: 2px;
}

.lawyer-edu p {
  margin: 0;
  font-size: 14px;
  color: var(--color-text);
  white-space: pre-line;
}

.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: var(--color-navy);
  color: var(--color-gold-light);
  font-weight: 600;
  padding: 13px;
  border-radius: 10px;
  margin-top: 6px;
  transition: background 0.2s;
}

.btn-contactar:hover { background: #16263D; }

/* 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); }
