/* ===========================
   AGMVP HOME (scoped)
   =========================== */

/* Scope: only inside the Home wrapper */
.agmvp-home{
  --navy:#0B1F3B;
  --teal:#00A6A6;
  --accent:#FFB703;
  --bg:#F5F7FA;
  --text:#111827;

  --card:#ffffff;
  --muted:#6B7280;
  --border:rgba(17,24,39,.10);
  --shadow:0 18px 45px rgba(11,31,59,.12);
  --radius:18px;

  --container:1120px;

  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:linear-gradient(180deg,#ffffff 0%, var(--bg) 55%, #ffffff 100%);

  /* FIX: evita que el theme meta márgenes/paddings “de contenido” */
  margin:0;
  padding:0;
}

/* FIX: WP/Theme resets that afectan adentro del wrapper */
.agmvp-home, .agmvp-home *{ box-sizing:border-box; }
.agmvp-home a{ color:inherit; }
.agmvp-home img{ max-width:100%; height:auto; display:block; }
.agmvp-home svg{ display:block; } /* FIX: evita baseline/inline weirdness */

/* FIX: WordPress a veces mete márgenes al primer/último elemento */
.agmvp-home > *:first-child{ margin-top:0 !important; }
.agmvp-home > *:last-child{ margin-bottom:0 !important; }

/* FIX: botones (WP les pone estilos) */
.agmvp-home button{
  font:inherit;
  color:inherit;
  background:none;
  border:0;
  padding:0;
  margin:0;
  line-height:inherit;
}
.agmvp-home button:focus{ outline:none; }

/* FIX: algunos themes cambian box-shadow/focus global */
.agmvp-home *:focus-visible{
  outline: none;
}

/* Container */
.agmvp-home .container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 20px;
}

/* Pills */
.agmvp-home .pill{
  display:inline-flex; gap:10px; align-items:center;
  padding:10px 14px; border:1px solid var(--border);
  border-radius:999px; background:#fff;
  font-size:14px; color:var(--navy);
}
.agmvp-home .dot{
  width:10px;height:10px;border-radius:999px;background:var(--teal);
  box-shadow:0 0 0 6px rgba(0,166,166,.12)
}

/* Buttons */
.agmvp-home .btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid transparent;
  font-weight:600;
  text-decoration:none;
  cursor:pointer;
  transition:transform .12s ease, filter .12s ease, background .12s ease;
  user-select:none;
  white-space:nowrap;

  /* FIX: asegura estilo consistente en <button> */
  background:transparent;
  line-height:1;
}
.agmvp-home .btn:active{transform:translateY(1px)}
.agmvp-home .btn-primary{background:var(--teal); color:#fff}
.agmvp-home .btn-primary:hover{filter:brightness(.97)}
.agmvp-home .btn-ghost{background:transparent; border-color:rgba(0,166,166,.35); color:var(--navy)}
.agmvp-home .btn-ghost:hover{background:rgba(0,166,166,.06)}

/* Header */
.agmvp-home header{
  position:sticky; top:0; z-index:30;
  backdrop-filter:saturate(140%) blur(10px);
  background:rgba(245,247,250,.75);
  border-bottom:1px solid rgba(17,24,39,.08);

  /* FIX: algunos themes ponen márgenes a header dentro del contenido */
  margin:0;
}
.agmvp-home .nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:14px;
}
.agmvp-home .brand{
  display:flex; align-items:center; gap:10px;
  text-decoration:none;
}
.agmvp-home .logo{
  width:38px;height:38px;border-radius:12px;
  background:linear-gradient(135deg,var(--navy), #102a52);
  position:relative; overflow:hidden;
  box-shadow:0 10px 24px rgba(11,31,59,.18);
}
.agmvp-home .logo:before{
  content:"";
  position:absolute; inset:-20%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,183,3,.9), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(0,166,166,.9), transparent 50%);
  transform:rotate(12deg);
  opacity:.9;
}
.agmvp-home .brand strong{font-family:Sora,Inter,sans-serif; letter-spacing:-.02em}
.agmvp-home .nav-links{display:flex; gap:18px; align-items:center}
.agmvp-home .nav-links a{
  color:var(--navy);
  text-decoration:none;
  font-weight:600;
  font-size:14px;
  opacity:.85;
}
.agmvp-home .nav-links a:hover{opacity:1}
.agmvp-home .nav-cta{display:flex; gap:10px; align-items:center}

