

body {
    font-family: 'Rubik', sans-serif;
    background-color: #fafaf9;
    overflow-x: hidden;
    font-size: 18px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}


#projects {
    display: none;
}


.process-step-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #1c1917 0%, #44403c 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

@media (min-width: 768px) {
    .process-step-number {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
}



@keyframes panBackground {
    0% {
        background-position: right center;
    }

    50% {
        background-position: center center;
    }

    100% {
        background-position: left center;
    }
}

.hero-section {
    height: 100vh;
    background-image: linear-gradient(rgba(28, 25, 23, 0.4), rgba(28, 25, 23, 0.4)), url('assets/images/hero/web_img.jpeg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    animation: panBackground 20s ease-in-out infinite;
}

@media (min-width: 768px) {
    .hero-section {
        height: 100vh;
        background-position: center;
        background-attachment: fixed;
        animation: none;
    }
}

.hero-section h1,
.hero-section p {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}



.image-card {
    transition: transform 0.5s ease, filter 0.5s ease;
}

.image-card:hover {
    transform: scale(1.02);
}


@media (max-width: 767px) {
    .grayscale {
        filter: none !important;
    }
}

.collection-img {
    height: 500px;
    width: 100%;
    object-fit: cover;
}

.glass-card {
    background-color: rgba(255, 255, 255, 0.66);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.masked-image {
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}




#materials-grid .material-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;

    aspect-ratio: 3 / 4; 
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


#materials-grid .material-card > div {
    height: 100% !important;
    width: 100%;
}

#materials-grid .material-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#materials-grid .material-card:hover {
    transform: translateY(-4px);
}


@media (max-width: 768px) {
    #materials-grid .material-card {
        aspect-ratio: 1 / 1;
    }
    

    #materials-grid .material-card > div {
        height: 100% !important;
    }
}


@media (min-width: 769px) {
    #materials-grid .material-card {
        aspect-ratio: 3 / 4;
    }
}

.gallery-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    padding: 40px 20px;
    perspective: 1200px;
    min-height: 500px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding: 20px;
}

@media (min-width: 768px) {
    .gallery-wrapper {
        justify-content: center;
        padding: 60px 0;
        min-height: 600px;
        overflow: hidden;
        gap: 20px;
    }
}

.material-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.material-card.active {
    width: 260px;
    height: 420px;
    box-shadow: 0 8px 30px rgba(28, 25, 23, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.8);
    z-index: 50;
    opacity: 1;
    filter: grayscale(0%);
    scroll-snap-align: center;
}


@media (max-width: 767px) {
    .material-card.active {
        width: 300px;
        height: 300px;
    }
    
    .material-card.side {
        width: 140px;
        height: 140px;
    }
    
    .material-card.far-side {
        width: 100px;
        height: 100px;
    }
}

@media (min-width: 768px) {
    .material-card.active {
        width: 320px;
        height: 520px;
        border: 1px solid rgba(255, 255, 255, 0.6);
        box-shadow: 0 0 40px rgba(28, 25, 23, 0.2);
    }
}

.material-card.side {
    width: 120px;
    height: 320px;
    opacity: 0.7;
    z-index: 30;
    scroll-snap-align: center;
}

@media (min-width: 768px) {
    .material-card.side {
        width: 180px;
        height: 420px;
        opacity: 0.8;
        filter: grayscale(30%);
    }
}

.material-card.far-side {
    width: 80px;
    height: 240px;
    opacity: 0.4;
    z-index: 10;
    scroll-snap-align: center;
}

@media (min-width: 768px) {
    .material-card.far-side {
        width: 130px;
        height: 320px;
        opacity: 0.5;
        filter: grayscale(70%);
    }
}

.material-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.material-card.active img {
    transform: scale(1.05);
}

.overlay {
    background: linear-gradient(to top, rgba(28, 25, 23, 0.95) 0%, rgba(28, 25, 23, 0.7) 50%, transparent 100%);
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px 15px;
    text-align: center;
    transition: opacity 0.5s ease;
    opacity: 0;
}

@media (min-width: 768px) {
    .overlay {
        padding: 30px 20px;
    }
}

.material-card.active .overlay {
    opacity: 1;
}

.overlay h3 {
    color: white;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(231, 229, 228, 0.6) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.5s ease;
}



.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    right: -80px;
}

.lightbox-next {
    left: -80px;
}

.lightbox-caption {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    color: white;
    text-align: center;
    font-size: 18px;
    font-weight: 300;
}

