@font-face {
  font-family: 'Erstoria';
  src: url('fonts/Erstoria.otf') format('opentype'),
       url('fonts/Erstoria.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-primary: #000000;
  --bg-secondary: #2e4257;
  --bg-secondary-dark: #1e2c3b;
  --bg-card: rgba(46, 66, 87, 0.55);
  --bg-card-hover: rgba(46, 66, 87, 0.85);
  --accent-light: #c7d9e5;
  --accent-light-glow: rgba(199, 217, 229, 0.2);
  --accent-light-border: rgba(199, 217, 229, 0.3);
  --text-white: #ffffff;
  --text-muted: #d0dde7;
  --text-subtle: #94a3b8;
  --text-dark: #000000;
  
  --font-heading: 'Erstoria', 'Times New Roman', Georgia, serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --container-max: 1280px;
  --header-height: 85px;
  
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Utility */
h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  font-weight: normal;
  letter-spacing: 0.02em;
  color: var(--text-white);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  line-height: 1.25;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--text-white);
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 2000;
  padding: 0.6rem 1rem;
  background: var(--accent-light);
  color: var(--text-dark);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
  color: var(--text-dark);
}

:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(199, 217, 229, 0.12);
  transition: all var(--transition-smooth);
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  border-bottom-color: var(--accent-light-border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  height: 48px;
  min-height: 48px; /* Manual de marca: el logotipo nunca debe medir menos de 48px de alto */
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.logo-container:hover .logo-img {
  transform: scale(1.03);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding: 0.4rem 0;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-light);
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--text-white);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-decoration: none;
  border: none;
}

.btn-primary {
  background-color: var(--accent-light);
  color: var(--text-dark);
  box-shadow: 0 4px 15px rgba(199, 217, 229, 0.2);
}

.btn-primary:hover {
  background-color: #ffffff;
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(199, 217, 229, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-white);
  border: 1px solid var(--accent-light-border);
}

.btn-secondary:hover {
  background-color: rgba(199, 217, 229, 0.08);
  border-color: var(--accent-light);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 5rem;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 80% 20%, rgba(46, 66, 87, 0.35) 0%, rgba(0, 0, 0, 1) 70%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c7d9e5' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(199, 217, 229, 0.08);
  border: 1px solid var(--accent-light-border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 400;
  color: var(--accent-light);
  margin-bottom: 2rem;
  line-height: 1.4;
}

.institutional-quote {
  position: relative;
  padding: 1.5rem 1.8rem;
  background: rgba(46, 66, 87, 0.3);
  border-left: 3px solid var(--accent-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 2.5rem;
  backdrop-filter: blur(6px);
}

.institutional-quote p {
  font-size: 0.98rem;
  font-style: italic;
  color: var(--text-white);
  margin-bottom: 0;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.hero-image-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-light-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.hero-image-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(46, 66, 87, 0.4);
}

.hero-portrait {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.95) contrast(1.05);
}

.hero-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
  color: var(--text-white);
}

.hero-image-overlay .name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.hero-image-overlay .title {
  font-size: 0.85rem;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Section Styling */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-bg-secondary {
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(199, 217, 229, 0.15);
  border-bottom: 1px solid rgba(199, 217, 229, 0.15);
}

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

.section-header .section-tag {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin-bottom: 0.75rem;
  display: block;
  font-weight: 600;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Academic Credentials Section */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.credential-card {
  background: var(--bg-primary);
  border: 1px solid var(--accent-light-border);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-smooth);
}

.credential-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-light);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(199, 217, 229, 0.1);
}

.credential-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.credential-type {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  background: rgba(199, 217, 229, 0.12);
  color: var(--accent-light);
}

.credential-card.highlight .credential-type {
  background: var(--accent-light);
  color: var(--text-dark);
}

.credential-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--text-white);
  margin-bottom: 0.75rem;
}

.credential-institution {
  font-size: 0.95rem;
  color: var(--accent-light);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.credential-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--accent-light);
  margin-top: 1rem;
  font-weight: 500;
}

