:root {
    --primary-color: #6c757d;
    --secondary-color: #2c3e50;
    --text-color: #7f8c8d;
    --light-color: #f8f9fa;
    --primary: #e67e22;
    --primary-dark: #d35400;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --overlay-color: rgba(205, 206, 207, 0.719);
    --preloader: rgba(205, 206, 207, 0);
}

@font-face {
    font-family: 'fs-siena';
    src: url('/assets/fonts/FS-Siena-Regular.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../assets/fonts/Montserrat/Montserrat-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    /* Rango para fuentes variables */
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../assets/fonts/Montserrat/Montserrat-Italic-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'Nostalgic';
    src: url('../fonts/nostalgic_whispers/nostalgic_whispers/NostalgicWhispers-Regular.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

/* Contenido principal (para demostración) */

/* Header */
.projects-header {
    
    padding: 100px 0;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

/* Efecto adicional de profundidad */
.projects-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(255, 255, 255, 0.8) 50%,
            transparent 100%);
}

.projects-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.projects-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: #495057;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .projects-header {
        padding: 70px 0;
    }

    .projects-header h1 {
        font-size: 2.2rem;
    }

    .projects-header p {
        font-size: 1rem;
        padding: 0 20px;
    }
}

/* Project Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* Project Card - SIMPLIFICADA */
.project-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.project-card:hover {
    border-color: #6c757d;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.15);
    /* ELIMINADO: transform: scale(1.02); */
}

.project-thumb {
    width: 100%;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
    /* AISLAR la imagen de las transformaciones */
    transform: translateZ(0);
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Asegurar que no herede transformaciones */
    transform: none !important;
}

/* ELIMINADO: .project-card:hover .project-thumb img */

.project-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    gap: 15px;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    text-align: center;
    line-height: 1.3;
    margin: 0;
}

/* Project Actions - BOTÓN OPTIMIZADO */
.project-actions {
    width: 100%;
}

.btn-optimized {
    display: block;
    width: 100%;
    padding: 12px 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: #6c757d;
    background-color: transparent;
    border: 2px solid #6c757d70;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.2;
}

