/* ==========================================================================
   FERRO & ASOCIADOS, S.C. — DESIGN SYSTEM & STYLES
   Despacho Corporativo de Alto Nivel | Fondo Azul Intenso & Alta Legibilidad
   Tipografía: Google Sans | Ventanas Semi-Transparentes | Acabado Fino y Minimal
   ========================================================================== */

/* Google Sans Font */
@import url('https://fonts.googleapis.com/css?family=Google+Sans:400,500,700');

@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/googlesans/v76/4Ua_rENHsxJlGDuGo1OIlJfC6l_24rlCK1Yo_Iqcsih3SAyH6cAwhX9RFD48TE63OOYKtrwEIJllpyw.ttf) format('truetype');
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 500;
  src: url(https://fonts.gstatic.com/s/googlesans/v76/4Ua_rENHsxJlGDuGo1OIlJfC6l_24rlCK1Yo_Iqcsih3SAyH6cAwhX9RFD48TE63OOYKtrw2IJllpyw.ttf) format('truetype');
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 700;
  src: url(https://fonts.gstatic.com/s/googlesans/v76/4Ua_rENHsxJlGDuGo1OIlJfC6l_24rlCK1Yo_Iqcsih3SAyH6cAwhX9RFD48TE63OOYKtrzjJ5llpyw.ttf) format('truetype');
}

:root {
  /* Deep Corporate Blue & Navy Palette */
  --color-bg-base: #011128;
  --color-navy-950: #010a18;
  --color-navy-900: #011128;
  --color-navy-850: #02183a;
  --color-navy-800: #062352;
  --color-navy-700: #0d326e;
  
  /* Discreet Gold Accents */
  --color-gold-200: #fcedd0;
  --color-gold-300: #f7d59b;
  --color-gold-400: #ebb064;
  
  /* Semi-transparent Glass Window Surfaces with High Readability */
  --window-bg: rgba(2, 17, 44, 0.72);
  --window-bg-hover: rgba(3, 23, 58, 0.82);
  --window-border: rgba(255, 255, 255, 0.13);
  --window-border-hover: rgba(235, 176, 100, 0.35);
  --window-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.6);
  
  /* Typography */
  --font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* High-Contrast Text Colors */
  --text-main: #ffffff;
  --text-muted: #b8cde8;
  --text-gold: #ebb064;
  --text-light-gold: #fcedd0;
  
  --transition-fast: 0.18s ease;
  --transition-normal: 0.3s ease;
}

/* Strict Zero Radius: Architectural Square Edges */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-base);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Background Image: 20th floor modern law firm office */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url('bg-office.jpg') center top / cover no-repeat;
  filter: brightness(0.72) contrast(1.1) saturate(0.9);
}

/* Pantalla Azul Intensa: Mayor cobertura azul para rescatar 100% la lectura y el contraste */
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: 
    radial-gradient(ellipse 85% 55% at 50% 18%, rgba(13, 48, 105, 0.72) 0%, transparent 68%),
    linear-gradient(
      180deg,
      rgba(1, 17, 40, 0.88) 0%,
      rgba(2, 22, 54, 0.84) 32%,
      rgba(1, 15, 38, 0.92) 65%,
      rgba(1, 10, 24, 0.97) 100%
    );
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Page Layout */
.page-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 4rem;
}

