body {
    font-family: Century Gothic,CenturyGothic,AppleGothic,sans-serif;
    display: flex; /* Añadir flex a body */
    flex-direction: column; /* Organizar el contenido en columna */
    min-height: 100vh; /* Asegurar que el body ocupa toda la altura */
}
header {
    margin-top: 3vw;
}
.main-nav {
    margin-top: 2vw;
}
.main-container {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    flex: 1; /* Permite que el main-container se expanda */
}
/* Centrar la cuadrícula en la página */
.custom-width-80 {
    display: flex;
    justify-content: center;
    width: 80vw;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 768px) {
    .custom-width-80 {
        width: 90vw;
    }
}

.hero-section {
    margin-top: 0;
    padding-top: 0;
}

.hero-section .quote {
    margin-top: 0;
    padding-top: 0;
}

.hero-section .quote img {
    width: 40px;
    margin-top: 1rem;
    margin-bottom: 0;
}

.hero-section .custom-width-90 img {
    display: block;
    margin: 0;
    margin-bottom: 3rem;
    padding: 0;
}

.custom-width-90 {
    width: 90vw;
    margin-left: auto;
    margin-right: auto;
}

@font-face {
    font-family: 'Cherolina';
    src: url('https://beta.aranzazucatalan.com/files/Cherolina.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.signature-text {
    font-family: 'Cherolina', cursive;
    font-size: 1.8rem;
    font-weight: normal;
    margin-top: 0rem;
    align-self: center;
    color: #333;
}

.quote {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (min-width: 576px) {
    .container-fluid {
        max-width: none !important;
    }
}

@media (min-width: 768px) {
    .container-fluid {
        max-width: none !important;
    }
}

@media (min-width: 992px) {
    .container-fluid {
        max-width: none !important;
    }
}

@media (min-width: 1200px) {
    .container-fluid {
        max-width: none !important;
    }
}

@media (min-width: 1400px) {
    .container-fluid {
        max-width: none !important;
    }
}

.container-fluid {
    max-width: none !important;
}

.logo {
    max-height: 50px;
}

.nav-link {
    all: initial;
    display: inline-block !important;
}

header .nav .nav-item .nav-link {
    color: #000 !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    padding: 0 10px !important;
    font-family: Century Gothic,CenturyGothic,AppleGothic,sans-serif !important;
    text-decoration: none !important;
    background: none !important;
    transition: opacity 0.3s ease !important;
}

header .nav .nav-item .nav-link:hover {
    opacity: 0.3 !important;
    color: #000 !important;
}

header .nav .nav-item .nav-link:visited,
header .nav .nav-item .nav-link:active,
header .nav .nav-item .nav-link:focus {
    color: #000 !important;
}
/* Grid de navegación actualizado */
.nav-grid .custom-width-90 {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.nav-grid .grid-item {
    position: relative;
    width: 100%;
    padding-top: 133.33%;
    overflow: hidden;
    margin-bottom: 0px;
}

.nav-grid .grid-item .grid-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.nav-grid .grid-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-grid .grid-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.nav-grid .overlay span {
    color: #000;
    text-transform: uppercase;
    font-size: 14px;
    padding: 8px 20px;
    border: 1px solid #000;
    background: rgba(255, 255, 255, 0.4);
    z-index: 3;
    transition: transform 0.3s ease;
}

.nav-grid .grid-item .overlay span {
    color: #fff;
    border: 1px solid #fff;
    text-transform: uppercase;
    font-size: 14px;
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.2);
    z-index: 3;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.nav-grid .grid-item:hover .overlay {
    background: rgba(255, 255, 255, 0.3);
}

.nav-grid .grid-item:hover .overlay span {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border-color: #fff;
}

/* Media queries para el grid */
@media (max-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .nav-grid .custom-width-90 {
        padding: 0 10px;
    }
}

.nav-grid .row {
    margin: 0 -15px;
}

.nav-grid .col-md-3 {
    padding: 0 15px;
}

.grid-item:hover .overlay span {
    transform: scale(1.1);
}
/* Lightbox Container */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none;
}

/* Lightbox Image */
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    display: block;
}

/* Navigation Buttons */
.lightbox .prev,
.lightbox .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
    user-select: none;
}

.lightbox .prev {
    left: 20px;
    color: #000;
}

.lightbox .next {
    right: 20px;
    color: #000;
}

/* Close Button */
.lightbox .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: #000;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.signature {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: #333;
    font-weight: 700;
    text-align: left;
    margin-top: 1rem;
}

.grid-container.spaced-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr)); /* Mantiene la distribución flexible */
    gap: 40px; /* Espaciado adecuado entre logos */
    justify-content: center; /* Centra los elementos horizontalmente */
    align-items: center;
    max-width: 1400px; /* Define un ancho máximo */
    margin: 0 auto; /* Asegura que esté centrado */
    padding: 20px;
}

/* Modificamos los breakpoints para que cambien más tarde */

@media (max-width: 1200px) {
    .grid-container.spaced-grid {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
        max-width: 1000px;
    }
}

@media (max-width: 992px) {
    .grid-container.spaced-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
        max-width: 800px;
    }
}