.btn-optimized:hover {
    color: white;
    background-color: #6c757d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* MODAL COMPLETO */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-modal.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    width: 95%;
    height: 95vh;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
    background: white;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.modal-location {
    color: var(--primary-color);
    font-size: 1rem;
}

.modal-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.main-image-container {
    flex: 1;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-strip-container {
    width: 150px;
    background: #f8f9fa;
    border-left: 1px solid #e9ecef;
    padding: 20px 10px;
    overflow-y: auto;
}

.image-strip {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.strip-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.strip-thumb.active {
    border-color: var(--primary-color);
}

.strip-thumb:hover {
    border-color: var(--primary-color);
}

.strip-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.image-counter {
    color: var(--muted-color);
    font-size: 0.9rem;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

/* Botón en modal también optimizado */
.modal-btn-optimized {
    padding: 10px 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: #6c757d;
    background-color: transparent;
    border: 2px solid #6c757d;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn-optimized:hover {
    color: white;
    background-color: #6c757d;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.modal-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav.prev {
    left: 20px;
}

.modal-nav.next {
    right: 170px;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-title {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .project-thumb {
        height: 200px;
    }

    .project-info {
        padding: 15px;
        gap: 12px;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .btn-optimized {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .modal-content {
        width: 98%;
        height: 98vh;
    }

    .modal-body {
        flex-direction: column;
    }

    .image-strip-container {
        width: 100%;
        height: 120px;
        border-left: none;
        border-top: 1px solid #e9ecef;
        padding: 10px 20px;
        overflow-x: auto;
    }

    .image-strip {
        flex-direction: row;
        gap: 8px;
    }

    .strip-thumb {
        width: 100px;
        height: 75px;
        flex-shrink: 0;
    }

    .modal-nav.next {
        right: 20px;
    }

    .modal-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    

    .gallery-title {
        font-size: 1.6rem;
    }

    .project-info {
        padding: 12px;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-title {
        font-size: 1.4rem;
    }

    .main-image-container {
        padding: 10px;
    }

    .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .btn-optimized {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-modal.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.contact-modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.contact-modal.active .contact-modal-content {
    transform: scale(1);
}

.contact-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: #333;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.contact-modal-close:hover {
    background: #fff;
    transform: scale(1.1);
}

/* Estilos del formulario de contacto dentro del modal */
.contact-form-section {
    width: 100%;
    height: 100%;
}

.form-container {
    position: relative;
    width: 100%;
    min-height: 500px;
    overflow: hidden;
}

.contact-reflection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.contact-reflection img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.contact-form-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-form-content h3 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.contact-form-content p {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-modal-content {
        width: 95%;
        margin: 20px;
    }

    .contact-form-content {
        padding: 30px 20px;
    }

    .contact-form-content h3 {
        font-size: 1.5rem;
    }

    .form-control {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .contact-form-content {
        padding: 20px 15px;
    }

    .contact-form-content h3 {
        font-size: 1.3rem;
    }

    .btn-outline-secondary {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* Modern Design Gallery Styles */
/* Custom Carousel Styles */
.custom-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.custom-carousel {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.65, 0, 0.35, 1);
    transform: translateX(50px);
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
}

/* Navigation con flechas solamente */
.carousel-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.nav-btn {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.nav-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: scale(1);
}

.nav-btn:disabled:hover {
    background: rgba(255, 107, 53, 0.95);
    transform: scale(1);
}

/* Image and Content Styles */
.design-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.design-image {
    transition: all 0.5s ease;
    height: 400px;
    width: 100%;
    object-fit: cover;
}

.design-image-container:hover .design-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.1), transparent);
    border-radius: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.design-image-container:hover .image-overlay {
    opacity: 1;
}

.design-content {
    padding: 2rem 0;
}

.badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
}

/* CTA Styles */
.cta-container {
    background: white;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.cta-button {
    background: linear-gradient(135deg, #2c3e50, #2f364979);
    border: none;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
    color: white;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(97, 75, 67, 0.4);
    color: white;
}

/* NUEVOS ESTILOS PARA ALINEACIÓN EN MÓVIL */
/* Asegurar que el contenido esté centrado en móvil */
@media (max-width: 768px) {
    .design-content {
        padding: 1.5rem 0 0 0; /* Reducir padding superior y eliminar lateral */
        text-align: center; /* Centrar todo el texto */
    }
    
    /* Eliminar el padding izquierdo en móvil */
    .design-content.ps-lg-4 {
        padding-left: 0 !important;
    }
    
    /* Asegurar que las listas estén centradas */
    .design-content .list-unstyled {
        text-align: center;
        display: inline-block;
    }
    
    /* Centrar los ítems de la lista */
    .design-content .list-unstyled li {
        text-align: left; /* Mantener texto alineado a la izquierda dentro de cada ítem */
        display: flex;
        align-items: center;
        justify-content: flex-start;
        margin-bottom: 0.75rem;
    }
    
    /* Asegurar que los íconos de check estén alineados */
    .design-content .list-unstyled li i {
        min-width: 20px; /* Ancho fijo para alineación */
        text-align: center;
    }
    
    .nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .design-image {
        height: 300px;
    }
    
    .carousel-navigation {
        margin-top: 2rem;
    }
    
    .cta-container {
        padding: 2rem 1.5rem;
    }
    
    /* Asegurar que el título esté centrado */
    .design-content h3 {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Asegurar que los párrafos estén centrados */
    .design-content p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .design-content {
        padding: 1rem 0 0 0;
    }
    
    /* Ajustes adicionales para móviles muy pequeños */
    .design-content h3 {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .design-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .design-content .list-unstyled li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .nav-btn {
        width: 45px;
        height: 45px;
    }
    
    .design-image {
        height: 250px;
    }
    
    .cta-button {
        width: 100%;
        padding: 0.875rem 2rem;
    }
}

/* Para tablets pequeñas (entre 768px y 992px) */
@media (max-width: 992px) and (min-width: 769px) {
    .design-content {
        padding: 1.5rem 0;
        text-align: center;
    }
    
    .design-content.ps-lg-4 {
        padding-left: 0 !important;
    }
}

/* Animation for slide content */
.carousel-slide .row {
    animation: slideInUp 0.8s ease 0.2s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}