@extends('layout.front.master') @section('title', config('site.seo.title', config('site.name'))) @section('description', config('site.seo.description', config('site.description'))) @section('keywords', config('site.seo.keywords', '')) @section('content') {{-- HERO --}}
{{-- SERVICIOS --}}
{{-- Header de la seccion --}}
{{ config('site.welcome.services_badge', 'SERVICIOS') }}

{{ config('site.welcome.services_heading', 'Lo que hacemos') }}

{{ config('site.welcome.services_subtitle', 'Cada servicio pensado para que tu negocio tenga presencia digital real, sin complicaciones.') }}

{{-- Tarjetas de servicios - 3 columnas --}}
@if(is_module_active('services') && isset($services) && $services->count() > 0) @foreach($services->take(3) as $index => $service) @php $cardClass = 'service-card-0' . (($index % 3) + 1); $number = str_pad($index + 1, 2, '0', STR_PAD_LEFT); $titleWords = explode(' ', $service->title); $firstWord = $titleWords[0] ?? ''; $restWords = implode(' ', array_slice($titleWords, 1)); $serviceImage = $service->image ? (filter_var($service->image, FILTER_VALIDATE_URL) ? $service->image : asset($service->image)) : null; @endphp @endforeach @else {{-- Fallback: empty state --}}

{{ config('site.welcome.services_empty', 'Próximamente: nuestros servicios.') }}

{{ __('Contactanos') }}
@endif
{{-- {{ config('site.welcome.services_cta', 'Ver todos los servicios') }} --}} @if(is_module_active('services') && isset($services) && $services->count() > 0) @endif
{{-- FEATURES / POR QUE ELEGIRNOS --}}
{{-- Imagen principal --}}
{{ config('site.name') }}
{{-- Heading de la seccion --}}
{{ config('site.welcome.features_badge', 'POR QUÉ ELEGIRNOS') }}

{{ config('site.welcome.features_heading', 'Lo que nos hace diferentes') }}

@php $features = config('site.welcome.features', []); if (is_string($features)) { $features = json_decode($features, true) ?? []; } if (empty($features)) { $features = [ ['icon' => 'cd-project/img/homepage/modular.png', 'title' => 'Hecho a medida', 'text' => 'No es WordPress ni un constructor genérico. Usamos una plataforma profesional con diseños pensados para cada industria.'], ['icon' => 'cd-project/img/homepage/dias.png', 'title' => 'Entrega en 2-3 semanas', 'text' => 'Mientras otros tardan meses, nosotros entregamos en semanas. Porque tu negocio no puede esperar.'], ['icon' => 'cd-project/img/homepage/autogestionable.png', 'title' => 'Autogestionable', 'text' => 'Editá textos, imágenes y contenido desde un panel pensado para gente que no programa. Sin depender de nadie.'], ['icon' => 'cd-project/img/homepage/icon-automatizaciones.png', 'title' => 'Nos seguimos ocupando', 'text' => 'Tu sitio no queda congelado. La plataforma se actualiza, mejora y se mantiene segura. Vos no hacés nada.'], ['icon' => 'cd-project/img/homepage/idioma.png', 'title' => 'Pensado para tu rubro', 'text' => 'Nos tomamos el tiempo de entender tu negocio para armar algo que hable el idioma de tus clientes.'], ['icon' => 'cd-project/img/homepage/casos.png', 'title' => 'Trayectoria real', 'text' => 'Trayectoria comprobable y clientes reales. No prometemos: mostramos.'], ]; } @endphp {{-- Mobile: tira horizontal compacta --}}
@foreach($features as $feat)
@if(!empty($feat['icon']))@endif
{!! strip_tags($feat['title'] ?? '', '') !!}
{{ Str::limit(strip_tags($feat['text'] ?? ''), 40) }}
@endforeach
{{-- Desktop/Tablet: grilla --}}
@foreach($features as $idx => $feat)
@if(!empty($feat['icon']))
@endif

