/* Cooper - componentes de la landing.
   Solo lo que los controles nativos de Elementor no pueden expresar.
   Todo lo demas (color, tipografia, espaciado, borde, sombra, flex) va por el Kit. */

/* Texto con degradado - h1 del hero */
.cooper-gradient-text{
  background:linear-gradient(115deg,#FFFFFF 0%,#A9C0FF 48%,#C3B4FF 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
}
.cooper-muted-line{ color:rgba(255,255,255,.42); }


/* Regla de 44x3 sobre los titulos de columna */
.cooper-rule{ width:44px; height:3px; border-radius:999px; background:linear-gradient(90deg,var(--cat-coopercards-from),var(--cat-coopercards-to)); }
.cooper-rule--orgs{ background:linear-gradient(90deg,var(--cat-coopups-from),var(--cat-coopups-to)); }

/* Listas: el separador y el espaciado los gobierna el control nativo de
   icon-list (divider + space_between). Aqui solo el color del texto,
   que el global de Elementor no alcanza por especificidad. */

/* Marquee infinito - la tira de capturas */
.cooper-marquee{ overflow:hidden; -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); }
.cooper-marquee__track{ flex-wrap:nowrap !important; width:max-content !important; animation:cooper-marquee 42s linear infinite; will-change:transform; }
.cooper-marquee:hover .cooper-marquee__track{ animation-play-state:paused; }
@keyframes cooper-marquee{ from{transform:translate3d(0,0,0);} to{transform:translate3d(-50%,0,0);} } to{transform:translate3d(-50%,0,0);} }

/* Relacion de aspecto para el video de la CooperCard */
.cooper-media-9x16 .elementor-wrapper{ aspect-ratio:9/16; }
.cooper-media-9x16 video{ width:100%; height:100%; object-fit:cover; display:block; border-radius:var(--radius-media); }

/* Punto "Verified" */
.cooper-dot .elementor-heading-title::before{
  content:""; display:inline-block; width:7px; height:7px; border-radius:50%;
  background:#FFFFFF; box-shadow:0 0 10px rgba(255,255,255,.7); margin-right:9px;
  vertical-align:middle;
}

@media (prefers-reduced-motion:reduce){
  .cooper-marquee__track{ animation:none !important; }
}
/* ============ CORRECCIONES v2: fidelidad con el diseno original ============ */

/* Fondo de pagina: 5 paradas. El control de degradado de Elementor solo hace 2,
   por eso vive aqui. Las secciones van transparentes encima. */