/* Hero Section: Centered Logo & Firm Presentation */
.hero-section {
  padding: 3.5rem 1.5rem 1.8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Centered Logo (Tamaño compacto y sin borde) */
.logo-wrapper {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 1.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-img {
  width: 100%;
  height: auto;
  display: block;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent;
  transition: transform 0.3s ease;
}

.hero-logo-img:hover {
  transform: scale(1.01);
}

/* Hero Typography: Alta Legibilidad */
.hero-tagline {
  font-size: clamp(1.35rem, 2.3vw, 1.95rem);
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  max-width: 800px;
  margin-bottom: 0.85rem;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-tagline span.gold-highlight {
  background: linear-gradient(135deg, #ffffff 0%, #fcedd0 35%, #ebb064 80%, #c48c3b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: clamp(0.92rem, 1.15vw, 1.05rem);
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.65;
  margin-bottom: 1.6rem;
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Practice Area Badges (Minimalist & Semi-transparent) */
.practice-pills-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
}

.practice-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.95rem;
  background: rgba(2, 16, 40, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  color: #ffffff;
  font-weight: 500;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
}

.practice-pill:hover {
  background: rgba(4, 24, 60, 0.8);
  border-color: rgba(255, 255, 255, 0.25);
}

.practice-pill svg {
  color: var(--color-gold-400);
  flex-shrink: 0;
}

/* Contact & Info Cards Section */
.info-section {
  padding: 1.8rem 1.5rem 2rem;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.2rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold-400);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.section-title {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.cards-container {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

/* Ventanas Semi-Transparentes con Mayor Densidad Azul para Rescatar Lectura */
.glass-card {
  background: var(--window-bg);
  border: 1px solid var(--window-border);
  padding: 1.85rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--window-shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-normal), border-color var(--transition-normal), background var(--transition-normal);
}

.glass-card:hover {
  background: var(--window-bg-hover);
  border-color: var(--window-border-hover);
  transform: translateY(-3px);
}

.card-header-block {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.card-icon-emblem {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-400);
  flex-shrink: 0;
}

.card-meta {
  flex: 1;
}

.card-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-400);
  margin-bottom: 0.2rem;
}

.card-headline {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}

/* Address Body (Mayor densidad y nitidez) */
.address-body {
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.3rem;
  background: rgba(1, 12, 30, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.address-highlight {
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.address-subdetails {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.address-subdetails strong {
  color: var(--text-light-gold);
}

/* Map Embed Wrapper */
.map-embed-wrapper {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.11);
  margin-bottom: 1.25rem;
  background: #010a1a;
  height: 185px;
}

.map-embed-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: contrast(100%) brightness(95%);
  transition: filter var(--transition-normal);
}

.map-embed-wrapper:hover .map-embed-iframe {
  filter: contrast(105%) brightness(100%);
}

.map-floating-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(1, 14, 34, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-light-gold);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  pointer-events: none;
}

/* Contact Card Specifics (Mayor densidad y nitidez) */
.phone-showcase-box {
  background: rgba(1, 12, 30, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 1.35rem;
  margin-bottom: 1.25rem;
  text-align: center;
  position: relative;
}

.phone-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold-400);
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.phone-number-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: clamp(1.5rem, 2vw, 1.8rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.03em;
  text-decoration: none;
  margin-bottom: 0.35rem;
  transition: color var(--transition-fast);
}

.phone-number-display:hover {
  color: var(--color-gold-300);
}

.phone-availability {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.phone-availability span.live-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* Perks List */
.contact-perks-list {
  list-style: none;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.contact-perk-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.contact-perk-item svg {
  color: var(--color-gold-400);
  flex-shrink: 0;
}

.contact-perk-item strong {
  color: #ffffff;
  font-weight: 600;
}

/* Action Buttons Grid (Discretos, Finos, No Chillones) */
.card-actions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin-top: auto;
}

.actions-row-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

/* Botón Sutil Dorado */
.btn-subtle-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.64rem 1.15rem;
  background: rgba(235, 176, 100, 0.12);
  color: #fcedd0;
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid rgba(235, 176, 100, 0.35);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-subtle-gold:hover {
  background: rgba(235, 176, 100, 0.24);
  border-color: rgba(235, 176, 100, 0.6);
  color: #ffffff;
}

/* Botón Sutil WhatsApp */
.btn-subtle-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.64rem 1.15rem;
  background: rgba(37, 211, 102, 0.12);
  color: #86efac;
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid rgba(37, 211, 102, 0.32);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-subtle-whatsapp:hover {
  background: rgba(37, 211, 102, 0.22);
  border-color: rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

/* Botón Sutil Glass */
.btn-subtle-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.62rem 1.15rem;
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  font-family: var(--font-family);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-subtle-glass:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

/* Toast Notice (Discreta y Fina) */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(1, 14, 34, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.6rem 1.3rem;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-notice svg {
  color: #34d399;
}

/* Mobile Bottom Bar (Discreta y Fina) */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(1, 12, 28, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  z-index: 1000;
}

.mobile-actions-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto;
}

.btn-mobile-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.5rem 0.3rem;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.btn-mobile-call {
  background: rgba(235, 176, 100, 0.14);
  border-color: rgba(235, 176, 100, 0.32);
  color: #fcedd0;
}

.btn-mobile-whatsapp {
  background: rgba(37, 211, 102, 0.14);
  border-color: rgba(37, 211, 102, 0.3);
  color: #86efac;
}

.btn-mobile-map {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
  .cards-container {
    gap: 1.4rem;
  }
}

@media (max-width: 768px) {
  .page-container {
    padding-bottom: 5.5rem;
  }
  
  .hero-section {
    padding: 2.5rem 1rem 1.5rem;
  }
  
  .cards-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .glass-card {
    padding: 1.4rem;
  }
  
  .mobile-bottom-bar {
    display: block;
  }
}

@media (max-width: 480px) {
  .logo-wrapper {
    max-width: 340px;
  }
  
  .actions-row-duo {
    grid-template-columns: 1fr;
  }
}
