{{-- HERO --}}
{{-- Imagen escritorio --}} @if($congreso->hero_imagen_path) @endif {{-- Imagen movil o fallback escritorio --}} @if($congreso->hero_imagen_mobile_path) Imagen del congreso movil @elseif($congreso->hero_imagen_path) Imagen del congreso @endif {{-- Fondo solido si no hay imagen --}} @if(!$congreso->hero_imagen_path && !$congreso->hero_imagen_mobile_path)
@endif {{-- Overlay oscuro --}} @if($congreso->hero_aplicar_overlay)
@endif {{-- Navegacion --}}
@php $heroBotonPosicion = $congreso->hero_boton_posicion ?: 'inferior_derecha'; $heroBotonGrid = [ 'superior_izquierda' => 'place-items-start text-left pt-28 pb-12', 'superior_centro' => 'place-items-start text-center pt-28 pb-12', 'superior_derecha' => 'place-items-start text-right pt-28 pb-12', 'centro_izquierda' => 'place-items-center text-left py-12', 'centro' => 'place-items-center text-center py-12', 'centro_derecha' => 'place-items-center text-right py-12', 'inferior_izquierda' => 'place-items-end text-left pt-28 pb-12', 'inferior_centro' => 'place-items-end text-center pt-28 pb-12', 'inferior_derecha' => 'place-items-end text-right pt-28 pb-12', ][$heroBotonPosicion] ?? 'place-items-end text-right pt-28 pb-12'; $heroBotonSelf = [ 'superior_izquierda' => 'justify-self-start self-start', 'superior_centro' => 'justify-self-center self-start', 'superior_derecha' => 'justify-self-end self-start', 'centro_izquierda' => 'justify-self-start self-center', 'centro' => 'justify-self-center self-center', 'centro_derecha' => 'justify-self-end self-center', 'inferior_izquierda' => 'justify-self-start self-end', 'inferior_centro' => 'justify-self-center self-end', 'inferior_derecha' => 'justify-self-end self-end', ][$heroBotonPosicion] ?? 'justify-self-end self-end'; @endphp
@if($congreso->hero_mostrar_texto)

{{ $congreso->hero_titulo ?? $congreso->nombre }}

@if($congreso->hero_subtitulo)

{{ $congreso->hero_subtitulo }}

@endif
@endif @if($congreso->registro_abierto) {{-- Condición para mostrar el botón de registro en el Hero --}} @endif
{{-- Secciones heredadas --}} @if($congreso->seccion1_titulo || $congreso->seccion2_titulo)
@if($congreso->seccion1_titulo)

{{ $congreso->seccion1_titulo }}

{!! $congreso->seccion1_contenido !!}
@endif @if($congreso->seccion2_titulo)

{{ $congreso->seccion2_titulo }}

{!! $congreso->seccion2_contenido !!}
@endif
@endif {{-- Secciones dinamicas --}} @foreach($congreso->secciones->where('activo', true)->sortBy('orden') as $seccion) @include('publico._seccion', ['seccion' => $seccion, 'congreso' => $congreso]) @endforeach