.credential-link:hover {
  text-decoration: underline;
}

/* Experience Section (PJE Shipping & Marítimo) */
.experience-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.experience-content h2 {
  margin-bottom: 1.5rem;
}

.experience-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.vessel-specs-box {
  margin-top: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--accent-light-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.vessel-specs-box h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.vessel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.vessel-tag {
  background: var(--bg-primary);
  border: 1px solid rgba(199, 217, 229, 0.2);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-white);
}

.experience-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--accent-light-border);
  aspect-ratio: 4 / 3;
}

.gallery-item.large {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.gallery-item picture {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  font-size: 0.85rem;
  color: var(--text-white);
}

/* Tech Perspective Section */
.tech-box {
  background: radial-gradient(circle at 10% 20%, rgba(46, 66, 87, 0.6) 0%, rgba(0, 0, 0, 0.9) 90%);
  border: 1px solid var(--accent-light-border);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
}

.tech-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.tech-badges {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tech-badge-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--accent-light-border);
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}

.tech-badge-item:hover {
  border-color: var(--accent-light);
}

.tech-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-light);
  flex-shrink: 0;
}

.tech-badge-info h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 0.2rem;
}

.tech-badge-info p {
  font-size: 0.85rem;
  color: var(--accent-light);
  margin-bottom: 0;
}

/* Practice Areas Section */
.practice-groups {
  display: flex;
  flex-direction: column;
}

.practice-group {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 2.2fr;
  gap: 3rem;
  padding: 3rem 0;
  border-top: 1px solid rgba(199, 217, 229, 0.15);
}

.practice-group:first-child {
  border-top: none;
  padding-top: 0;
}

.practice-group-header {
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.practice-group-index {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent-light);
  opacity: 0.55;
  margin-bottom: 0.75rem;
}

.practice-group-header h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
}

.practice-group-header p {
  font-size: 0.95rem;
  color: var(--text-subtle);
  margin-bottom: 0;
}

.practice-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.practice-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-light-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  color: inherit;
  transition: all var(--transition-smooth);
}

.practice-card:hover,
.practice-card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--accent-light);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  color: inherit;
}

.practice-card:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

.practice-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(199, 217, 229, 0.1);
  border: 1px solid var(--accent-light-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  margin-bottom: 1.25rem;
}

.area-icon {
  width: 26px;
  height: 26px;
}

.area-icon-sm {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent-light);
}

.practice-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--text-white);
  margin-bottom: 0.75rem;
}

.practice-summary {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.practice-topics {
  list-style: none;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.practice-topics li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.87rem;
  color: var(--text-white);
  margin-bottom: 0.45rem;
  line-height: 1.5;
}

.practice-topics li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 1px;
  background: var(--accent-light);
}

.practice-card--wide .practice-topics {
  columns: 2;
  column-gap: 2rem;
}

.practice-card--wide .practice-topics li {
  break-inside: avoid;
}

.practice-more {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.practice-card:hover .practice-more {
  color: var(--text-white);
}

/* Cross-links inside sections */
.section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin-top: 1.75rem;
}

.text-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-light);
  border-bottom: 1px solid var(--accent-light-border);
  padding-bottom: 0.15rem;
}

.text-link:hover {
  border-bottom-color: var(--text-white);
}

/* Contact form helpers (sin estilos en línea, para una CSP estricta) */
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.form-submit {
  text-align: center;
  margin-top: 1rem;
}

.form-error {
  color: #e57373;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.form-error:empty {
  display: none;
}

