@import url('https://fonts.googleapis.com/css2?family=Libre+Bodoni:ital,wght@0,400..700;1,400..700&display=swap');

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #f9fafb;
    color: #111827;
    line-height: 1.5;
}

/* Barra de navegación */
.navbar {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
    height: 64px;
}

.navbar-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
}

.logo span {
    color: #2563eb;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #111827;
}

.nav-button {
    background: #111827;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.nav-button:hover {
    background: #374151;
}

/* Contenido principal */
.main-content {
    padding-top: 64px;
    min-height: 100vh;
}

.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 3rem 1rem;
}

/* Hero section */
.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    font-family: "Libre Bodoni", serif  !important;
  font-optical-sizing: auto;
  font-style: normal;
}

.hero p {
    font-size: 1.25rem;
    color: #4b5563;
    max-width: 42rem;
    margin: 0 auto;
}

/* Secciones de servicios */
.service-section {
    margin-bottom: 5rem;
}

.service-header {
    padding-top:3rem;
    padding-bottom: 3rem;
    text-align: center ;
}

.service-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
     font-family: "Libre Bodoni", serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.service-divider {
    width: 6rem;
    height: 4px;
    background: #2563eb;
    border-radius: 9999px;
}

/* Mosaico */
.mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
    gap: 16px;
    padding: 16px;
}

.mosaic-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f3f4f6;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mosaic-item-wide {
    grid-column: span 2;
}

.mosaic-item-tall {
    grid-row: span 2;
}

.mosaic-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.mosaic-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.95);
}

.mosaic-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 30px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

/* Hover effects */
.mosaic-item:hover .mosaic-image {
    transform: scale(1.1);
    filter: brightness(1);
}

.mosaic-item:hover .mosaic-overlay {
    opacity: 1;
}

.mosaic-item:hover .overlay-text {
    transform: translateY(0);
}

.mosaic-item:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Animaciones de aparición */
.reveal-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-section.section-revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-item {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Animación de carga */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.mosaic-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    z-index: 0;
}

.mosaic-image-wrapper img {
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
        
    }
    
    .mosaic {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        grid-auto-rows: 200px;
        gap: 12px;
    }
    
    .mosaic-item-wide {
        grid-column: span 1;
    }
    
    .mosaic-item-tall {
        grid-row: span 1;
    }
    
    .nav-menu {
        display: none;
    }
}

@media (max-width: 480px) {
    .mosaic {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
        gap: 10px;
        padding: 10px;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}