/* ==========================================================
   GRUPO ARQUISOCIAL | ENVÍO DE CV
   Divi + Contact Form 7 · estilos acotados a .as-cv
   ========================================================== */

/* Permitir que el contenido ocupe todo el ancho de la sección Divi. */
.et_pb_section:has(.as-cv) {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.et_pb_row:has(.as-cv) {
  width: 100% !important;
  max-width: none !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.et_pb_column:has(.as-cv),
.et_pb_code:has(.as-cv) {
  margin-bottom: 0 !important;
}

.as-cv {
  --cv-white: #FBFBFB;
  --cv-black: #2A2A2A;
  --cv-green: #899F75;
  --cv-green-dark: #899F75;
  --cv-green-soft: #D8DFD1;
  --cv-cream: #FFF9DC;
  --cv-yellow: #F5D892;
  --cv-red: #AA4B4B;
  --cv-border: #E1E6DC;
  width: 100%;
  overflow: clip;
  background: var(--cv-white);
  color: var(--cv-black);
  font-family: var(--as-font-body, 'Figtree', Arial, sans-serif);
  -webkit-font-smoothing: antialiased;
}

.as-cv,
.as-cv * { box-sizing: border-box; }
.as-cv a { text-decoration: none; }
.as-cv p, .as-cv h1, .as-cv h2, .as-cv h3 { margin: 0; padding: 0; }
.as-cv h1, .as-cv h2, .as-cv h3 { color: inherit; }
.as-cv a:focus-visible,
.as-cv button:focus-visible,
.as-cv .wpcf7 input:focus-visible,
.as-cv .wpcf7 select:focus-visible,
.as-cv .wpcf7 textarea:focus-visible { outline: 3px solid var(--cv-red); outline-offset: 3px; }
.as-cv__container { width: min(1240px, calc(100% - 112px)); margin-inline: auto; }

/* BARRA DE CONTEXTO */
.as-cv__breadcrumb {
  background: #fff;
  border-bottom: 1px solid #E9E9E3;
}
.as-cv__breadcrumb-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.as-cv__breadcrumb-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .015em;
}
.as-cv__breadcrumb-links a { color: #666; transition: color .2s ease; }
.as-cv__breadcrumb-links a:hover { color: var(--cv-red); }
.as-cv__breadcrumb-links span[aria-hidden] { color: #C0C0BA; }
.as-cv__breadcrumb-links span[aria-current] { color: var(--cv-black); }
.as-cv__breadcrumb-tag {
  font-size: 11px;
  color: var(--cv-green-dark);
  letter-spacing: .11em;
  text-transform: uppercase;
  font-weight: 750;
}

/* HERO */
.as-cv__hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  background: var(--cv-cream);
}
.as-cv__hero-copy {
  padding: clamp(64px, 7vw, 114px) clamp(40px, 6.2vw, 108px) 34px max(56px, calc((100vw - 1240px) / 2));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}
.as-cv__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cv-red);
  font-size: 12px;
  font-weight: 850 !important;
  letter-spacing: .115em;
  line-height: 1.5;
}
.as-cv__eyebrow-line { width: 42px; height: 2px; background: var(--cv-red); display: inline-block; }
.as-cv__hero h1 {
  margin-top: 29px;
  font-family: var(--as-font-title, 'Antikor', Georgia, serif) !important;
  font-weight: 700 !important;
  font-size: clamp(53px, 5vw, 80px);
  letter-spacing: -.045em;
  line-height: 1.01;
  max-width: 800px;
}
.as-cv__hero h1 em,
.as-cv__application-intro h2 em {
  font-style: normal;
  color: var(--cv-green-dark);
}
.as-cv__hero-intro {
  margin-top: 28px !important;
  max-width: 480px;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.76;
  font-weight: 400;
}
/* CTA oficial: mismo corte, sombra, tipografia y hover que .asinfv1-cta. */
.as-cv__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 340px;
  min-height: 56px;
  padding: 18px 22px;
  overflow: visible;
  border: 1px solid rgba(137, 159, 117, 0.35);
  border-radius: 0;
  background: var(--cv-green);
  color: var(--cv-cream) !important;
  box-shadow: 6px 6px 0 rgba(137, 159, 117, 0.14);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  font-family: var(--as-font-body, 'Figtree', Arial, sans-serif) !important;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: transform .24s ease, background .24s ease, color .24s ease, box-shadow .24s ease;
}
.as-cv__button::after {
  content: "→";
  display: inline-block;
  flex-shrink: 0;
  margin-left: 16px;
  color: currentColor;
  font-size: 16px;
  line-height: 1;
  transition: transform .24s ease;
}
.as-cv__button--primary { margin-top: 30px; }
.as-cv__button:hover,
.as-cv__button:focus-visible {
  background: var(--cv-cream);
  color: var(--cv-green) !important;
  transform: translateY(-4px);
  box-shadow: 10px 10px 0 rgba(137, 159, 117, 0.18);
  outline: none;
}
.as-cv__button:hover::after,
.as-cv__button:focus-visible::after { transform: translateX(5px); }
.as-cv__hero-baseline {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 48px;
  font-size: 10px;
  font-weight: 850 !important;
  letter-spacing: .14em;
  color: var(--cv-red) !important;
}
.as-cv__hero-baseline > span:not(.as-cv__hero-rule) {
  color: var(--cv-red) !important;
  font-weight: 850 !important;
}
.as-cv__hero-rule { flex: 1; height: 1px; background: rgba(170, 75, 75, .30); }
.as-cv__hero-media {
  min-height: 610px;
  position: relative;
  margin: 0;
  background: #748a6d;
  overflow: hidden;
}
.as-cv__hero-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}
.as-cv__hero-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,33,25,.02) 40%, rgba(24,38,24,.66) 100%);
  pointer-events: none;
}
.as-cv__hero-media-legend {
  position: absolute;
  left: clamp(26px, 4vw, 62px);
  right: clamp(26px, 4vw, 62px);
  bottom: 33px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,.6);
  padding-top: 15px;
  color: #fff;
}
.as-cv__hero-media-label { font-weight: 750; font-size: 11px; letter-spacing: .12em; max-width: 200px; line-height: 1.5; }
.as-cv__hero-media-counter { text-align: right; font-weight: 650; letter-spacing: .16em; font-size: 10px; line-height: 1.5; }

