/* CARIPVCARD 27 · perfiles premium: fondo interior, patrones profesionales, brochure directo y mejor legibilidad */

/* El fondo personalizado y el patrón viven DENTRO de la tarjeta, no en el exterior. */
.public-profile .profile-canvas .profile-bg-image{display:none!important}
.public-profile .profile-canvas.v13-pattern-enabled::before{display:none!important}
.public-profile .profile-card-public{isolation:isolate;background:#fff}
.public-profile .profile-card-public>.profile-inner-background{
  position:absolute!important;inset:0!important;z-index:0!important;
  background-image:var(--profile-bg-image);background-size:cover;background-position:center;background-repeat:no-repeat;
  opacity:var(--profile-bg-opacity,0);filter:saturate(.88) contrast(.96);pointer-events:none
}
.public-profile .profile-card-public>.profile-inner-background::after{
  content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.12) 42%,rgba(255,255,255,.22));
}
.public-profile .profile-canvas.v13-pattern-enabled .profile-card-public::before{
  z-index:1!important;opacity:.045!important;background-size:168px 168px!important;background-position:18px 22px!important
}
.public-profile .profile-card-public>*:not(.profile-inner-background){position:relative;z-index:2}
.public-profile .has-inner-profile-bg .profile-main{background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.16));backdrop-filter:blur(.35px)}
.public-profile .has-inner-profile-bg .profile-quick-actions a,
.public-profile .has-inner-profile-bg .location-card,
.public-profile .has-inner-profile-bg .service-list article,
.public-profile .has-inner-profile-bg .profile-service-link,
.public-profile .has-inner-profile-bg .social-grid a,
.public-profile .has-inner-profile-bg .public-document-list>a,
.public-profile .has-inner-profile-bg .public-qr-card,
.public-profile .has-inner-profile-bg .public-media-item{background:rgba(255,255,255,.88)!important;backdrop-filter:blur(8px)}

/* Tecnología / informática: datos, nodos y circuitos; elimina la apariencia de edificios. */
body.theme-tech .profile-canvas.v13-pattern-enabled .profile-card-public::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%231F6AA5' stroke-width='2' stroke-linecap='round' opacity='.9'%3E%3Cpath d='M20 32h42v22h36v34h54M34 142h38v-26h38V92h42M90 18v28M18 90h28M134 54h28M90 134v28'/%3E%3Cpath d='M46 68h22M112 116h22M72 54v14M108 88v18' stroke-dasharray='6 6'/%3E%3C/g%3E%3Cg fill='%231F6AA5'%3E%3Ccircle cx='20' cy='32' r='4'/%3E%3Ccircle cx='98' cy='88' r='4'/%3E%3Ccircle cx='152' cy='88' r='4'/%3E%3Ccircle cx='34' cy='142' r='4'/%3E%3Ccircle cx='110' cy='116' r='4'/%3E%3Ccircle cx='152' cy='92' r='4'/%3E%3C/g%3E%3Cg fill='%231F6AA5' opacity='.55'%3E%3Crect x='23' y='100' width='20' height='3' rx='1.5'/%3E%3Crect x='23' y='108' width='31' height='3' rx='1.5'/%3E%3Crect x='118' y='28' width='18' height='3' rx='1.5'/%3E%3Crect x='118' y='36' width='29' height='3' rx='1.5'/%3E%3C/g%3E%3C/svg%3E")!important
}
/* Corporativo: geometría ejecutiva, ya no torres genéricas. */
body.theme-corporate .profile-canvas.v13-pattern-enabled .profile-card-public::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23315FCF' stroke-width='2' opacity='.8'%3E%3Cpath d='M18 132L68 82l34 34 60-70M20 42h48M112 144h48M38 22v38M142 118v40'/%3E%3Crect x='74' y='28' width='52' height='52' rx='12'/%3E%3Cpath d='M87 64V48h10v16h12V41h10v23'/%3E%3C/g%3E%3Cg fill='%23315FCF'%3E%3Ccircle cx='68' cy='82' r='4'/%3E%3Ccircle cx='102' cy='116' r='4'/%3E%3Ccircle cx='162' cy='46' r='4'/%3E%3C/g%3E%3C/svg%3E")!important
}

