/* FONTS AND COLORS */
@font-face {
    font-family: 'RobotoMono';
    src: url('../assets/RobotoMono-Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'RobotoMono';
    src: url('../assets/RobotoMono-Light.ttf') format('truetype');
    font-weight: 300;
}

:root {
    --color-bg: #000;
    --color-text: #fff;
    --color-muted: #aaa;
    --menu-font-size: 0.95em;
}

/* GENERAL STILLZ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: 'RobotoMono', monospace;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

main.container {
    max-width: 1400px;
}

.main-title {
    margin-top: 4rem;
    margin-bottom: 2rem;
    font-size: 2.2em;
}

/* LOGOS STILLZ */
.logo {
    max-width: 90vw;
    height: auto;
    transition: width 0.3s ease;
    filter: invert(1);
}

.logo-mini {
    width: 6.5rem;
    height: auto;
    filter: invert(1);
}

/* PRINCIPAL MENU */
.header {
    position: relative;
    z-index: 10;
}

.menu-btn {
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 0.8rem;
}

.menu-btn span {
    display: block;
    height: 0.12rem;
    width: 100%;
    background: var(--color-text);
}

.custom-menu {
    background-color: #fff;
    width: 60%;
}

.offcanvas-header {
    border: none;
}

.overlay-nav {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.overlay-nav a {
    text-decoration: none;
    color: #000;
    font-size: var(--menu-font-size);
    letter-spacing: 0.2em;
    line-height: 1.05em;
    font-weight: 400;
    text-transform: lowercase;
    font-variant: small-caps;
    position: relative;
}

.overlay-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.3rem;
    width: 0%;
    height: 0.0625rem;
    background: #000;
    transition: 0.3s ease;
}

.overlay-nav a:hover::after {
    width: 100%;
}

body.menu-open main,
body.menu-open header,
body.menu-open footer {
    filter: blur(3px);
    transition: 0.3s ease;
}

/* FOOTER */
.copy {
    font-size: 0.7rem;
    color: var(--color-muted);
    letter-spacing: 0.15em;
    font-weight: 300;
    text-transform: lowercase;   
    font-variant: small-caps;
}

.social img {
    width: 18px;
    margin-left: 15px;
    cursor: pointer;
    filter: invert(1); 
    transition: 0.3s;
}

.social img:hover {
    opacity: 0.6;
}

/* =========================
   LANDING STILLZ
========================= */
.title {
    font-size: 2.5rem;
    letter-spacing: 8px;
    font-weight: 300;
}

.menu {
    margin-bottom: 40px;
}

.menu a {
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--menu-font-size);
    letter-spacing: 0.2em;
    line-height: 1.05em; 
    position: relative;
    padding-bottom: 0.3rem;
    font-weight: 400; /* Regular */
    text-transform: lowercase;   
    font-variant: small-caps;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 0.0625rem;
    background-color: var(--color-text);
    transition: 0.3s ease;
}

.menu a:hover::after {
    width: 100%;
}

/* =========================
   HOME
========================= */
.content-box {
    max-width: 60rem;
}

/* imagen */
.profile-img {
    width: 100%;
    max-width: 14rem;
    border: 0.08rem solid #fff;
}

/* texto */
.home-text {
    text-align: justify;
    font-size: 0.95em;
    line-height: 1.4em;
    text-transform: lowercase;
    font-variant: small-caps;
    font-weight: 300;
}

/* =========================
   DESIGN
========================= */
.carousel {
    max-width: 40rem;                                       
    margin: 0 auto;
}

/* Imagen carrusel */
.design-img {
    width: 100%;
    max-width: 26rem;
    border: 0.08rem solid #fff;
    cursor: pointer;
}

/* Flechas */
.custom-arrow {
    color: #fff;
    font-size: 3rem;
    background: none;
    border: none;
    opacity: 0.7;
    width: auto;
}

.custom-arrow:hover {
    opacity: 1;
}

/* Mantener flechas fijas */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev,
.carousel-control-next {
    transition: none !important;
}

/* =========================
   MODAL
========================= */
.custom-modal {
    background-color: #eaeaea;
    color: #000;
    padding: 1rem;
}

.modal-header {
    border: none;
}

.modal-title {
    margin: auto;
    font-size: 0.9em;
    text-transform: lowercase;
    font-variant: small-caps;
    font-weight: bold;
}

.modal-body p {
    font-size: 0.8em;
    text-align: justify;
    text-transform: lowercase;
    font-variant: small-caps;
}

/* botón cerrar negro */
.modal .btn-close {
    filter: none;
}