/* FORMULARIO */
.as-cv__application { padding: 116px 0 124px; scroll-margin-top: 90px; background: var(--cv-white); }
.as-cv__application-grid {
  display: grid;
  grid-template-columns: minmax(0, .77fr) minmax(0, 1fr);
  gap: clamp(56px, 8vw, 132px);
  align-items: start;
}
.as-cv__application-intro { padding-top: 12px; }
.as-cv__section-index {
  color: var(--cv-red);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--as-font-body, 'Figtree', Arial, sans-serif) !important;
  font-size: 12px !important;
  line-height: 1 !important;
  letter-spacing: .115em !important;
  font-weight: 850 !important;
  text-transform: uppercase;
}
.as-cv__section-index > span:first-child { color: var(--cv-red) !important; font-weight: 850 !important; }
.as-cv__section-index-line { width: 26px; height: 1px; background: var(--cv-red); }
.as-cv__application-intro h2 {
  font-family: var(--as-font-title, 'Antikor', Georgia, serif) !important;
  font-size: clamp(48px, 4.8vw, 75px);
  font-weight: 700 !important;
  line-height: 1.02;
  letter-spacing: -.045em;
  margin-top: 28px;
}
.as-cv__application-desc {
  margin-top: 27px !important;
  font-size: 17px;
  line-height: 1.78;
  max-width: 390px;
  color: #555;
}
.as-cv__steps { margin-top: 45px; border-top: 1px solid var(--cv-border); }
.as-cv__step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 15px;
  padding: 22px 0;
  border-bottom: 1px solid var(--cv-border);
}
.as-cv__step-num { font-size: 12px; font-weight: 800; color: var(--cv-red); padding-top: 3px; }
.as-cv__step strong { font-size: 15px; font-weight: 750; line-height: 1.3; }
.as-cv__step p { color: #666; margin-top: 6px !important; font-size: 13px; line-height: 1.6; }

.as-cv__form-card {
  position: relative;
  padding: clamp(30px, 4.1vw, 56px);
  background: #fff;
  border: 1px solid var(--cv-border);
  border-top: 5px solid var(--cv-green);
}
.as-cv__form-eyebrow {
  color: var(--cv-red);
  font-size: 10px;
  font-weight: 850 !important;
  line-height: 1.5;
  letter-spacing: .16em;
}
.as-cv__form-head h3 {
  margin-top: 12px;
  font-family: var(--as-font-title, 'Antikor', Georgia, serif) !important;
  font-size: clamp(29px, 2.5vw, 37px);
  font-weight: 700 !important;
  letter-spacing: -.035em;
  line-height: 1.15;
}
.as-cv__form-head > p:last-child { margin-top: 11px; color: #626262; font-size: 14px; line-height: 1.7; }
.as-cv__cf7 { margin-top: 30px; min-height: 65px; }
.as-cv__form-bottom {
  margin-top: 25px;
  padding-top: 18px;
  border-top: 1px solid var(--cv-border);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.as-cv__privacy-symbol {
  display: inline-grid;
  width: 19px;
  height: 19px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--cv-green);
  border-radius: 50%;
  color: var(--cv-green-dark);
  font-size: 12px;
  font-weight: 700;
  font-family: Georgia, serif;
}
.as-cv__form-bottom p { font-size: 12px; line-height: 1.6; color: #656565; }
.as-cv__form-bottom a { color: var(--cv-green-dark); text-decoration: underline; text-underline-offset: 2px; }
.as-cv__form-bottom a:hover { color: var(--cv-red); }

/* CONTACT FORM 7: controlado únicamente dentro de la página */
.as-cv .wpcf7,
.as-cv .wpcf7-form { width: 100%; max-width: 100%; }
.as-cv .wpcf7-form p { margin: 0 0 18px !important; padding: 0 !important; }
.as-cv .wpcf7-form label { color: var(--cv-black); font-family: 'Figtree', Arial, sans-serif; font-size: 13px; font-weight: 750; line-height: 1.6; }
.as-cv .wpcf7-form .wpcf7-form-control-wrap { display: block; max-width: 100%; margin-top: 7px; }
.as-cv .wpcf7-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]):not([type="file"]),
.as-cv .wpcf7-form select,
.as-cv .wpcf7-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #D8DFD1;
  border-radius: 2px;
  background: #FBFBFA;
  box-shadow: none;
  color: var(--cv-black);
  font-family: 'Figtree', Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  transition: border-color .18s ease, background .18s ease;
}
.as-cv .wpcf7-form textarea { min-height: 110px; resize: vertical; }
.as-cv .wpcf7-form input::placeholder,
.as-cv .wpcf7-form textarea::placeholder { color: #898F84; opacity: 1; }
.as-cv .wpcf7-form input:focus,
.as-cv .wpcf7-form select:focus,
.as-cv .wpcf7-form textarea:focus { background: #fff; border-color: var(--cv-green-dark); }
.as-cv .wpcf7-form input[type="file"] {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 14px 12px;
  border: 1px dashed #B8C8AE;
  border-radius: 2px;
  background: #F6F8F3;
  color: var(--cv-black);
  font-family: 'Figtree', Arial, sans-serif;
  font-size: 13px;
  cursor: pointer;
}
.as-cv .wpcf7-form input[type="file"]::file-selector-button {
  padding: 9px 12px;
  margin-right: 12px;
  border: 1px solid var(--cv-green);
  border-radius: 2px;
  color: var(--cv-green-dark);
  background: #fff;
  cursor: pointer;
  font-family: 'Figtree', Arial, sans-serif;
  font-size: 12px;
  font-weight: 750;
}
.as-cv__file-state { margin: 7px 0 0 !important; color: var(--cv-green-dark); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.as-cv .wpcf7-form input[type="checkbox"],
.as-cv .wpcf7-form input[type="radio"] { width: 17px; height: 17px; margin: 1px 8px 0 0; flex: 0 0 auto; accent-color: var(--cv-green-dark); }
.as-cv .wpcf7-form .wpcf7-list-item { margin: 0; }
.as-cv .wpcf7-form .wpcf7-list-item label { display: inline-flex; align-items: flex-start; gap: 3px; color: #545454; font-size: 12px; font-weight: 450; line-height: 1.6; }
.as-cv .wpcf7-form .wpcf7-list-item-label { font-size: 12px; font-weight: 450; line-height: 1.6; }
.as-cv .wpcf7-form a { color: var(--cv-green-dark); text-decoration: underline; text-underline-offset: 2px; }
/* Boton de Contact Form 7 con la misma silueta que el CTA oficial. */
.as-cv .wpcf7-form input[type="submit"],
.as-cv .wpcf7-form button[type="submit"] {
  display: block;
  width: 100%;
  min-height: 56px;
  margin-top: 4px;
  padding: 18px 56px 18px 22px;
  border: 1px solid rgba(137, 159, 117, 0.35) !important;
  border-radius: 0 !important;
  background-color: var(--cv-green) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23FFF9DC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M13 5l7 7-7 7'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 22px center !important;
  background-size: 18px 18px !important;
  box-shadow: 6px 6px 0 rgba(137, 159, 117, 0.14) !important;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  color: var(--cv-cream) !important;
  font-family: var(--as-font-body, 'Figtree', Arial, sans-serif) !important;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: transform .24s ease, background-color .24s ease, color .24s ease, box-shadow .24s ease;
}
.as-cv .wpcf7-form input[type="submit"]:hover,
.as-cv .wpcf7-form input[type="submit"]:focus-visible,
.as-cv .wpcf7-form button[type="submit"]:hover,
.as-cv .wpcf7-form button[type="submit"]:focus-visible {
  background-color: var(--cv-cream) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23899F75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M13 5l7 7-7 7'/%3E%3C/svg%3E") !important;
  color: var(--cv-green) !important;
  transform: translateY(-4px);
  box-shadow: 10px 10px 0 rgba(137, 159, 117, 0.18) !important;
}
.as-cv .wpcf7-form input[type="submit"]:disabled { cursor: not-allowed; opacity: .7; }
.as-cv .wpcf7-form .wpcf7-not-valid-tip { margin-top: 5px; color: var(--cv-red); font-size: 12px; font-weight: 600; }
.as-cv .wpcf7-form .wpcf7-response-output { margin: 22px 0 0 !important; padding: 13px 15px !important; border: 1px solid var(--cv-green) !important; color: var(--cv-black); font-size: 13px; line-height: 1.6; }
.as-cv .wpcf7 form.invalid .wpcf7-response-output,
.as-cv .wpcf7 form.failed .wpcf7-response-output,
.as-cv .wpcf7 form.spam .wpcf7-response-output { border-color: var(--cv-red) !important; }
.as-cv .wpcf7-spinner { vertical-align: middle; }

/* CIERRE: seccion crema y CTA verde, como el contacto final de la web. */
.as-cv__closing {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(137, 159, 117, 0.18);
  border-bottom: 1px solid rgba(137, 159, 117, 0.18);
  background: var(--cv-cream);
  color: var(--cv-black);
  isolation: isolate;
}
.as-cv__closing::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  right: clamp(-210px, -10vw, -110px);
  width: clamp(480px, 44vw, 720px);
  aspect-ratio: 1;
  background: url("/wp-content/themes/divi-arquisocial-child/assets/img/grupo-arquisocial-mariposa.svg") center / contain no-repeat;
  opacity: .055;
  transform: translateY(-50%);
  pointer-events: none;
}
.as-cv__closing-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  padding-top: clamp(76px, 7vw, 112px);
  padding-bottom: clamp(76px, 7vw, 112px);
}
.as-cv__closing-label {
  color: var(--cv-red);
  font-size: 12px;
  line-height: 1;
  letter-spacing: .115em;
  font-weight: 850;
}
.as-cv__closing p {
  margin-top: 26px;
  font-family: var(--as-font-title, 'Antikor', Georgia, serif) !important;
  color: var(--cv-green) !important;
  font-size: clamp(38px, 4.2vw, 66px);
  line-height: 1.02;
  font-weight: 700 !important;
  letter-spacing: -.045em;
}
.as-cv__closing p strong { font-weight: 700; }
.as-cv__closing-link { flex-shrink: 0; margin: 0; }
@media (max-width: 1100px) {
  .as-cv__container { width: min(100% - 72px, 1240px); }
  .as-cv__hero { min-height: 550px; grid-template-columns: 1fr 0.9fr; }
  .as-cv__hero-copy { padding: 70px 45px 30px 36px; }
  .as-cv__hero h1 { font-size: clamp(48px, 5.5vw, 70px); }
  .as-cv__hero-media { min-height: 550px; }
  .as-cv__application-grid { gap: 60px; grid-template-columns: 0.8fr 1fr; }
}

@media (max-width: 820px) {
  .as-cv__container { width: calc(100% - 48px); }
  .as-cv__hero { grid-template-columns: 1fr; }
  .as-cv__hero-copy { padding: 66px 24px 38px; }
  .as-cv__hero h1 { font-size: clamp(46px, 8vw, 70px); }
  .as-cv__hero-intro { max-width: 650px; }
  .as-cv__hero-baseline { padding-top: 42px; }
  .as-cv__hero-media { min-height: 350px; }
  .as-cv__application { padding: 76px 0 90px; }
  .as-cv__application-grid { grid-template-columns: 1fr; gap: 46px; }
  .as-cv__application-intro h2 { font-size: clamp(48px, 8vw, 67px); }
  .as-cv__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
  .as-cv__step { grid-template-columns: 1fr; gap: 5px; }
  .as-cv__form-card { padding: 40px; }
  .as-cv__closing-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .as-cv__container { width: calc(100% - 36px); }
  .as-cv__breadcrumb-inner { min-height: 52px; }
  .as-cv__breadcrumb-tag { display: none; }
  .as-cv__hero-copy { padding: 54px 18px 29px; }
  .as-cv__hero h1 { margin-top: 23px; font-size: clamp(42px, 10vw, 57px); letter-spacing: -.055em; }
  .as-cv__hero-intro { margin-top: 23px !important; font-size: 15px; line-height: 1.7; }
  .as-cv__button--primary { margin-top: 23px; }
  .as-cv__hero-baseline { gap: 8px; font-size: 9px; padding-top: 35px; }
  .as-cv__hero-baseline span:last-child { max-width: 116px; text-align: right; }
  .as-cv__hero-media { min-height: 280px; }
  .as-cv__hero-media-legend { left: 18px; right: 18px; bottom: 19px; }
  .as-cv__hero-media-label { font-size: 9px; }
  .as-cv__hero-media-counter { font-size: 9px; }
  .as-cv__application { padding: 67px 0 76px; }
  .as-cv__application-intro h2 { font-size: clamp(45px, 10vw, 56px); }
  .as-cv__application-desc { font-size: 15px; }
  .as-cv__steps { grid-template-columns: 1fr; gap: 0; margin-top: 32px; }
  .as-cv__step { grid-template-columns: 40px 1fr; gap: 14px; padding: 17px 0; }
  .as-cv__form-card { padding: 30px 21px; }
  .as-cv__form-head h3 { font-size: 29px; }
  .as-cv__closing p { font-size: clamp(36px, 9vw, 52px); }
  .as-cv__closing-inner { align-items: flex-start; flex-direction: column; gap: 30px; padding-top: 70px; padding-bottom: 78px; }
  .as-cv__button { min-width: 0; width: 100%; }
  .as-cv__closing-link { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .as-cv *, .as-cv *::before, .as-cv *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