.btn-submit {
  width: 100%;
  max-width: 380px;
  padding: 1.1rem 2rem;
  font-size: 1rem;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-legal-note {
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-top: 0.85rem;
}

.form-legal-note a {
  color: var(--accent-light);
  text-decoration: underline;
}

.footer-logo {
  height: 48px;
  width: auto;
}

.footer-copy {
  margin-top: 0.5rem;
  color: #64748b;
}

.modal-updated {
  margin-top: 1rem;
  font-style: italic;
  color: var(--accent-light);
}

/* Conflict of interest notices */
.conflict-notice,
.area-notice p {
  font-size: 0.92rem;
  color: var(--text-white);
  margin-bottom: 0;
}

.conflict-notice {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--accent-light-border);
  border-left: 3px solid var(--accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(199, 217, 229, 0.06);
}

.area-notice {
  margin-bottom: 3rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--accent-light-border);
  border-left: 3px solid var(--accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(199, 217, 229, 0.06);
}

.conflict-notice strong,
.area-notice strong {
  color: var(--accent-light);
  font-weight: 600;
}

/* Principles Section (Cómo Trabajo) */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.principle-card {
  padding: 2rem;
  border: 1px solid var(--accent-light-border);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(46, 66, 87, 0.45) 0%, rgba(0, 0, 0, 0) 80%);
}

.principle-index {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin-bottom: 0.9rem;
}

.principle-card h3 {
  font-size: 1.35rem;
}

.principle-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.form-hint {
  font-size: 0.82rem;
  color: var(--text-subtle);
  margin-bottom: 0;
}

.btn-nav {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

/* Practice Area Pages */
.area-hero {
  padding-top: calc(var(--header-height) + 2.5rem);
  padding-bottom: 4rem;
  background: radial-gradient(circle at 85% 10%, rgba(46, 66, 87, 0.45) 0%, rgba(0, 0, 0, 1) 65%);
  border-bottom: 1px solid rgba(199, 217, 229, 0.15);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-subtle);
  margin-bottom: 2.5rem;
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.5rem;
  color: var(--accent-light-border);
}

.breadcrumb a {
  color: var(--text-subtle);
}

.breadcrumb a:hover {
  color: var(--accent-light);
}

.breadcrumb [aria-current="page"] {
  color: var(--accent-light);
}

.area-hero-content {
  max-width: 860px;
}

.area-hero-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-light-border);
  border-radius: var(--radius-md);
  background: rgba(199, 217, 229, 0.08);
  color: var(--accent-light);
  margin-bottom: 1.5rem;
}

.area-hero-icon .area-icon {
  width: 32px;
  height: 32px;
}

.area-hero .section-tag {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin-bottom: 0.75rem;
}

.area-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
}

.area-hero .hero-actions {
  justify-content: flex-start;
}

.area-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.area-body {
  padding: 4.5rem 0;
}

.area-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 4rem;
  align-items: start;
}

.area-block {
  margin-bottom: 3.5rem;
}

.area-block h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(199, 217, 229, 0.15);
}

.topics-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.9rem;
}

.topics-grid li {
  position: relative;
  padding: 1rem 1.2rem 1rem 2.4rem;
  background: var(--bg-card);
  border: 1px solid rgba(199, 217, 229, 0.18);
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  color: var(--text-white);
  line-height: 1.5;
}

.topics-grid li::before {
  content: '';
  position: absolute;
  left: 1.1rem;
  top: 1.55rem;
  width: 8px;
  height: 1px;
  background: var(--accent-light);
}

.law-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.law-list li {
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(199, 217, 229, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.area-note {
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--accent-light);
  background: rgba(46, 66, 87, 0.3);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.area-note p {
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-bottom: 0;
}

.area-note strong {
  color: var(--text-muted);
}

.area-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}

.aside-card {
  padding: 1.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-light-border);
  border-radius: var(--radius-md);
}

.aside-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
}

.aside-list {
  list-style: none;
}

.aside-list li {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(199, 217, 229, 0.12);
}

.aside-list li:first-child {
  padding-top: 0;
}

.aside-item-title {
  font-size: 0.92rem;
  color: var(--text-white);
  line-height: 1.45;
}

.aside-item-sub {
  font-size: 0.82rem;
  color: var(--accent-light);
}

.aside-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.aside-related {
  list-style: none;
}

