/**
 * Hero visual compuesto (portada + landing CRM)
 */

.crm-hero-composed
{
position: relative;
padding: clamp(1.25rem, 3vw, 1.75rem);
border-radius: 1.35rem;
background: linear-gradient(160deg, #ffffff 0%, #f8f8ff 55%, #f3f1ff 100%);
border: 1px solid rgba(91, 79, 255, 0.12);
box-shadow: 0 24px 60px rgba(91, 79, 255, 0.14);
overflow: hidden;
min-height: clamp(320px, 42vw, 420px);
}

.crm-hero-composed--cards
{
min-height: 0;
padding: clamp(0.85rem, 2vw, 1.2rem);
overflow: visible;
}

.crm-hero-composed--cards .crm-hero-composed__browser
{
max-width: min(100%, 460px);
margin: clamp(1.35rem, 4vw, 1.75rem) auto 0;
overflow: visible;
}

.crm-hero-composed--cards .crm-hero-composed__browser-body
{
padding: 0.6rem 0.65rem 0.75rem;
overflow: visible;
}

.crm-hero-composed--cards .crm-hero-composed__property-media
{
aspect-ratio: 4 / 3;
width: 100%;
}

.crm-hero-composed--cards .crm-hero-composed__property-media img
{
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
object-position: center center;
}

.crm-hero-composed--cards .crm-hero-composed__property-body
{
padding: 0.5rem 0.55rem 0.6rem;
}

.crm-hero-composed--cards .crm-hero-composed__search
{
margin-bottom: 0.55rem;
}

.crm-hero-composed--cards .crm-hero-composed__search span
{
height: 0.45rem;
}

.crm-hero-composed--cards > .crm-hero-composed__badge
{
display: none;
}

.crm-hero-composed__status-strip
{
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 0.4rem;
margin-top: 0.55rem;
padding-top: 0.5rem;
border-top: 1px solid #eef2f6;
}

.crm-hero-composed__status-chip
{
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.32rem;
min-width: 0;
padding: 0.3rem 0.55rem;
border-radius: 999px;
font-size: 0.64rem;
font-weight: 600;
line-height: 1.2;
color: #374151;
background: #f9fafb;
border: 1px solid #e5e7eb;
}

.crm-hero-composed__status-chip svg
{
width: 0.8rem;
height: 0.8rem;
flex-shrink: 0;
color: var(--color-primary, #5B4FFF);
}

.crm-hero-composed__status-chip .crm-hero-composed__live-dot
{
width: 0.4rem;
height: 0.4rem;
flex-shrink: 0;
}

.crm-hero-composed__status-chip > span:last-child
{
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

/* Landing CRM: iconos arriba en fila en móvil */
@media (max-width: 900px)
{
.crm-hero-composed--cards
{
padding: 0.75rem;
overflow: hidden;
min-height: 0;
}

.crm-hero-composed--cards .crm-hero-composed__crms--global
{
position: relative;
inset: auto;
display: flex;
justify-content: center;
align-items: center;
gap: 0.65rem;
margin: 0 0 0.55rem;
padding: 0;
height: auto;
min-height: 0;
pointer-events: none;
}

.crm-hero-composed--cards .crm-hero-composed__crms--global .crm-hero-composed__crm
{
position: static;
top: auto;
right: auto;
bottom: auto;
left: auto;
width: 2.85rem;
height: 2.85rem;
padding: 0.45rem;
flex-shrink: 0;
animation: none;
}

.crm-hero-composed--cards .crm-hero-composed__crms--global .crm-hero-composed__crm:nth-child(3),
.crm-hero-composed--cards .crm-hero-composed__crms--global .crm-hero-composed__crm:nth-child(4)
{
display: none;
}

.crm-hero-composed--cards .crm-hero-composed__browser
{
margin: 0 auto;
max-width: 100%;
width: 100%;
}

.crm-hero-composed--cards .crm-hero-composed__wp-badge
{
display: none;
}

.crm-hero-composed--cards .crm-hero-composed__property-media
{
aspect-ratio: 16 / 10;
}

.crm-hero-composed--cards .crm-hero-composed__property-body strong
{
font-size: 0.8rem;
}

.crm-hero-composed--cards .crm-hero-composed__property-body span
{
font-size: 0.76rem;
}

.crm-hero-composed__status-strip
{
gap: 0.35rem;
}

.crm-hero-composed__status-chip
{
flex: 1 1 calc(50% - 0.35rem);
max-width: 100%;
font-size: 0.62rem;
padding: 0.28rem 0.45rem;
}
}

.crm-hero-composed__glow
{
position: absolute;
inset: auto -20% -30% -20%;
height: 55%;
background: radial-gradient(ellipse at center, rgba(91, 79, 255, 0.16) 0%, transparent 70%);
pointer-events: none;
}

.crm-hero-composed__crms
{
position: absolute;
inset: 0;
margin: 0;
padding: 0;
list-style: none;
pointer-events: none;
z-index: 2;
}

.crm-hero-composed__crm
{
position: absolute;
width: clamp(2.4rem, 5vw, 3rem);
height: clamp(2.4rem, 5vw, 3rem);
display: flex;
align-items: center;
justify-content: center;
border-radius: 0.85rem;
background: #fff;
border: 1px solid rgba(91, 79, 255, 0.12);
box-shadow: 0 8px 22px rgba(91, 79, 255, 0.12);
padding: 0.4rem;
box-sizing: border-box;
overflow: hidden;
animation: crm-hero-float 5s ease-in-out infinite;
}

.crm-hero-composed__crm img
{
display: block;
width: 100%;
height: 100%;
max-width: 100%;
max-height: 100%;
object-fit: contain;
object-position: center center;
}

.crm-hero-composed__crm span
{
font-size: 0.85rem;
font-weight: 800;
color: var(--color-primary, #5B4FFF);
}

.crm-hero-composed__crm:nth-child(1)
{
top: 6%;
left: 4%;
animation-delay: 0s;
}

.crm-hero-composed__crm:nth-child(2)
{
top: 4%;
right: 8%;
animation-delay: 0.6s;
}

.crm-hero-composed__crm:nth-child(3)
{
top: 42%;
left: 0;
animation-delay: 1.2s;
}

.crm-hero-composed__crm:nth-child(4)
{
top: 38%;
right: 2%;
animation-delay: 1.8s;
}

.crm-hero-composed__crm:nth-child(5)
{
bottom: 10%;
left: 10%;
animation-delay: 2.4s;
}

@keyframes crm-hero-float
{
0%, 100%
{
transform: translateY(0);
}

50%
{
transform: translateY(-6px);
}
}

.crm-hero-composed__flow
{
display: none;
}

.crm-hero-composed__browser
{
position: relative;
z-index: 1;
max-width: min(100%, 520px);
margin: clamp(2.5rem, 8vw, 3.5rem) auto 0;
border-radius: 1rem;
background: #fff;
border: 1px solid rgba(17, 24, 39, 0.08);
box-shadow: 0 18px 44px rgba(17, 24, 39, 0.1);
overflow: hidden;
}

.crm-hero-composed__browser-bar
{
display: flex;
align-items: center;
gap: 0.35rem;
padding: 0.55rem 0.75rem;
background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
border-bottom: 1px solid #e5e7eb;
}

.crm-hero-composed__browser-bar > span
{
width: 0.55rem;
height: 0.55rem;
border-radius: 50%;
background: #d1d5db;
}

.crm-hero-composed__browser-bar > span:nth-child(1)
{
background: #fca5a5;
}

.crm-hero-composed__browser-bar > span:nth-child(2)
{
background: #fcd34d;
}

.crm-hero-composed__browser-bar > span:nth-child(3)
{
background: #86efac;
}

.crm-hero-composed__url
{
flex: 1;
margin-left: 0.35rem;
padding: 0.28rem 0.65rem;
border-radius: 0.45rem;
background: #fff;
border: 1px solid #e5e7eb;
font-size: 0.68rem;
color: #6b7280;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.crm-hero-composed__browser-body
{
padding: 0.85rem;
}

.crm-hero-composed__wp-badge
{
display: inline-flex;
align-items: center;
gap: 0.4rem;
margin-bottom: 0.65rem;
padding: 0.28rem 0.55rem;
border-radius: 999px;
font-size: 0.72rem;
font-weight: 700;
color: #1f2937;
background: rgba(33, 117, 155, 0.08);
border: 1px solid rgba(33, 117, 155, 0.14);
}

.crm-hero-composed__wp-badge img
{
display: block;
}

.crm-hero-composed__search
{
display: grid;
grid-template-columns: 1.2fr 0.8fr 0.8fr;
gap: 0.4rem;
margin-bottom: 0.75rem;
}

.crm-hero-composed__search span
{
height: 0.55rem;
border-radius: 999px;
background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 100%);
}

.crm-hero-composed__cards
{
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 0.5rem;
}

.crm-hero-composed__property
{
border-radius: 0.65rem;
overflow: hidden;
border: 1px solid #eef2ff;
background: #fff;
box-shadow: 0 4px 14px rgba(91, 79, 255, 0.06);
}

.crm-hero-composed__property-media
{
position: relative;
width: 100%;
aspect-ratio: 16 / 10;
overflow: hidden;
background:
	linear-gradient(135deg, rgba(91, 79, 255, 0.12) 0%, rgba(157, 79, 255, 0.08) 100%),
	repeating-linear-gradient(
		-45deg,
		rgba(255, 255, 255, 0.35) 0,
		rgba(255, 255, 255, 0.35) 8px,
		transparent 8px,
		transparent 16px
	);
}

.crm-hero-composed__property-media img
{
position: absolute;
inset: 0;
display: block;
width: 100%;
height: 100%;
object-fit: cover;
object-position: center center;
}

.crm-hero-composed__property-body
{
padding: 0.45rem 0.5rem 0.55rem;
}

.crm-hero-composed__property-body strong
{
display: block;
font-size: 0.62rem;
line-height: 1.35;
color: #1f2937;
margin-bottom: 0.2rem;
}

.crm-hero-composed__property-body span
{
font-size: 0.58rem;
font-weight: 700;
color: var(--color-primary, #5B4FFF);
}

.crm-hero-composed__badge
{
position: absolute;
z-index: 3;
display: inline-flex;
align-items: center;
gap: 0.35rem;
padding: 0.4rem 0.7rem;
border-radius: 999px;
font-size: 0.68rem;
font-weight: 700;
color: #1f2937;
background: rgba(255, 255, 255, 0.94);
border: 1px solid rgba(91, 79, 255, 0.14);
box-shadow: 0 8px 20px rgba(91, 79, 255, 0.1);
backdrop-filter: blur(8px);
}

.crm-hero-composed__badge svg
{
width: 0.95rem;
height: 0.95rem;
color: var(--color-primary, #5B4FFF);
}

.crm-hero-composed__badge--sync
{
top: 14%;
right: 6%;
}

.crm-hero-composed__badge--live
{
bottom: 8%;
right: 8%;
}

.crm-hero-composed__live-dot
{
width: 0.45rem;
height: 0.45rem;
border-radius: 50%;
background: #22c55e;
box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
animation: crm-hero-pulse 2s ease-in-out infinite;
}

@keyframes crm-hero-pulse
{
0%, 100%
{
opacity: 1;
}

50%
{
opacity: 0.55;
}
}

.crm-hero-composed--image .crm-hero-composed__browser
{
z-index: 2;
}

/* Portada (imagen): zonas fijas para logos flotantes y badges sin solaparse */
.crm-hero-composed--image
{
padding-bottom: clamp(2.65rem, 5.5vw, 3.15rem);
}

.crm-hero-composed--image .crm-hero-composed__crms
{
z-index: 4;
}

.crm-hero-composed--image .crm-hero-composed__badge
{
z-index: 3;
font-size: clamp(0.58rem, 2.2vw, 0.66rem);
padding: 0.3rem 0.55rem;
white-space: nowrap;
}

.crm-hero-composed--image .crm-hero-composed__crm:nth-child(1)
{
top: clamp(0.5rem, 2.4vw, 0.85rem);
left: clamp(0.4rem, 2.4vw, 0.8rem);
right: auto;
bottom: auto;
}

.crm-hero-composed--image .crm-hero-composed__crm:nth-child(2)
{
top: clamp(0.4rem, 2vw, 0.7rem);
right: clamp(0.4rem, 2.4vw, 0.8rem);
left: auto;
bottom: auto;
}

.crm-hero-composed--image .crm-hero-composed__crm:nth-child(3),
.crm-hero-composed--image .crm-hero-composed__crm:nth-child(4)
{
display: none;
}

.crm-hero-composed--image .crm-hero-composed__crm:nth-child(5)
{
top: 50%;
bottom: auto;
left: clamp(0.3rem, 1.8vw, 0.65rem);
right: auto;
transform: translateY(-50%);
animation-name: crm-hero-float-side;
}

.crm-hero-composed--image .crm-hero-composed__badge--sync
{
top: auto;
bottom: clamp(0.4rem, 1.8vw, 0.65rem);
right: clamp(0.4rem, 2.4vw, 0.8rem);
left: auto;
max-width: min(10.5rem, 44%);
}

.crm-hero-composed--image .crm-hero-composed__badge--live
{
top: auto;
bottom: clamp(0.4rem, 1.8vw, 0.65rem);
left: clamp(0.4rem, 2.4vw, 0.8rem);
right: auto;
max-width: min(10.5rem, 44%);
}

.crm-hero-composed--image .crm-hero-composed__browser
{
z-index: 2;
margin-top: clamp(2.35rem, 7vw, 3.1rem);
}

@keyframes crm-hero-float-side
{
0%, 100%
{
transform: translateY(-50%);
}

50%
{
transform: translateY(calc(-50% - 6px));
}
}

@media (max-width: 900px)
{
.crm-hero-composed--cards .crm-hero-composed__property-media
{
aspect-ratio: 16 / 10;
}

.crm-hero-composed:not(.crm-hero-composed--image):not(.crm-hero-composed--cards) .crm-hero-composed__crm:nth-child(3),
.crm-hero-composed:not(.crm-hero-composed--image):not(.crm-hero-composed--cards) .crm-hero-composed__crm:nth-child(4)
{
display: none;
}

.crm-hero-composed:not(.crm-hero-composed--image):not(.crm-hero-composed--cards) .crm-hero-composed__badge--sync
{
top: auto;
bottom: 42%;
right: 4%;
}

.crm-hero-composed__cards
{
grid-template-columns: 1fr;
}

.crm-hero-composed__property:nth-child(2),
.crm-hero-composed__property:nth-child(3)
{
display: none;
}
}

@media (max-width: 640px)
{
.crm-hero-composed--cards
{
padding: 0.65rem;
}

.crm-hero-composed--cards .crm-hero-composed__crms--global .crm-hero-composed__crm
{
width: 2.7rem;
height: 2.7rem;
padding: 0.42rem;
}

.crm-hero-composed--cards .crm-hero-composed__browser-bar .crm-hero-composed__url
{
font-size: 0.58rem;
}

.crm-hero-composed
{
min-height: 280px;
padding: 1rem;
}

.crm-hero-composed:not(.crm-hero-composed--image):not(.crm-hero-composed--cards) .crm-hero-composed__browser
{
margin-top: 2.75rem;
}

.crm-hero-composed--image
{
padding-bottom: 2.5rem;
}

.crm-hero-composed--image .crm-hero-composed__browser
{
margin-top: 2.5rem;
}

.crm-hero-composed:not(.crm-hero-composed--cards) .crm-hero-composed__crm
{
width: 2.1rem;
height: 2.1rem;
}

.crm-hero-composed__wp-badge--bar
{
max-width: min(9.5rem, 40%);
font-size: 0.6rem;
padding: 0.2rem 0.45rem;
}

.crm-hero-composed__browser-bar .crm-hero-composed__url
{
min-width: 0;
font-size: 0.6rem;
}
}

.crm-hero-composed__wp-badge svg
{
display: block;
width: 1rem;
height: 1rem;
color: var(--color-primary, #5B4FFF);
flex-shrink: 0;
}

.crm-hero-composed__wp-badge--bar
{
flex-shrink: 0;
margin: 0 0 0 0.35rem;
max-width: min(11.5rem, 44%);
white-space: nowrap;
font-size: 0.65rem;
padding: 0.22rem 0.5rem;
}

.crm-hero-composed__wp-badge--bar span
{
overflow: hidden;
text-overflow: ellipsis;
}

.crm-hero-composed__browser-body--image
{
padding: 0;
}

.crm-hero-composed__browser-shot
{
display: block;
width: 100%;
height: auto;
}

.comunicum-hero-section .hero-visual .crm-hero-composed
{
width: 100%;
}