.cooper-page-bg{
  background:linear-gradient(180deg,#020617 0%,#04081A 42%,#05091E 60%,#030816 78%,#020617 100%);
  overflow-x:clip;
}

/* Glass: alinear con GlassCard del design system (le faltaba elev-2) */
.cooper-glass{ box-shadow:var(--elev-2); }



/* Badge de categoria: texto blanco sobre el degradado (cooperCards no es text-safe) */
.cooper-cat-badge .elementor-heading-title{
  display:inline-flex; align-items:center; gap:6px; height:26px; padding:0 12px;
  border-radius:var(--radius-pill);
  background:linear-gradient(135deg,var(--cat-coopercards-from),var(--cat-coopercards-to));
  color:#FFFFFF; line-height:1; white-space:nowrap;
}

/* Badge oscuro: surface-overlay + borde fuerte + texto blanco */
.cooper-badge-dark .elementor-heading-title{
  display:inline-flex; align-items:center; height:26px; padding:0 12px;
  border-radius:var(--radius-pill);
  background:var(--surface-overlay);
  border:1px solid var(--border-strong);
  color:#FFFFFF; line-height:1; white-space:nowrap;
  box-shadow:var(--elev-2);
  letter-spacing:.4px;
}

/* El texto de icon-list debe ser secundario; solo el check lleva color */
.cooper-list .elementor-icon-list-text{ color:var(--text-secondary) !important; }

/* El marquee no debe recortar las capturas */
.cooper-marquee__track .elementor-widget-image img{ display:block; width:210px; height:auto; }
/* ============ v3: valores exactos medidos del render original ============ */

/* El control de margin de Elementor no acepta "auto": centrado por clase */
.cooper-center{ margin-left:auto !important; margin-right:auto !important; }

/* Pildora "I Have Potential" - medido: blanco, uppercase, degradado 12%, borde 20% */
.cooper-pill .elementor-heading-title{
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 14px 7px 12px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:var(--radius-pill);
  background:linear-gradient(rgba(255,255,255,.12),rgba(255,255,255,.04));
  color:#FFFFFF !important;
  text-transform:uppercase;
  letter-spacing:1.2px;
  line-height:1;
}
.cooper-pill .elementor-heading-title::before{
  content:""; width:6px; height:6px; border-radius:50%;
  background:linear-gradient(135deg,var(--cat-coopercards-from),var(--cat-coopercards-to));
  flex:0 0 auto;
}

/* Overlines: text_tertiary, uppercase - medido rgb(138,147,165) */
.cooper-overline .elementor-heading-title{
  text-transform:uppercase; letter-spacing:1.2px;
}

/* Checks: blancos en AMBAS columnas, stroke 2.4 - medido */
.cooper-list .elementor-icon-list-icon svg,
.cooper-list .elementor-icon-list-icon i{ color:#FFFFFF !important; fill:#FFFFFF !important; }
/* ============ v4: cristal medido del original ============ */

/* glassAccent - boton primario "Join free, forever" */
.cooper-btn-accent .elementor-button{
  background:linear-gradient(180deg,rgba(255,255,255,.34),rgba(255,255,255,0) 46%),
             linear-gradient(118deg,rgba(42,231,196,.82) 0%,rgba(30,229,180,.82) 50%,rgba(16,198,162,.82) 100%) !important;
  border:1px solid rgba(255,255,255,.5) !important;
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  backdrop-filter:blur(14px) saturate(140%);
  color:#04160F !important;
  box-shadow:0 8px 20px rgba(2,6,23,.35) !important;
}

/* glassSecondary - "I'm an organization" */
.cooper-btn-secondary .elementor-button{
  background:linear-gradient(180deg,rgba(255,255,255,.17),rgba(255,255,255,.04)) !important;
  border:1px solid rgba(255,255,255,.24) !important;
  -webkit-backdrop-filter:blur(14px) saturate(130%);
  backdrop-filter:blur(14px) saturate(130%);
  color:#FFFFFF !important;
  box-shadow:0 8px 20px rgba(2,6,23,.28) !important;
}

/* glassModule - las columnas de beneficios. NO es el GlassCard generico. */
.cooper-glass-module{
  position:relative;
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,0) 30%),
             linear-gradient(180deg,rgba(20,28,52,.70),rgba(11,18,36,.72)) !important;
  border:1px solid rgba(255,255,255,.14) !important;
  -webkit-backdrop-filter:blur(16px) saturate(125%);
  backdrop-filter:blur(16px) saturate(125%);
  box-shadow:0 24px 60px rgba(0,0,0,.45) !important;
  overflow:hidden;
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .cooper-glass-module{ background:#0B1224 !important; }
  .cooper-btn-secondary .elementor-button{ background:#1A1F3A !important; }
}

/* Capa de orbs */
.cooper-orbs{ position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:0; }
.cooper-orbs [data-orb]{ position:absolute; will-change:transform; }
.cooper-orbs [data-orb] > div{ width:100%; height:100%; border-radius:50%; }
@media (max-width:767px){ .cooper-orbs{ display:none; } }
/* Deriva ambiental de los orbs, portada del original */
@keyframes blobA{ 0%,100%{ transform:translate(0,0) scale(1);} 50%{ transform:translate(-38px,28px) scale(1.14);} }
@keyframes blobB{ 0%,100%{ transform:translate(0,0) scale(1);} 50%{ transform:translate(34px,-26px) scale(1.22);} }
@media (prefers-reduced-motion:reduce){ .cooper-orbs [data-orb] > div{ animation:none !important; } }

/* ============ FIX: contexto de posicionamiento de los orbs ============
   Elementor aplica `.elementor-widget{position:relative}` a TODOS los widgets.
   Eso hace que .cooper-orbs (absolute inset:0) se resuelva contra el widget HTML,
   que tiene altura 0 porque su unico hijo esta fuera de flujo -> orbs de 0x0.
   Con position:static el widget deja de ser contenedor y la capa sube al hero.
   Medido: 1232x0 -> 1280x792. */
.cooper-orbs-host{ position:static !important; }
.cooper-orbs-host > .elementor-widget-container{ position:static; height:auto; }


/* anchos minimos medidos del original */
.cooper-foot-brand{ flex:1 1 260px !important; min-width:220px; }
.cooper-foot-group{ min-width:132px; }
/* el color del enlace del tema no debe ganar dentro del footer */
.cooper-footer .elementor-heading-title,
.cooper-footer .elementor-heading-title a{ color:inherit; }

/* ================= HEADER + FOOTER (XPRO) v2 =================
   Tres correcciones sobre el markup REAL:
   1. El boton de Xpro es <a class="xpro-elementor-button">, no .xpro-button.
   2. WordPress sirve el logo a 300px (<img width="300">): hay que forzar 24px.
   3. Elementor fuerza flex-direction:column en .e-con-boxed.e-flex y solo
      respeta --flex-direction en el .e-con-inner. Lo fijamos ahi directamente. */

/* --- HEADER --- */
.xpro-theme-builder-header{
  position:sticky; top:0; z-index:50;
  background:linear-gradient(rgba(6,10,26,.88) 0%,rgba(6,10,26,.42) 100%);
  -webkit-backdrop-filter:blur(18px) saturate(140%);
  backdrop-filter:blur(18px) saturate(140%);
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .xpro-theme-builder-header{ background:#060A1A; }
}
.cooper-nav__inner > .e-con-inner{
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:space-between !important;
  padding:14px clamp(20px,5vw,40px) !important;
  gap:16px;
}
.cooper-nav-logo .xpro-site-logo img{ height:24px !important; width:auto !important; max-width:none !important; display:block; }

/* enlace de texto: sin relleno ni borde */
.cooper-nav-link .xpro-elementor-button{
  min-height:44px; padding:0 14px !important;
  background:none !important; background-image:none !important;
  border:0 !important; box-shadow:none !important; border-radius:0 !important;
  color:var(--text-secondary) !important;
}
.cooper-nav-link .xpro-button-text{ font-size:14px !important; font-weight:600 !important; color:var(--text-secondary) !important; }
.cooper-nav-link .xpro-elementor-button:hover .xpro-button-text{ color:#FFFFFF !important; }

/* CTA de cristal: el mismo glassAccent del hero */
.cooper-nav-cta .xpro-elementor-button{
  height:48px; padding:0 24px !important;
  border-radius:var(--radius-pill) !important;
  background:linear-gradient(180deg,rgba(255,255,255,.34),rgba(255,255,255,0) 46%),
             linear-gradient(118deg,rgba(42,231,196,.82) 0%,rgba(30,229,180,.82) 50%,rgba(16,198,162,.82) 100%) !important;
  border:1px solid rgba(255,255,255,.5) !important;
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  backdrop-filter:blur(14px) saturate(140%);
  box-shadow:0 8px 20px rgba(2,6,23,.35) !important;
  white-space:nowrap;
}
.cooper-nav-cta .xpro-button-text{ font-size:16px !important; font-weight:600 !important; color:#04160F !important; }

@media (max-width:767px){
  .cooper-nav__inner > .e-con-inner{ flex-wrap:wrap !important; }
  .cooper-nav-link{ display:none; }
}

/* --- FOOTER --- */
.cooper-footer{
  background:linear-gradient(180deg,rgba(11,18,36,0) 0%,var(--surface-raised) 48%) !important;
  padding:clamp(64px,7vw,88px) clamp(24px,5vw,40px) 40px !important;
}
/* misma trampa del .e-con-inner en las dos filas del footer */
.cooper-footer .e-con-boxed > .e-con-inner{ padding-left:0 !important; padding-right:0 !important; }
.cooper-foot-row > .e-con-inner{
  flex-direction:row !important;
  flex-wrap:wrap !important;
  justify-content:space-between !important;
  align-items:flex-start !important;
  gap:40px;
}
.cooper-foot-cols{ flex-direction:row !important; flex-wrap:wrap !important; gap:36px !important; }
.cooper-foot-brand{ flex:1 1 260px !important; min-width:220px; }
.cooper-foot-group{ min-width:132px; }
.cooper-foot-logo .xpro-site-logo img{ height:26px !important; width:auto !important; max-width:none !important; display:block; }
.cooper-foot-links .elementor-icon-list-items{ display:flex; flex-direction:column; gap:11px; }
.cooper-foot-links .elementor-icon-list-item{ padding:0 !important; margin:0 !important; }
.cooper-foot-links .elementor-icon-list-item:after{ display:none !important; }
.cooper-foot-links .elementor-icon-list-text{ font-size:var(--body-sm-size); color:var(--text-secondary) !important; }
.cooper-foot-links a:hover .elementor-icon-list-text{ color:#FFFFFF !important; }
/* el color de enlace del tema no debe ganar dentro del footer */
.cooper-footer .elementor-heading-title a{ color:inherit !important; }
/* ================= FORMULARIO (WPForms) ================= */
.cooper-form .wpforms-field-label{
  font-size:var(--label-size) !important; font-weight:var(--label-weight) !important;
  color:var(--text-secondary) !important; margin-bottom:8px !important;
}
.cooper-form .wpforms-required-label{ color:var(--cat-coopups-from) !important; }
.cooper-form input[type=text],
.cooper-form input[type=email],
.cooper-form textarea{
  width:100% !important; max-width:100% !important;
  background:rgba(255,255,255,.04) !important;
  border:1px solid var(--border-subtle) !important;
  border-radius:var(--radius-input) !important;
  color:var(--text-primary) !important;
  font-family:var(--font-sans) !important; font-size:var(--body-size) !important;
  padding:12px 14px !important; min-height:48px;
  transition:border-color var(--motion-base-dur) var(--motion-base-ease),
             background var(--motion-base-dur) var(--motion-base-ease);
}
.cooper-form textarea{ min-height:130px; resize:vertical; }
.cooper-form ::placeholder{ color:var(--text-disabled) !important; opacity:1; }
.cooper-form input:focus, .cooper-form select:focus, .cooper-form textarea:focus{
  border-color:var(--border-focus) !important;
  background:rgba(255,255,255,.07) !important;
  outline:2px solid var(--border-focus); outline-offset:1px;
}
.cooper-form select option{ background:var(--surface-overlay); color:var(--text-primary); }
.cooper-form .wpforms-field{ padding:0 0 18px 0 !important; }
.cooper-form .wpforms-field-description{ color:var(--text-tertiary) !important; font-size:var(--body-sm-size) !important; }

/* Boton de envio: el mismo glassAccent de toda la web */
.cooper-form .wpforms-submit{
  height:48px; padding:0 28px !important;
  border-radius:var(--radius-pill) !important;
  background:linear-gradient(180deg,rgba(255,255,255,.34),rgba(255,255,255,0) 46%),
             linear-gradient(118deg,rgba(42,231,196,.82) 0%,rgba(30,229,180,.82) 50%,rgba(16,198,162,.82) 100%) !important;
  border:1px solid rgba(255,255,255,.5) !important;
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  backdrop-filter:blur(14px) saturate(140%);
  color:#04160F !important;
  font-family:var(--font-sans) !important; font-size:var(--button-size) !important; font-weight:var(--button-weight) !important;
  box-shadow:0 8px 20px rgba(2,6,23,.35) !important;
  cursor:pointer;
  transition:transform var(--motion-base-dur) var(--motion-base-ease);
}
.cooper-form .wpforms-submit:hover{ transform:translateY(-1px); }
.cooper-form .wpforms-error{ color:var(--semantic-error) !important; font-size:var(--body-sm-size) !important; }
.cooper-form input.wpforms-error, .cooper-form textarea.wpforms-error, .cooper-form select.wpforms-error{ border-color:var(--semantic-error) !important; }
.cooper-form .wpforms-confirmation-container-full{
  background:rgba(30,229,180,.10) !important;
  border:1px solid rgba(30,229,180,.35) !important;
  border-radius:var(--radius-card) !important;
  color:var(--text-primary) !important;
  padding:20px !important;
}
/* ================= FIX: el <select> se recortaba =================
   Iba en la misma regla que los inputs: min-height:48px + padding:12px 14px.
   Con box-sizing:border-box eso deja 22px de caja util, y el texto a 16px con
   line-height 1.6 ocupa 25.6px -> recorte. Un <select> no admite padding
   vertical de forma fiable: altura fija, padding solo horizontal, y flecha
   propia porque appearance:none quita la nativa. */
.cooper-form select{
  -webkit-appearance:none; -moz-appearance:none; appearance:none;
  width:100% !important; max-width:100% !important;
  height:48px !important; min-height:48px !important;
  padding:0 42px 0 14px !important;
  line-height:1.2 !important;
  background-color:rgba(255,255,255,.04) !important;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238A93A5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat:no-repeat !important;
  background-position:right 16px center !important;
  background-size:12px 8px !important;
  border:1px solid var(--border-subtle) !important;
  border-radius:var(--radius-input) !important;
  color:var(--text-primary) !important;
  font-family:var(--font-sans) !important;
  font-size:var(--body-size) !important;
  cursor:pointer;
  transition:border-color var(--motion-base-dur) var(--motion-base-ease),
             background-color var(--motion-base-dur) var(--motion-base-ease);
}
.cooper-form select:focus{
  border-color:var(--border-focus) !important;
  background-color:rgba(255,255,255,.07) !important;
  outline:2px solid var(--border-focus); outline-offset:1px;
}
.cooper-form select::-ms-expand{ display:none; }
.cooper-form select option{ background:var(--surface-overlay); color:var(--text-primary); padding:8px; }
/* ================= CooperCard v2: sutil =================
   Antes: el degradado de categoria a plena saturacion (#306BFF -> #7A5CFF).
   Ahora: superficie de cristal sobre el fondo, con el mismo degradado como
   TINTE a baja opacidad. Sigue diciendo "esto es una CooperCard", pero en
   voz baja en vez de a gritos. Las tres capas, de arriba a abajo:
     1. brillo blanco superior
     2. tinte de categoria (azul -> violeta) al 14-20%
     3. superficie base semitransparente
   Los tres tokens de tinte estan arriba: toca solo esos si quieres subirlo. */
:root{
  --cc-tint-from:rgba(48,107,255,.14);
  --cc-tint-to:rgba(122,92,255,.20);
  --cc-surface:rgba(11,18,36,.72);
}
.cooper-coopercard,\n[data-card]{ /* cooper-coopercard v2 */
  background:linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,0) 34%),
             linear-gradient(180deg,var(--cc-tint-from) 0%,var(--cc-tint-to) 100%),
             var(--cc-surface) !important;
  border:1px solid rgba(255,255,255,.16) !important;
  box-shadow:var(--elev-3),0 0 60px rgba(48,107,255,.16) !important;
  -webkit-backdrop-filter:blur(16px) saturate(125%);
  backdrop-filter:blur(16px) saturate(125%);
  overflow:hidden;
  transform:rotateY(-6deg) rotateX(2.5deg);
  transform-style:preserve-3d;
  transition:transform var(--motion-base-dur) var(--motion-base-ease);
}
.cooper-coopercard:hover,\n[data-card]:hover{ transform:rotateY(0deg) rotateX(0deg); }
@media (max-width:1024px){ .cooper-coopercard,[data-card]{ transform:none; } }

/* Sin backdrop-filter: opaco, o el tinte se ve sucio */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .cooper-coopercard,[data-card]{ background:linear-gradient(180deg,#141C34,#0F1730) !important; }
}