.aside-related a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 0.92rem;
  color: var(--text-white);
}

.aside-related a:hover {
  color: var(--accent-light);
}

.aside-cta {
  background: rgba(0, 0, 0, 0.5);
}

.aside-cta p {
  font-size: 0.9rem;
}

.aside-cta .btn {
  width: 100%;
}

.area-index {
  padding: 3.5rem 0 4.5rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid rgba(199, 217, 229, 0.15);
}

.area-index-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.area-index-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.area-index-list a {
  display: inline-block;
  padding: 0.55rem 1rem;
  border: 1px solid var(--accent-light-border);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.area-index-list a:hover,
.area-index-list a.current {
  border-color: var(--accent-light);
  color: var(--text-dark);
  background: var(--accent-light);
}

.footer-legal-links {
  margin-top: 0.75rem;
}

.footer-legal-links a {
  color: var(--text-subtle);
  text-decoration: underline;
}

/* Artículos (blog): generados por _herramientas/generar_articulos.py */
.post-hero .area-hero-content {
  max-width: 900px;
}

.post-byline {
  font-size: 0.9rem;
  color: var(--text-subtle);
  margin-bottom: 0;
}

.post-byline a {
  color: var(--text-muted);
}

.post-body {
  min-width: 0;
  max-width: 72ch;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.post-body > * + * {
  margin-top: 1.25rem;
}

.post-body h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin-top: 3rem;
  margin-bottom: 0;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(199, 217, 229, 0.15);
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

.post-body h3,
.post-body h4 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-top: 2.25rem;
  margin-bottom: 0;
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

.post-body > h2:first-child,
.post-body > h3:first-child {
  margin-top: 0;
}

.post-body p,
.post-body li {
  color: var(--text-muted);
}

.post-body strong {
  color: var(--text-white);
  font-weight: 600;
}

.post-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-body ul,
.post-body ol {
  padding-left: 1.4rem;
}

.post-body li + li {
  margin-top: 0.5rem;
}

.post-body blockquote {
  padding: 1rem 1.5rem;
  border-left: 2px solid var(--accent-light);
  background: rgba(46, 66, 87, 0.3);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

.post-body blockquote p + p {
  margin-top: 0.75rem;
}

.post-body code {
  font-size: 0.9em;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(199, 217, 229, 0.1);
}

.post-body hr {
  border: 0;
  border-top: 1px solid rgba(199, 217, 229, 0.15);
  margin: 2.5rem 0;
}

.post-body figure img,
.post-body p img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(199, 217, 229, 0.18);
  border-radius: var(--radius-sm);
}

.post-body table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.5;
}

.post-body th,
.post-body td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(199, 217, 229, 0.12);
}

.post-body th {
  font-weight: 600;
  color: var(--text-white);
  background: var(--bg-secondary);
}

.post-body td {
  color: var(--text-muted);
}

.post-body tbody tr:last-child td {
  border-bottom: 0;
}

.post-body .checklist {
  list-style: none;
  padding-left: 0;
}

.post-body .checklist li {
  position: relative;
  padding-left: 2rem;
}

.post-body .checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--accent-light);
  border-radius: 3px;
}

.post-body .checklist li.checked::before {
  content: '\2713';
  font-size: 0.8rem;
  line-height: 1rem;
  text-align: center;
  color: var(--text-dark);
  background: var(--accent-light);
}

.footnote-ref a {
  text-decoration: none;
  font-size: 0.75em;
  padding: 0 0.15em;
}

.footnotes {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(199, 217, 229, 0.15);
  font-size: 0.88rem;
}

.post-body .footnotes-title {
  font-size: 1.1rem;
  margin: 0 0 0.75rem 0;
  padding: 0;
  border: 0;
}

.footnotes li {
  color: var(--text-subtle);
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

.footnote-back {
  text-decoration: none !important;
}

.post-note {
  margin-top: 3rem !important;
}

.post-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-subtle);
}

.post-share a {
  text-decoration: none;
}

