* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: #1C2A39;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo-img img {
    height: 45px;      /* Adjust this to change logo size on page */
    width: auto;       
    display: block;
    object-fit: contain;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Highlighted Brand Text */
.logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: #000000;      /* Use your highlighted tone here */
    white-space: nowrap; /* Keeps name on one line */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 0.7;
}

/* Hero Section */


.hero {
    background: linear-gradient(
        135deg,
        rgba(28,42,57,0.35) 0%,   /* Deep Navy con transparencia */
        rgba(146,200,224,0.35) 100% /* Soft Sky intenso */
    ),
    url('images/0_gallery_images/espontas.png') center/cover no-repeat;
    color: white;
    padding: 5rem 0;
    text-align: center;
}




.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}


/* About Section */
.about {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.about h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.about p {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

/* Featured Section */
.featured {
    padding: 4rem 0;
}

.featured h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.featured-item {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.featured-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.featured-item p {
    margin-bottom: 1rem;
    color: #666;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: #92C8E0;
    color: #2F3237;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #6CB6D6;
}

/* Work Grid */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.work-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.work-item:hover {
    transform: translateY(-5px);
}

/* Work Item Image with Fixed Height */
.work-item-image {
    width: 100%;
    height: 200px;           /* fixed height for aesthetics */
    overflow: hidden;         /* crop anything outside the container */
    display: flex;
    align-items: center;      /* vertical centering */
    justify-content: center;  /* horizontal centering */
    background-color: #e9ecef;
}

.work-item-image img {
    min-width: 100%;          /* ensure it always fills width */
    min-height: 100%;         /* ensure it always fills height */
    object-fit: cover;        /* crop and maintain aspect ratio */
    display: block;
}

.work-item-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;   
}

.work-item-content .btn {
    margin-top: auto;     
    align-self: flex-end;  
}

.work-item h4 {
    margin-bottom: 0.5rem;
}

.work-item p {
    color: #666;

}

/* Blog */
.blog-posts {
    padding: 3rem 0;
}

.blog-post {
    background-color: #f8f9fa;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.blog-post h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.blog-post .meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-post p {
    line-height: 1.8;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
    padding: 3rem 0;
}

.gallery-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1; 
    display: flex;
    align-items: center;
    justify-content: center;
    
    background-color: #e9ecef;
    border-radius: 12px; 
    overflow: hidden;
    color: #adb5bd;
    
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02); 
}

.gallery-item:hover img {
    filter: grayscale(0%) !important;
    -webkit-filter: grayscale(0%) !important;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    filter: grayscale(100%) !important;
    -webkit-filter: grayscale(100%) !important;
    transition: filter 0.3s ease, -webkit-filter 0.3s ease;
}

/* Gallery Pagination */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
}

.pagination-btn {
    padding: 10px 20px;
    background-color: #1C2A39;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #92C8E0;
    color: #1C2A39;
}

.pagination-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.page-info {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

/* Page Header */
.page-header {
    background-color: #1C2A39;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h2 {
    font-size: 2.5rem;
}

/* Content Section */
.content {
    padding: 3rem 0;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero h2 {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
}