.lightbox-close:focus,
.lightbox-nav:focus {
    outline: 3px solid #ffffff !important;
    outline-offset: 2px !important;
    background: rgba(255, 255, 255, 0.3) !important;
}



@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}



.enhanced-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.enhanced-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:hover::after {
    width: 300px;
    height: 300px;
}



.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes whatsappPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}



.legal-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1c1917;
}

.legal-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #44403c;
}

.legal-content p,
.legal-content li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    color: #57534e;
}

.legal-content ul {
    list-style-type: disc;
    padding-right: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content strong {
    font-weight: 700;
    color: #1c1917;
}



section {
    scroll-margin-top: 100px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.sr-only:focus {
    position: fixed !important;
    top: 10px !important;
    right: 10px !important;
    width: auto !important;
    height: auto !important;
    padding: 1rem 2rem !important;
    background-color: #0066cc !important;
    color: white !important;
    z-index: 99999 !important;
    font-size: 1.2rem !important;
    font-weight: bold !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.form-loading {
    opacity: 0.6;
    pointer-events: none;
}

.loader {
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid #57534e;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.parallax-hero {
    transition: transform 0.1s ease-out;
}

.gallery-item {
    cursor: pointer;
}

html {
    scroll-behavior: smooth;
}



.text-stone-500 {
    color: #44403c;
}

.text-stone-600 {
    color: #292524;
}

.text-stone-400 {
    color: #57534e;
}


.text-glow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
}




a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
}


a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}



@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .hero-section {
        min-height: 100vh;
        padding: 20px;
    }

    h1 {
        font-size: 2rem !important;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.875rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    section {
        padding: 40px 20px !important;
    }

    button,
    a.btn-ripple {
        min-height: 44px;
        min-width: 44px;
    }

    .whatsapp-float {
        bottom: 20px !important;
        left: 20px !important;
        width: 56px;
        height: 56px;
    }

    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }

    #mobile-menu {
        backdrop-filter: blur(10px);
    }

    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .lightbox-prev {
        right: 10px;
    }

    .lightbox-next {
        left: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }

    .collection-img {
        height: 300px;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }


    .gallery-wrapper {
        justify-content: flex-start;
        padding-left: 20px;
        padding-right: 20px;
    }


    @media (max-width: 480px) {
        .material-card.far-side {
            display: none;
        }
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    body {
        font-size: 17px;
    }

    .container {
        max-width: 95%;
    }

    .grid-cols-1.md\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (pointer: coarse) {

    button,
    a.btn-ripple {
        min-width: 44px !important;
        min-height: 44px !important;
    }
}



@media (prefers-contrast: high) {
    body {
        background-color: #ffffff;
    }

    .text-stone-600 {
        color: #292524 !important;
    }

    .text-stone-500 {
        color: #44403c !important;
    }
}



@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}



.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(28, 25, 23, 0.98) 0%, rgba(28, 25, 23, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 2px solid rgba(231, 229, 228, 0.2);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    opacity: 0;
}

.cookie-consent:not(.hidden) {
    transform: translateY(0);
    opacity: 1;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-icon {
    flex-shrink: 0;
    display: none;
}

@media (min-width: 768px) {
    .cookie-icon {
        display: block;
    }
}

.cookie-text {
    flex: 1;
    min-width: 250px;
}

.cookie-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    font-family: 'Rubik', sans-serif;
}

.cookie-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e7e5e4;
    margin: 0;
    font-weight: 300;
}

.cookie-learn-more {
    background: none;
    border: none;
    color: #fbbf24;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0;
    margin-right: 0.25rem;
    font-weight: 400;
    transition: color 0.2s ease;
}

.cookie-learn-more:hover {
    color: #fcd34d;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.875rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 140px;
    font-family: 'Rubik', sans-serif;
    position: relative;
    overflow: hidden;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #ffffff 0%, #e7e5e4 100%);
    color: #1c1917;
    border-color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.cookie-btn-accept:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.cookie-btn-decline {
    background: transparent;
    color: #d6d3d1;
    border-color: #78716c;
}

.cookie-btn-decline:hover {
    background: rgba(120, 113, 108, 0.2);
    border-color: #a8a29e;
    color: #ffffff;
}


@media (max-width: 768px) {
    .cookie-consent {
        padding: 1.25rem;
    }

    .cookie-consent-content {
        flex-direction: column;
        gap: 1.25rem;
        text-align: center;
    }

    .cookie-title {
        font-size: 1.15rem;
    }

    .cookie-description {
        font-size: 0.875rem;
    }

    .cookie-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
}


@keyframes slideUpFadeIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent.show {
    animation: slideUpFadeIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}