.post-copy {
  font: inherit;
  color: var(--accent-light);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.post-copy:hover,
.post-copy:focus-visible {
  color: var(--text-white);
}

.aside-card-title,
.toc-title {
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
}

/* En los artículos la barra lateral no es fija: solo el índice, al final, se queda a la vista */
.post-aside {
  position: static;
  align-self: stretch;
}

.post-aside .toc {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  max-height: calc(100vh - var(--header-height) - 3rem);
  overflow-y: auto;
}

.toc ol {
  list-style: none;
}

/* Sin numeración propia: los títulos de los artículos suelen llevar la suya */
.toc li {
  padding: 0.45rem 0;
  font-size: 0.9rem;
  line-height: 1.45;
  border-bottom: 1px solid rgba(199, 217, 229, 0.12);
}

.toc li:last-child {
  border-bottom: 0;
}

.toc a {
  color: var(--text-white);
}

.toc a:hover {
  color: var(--accent-light);
}

.aside-list a.aside-item-title:hover {
  color: var(--accent-light);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid rgba(199, 217, 229, 0.18);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.post-card:hover {
  border-color: var(--accent-light-border);
  background: var(--bg-card-hover);
}

.post-card[hidden] {
  display: none;
}

.post-meta {
  font-size: 0.82rem;
  color: var(--text-subtle);
  margin-bottom: 0.75rem;
}

.post-card-title {
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.post-card-title a {
  color: var(--text-white);
}

.post-card-title a:hover {
  color: var(--accent-light);
}

.post-card-summary {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-tag {
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(199, 217, 229, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.post-tag:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
}

.post-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.post-filter {
  font: inherit;
  font-size: 0.88rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent-light-border);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-muted);
  cursor: pointer;
}

.post-filter:hover,
.post-filter[aria-pressed="true"] {
  border-color: var(--accent-light);
  background: var(--accent-light);
  color: var(--text-dark);
}

.post-all {
  margin-top: 2.5rem;
  text-align: center;
}

.post-related {
  background: var(--bg-secondary-dark);
  border-top: 1px solid rgba(199, 217, 229, 0.15);
}

.post-related-title {
  font-size: 1.75rem;
  margin-bottom: 1.75rem;
}

/* Case Evaluation / Form Section */
.evaluation-section {
  background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-secondary-dark) 100%);
  padding: 6rem 0;
}

.evaluation-container {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-light-border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.legal-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-label {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.form-label .required-star {
  color: #ef4444;
}

.form-control {
  width: 100%;
  padding: 0.95rem 1.2rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--accent-light-border);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--accent-light);
  background: rgba(0, 0, 0, 0.85);
  box-shadow: 0 0 12px rgba(199, 217, 229, 0.2);
}

.form-control::placeholder {
  color: var(--text-subtle);
  opacity: 0.7;
}

/* Opciones de contacto: WhatsApp y formulario, antes del formulario */
.contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 820px;
  margin: 0 auto 3rem auto;
}

.contact-option {
  padding: 2rem;
  border: 1px solid var(--accent-light-border);
  border-radius: var(--radius-md);
  background-color: transparent;
}

.contact-option h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.contact-option p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* La tarjeta de WhatsApp usa el azul pizarra como fondo (color secundario del manual) */
.contact-option--whatsapp {
  background-color: var(--bg-secondary);
  border-color: var(--accent-light);
}

#whatsapp,
#formulario {
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

/* Botón de WhatsApp: blanco y negro, los colores principales del manual (sin verde) */
.btn-whatsapp {
  background-color: var(--text-white);
  color: var(--text-dark);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
  background-color: var(--accent-light);
  color: var(--text-dark);
  transform: translateY(-2px);
}

.btn-whatsapp:focus-visible {
  outline: 2px solid var(--text-white);
  outline-offset: 3px;
}

.icon-whatsapp {
  flex-shrink: 0;
}

.whatsapp-error {
  font-size: 0.9rem;
  color: var(--text-white);
  margin-bottom: 0;
}