/* Hero */
.agmvp-home .hero{ padding:34px 0 26px; }
.agmvp-home .hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:22px;
  align-items:stretch;
}
.agmvp-home .hero-card{
  background:linear-gradient(180deg,#fff 0%, rgba(0,166,166,.03) 100%);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:26px;
  box-shadow:var(--shadow);
  position:relative;
  overflow:hidden;
}
.agmvp-home .hero-card:after{
  content:"";
  position:absolute; right:-120px; top:-120px;
  width:280px;height:280px;border-radius:999px;
  background:radial-gradient(circle, rgba(255,183,3,.24), transparent 60%);
  pointer-events:none;
}
.agmvp-home h1{
  font-family:Sora,Inter,sans-serif;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height:1.05;
  margin:14px 0 12px;
  letter-spacing:-.03em;
  color:var(--navy);
}
.agmvp-home .subhead{
  font-size:16px;
  color:rgba(11,31,59,.85);
  line-height:1.5;
  margin:0 0 18px;
  max-width:58ch;
}
.agmvp-home .hero-actions{display:flex; gap:10px; flex-wrap:wrap}
.agmvp-home .hero-meta{
  display:flex; gap:14px; flex-wrap:wrap;
  margin-top:16px; color:var(--muted); font-size:13px;
}
.agmvp-home .hero-meta span{
  display:inline-flex; gap:8px; align-items:center;
  padding:8px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  background:#fff;
}
.agmvp-home .check{
  width:18px;height:18px;border-radius:999px;
  background:rgba(0,166,166,.16);
  display:grid; place-items:center;
  border:1px solid rgba(0,166,166,.25);
}
.agmvp-home .check svg{width:12px;height:12px}

.agmvp-home .hero-media{
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  background:#fff;
  box-shadow:var(--shadow);
  position:relative;
  min-height:420px;
}
.agmvp-home .hero-media img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.agmvp-home .media-badge{
  position:absolute; left:14px; bottom:14px;
  background:rgba(11,31,59,.86);
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
  padding:10px 12px;
  border-radius:14px;
  max-width:80%;
  font-size:13px;
  z-index:2;
}

/* Sections */
.agmvp-home section{ padding:26px 0; }

/* FIX: WP mete márgenes a p/h2 por defecto; ya que todo está dentro del wrapper, controlamos */
.agmvp-home p{ margin:0; }
.agmvp-home h2, .agmvp-home h3{ margin:0; }

.agmvp-home .section-head{
  display:flex; justify-content:space-between; align-items:flex-end;
  gap:14px; flex-wrap:wrap;
  margin-bottom:14px;
}
.agmvp-home .section-head h2{
  font-family:Sora,Inter,sans-serif;
  color:var(--navy);
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing:-.02em;
}
.agmvp-home .section-head p{
  color:var(--muted);
  max-width:58ch;
  line-height:1.55;
  font-size:15px;
}

.agmvp-home .grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

.agmvp-home .contact-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:14px;
  align-items:start;
}
.agmvp-home .span-2{ grid-column: 1 / -1; }

.agmvp-home .process-figure{ padding:0; overflow:hidden; }
.agmvp-home .process-figure img{ width:100%; height:auto; }

.agmvp-home .card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:0 12px 26px rgba(11,31,59,.06);
}
.agmvp-home .card h3{
  margin:0 0 8px;
  font-family:Sora,Inter,sans-serif;
  font-size:16px;
  color:var(--navy);
}
.agmvp-home .card p{
  color:var(--muted);
  line-height:1.6;
  font-size:14px;
}
.agmvp-home .card .mini-actions{margin-top:12px; display:flex; gap:10px; flex-wrap:wrap}
.agmvp-home .link-btn{
  border:none;
  background:transparent;
  color:var(--teal);
  font-weight:700;
  cursor:pointer;
  padding:0;
  text-decoration:underline;
  text-underline-offset:3px;
  font-size:13px;
}

