/* EDT FSE Theme — icon font + micro-interactions not reachable with block markup alone.
   Reference: BUILD-PLAN.md "Gaps". */

@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('../fonts/MaterialSymbolsOutlined.woff2') format('woff2');
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

/* ── Bento / card hover lift ── */
.edt-bento-card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.edt-bento-card:hover {
  border-color: #FF6B00 !important;
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
}

/* ── Nav underline grow-on-hover ── */
.edt-nav-link {
  position: relative;
  text-decoration: none;
  padding-bottom: 4px;
}
.edt-nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #FF6B00;
  transition: width 0.3s ease;
}
.edt-nav-link:hover::after,
.edt-nav-link.is-active::after {
  width: 100%;
}
.edt-nav-link.is-active {
  border-bottom: 2px solid #FF6B00;
}

/* ── Live pulse dot ── */
@keyframes edt-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.edt-pulse-dot {
  animation: edt-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ── Logo on dark backgrounds (footer, dark hero) ── */
.edt-logo-invert img,
.edt-logo-invert .wp-block-image img {
  filter: brightness(0) invert(1);
}

/* ── Image grayscale → color on hover ── */
.edt-img-hover-color img,
.edt-img-hover-color .wp-block-image img {
  filter: grayscale(100%);
  transition: filter 0.7s ease;
}
.edt-img-hover-color:hover img,
.edt-img-hover-color:hover .wp-block-image img {
  filter: grayscale(0%);
}

/* ════════════════════════════════════════════════════════════════════
   v2 — professional pass (2026-10): header, hero, cards, grids, form.
   ════════════════════════════════════════════════════════════════════ */

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 100px; }
.is-hidden { display: none !important; }
mark.has-inline-color { background-color: transparent; }

/* ── Sticky header with logo ── */
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 100;
}
body.admin-bar header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar header.wp-block-template-part { top: 46px; }
}
.edt-header { box-shadow: 0 1px 12px rgba(13, 17, 23, 0.04); }
.edt-logo { margin: 0 !important; line-height: 0; }
.edt-logo img { display: block; }
.edt-nav .wp-block-navigation-item__content {
  color: var(--wp--preset--color--primary);
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.15s ease;
}
.edt-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--secondary); }
.edt-nav .wp-block-navigation-item__content::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--wp--preset--color--secondary);
  transition: width 0.25s ease;
}
.edt-nav .wp-block-navigation-item__content:hover::after,
.edt-nav .current-menu-item > .wp-block-navigation-item__content::after { width: 100%; }
.edt-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 2rem; }
.edt-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.25rem; }
@media (max-width: 599px) {
  .edt-hide-sm { display: none !important; }
}

/* ── Buttons ── */
.wp-element-button { transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.edt-btn-orange .wp-block-button__link:hover {
  background-color: #e85f00 !important;
  color: #fff !important;
}
.edt-btn-ghost .wp-block-button__link:hover {
  background-color: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

/* ── Hero: deep navy, fine grid and two soft glows (no photo) ── */
.edt-hero {
  position: relative;
  overflow: hidden;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M64 0H0V64' fill='none' stroke='white' stroke-opacity='0.07' stroke-width='1'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #1a2238 0%, #121a2d 55%, #0d1117 100%);
  background-size: 64px 64px, cover;
}
.edt-hero::before,
.edt-hero::after {
  content: '';
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  filter: blur(90px);
}
.edt-hero::before {
  top: -6rem;
  right: -8rem;
  width: 34rem;
  height: 34rem;
  background: rgba(255, 107, 0, 0.18);
}
.edt-hero::after {
  bottom: -10rem;
  left: -10rem;
  width: 32rem;
  height: 32rem;
  background: rgba(107, 122, 143, 0.28);
}
.edt-hero > * { position: relative; z-index: 1; }
.edt-badge { width: fit-content; }
.edt-badge p { margin: 0; }
.edt-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--wp--preset--color--secondary);
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.18);
  flex-shrink: 0;
}
.edt-glass {
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* ── Width helpers ── */
.edt-maxw-sm { max-width: 26rem; }
.edt-maxw-2xl { max-width: 42rem; }
.edt-maxw-3xl { max-width: 48rem; }
.edt-maxw-4xl { max-width: 58rem; }
.edt-self-end { align-self: end; }

/* ── Cards ── */
.edt-card {
  display: flex !important;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.edt-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--wp--preset--shadow--lg) !important;
}
.edt-card-link:hover { border-color: rgba(255, 107, 0, 0.45) !important; }
.edt-card-link .edt-more { margin-top: auto !important; padding-top: 0.5rem; }
.edt-card-dark .wp-block-buttons { margin-top: auto !important; }
.edt-more a { color: var(--wp--preset--color--secondary); }
.edt-more a span { display: inline-block; transition: transform 0.2s ease; }
.edt-card:hover .edt-more a span { transform: translateX(4px); }
.edt-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.edt-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: rgba(255, 107, 0, 0.1);
  color: var(--wp--preset--color--secondary);
}
.edt-card-num {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--on-surface-variant);
}