.hero-whatsapp {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.hero-whatsapp:hover {
  color: var(--accent-light);
}

.aside-whatsapp {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
}

.aside-whatsapp:hover {
  color: var(--accent-light);
}

/* Botón flotante: solo en celular; baja a la tarjeta #whatsapp, no contiene el número */
.whatsapp-float {
  display: none;
}

.whatsapp-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.whatsapp-block [hidden] {
  display: none;
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.radio-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-top: 0.25rem;
}

.radio-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--accent-light-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.92rem;
  color: var(--text-muted);
}

.radio-option:hover {
  border-color: var(--accent-light);
  color: var(--text-white);
  background: rgba(0, 0, 0, 0.6);
}

.radio-option input[type="radio"] {
  accent-color: var(--accent-light);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-success-message {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}

.form-success-message.active {
  display: block;
  animation: fadeIn 0.5s ease forwards;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(199, 217, 229, 0.15);
  border: 2px solid var(--accent-light);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem auto;
}

.success-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text-white);
  margin-bottom: 0.75rem;
}

.success-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto 2rem auto;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Footer */
.footer {
  background-color: #000000;
  border-top: 1px solid rgba(199, 217, 229, 0.15);
  padding: 4rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-subtle);
  margin-top: 1rem;
  max-width: 400px;
}

.footer-title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-white);
  margin-bottom: 1.25rem;
}

.footer-title--spaced {
  margin-top: 2rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-subtle);
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-disclaimer {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: var(--text-subtle);
  text-align: center;
  line-height: 1.6;
}

/* Privacy Notice Modal */
.modal-dialog {
  padding: 0;
  border: 1px solid var(--accent-light-border);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary-dark);
  color: var(--text-white);
  max-width: 780px;
  width: 90%;
  max-height: 85vh;
  margin: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.modal-dialog::backdrop {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--accent-light-border);
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-white);
  margin-bottom: 0;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-white);
  background: rgba(199, 217, 229, 0.1);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  max-height: calc(85vh - 130px);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.modal-body h4 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-light);
  margin: 1.5rem 0 0.5rem 0;
}

.modal-body h4:first-child {
  margin-top: 0;
}

.modal-body ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.modal-body li {
  margin-bottom: 0.5rem;
}

.modal-footer {
  padding: 1rem 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--accent-light-border);
  text-align: right;
}


/* Responsive Styles */
@media (min-width: 901px) and (max-width: 1100px) {
  .nav-menu {
    gap: 1rem;
  }

  /* El logotipo ya enlaza al inicio */
  .nav-menu li:first-child {
    display: none;
  }

  .nav-link {
    font-size: 0.78rem;
    letter-spacing: 0.02em;
  }

  .btn-nav {
    padding: 0.45rem 0.8rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .institutional-quote {
    text-align: left;
  }

  .hero-actions {
    justify-content: center;
  }

  .experience-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .tech-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .practice-group {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .practice-group-header {
    position: static;
  }

  .area-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .area-aside {
    position: static;
  }

  .post-aside .toc {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.98);
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--accent-light-border);
    transform: translateY(-150%);
    transition: transform var(--transition-smooth);
    backdrop-filter: blur(15px);
  }

  .nav-menu.active {
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 75px;
  }


  .tech-box {
    padding: 2rem 1.5rem;
  }

  .evaluation-container {
    padding: 1.75rem 1.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .practice-card--wide .practice-topics {
    columns: 1;
  }

  .practice-card,
  .principle-card,
  .aside-card {
    padding: 1.5rem;
  }

  .area-hero .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .whatsapp-float {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--accent-light);
    color: var(--text-white);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    z-index: 900;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
  }

  .whatsapp-float.is-hidden {
    opacity: 0;
    transform: translateY(1rem);
    pointer-events: none;
  }

  .contact-option {
    padding: 1.5rem;
  }

  .post-body {
    font-size: 1rem;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }
}