/* Tipografía: incremento ligero y proporcional respecto a V24. */
.public-profile .profile-heading h1{font-size:30px!important;line-height:1.13!important;letter-spacing:-.9px!important}
.public-profile .profile-heading p{font-size:14px!important;line-height:1.42!important;margin:6px 0!important}
.public-profile .profile-heading span{font-size:12px!important;line-height:1.5!important}
.public-profile .profile-bio{font-size:13px!important;line-height:1.75!important;max-width:440px!important;margin:18px auto!important}
.public-profile .profile-quick-actions a{font-size:11px!important;line-height:1.35!important;padding:14px 7px!important}
.public-profile .profile-quick-actions a i{font-size:19px!important}
.public-profile .save-contact,.public-profile .public-share-main{font-size:12px!important;min-height:52px!important}
.public-profile .section-title span{font-size:16px!important;line-height:1.28!important}
.public-profile .section-title small{font-size:10.5px!important;line-height:1.5!important;margin-top:4px!important}
.public-profile .service-list strong{font-size:12px!important;line-height:1.4!important}
.public-profile .service-list p{font-size:10.5px!important;line-height:1.6!important}
.public-profile .social-grid a{font-size:11px!important;line-height:1.35!important;padding:13px 14px!important}
.public-profile .location-card strong{font-size:12.5px!important;line-height:1.5!important}
.public-profile .location-card span{font-size:10.5px!important;line-height:1.5!important}
.public-profile .location-card>a{font-size:10px!important}
.public-profile .public-document-list strong{font-size:12px!important}
.public-profile .public-document-list small{font-size:10px!important}
.public-profile .public-media-item figcaption{font-size:11px!important}
.public-profile .v9-profile-footer a{font-size:10px!important}

/* Brochure: llamada a la acción de descarga clara. */
.public-profile .brochure-section .public-document-list>a{grid-template-columns:48px minmax(0,1fr) 42px;padding:13px 14px;border-radius:17px}
.public-profile .brochure-section .document-icon{width:48px;height:48px;border-radius:14px;background:color-mix(in srgb,var(--profile-primary) 9%,white);color:var(--profile-primary);font-size:19px}
.public-profile .brochure-section .document-open{width:38px;height:38px;border-radius:12px;background:color-mix(in srgb,var(--profile-primary) 10%,white);display:grid;place-items:center;font-size:13px}
.public-profile .brochure-section .brochure-download:hover .document-open{background:var(--profile-primary);color:#fff}

/* Vista previa del editor: también enseña el fondo dentro de la tarjeta. */
.v27-preview-phone{position:relative;isolation:isolate;overflow:hidden}
.v27-preview-phone .preview-profile-background{position:absolute;inset:0;z-index:0;background-image:var(--preview-profile-bg);background-size:cover;background-position:center;opacity:var(--preview-profile-bg-opacity,0);filter:saturate(.88)}
.v27-preview-phone .preview-profile-background::after{content:"";position:absolute;inset:0;background:rgba(255,255,255,.58)}
.v27-preview-phone>.preview-cover,.v27-preview-phone>.preview-body{position:relative;z-index:2}

@media(max-width:760px){
  .public-profile .profile-heading h1{font-size:28px!important}
  .public-profile .profile-heading p{font-size:13.5px!important}
  .public-profile .profile-heading span{font-size:11.5px!important}
  .public-profile .profile-bio{font-size:12.5px!important}
  .public-profile .section-title span{font-size:15px!important}
  .public-profile .profile-canvas.v13-pattern-enabled .profile-card-public::before{background-size:150px 150px!important;opacity:.04!important}
}