{!! strip_tags($feat['title'] ?? '', '') !!}

{{ $feat['text'] ?? '' }}

@endforeach
{{-- OLD FEATURES BLOCK REMOVED - now uses $features loop above --}} {{-- PROYECTOS / PORTFOLIO --}} @if(is_module_active('projects') && isset($featuredProjects) && $featuredProjects->count() > 0)
{{ config('site.welcome.portfolio_badge', 'PORTFOLIO') }}

{{ config('site.welcome.portfolio_heading', 'Proyectos que hablan por nosotros') }}

@php $projectCategories = $featuredProjects->pluck('categories')->flatten()->unique('slug')->filter(); @endphp {{-- Chips de categorias: scroll horizontal en movil, wrap en md+ --}}
Todos @foreach($projectCategories as $category) {{ $category->name }} @endforeach
Todos @foreach($projectCategories as $category) {{ $category->name }} @endforeach
{{-- Listado compacto en movil (carrusel horizontal) --}}
@foreach($featuredProjects->take(4) as $project) @endforeach {{-- CTA card --}}

{{ config('site.welcome.cta_heading_short', '¿Listo para tu sitio?') }}

{{ config('site.welcome.cta_begin_label', 'Comenzar') }}
{{-- Grilla original para md+ --}}
@foreach($featuredProjects->take(4) as $index => $project)
{{-- Insert CTA card after 2nd project (index 1) for desktop layout --}} @if($index === 1)

{!! config('site.welcome.cta_heading_break', '¿Listo para
tu sitio
profesional?') !!}

{{ config('site.welcome.cta_subtitle', 'En 2-3 semanas tenés tu web funcionando') }}

{{ config('site.welcome.cta_begin_label', 'Comenzar') }}
@endif @endforeach {{-- If fewer than 3 projects, still show CTA card --}} @if($featuredProjects->take(4)->count() <= 1)

{!! config('site.welcome.cta_heading_break', '¿Listo para
tu sitio
profesional?') !!}

{{ config('site.welcome.cta_subtitle', 'En 2-3 semanas tenés tu web funcionando') }}

{{ config('site.welcome.cta_begin_label', 'Comenzar') }}
@endif
{{-- {{ config('site.welcome.portfolio_cta', 'Ver portfolio completo') }} --}}
@elseif(is_module_active('projects')) {{-- Projects module active but no featured projects yet --}}
{{ config('site.welcome.portfolio_badge', 'PORTFOLIO') }}

{{ config('site.welcome.portfolio_heading', 'Proyectos que hablan por nosotros') }}

Estamos sumando casos. Agendá una reunión para ver demos en vivo de lo que podemos hacer por tu negocio.

{{ config('site.welcome.portfolio_empty_cta', 'Ver demos en vivo') }}
@endif {{-- FAQS --}}
{{-- Heading de la seccion --}}
{{ config('site.welcome.faqs_badge', 'PREGUNTAS FRECUENTES') }}

{{ config('site.welcome.faqs_heading', 'Lo que más nos preguntan') }}

@if(is_module_active('faqs') && isset($featuredFaqs) && $featuredFaqs->count() > 0) @foreach($featuredFaqs->take(5) as $faq)
{{ $faq->question }}
@endforeach @else {{-- Sin FAQs cargadas: el cliente debería sumar preguntas desde /admin/faqs --}}
{{ __('Aún no hay preguntas frecuentes cargadas') }}
@endif
{{-- Link a todas las FAQs --}} @if(is_module_active('faqs')) @endif
{{-- CTA FINAL --}}

{{ config('site.welcome.cta_heading', '¿Listo para tu sitio profesional?') }}

{{ config('site.welcome.cta_final_subtitle', 'Agendá una reunión de 30 minutos. Sin compromiso, sin humo.') }}

@endsection @section('scripts') @endsection