/* ── Grids: collapse on tablet and phone ── */
.wp-block-group.edt-grid-7-5 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.wp-block-group.edt-grid-7-5 > :first-child { grid-column: span 7; }
.wp-block-group.edt-grid-7-5 > :last-child { grid-column: span 5; }
.wp-block-group.edt-grid-footer { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 1023px) {
  .wp-block-group.edt-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wp-block-group.edt-grid-2,
  .wp-block-group.edt-grid-7-5 { grid-template-columns: minmax(0, 1fr); }
  .wp-block-group.edt-grid-7-5 > :first-child,
  .wp-block-group.edt-grid-7-5 > :last-child { grid-column: auto; }
  .wp-block-group.edt-grid-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .wp-block-group.edt-grid-3,
  .wp-block-group.edt-grid-footer { grid-template-columns: minmax(0, 1fr); }
  .edt-card-pad { padding: 1.75rem !important; }
}

/* ── Footer ── */
.edt-footer-links a { color: rgba(255, 255, 255, 0.8); transition: color 0.15s ease; }
.edt-footer-links a:hover { color: var(--wp--preset--color--secondary); }
.edt-footer-bottom p { margin: 0; }

/* ── Contact form ── */
.edt-form { display: flex; flex-direction: column; gap: 1.25rem; }
.edt-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 639px) { .edt-form__row { grid-template-columns: minmax(0, 1fr); } }
.edt-form__field { display: flex; flex-direction: column; gap: 0.5rem; }
.edt-form label {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wp--preset--color--primary);
}
.edt-req { color: var(--wp--preset--color--secondary); }
.edt-form input,
.edt-form select,
.edt-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(13, 17, 23, 0.12);
  border-radius: 8px;
  background: var(--wp--preset--color--surface-container);
  color: var(--wp--preset--color--primary);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.edt-form textarea { resize: vertical; min-height: 8rem; }
.edt-form input::placeholder,
.edt-form textarea::placeholder { color: #8a95a5; opacity: 1; }
.edt-form input:focus,
.edt-form select:focus,
.edt-form textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--wp--preset--color--secondary);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}
.edt-form button[type='submit'] {
  width: 100%;
  padding: 1rem 2rem;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  background: var(--wp--preset--color--primary);
  color: #fff;
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 0.15s ease;
}
.edt-form button[type='submit']:hover { background: var(--wp--preset--color--secondary); }
.edt-form button[type='submit']:disabled { opacity: 0.7; cursor: wait; }
.edt-form__note { margin: 0; font-size: 0.8125rem; color: var(--wp--preset--color--on-surface-variant); text-align: center; }
.edt-form__ok,
.edt-form__error {
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
}
.edt-form__ok { background: rgba(255, 107, 0, 0.1); color: #8a3a00; }
.edt-form__error { background: #ffdad6; color: #93000a; }
.edt-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
body.edt-enviado-ok .edt-form__ok { display: block !important; }
body.edt-enviado-ok .edt-form button[type='submit'] { display: none; }
body.edt-enviado-error .edt-form__error { display: block !important; }

/* ── Contact info card ── */
.edt-contact-card { display: flex !important; flex-direction: column; }
.edt-contact-card .edt-glass { margin-top: auto !important; }

/* ── Soluciones: jump chips, check lists, photos, icon panels ── */
.edt-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.edt-chips a {
  display: inline-block;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.edt-chips a:hover { background: rgba(255, 107, 0, 0.18); border-color: rgba(255, 107, 0, 0.6); color: #fff; }
.wp-block-group.edt-grid-center { align-items: center; }
.edt-checklist { list-style: none; padding-left: 0; margin: 0.25rem 0 0; display: grid; gap: 0.75rem; }
.edt-checklist li {
  position: relative;
  padding-left: 2rem;
  line-height: 1.55;
}
.edt-checklist li::before {
  content: 'check';
  font-family: 'Material Symbols Outlined';
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: rgba(255, 107, 0, 0.12);
  color: var(--wp--preset--color--secondary);
  font-size: 0.95rem;
  line-height: 1.35rem;
  text-align: center;
}
.edt-checklist-dark li { color: rgba(255, 255, 255, 0.88); }
.edt-checklist-dark li::before { background: rgba(255, 107, 0, 0.22); }
.edt-photo { margin: 0; }
.edt-photo img { box-shadow: var(--wp--preset--shadow--lg); }
.edt-panel { position: relative; overflow: hidden; }
.edt-icon-box-lg { width: 4.5rem; height: 4.5rem; border-radius: 18px; background: rgba(255, 107, 0, 0.16); }
.edt-icon-box-lg .material-symbols-outlined { font-size: 2.25rem; }