/* Video */
.agmvp-home .video-wrap{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:14px;
  align-items:stretch;
}
.agmvp-home .video-card{
  border-radius:var(--radius);
  border:1px solid var(--border);
  overflow:hidden;
  background:#fff;
  box-shadow:var(--shadow);
}
.agmvp-home .ratio{
  position:relative;
  width:100%;
  padding-top:56.25%;
  background:#000;
}
.agmvp-home .ratio iframe{
  position:absolute; inset:0;
  width:100%; height:100%;
  border:0;
}

/* FAQ */
.agmvp-home .faq{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.agmvp-home details{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:14px 16px;
  box-shadow:0 10px 20px rgba(11,31,59,.05);
}
.agmvp-home summary{
  cursor:pointer;
  font-weight:700;
  color:var(--navy);
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.agmvp-home summary::-webkit-details-marker{display:none}
.agmvp-home details[open] .caret{background:rgba(255,183,3,.14)}
.agmvp-home details p{
  margin:10px 0 0;
  color:var(--muted);
  line-height:1.6;
  font-size:14px;
}
.agmvp-home .caret{
  width:22px;height:22px;border-radius:10px;
  border:1px solid var(--border);
  display:grid; place-items:center;
  background:rgba(0,166,166,.06);
}

/* Forms (generic) */
.agmvp-home form{ display:grid; gap:12px; }
.agmvp-home .form-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}
.agmvp-home label{font-size:13px; color:rgba(11,31,59,.85); font-weight:700}
.agmvp-home input,
.agmvp-home select,
.agmvp-home textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(17,24,39,.14);
  background:#fff;
  font:inherit;
  outline:none;
}
.agmvp-home input:focus,
.agmvp-home select:focus,
.agmvp-home textarea:focus{
  border-color:rgba(0,166,166,.55);
  box-shadow:0 0 0 5px rgba(0,166,166,.14);
}
.agmvp-home textarea{min-height:120px; resize:vertical}
.agmvp-home .hint{font-size:12px; color:var(--muted); line-height:1.4; margin-top:4px;}
.agmvp-home .consent{display:flex; gap:10px; align-items:flex-start; font-size:13px; color:rgba(11,31,59,.85);}
.agmvp-home .consent input{width:18px;height:18px; margin-top:2px}
.agmvp-home .form-actions{display:flex; gap:10px; flex-wrap:wrap}

/* Footer */
.agmvp-home footer{ padding:26px 0 40px; color:rgba(11,31,59,.78); }
.agmvp-home .footer-card{
  border:1px solid var(--border);
  background:#fff;
  border-radius:var(--radius);
  padding:16px;
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  align-items:center;
}
.agmvp-home .small{font-size:12px; color:rgba(11,31,59,.65); line-height:1.5; max-width:80ch}

/* Social */
.agmvp-home .social{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
}
.agmvp-home .social-btn{
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  text-decoration:none;
  background:rgba(0,166,166,.06);
  border:1px solid rgba(17,24,39,.10);
  transition:transform .12s ease, background .12s ease, filter .12s ease;
}
.agmvp-home .social-btn:hover{
  background:rgba(255,183,3,.14);
  transform:translateY(-1px);
}
.agmvp-home .social-btn svg{ width:20px; height:20px; fill:var(--navy); }

