/*
Theme Name: Instrumatik Formación Profesional
Theme URI: https://instrumatik.com.ar
Author: Instrumatik S.A.S.
Author URI: https://instrumatik.com.ar
Description: Landing page editable para el Programa Integral de Instrumentación Industrial y Control Automático. Incluye VSL opcional, múltiples llamadas a WhatsApp y diseño responsive.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: instrumatik-formacion
*/

:root {
  --ink: #07182d;
  --muted: #52657a;
  --blue: #0969da;
  --blue-dark: #073f8c;
  --sky: #eaf4ff;
  --line: #d8e5f2;
  --white: #ffffff;
  --success: #16a66a;
  --surface: #f7fbff;
  --radius: 22px;
  --shadow: 0 20px 60px rgba(7, 40, 81, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(790px, 100%); }
.section { padding: 104px 0; }
.section--tint { background: var(--surface); }
.section--dark { color: var(--white); background: var(--ink); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 18px; color: var(--blue); font-size: .78rem;
  font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.035em; }
h1 { max-width: 910px; font-size: clamp(2.55rem, 6vw, 5.2rem); }
h2 { max-width: 800px; font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { font-size: 1.32rem; }
.lead { max-width: 780px; margin: 24px 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.28rem); }
.section--dark .lead, .section--dark .muted { color: #b9c9da; }
.section-head { display: grid; gap: 18px; margin-bottom: 54px; }
.section-head p { max-width: 720px; margin: 0; color: var(--muted); }
.center { text-align: center; justify-items: center; }
.muted { color: var(--muted); }

.site-header {
  position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(216, 229, 242, .78);
  background: rgba(255,255,255,.9); backdrop-filter: blur(14px);
}
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; letter-spacing: -.02em; }
.brand .custom-logo-link { display: flex; align-items: center; }
.brand .custom-logo { width: auto; max-height: 48px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #fff; background: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: #324960; font-size: .92rem; font-weight: 700; text-decoration: none; }
.nav-links a:not(.button):hover { color: var(--blue); }

.hero { position: relative; overflow: hidden; padding: 94px 0 72px; background: linear-gradient(150deg, #fff 35%, var(--sky)); }
.hero::after { content: ""; position: absolute; right: -8vw; top: -220px; width: 580px; height: 580px; border: 120px solid rgba(9,105,218,.06); border-radius: 50%; }
.hero .container { position: relative; z-index: 1; }
.hero-accent { color: var(--blue); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.button {
  display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border: 0; border-radius: 999px; color: #fff !important; background: var(--blue);
  box-shadow: 0 10px 28px rgba(9,105,218,.22); font-weight: 800; text-decoration: none; transition: .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--blue-dark); }
.button--small { min-height: 44px; padding: 9px 18px; font-size: .9rem; }
.button--white { color: var(--ink) !important; background: #fff; box-shadow: none; }
.button--white:hover { color: var(--blue) !important; background: #f4f8fc; }
.button--ghost { color: var(--ink) !important; background: transparent; border: 1px solid var(--line); box-shadow: none; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 44px; padding: 0; list-style: none; }
.hero-proof li { display: flex; align-items: center; gap: 9px; color: #31475d; font-size: .93rem; font-weight: 700; }
.check { display: grid; flex: 0 0 auto; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; background: var(--success); font-size: .75rem; }

.pain-grid, .benefit-grid, .project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 35px rgba(7,40,81,.06); }
.card-number { margin-bottom: 28px; color: var(--blue); font-size: .82rem; font-weight: 900; letter-spacing: .1em; }
.card p { margin: 13px 0 0; color: var(--muted); }
.bridge { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.bridge-panel { padding: 40px; border-radius: 28px; color: #fff; background: linear-gradient(145deg, var(--blue), var(--blue-dark)); box-shadow: var(--shadow); }
.bridge-panel p { margin: 0; font-size: clamp(1.28rem, 2.6vw, 2rem); line-height: 1.35; font-weight: 750; }
.bridge-copy p { color: var(--muted); }

.vsl-frame { overflow: hidden; width: min(960px, 100%); margin: 0 auto; border: 10px solid #fff; border-radius: 24px; background: #061426; box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.vsl-frame iframe, .vsl-frame video { width: 100%; height: 100%; border: 0; }
.vsl-placeholder { display: grid; height: 100%; place-content: center; padding: 30px; color: #fff; text-align: center; }
.vsl-play { display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 50%; color: var(--blue); background: #fff; font-size: 1.6rem; }

.benefit-grid { grid-template-columns: repeat(2, 1fr); }
.benefit-card { position: relative; padding-left: 74px; }
.benefit-icon { position: absolute; left: 28px; top: 28px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: #fff; background: var(--blue); font-weight: 900; }
.project-grid { margin-top: 32px; grid-template-columns: repeat(2, 1fr); }
.project-card { padding: 36px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.06); }
.project-card span { display: block; margin-bottom: 14px; color: #7db9ff; font-size: .8rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.project-card p { margin: 12px 0 0; color: #b9c9da; }
.format-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.format-card { padding: 34px; border-left: 4px solid var(--blue); background: #fff; box-shadow: var(--shadow); }
.format-card p { color: var(--muted); }
.guarantee { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; padding: 42px; border: 1px solid #b8d9ff; border-radius: 28px; background: var(--sky); }
.guarantee-badge { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; color: #fff; background: var(--blue); font-weight: 900; }
.guarantee p { margin: 12px 0 0; color: #38536f; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 25px 0; cursor: pointer; font-size: 1.08rem; font-weight: 800; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 1.5rem; font-weight: 500; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 760px; margin: -6px 0 25px; color: var(--muted); }
.final-cta { overflow: hidden; position: relative; padding: 76px 42px; border-radius: 32px; color: #fff; background: var(--blue); text-align: center; }
.final-cta::before { content: ""; position: absolute; inset: auto -70px -140px auto; width: 340px; height: 340px; border: 75px solid rgba(255,255,255,.09); border-radius: 50%; }
.final-cta > * { position: relative; z-index: 1; }
.final-cta h2 { margin-inline: auto; }
.final-cta p { max-width: 680px; margin: 20px auto 28px; color: #dcecff; }

.site-footer { padding: 32px 0; border-top: 1px solid var(--line); }
.footer-row { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .88rem; }
.whatsapp-float {
  position: fixed; z-index: 100; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 10px;
  min-height: 58px; padding: 12px 20px; border-radius: 999px; color: #fff; background: #1fbf64;
  box-shadow: 0 12px 34px rgba(6, 76, 40, .3); font-weight: 850; text-decoration: none; transition: .2s ease;
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.01); background: #159a50; }
.whatsapp-icon { width: 24px; height: 24px; fill: currentColor; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .nav-links a:not(.button) { display: none; }
  .pain-grid { grid-template-columns: 1fr; }
  .bridge { grid-template-columns: 1fr; gap: 36px; }
  .benefit-grid, .project-grid, .format-list { grid-template-columns: 1fr; }
}
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) {
  .container { width: min(100% - 28px, 1160px); }
  .section { padding: 74px 0; }
  .hero { padding: 68px 0 56px; }
  .nav { min-height: 66px; }
  .brand-mark { width: 34px; height: 34px; }
  .button { width: 100%; }
  .nav .button { width: auto; padding-inline: 14px; }
  .hero-proof { display: grid; }
  .card, .project-card, .format-card { padding: 26px; }
  .benefit-card { padding-left: 68px; }
  .benefit-icon { left: 24px; top: 26px; }
  .guarantee { grid-template-columns: 1fr; padding: 30px; }
  .final-cta { padding: 56px 24px; }
  .footer-row { display: grid; }
  .whatsapp-float { right: 14px; bottom: 14px; width: 58px; padding: 0; justify-content: center; }
  .whatsapp-float span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