.modal-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.8em;
    text-decoration: none;
    color: #000;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    font-variant: small-caps;
    position: relative;
}

.modal-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    width: 0%;
    height: 0.0625rem;
    background: #000;
    transition: 0.3s;
}

.modal-link:hover::after {
    width: 100%;
}

.modal-backdrop.show {
    backdrop-filter: blur(6px);
    background-color: rgba(0, 0, 0, 0.3);
}

/* =========================
   PAGES
========================= */
.page-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    width: 100%;
    max-width: 2080px; /* clave */
    margin: 0 auto;
    flex-wrap: nowrap;
}

.page-img {
    width: 520px;
    height: 520px;
    object-fit: cover;
    border: 0.08rem solid #fff;
    flex: 0 0 520px;
}

.page-box {
    width: 520px;
    height: 520px;
    border: 0.08rem solid #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    flex: 0 0 520px;
}

.page-box p {
    font-size: 0.8em;
    line-height: 1.5em;
    text-transform: lowercase;
    font-variant: small-caps;
    text-align: justify;
}

.page-link {
    text-decoration: none;
    color: #fff;
    letter-spacing: 0.2em;
    font-size: 0.8em;
    position: relative;
}

.page-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    width: 0%;
    height: 0.0625rem;
    background: #fff;
    transition: 0.3s;
}

.page-link:hover::after {
    width: 100%;
}

.page-arrow {
    font-size: 3rem;
    color: #fff;
    background: none;
    border: none;
    opacity: 0.7;
    width: auto;
}

.page-arrow:hover {
    opacity: 1;
}

#pagesCarousel {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
}

.carousel {
    overflow: visible;
    position: relative;
}

.carousel-inner {
    overflow: visible;
}

.carousel-item {
    display: none;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.carousel-item-next,
.carousel-item-prev {
    opacity: 0;
}

.carousel-item.active {
    display: block;
    opacity: 1;
}

.carousel-control-prev {
    left: -6rem;
}

.carousel-control-next {
    right: -6rem;
}

.custom-indicators {
    position: static;
    margin-top: 2rem;
}

.custom-indicators button {
    width: 30px;
    height: 3px;
    background-color: #555;
    border: none;
    margin: 0 5px;
    opacity: 1;
}

.custom-indicators .active {
    background-color: #fff;
}

.custom-indicators button {
    transition: 0.3s;
}

.custom-indicators button:hover {
    background-color: #aaa;
}

.custom-indicators {
    display: none;
}

/* =========================
   PHOTOS
========================= */
.photo-box {
    max-width: 264px;
    height: 264px;
    overflow: hidden;
    position: relative;
    border: 0.08rem solid #fff;
}

.photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.photo-box:hover img {
    transform: scale(1.1);
}

.gallery .row {
    max-width: 900px;
    margin: 0 auto;
}

/* =========================
   TOUCH
========================= */
.touch-box {
    width: 387px;
    height: 387px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    border: 0.08rem solid #fff;
}

.touch-icon {
    position: absolute;
    width: 80px;
    transition: opacity 0.4s ease;
}

.touch-text {
    position: absolute;
    color: white;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    transform: scale(0.95);
    letter-spacing: 2px;
}

.touch-box.active .touch-icon {
    opacity: 0;
}

.touch-box.active .touch-text {
    opacity: 1;
    transform: scale(0.95);
}

/* =========================
   RESPONSIVE
========================= */
@media (min-width: 992px) {

    .carousel-control-prev {
        left: -4rem;
    }

    .carousel-control-next {
        right: -4rem;
    }

    .carousel-control-prev {
        left: -4rem;
        transform: translateY(-50%) !important;
    }

    .carousel-control-next {
        right: -4rem;
        transform: translateY(-50%) !important;
    }

    .design-img {
        max-width: 24rem;
    }

}

@media (max-width: 992px) {

    main {
        padding-bottom: 4rem;
    }

    .page-slide {
        flex-direction: column;
        gap: 2rem;
    }

    .page-img,
    .page-box {
        width: 90%;
        height: auto;
    }

    .page-box {
        padding: 1.5rem;
    }

    .page-arrow, .custom-arrow {
        display: none;
    }

    .custom-indicators {
    display: block;
}

}

@media (max-width: 768px) {

    .custom-menu {
        width: 80%;
    }

    .home-text {
        text-align: center;
    }

   @media (max-width: 768px) {
    .logo-mini {
        width: 4rem;
    }
}

    .design-img {
        max-width: 90%;
    }

    .custom-arrow {
        font-size: 2rem;
    }

}