#areas {
  background: #ffffff;
  padding: 110px 0;
}

.areas-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.area-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e4e9f2;
  border-radius: 12px;
  padding: 38px 32px;
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: 0 6px 22px rgba(15, 31, 61, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.area-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: #c9a84c;
  box-shadow: 0 18px 40px rgba(201, 168, 76, 0.22);
}

.area-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 168, 76, 0.14);
  color: #b0892f;
  font-size: 26px;
  margin-bottom: 22px;
  transition: background 0.3s ease, color 0.3s ease;
}

.area-card:hover .area-icon {
  background: linear-gradient(135deg, #c9a84c, #e0bf6e);
  color: #ffffff;
}

.area-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 27px;
  color: #0f1f3d;
  margin-bottom: 12px;
}

.area-text {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #5c6a86;
}

.area-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: #b0892f;
  transition: gap 0.3s ease;
}

.area-card:hover .area-hint { gap: 14px; }

/* ===== Modal de área (qué es + ejemplos) ===== */
.area-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.area-modal.open { display: flex; }

.area-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 38, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: amFade 0.25s ease;
}

.area-modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 18px;
  padding: 44px 40px 36px;
  box-shadow: 0 30px 80px rgba(10, 18, 38, 0.4);
  animation: amPop 0.3s cubic-bezier(0.2, 0.8, 0.3, 1.1);
}

.area-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #f4f6fb;
  color: #4a5878;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease;
}

.area-modal-close:hover { background: #c9a84c; color: #ffffff; }

.area-modal-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c9a84c, #e0bf6e);
  color: #ffffff;
  font-size: 30px;
  margin-bottom: 20px;
  box-shadow: 0 8px 22px rgba(201, 168, 76, 0.3);
}

.area-modal-eyebrow {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b0892f;
  margin-bottom: 4px;
}

.area-modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 34px;
  color: #0f1f3d;
  margin-bottom: 14px;
}

.area-modal-what {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #5c6a86;
  margin-bottom: 24px;
}

.area-modal-subtitle {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #0f1f3d;
  margin-bottom: 14px;
}

.area-modal-examples {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.area-modal-examples li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #233252;
  background: #f7f9fc;
  border: 1px solid #eef1f7;
  border-radius: 10px;
  padding: 13px 16px;
}

.area-modal-examples li i {
  color: #c9a84c;
  font-size: 13px;
  margin-top: 3px;
}

.area-modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.area-modal-btn {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  border-radius: 8px;
  padding: 14px 22px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.area-modal-btn.primary {
  flex: 1;
  min-width: 200px;
  color: #0f1f3d;
  background: linear-gradient(135deg, #c9a84c, #e0bf6e);
  box-shadow: 0 8px 22px rgba(201, 168, 76, 0.3);
}

.area-modal-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(201, 168, 76, 0.45);
}

.area-modal-btn.ghost {
  color: #4a5878;
  background: #f4f6fb;
}

.area-modal-btn.ghost:hover { background: #e6eaf3; }

@keyframes amFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes amPop {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .area-card:hover { transform: none; }
  .area-modal-overlay, .area-modal-box { animation: none; }
  .area-modal-btn.primary:hover { transform: none; }
}

@media (min-width: 1440px) {
  .areas-inner { max-width: 1340px; padding: 0 64px; }
}

@media (max-width: 1280px) {
  #areas { padding: 90px 0; }
  .areas-inner { padding: 0 40px; }
}

@media (max-width: 1024px) {
  .areas-inner { padding: 0 32px; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}

@media (max-width: 768px) {
  #areas { padding: 70px 0; }
  .areas-inner { padding: 0 24px; }
}

@media (max-width: 480px) {
  .areas-inner { padding: 0 16px; }
  .areas-grid { grid-template-columns: 1fr; }
  .area-card { padding: 30px 24px; }
}