@media (max-width: 576px) {
    .grid-container.spaced-grid {
        grid-template-columns: 1fr; /* Ahora sí se hace una sola columna */
        justify-content: center; /* Centra los elementos */
    }
}
.spaced-grid-item {
    display: flex;
    justify-content: center;
    align-items: center;
}
.spaced-grid-item img {
    max-width: 120px;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto; /* Asegura centrado */
}

#main-footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 20px; /* Añadir margen superior para separar del contenido */
}
#signature {
    text-align: right;
}

.highlight-letter {
    font-size: 4rem;
    font-weight: bold;
    line-height: 1;
    display: inline-block;
    color: inherit;
}

.grid-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.home-grid-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.home-grid-item {
    position: relative;
    width: 100%;
    padding-top: 133.33%;
    overflow: hidden;
}

.home-grid-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.home-grid-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Media queries para ajustes específicos en diferentes tamaños de pantalla */
@media (max-width: 768px) {
    .project-detail-page .overlay-text {
        font-size: 18px;
        padding: 8px 15px;
    }
}

@media (max-width: 576px) {
    .project-detail-page .overlay-text {
        font-size: 16px;
        padding: 6px 12px;
        border-width: 1px;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 375px) {
    .project-detail-page .overlay-text {
        font-size: 14px;
        padding: 5px 10px;
    }
}

.home-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.home-overlay span {
    color: #fff;
    border: 1px solid #fff;
    text-transform: uppercase;
    font-size: 14px;
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.2);
    z-index: 3;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Efectos hover */
.home-grid-item:hover .home-overlay {
    background: rgba(255, 255, 255, 0.3);
}

.home-grid-item:hover .home-overlay span {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border-color: #fff;
}

/* Footer */
.social-icons img {
    width: auto;
    height: 18px;
		object-fit: contain; 
}

.email {
    color: #666;
    font-size: 14px;
}

/* Enlaces */
a {
    text-decoration: none;
}

.nav-link,
a.nav-link,
.nav > .nav-item > .nav-link {
    color: #000 !important;
}

.nav-link {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

.nav-link.active {
    color: #007bff !important;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

/* Media query para móviles */
@media (max-width: 576px) {
    .home-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .home-grid-section {
        padding: 0 10px;
    }
}
.contact-info p {
    margin-bottom: 1px !important;
}
.spacer {
    height: 50px; /* Ajusta este valor según el espacio que necesites */
}
.nav-item img {
    height: 20px; /* Ajusta el tamaño del icono */
    vertical-align: middle;
}
.nav-item a {
    display: flex;
    align-items: center;
}
.contact-link {
    font-family: inherit; /* Usa la fuente estándar de la página */
    color: #000; /* O el color que prefieras */
    text-decoration: none; /* Evita subrayado si no lo quieres */
    font-size: 16px; /* Ajusta el tamaño si es necesario */
}

.contact-link:hover {
    text-decoration: underline; /* Opcional: efecto al pasar el mouse */
}
.project-detail-page .main-image-container {
    width: 95%;
    margin: 0 auto 20px auto;
    text-align: center;
    position: relative;
}

.project-detail-page .overlay {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Mantiene la proporción */
    max-height: 600px; /* Evita que la imagen sea más alta de 600px */
}

.project-detail-page .main-image {
    width: 100%;
    height: 100%;
    max-height: 600px; /* Asegura que no pase de 600px */
    object-fit: cover;
    display: block;
}

/* Overlay gris oscuro SOLO en esta página */
.project-detail-page .overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Texto centrado SOLO en esta página */
.project-detail-page .overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: clamp(16px, 2vw, 24px); /* Tamaño de fuente responsive */
    font-weight: bold;
    text-transform: uppercase;
    padding: clamp(8px, 1.5vw, 20px) clamp(12px, 2vw, 30px); /* Padding responsive */
    border: clamp(1px, 0.2vw, 2px) solid white; /* Borde responsive */
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
    text-align: center;
    width: auto;
    max-width: 90%; /* Evitar que el texto se salga en pantallas pequeñas */
}

/* Estilos para el menú hamburguesa */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin: 0 auto 15px auto;
    width: 30px;
    height: 25px;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #000;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.nav-item {
    margin: 0 10px;
}
/* Media query para pantallas pequeñas */
@media (max-width: 550px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-item {
        margin: 8px 0;
        width: 100%;
        text-align: center;
    }
    
    /* Reset explícito para asegurar consistencia */
    header .nav-menu.active .nav-item .nav-link {
        font-family: Century Gothic, CenturyGothic, AppleGothic, sans-serif !important;
        font-size: 14px !important;
        text-transform: uppercase !important;
        color: #000 !important;
        display: block;
        width: 100%;
        padding: 10px 0 !important;
        text-align: center;
    }
}
/* Estilos base para todos los enlaces del menú */
header .nav-menu .nav-item .nav-link,
header .nav-menu.active .nav-item .nav-link {
    font-family: Century Gothic, CenturyGothic, AppleGothic, sans-serif !important;
    color: #000 !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    text-decoration: none !important;
    background: none !important;
    transition: opacity 0.3s ease !important;
}