/* Modal / Overlay */
.agmvp-home .overlay{
  position:fixed; inset:0; z-index:80;
  display:none;
  background:rgba(11,31,59,.62);
  backdrop-filter: blur(6px);
  padding:18px;
}
.agmvp-home .overlay[aria-hidden="false"]{display:grid; place-items:center}
.agmvp-home .modal{
  width:min(860px, 100%);
  border-radius:22px;
  background:#fff;
  border:1px solid rgba(255,255,255,.22);
  box-shadow:0 26px 80px rgba(11,31,59,.42);
  overflow:hidden;
}
.agmvp-home .modal-header{
  display:flex; justify-content:space-between; align-items:center;
  gap:10px;
  padding:14px 16px;
  background:linear-gradient(135deg, var(--navy), #102a52);
  color:#fff;
}
.agmvp-home .modal-header strong{font-family:Sora,Inter,sans-serif; letter-spacing:-.02em;}
.agmvp-home .close{
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.22);
  color:#fff;
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
  font-weight:700;
}
.agmvp-home .modal-body{ padding:16px; max-height:min(70vh, 620px); overflow:auto; }
.agmvp-home .modal-body h4{ margin:0 0 10px; font-family:Sora,Inter,sans-serif; color:var(--navy); }
.agmvp-home .modal-body p{ margin:0 0 12px; color:var(--muted); line-height:1.7; font-size:14px; }

/* Header social sizing */
.agmvp-home .social--header{ gap:8px; margin-left:6px; }
.agmvp-home .social-btn--sm{ width:38px; height:38px; border-radius:12px; }

/* Responsive */
@media (max-width: 980px){
  .agmvp-home .hero-grid{grid-template-columns:1fr;}
  .agmvp-home .video-wrap{grid-template-columns:1fr;}
  .agmvp-home .grid-3{grid-template-columns:1fr;}
  .agmvp-home .faq{grid-template-columns:1fr;}
  .agmvp-home .form-grid{grid-template-columns:1fr;}
  .agmvp-home .nav-links{display:none;}
  .agmvp-home .social--header{display:none;}
  .agmvp-home .contact-grid{grid-template-columns:1fr;}
  .agmvp-home .span-2{grid-column:auto;}
  .agmvp-home .social{justify-content:flex-start; width:100%;}
}

/* Simple anchor offset */
.agmvp-home .anchor{position:relative; top:-80px; height:1px}

/* ===========================
   Fluent Forms skin (MVP)
   Scoped to .agmvp-home
   =========================== */

.agmvp-home .fluentform{ margin-top:10px; }

.agmvp-home .fluentform .ff-el-group{ margin-bottom:12px; }
.agmvp-home .fluentform .ff-el-group:last-child{ margin-bottom:0; }

.agmvp-home .fluentform label{
  display:block;
  font-size:13px;
  color:rgba(11,31,59,.85);
  font-weight:700;
  margin:0 0 6px;
}

.agmvp-home .fluentform .ff-el-form-control,
.agmvp-home .fluentform select.ff-el-form-control,
.agmvp-home .fluentform textarea.ff-el-form-control{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(17,24,39,.14);
  background:#fff;
  font:inherit;
  outline:none;
  box-shadow:none;
}

.agmvp-home .fluentform .ff-el-form-control:focus{
  border-color:rgba(0,166,166,.55);
  box-shadow:0 0 0 5px rgba(0,166,166,.14);
}

.agmvp-home .fluentform textarea.ff-el-form-control{
  min-height:120px;
  resize:vertical;
}

.agmvp-home .fluentform .ff-el-form-control::placeholder{
  color:rgba(107,114,128,.85);
}

.agmvp-home .fluentform .ff-el-form-check{
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-size:13px;
  color:rgba(11,31,59,.85);
}
.agmvp-home .fluentform .ff-el-form-check input[type="checkbox"]{
  width:18px;
  height:18px;
  margin-top:2px;
}

.agmvp-home .fluentform .ff-el-help-text,
.agmvp-home .fluentform .ff-el-input--help{
  font-size:12px;
  color:var(--muted);
  line-height:1.4;
  margin-top:6px;
}

.agmvp-home .fluentform .error,
.agmvp-home .fluentform .ff-el-is-error .ff-el-form-control{
  border-color:rgba(220,38,38,.55);
}
.agmvp-home .fluentform .ff-el-error-message{
  font-size:12px;
  color:rgba(220,38,38,.95);
  margin-top:6px;
}

.agmvp-home .fluentform .ff-message-success{
  border:1px solid rgba(0,166,166,.35);
  background:rgba(0,166,166,.06);
  color:rgba(11,31,59,.92);
  padding:12px 14px;
  border-radius:14px;
}

.agmvp-home .fluentform .ff-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid transparent;
  font-weight:600;
  cursor:pointer;
  background:var(--teal);
  color:#fff;
  transition:transform .12s ease, filter .12s ease, background .12s ease;

  /* FIX: Fluent/WP sometimes sets min-height/line-height */
  line-height:1;
}
.agmvp-home .fluentform .ff-btn:hover{ filter:brightness(.97); }
.agmvp-home .fluentform .ff-btn:active{ transform:translateY(1px); }

.agmvp-home .fluentform .ff-btn.ff-btn-secondary{
  background:transparent;
  color:var(--navy);
  border-color:rgba(0,166,166,.35);
}

.agmvp-home .fluentform .ff_submit_btn_wrapper{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:4px;
}

@media (min-width: 981px){
  .agmvp-home .fluentform .ff-el-form-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
  }
  .agmvp-home .fluentform .ff-el-form-row .ff-el-form-col-12{
    grid-column:1 / -1;
  }
}

@media (max-width: 980px){
  .agmvp-home .fluentform .ff-el-form-row{ display:block; }
}

@media (prefers-reduced-motion: reduce){
  .agmvp-home .btn,
  .agmvp-home .fluentform .ff-btn{ transition:none; }
}

/* ===========================
   HOTFIX: theme overrides
   =========================== */

/* 1) Que el wrapper mande */
.agmvp-home{
  width:100%;
  max-width:none;
}

/* 2) Links: WP suele meter underline con selectores más específicos */
.agmvp-home a,
.agmvp-home a:visited{
  color:inherit !important;
  text-decoration:none !important;
}
.agmvp-home a:hover{ text-decoration:none !important; }

/* 3) Evita tipografías/estilos raros de bloques WP */
.agmvp-home :where(p, h1, h2, h3, h4, ul, ol){
  max-width:none !important;
}

/* 4) Botones: WP/theme a veces cambia el estilo de <button> */
.agmvp-home button.btn{
  appearance:none;
  -webkit-appearance:none;
  background:transparent;
  border:1px solid transparent;
  font:inherit;
}

/* 5) FULL-BLEED (quita el “constrained” del theme)
   Si te genera scroll horizontal, quita estas 3 líneas. */
.agmvp-home{
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  width:100vw;
  overflow-x:hidden;
}

/* TT4: rompe el constrained container solo para la Home */
body .entry-content > .agmvp-home{
  max-width: none !important;
  width: 100% !important;
}

/* TT4: el wrapper parent suele ser constrained (Block Group) */
body .is-layout-constrained > .agmvp-home,
body .wp-block-group.is-layout-constrained > .agmvp-home{
  max-width: none !important;
  width: 100% !important;
}

/* Si TT4 mete padding lateral en entry-content, lo anulamos solo aquí */
body .entry-content{
  padding-left: 0;
  padding-right: 0;
}

/* Mantén tu container centrado */
.agmvp-home .container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.agmvp-home .logo-wrap{
  width:100px;
  height:100px;
  border-radius:12px;
  overflow:hidden;
  display:inline-grid;
  place-items:center;
  background:#fff;
  border:1px solid rgba(17,24,39,.10);
  box-shadow:0 10px 24px rgba(11,31,59,.12);
}
.agmvp-home .brand-text span{
  font-size:12px;
  color:rgba(11,31,59,.65);
  font-weight:600;
}

/* Logo image */
.agmvp-home .logo-img{
  height: 100px;
  width: auto;
  display: block;
}

/* Candidate form page tweaks */
.agmvp-home.agmvp-form .hero{ display:none; } /* por si algún día reutilizas secciones */
.agmvp-home.agmvp-form section{ padding: 34px 0; }
.agmvp-home.agmvp-form .card{ padding: 22px; }