/* =========================================
   QUINCHO LAS HERMANAS
   ESTILOS PRINCIPALES
========================================= */


/* ---------- RESET ---------- */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: #f7f6f2;
    color: #202020;
    line-height: 1.6;
}

img {
    width: 100%;
    display: block;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
}


/* ---------- VARIABLES ---------- */

:root {
    --dark: #171717;
    --dark-soft: #242424;
    --cream: #f7f6f2;
    --white: #ffffff;
    --gray: #777;
    --border: #deddd8;

    --max-width: 1200px;
}


/* ---------- CONTAINER ---------- */

.container {
    width: min(90%, var(--max-width));
    margin: 0 auto;
}


/* ---------- NAVBAR ---------- */

.navbar {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 10;

    color: white;
}

.navbar-content {
    height: 90px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.logo {
    font-family: "Playfair Display", serif;

    font-size: 24px;

    font-weight: 600;
}

.logo span {
    display: block;

    font-family: "DM Sans", sans-serif;

    font-size: 10px;

    letter-spacing: 4px;

    text-transform: uppercase;

    text-align: center;

    margin-top: -5px;
}

.nav-menu {
    display: flex;

    gap: 30px;
}

.nav-menu a {
    font-size: 14px;

    opacity: 0.9;

    transition: 0.3s;
}

.nav-menu a:hover {
    opacity: 1;
}

.nav-button {
    border: 1px solid rgba(255,255,255,0.7);

    padding: 11px 20px;

    border-radius: 50px;

    font-size: 13px;

    transition: 0.3s;
}

.nav-button:hover {
    background: white;

    color: #171717;
}


/* ---------- HERO ---------- */

.hero {
    min-height: 100vh;

    position: relative;

    display: flex;

    align-items: center;

    background-image: url("../images/quincho.jpg");

    background-size: cover;

    background-position: center;
}

.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.70),
            rgba(0,0,0,0.20)
        );
}

.hero-content {
    position: relative;

    z-index: 2;

    color: white;

    padding-top: 80px;
}

.hero-small {
    font-size: 12px;

    letter-spacing: 4px;

    margin-bottom: 25px;

    opacity: 0.9;
}

.hero h1 {
    font-family: "Playfair Display", serif;

    font-size: clamp(60px, 8vw, 105px);

    line-height: 0.95;

    font-weight: 500;

    margin-bottom: 30px;
}

.hero h1 span {
    font-style: italic;
}

.hero-description {
    max-width: 480px;

    font-size: 17px;

    margin-bottom: 35px;

    color: rgba(255,255,255,0.88);
}

.hero-buttons {
    display: flex;

    gap: 14px;

    flex-wrap: wrap;
}


/* ---------- BUTTONS ---------- */

.button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 14px 25px;

    border-radius: 50px;

    font-size: 14px;

    font-weight: 600;

    transition: 0.3s;
}

.button-light {
    background: white;

    color: #171717;
}

.button-light:hover {
    transform: translateY(-2px);
}

.button-outline {
    border: 1px solid rgba(255,255,255,0.7);

    color: white;
}

.button-outline:hover {
    background: white;

    color: #171717;
}


/* ---------- SCROLL ---------- */

.scroll-down {
    position: absolute;

    bottom: 30px;

    left: 50%;

    transform: translateX(-50%);

    color: white;

    font-size: 28px;

    animation: scrollArrow 1.8s infinite;
}

@keyframes scrollArrow {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 8px);
    }

}


/* ---------- SECTIONS ---------- */

.section {
    padding: 120px 0;
}

.section-heading {
    margin-bottom: 60px;
}

.section-heading.centered {
    text-align: center;
}

.eyebrow {
    font-size: 11px;

    letter-spacing: 3px;

    font-weight: 700;

    color: #777;

    margin-bottom: 15px;
}

.section-heading h2,
.info h2,
.location h2,
.contact h2 {
    font-family: "Playfair Display", serif;

    font-size: clamp(42px, 5vw, 65px);

    line-height: 1.05;

    font-weight: 500;
}


/* ---------- INTRO ---------- */

.intro {
    background: var(--cream);
}

.intro-grid {
    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 80px;

    align-items: center;
}

.intro-text {
    font-size: 17px;

    color: #555;
}

.intro-text p {
    margin-bottom: 20px;
}

.intro-image {
    height: 600px;
}

.intro-image img {
    height: 100%;

    border-radius: 4px;
}

.text-link {
    display: inline-block;

    margin-top: 15px;

    font-weight: 600;

    color: #222;

    border-bottom: 1px solid #222;

    padding-bottom: 3px;
}


/* ---------- FEATURES ---------- */

.features {
    background: white;
}

.features-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);
}

.feature-card {
    padding: 45px 30px;

    border-right: 1px solid var(--border);

    transition: 0.3s;
}

.feature-card:last-child {
    border-right: none;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 32px;

    margin-bottom: 25px;
}

.feature-card h3 {
    margin-bottom: 10px;

    font-size: 18px;
}

.feature-card p {
    color: #777;

    font-size: 14px;
}


/* ---------- GALERÍA ---------- */

.gallery {
    background: var(--cream);
}

.gallery-subtitle {
    color: #777;

    margin-top: 12px;

    font-size: 16px;
}

.gallery-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 14px;
}

.gallery-item {
    aspect-ratio: 1 / 1;

    overflow: hidden;

    border-radius: 12px;

    cursor: pointer;

    background: #ddd;
}

.gallery-item img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform 0.5s ease,
        filter 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);

    filter: brightness(0.9);
}


/* ---------- LIGHTBOX ---------- */

.lightbox {
    position: fixed;

    inset: 0;

    background: rgba(0,0,0,0.92);

    z-index: 9999;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 30px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;

    width: min(1100px, 85vw);

    height: min(800px, 82vh);

    display: flex;

    align-items: center;

    justify-content: center;
}

.lightbox-content img {
    width: 100%;

    height: 100%;

    object-fit: contain;

    border-radius: 8px;
}

.lightbox-close {
    position: absolute;

    top: 20px;

    right: 30px;

    background: none;

    border: none;

    color: white;

    font-size: 46px;

    cursor: pointer;

    z-index: 10;

    line-height: 1;
}

.lightbox-arrow {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 55px;

    height: 55px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,0.35);

    background: rgba(255,255,255,0.08);

    color: white;

    font-size: 40px;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    z-index: 10;

    transition: 0.3s;
}

.lightbox-arrow:hover {
    background: white;

    color: black;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-counter {
    position: absolute;

    bottom: -35px;

    left: 50%;

    transform: translateX(-50%);

    color: white;

    font-size: 14px;

    letter-spacing: 1px;
}


/* ---------- INFO ---------- */

.info {
    background: #202020;

    color: white;
}

.info .eyebrow {
    color: #aaa;
}

.info-content {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;

    align-items: start;
}

.info-list {
    border-top: 1px solid #444;
}

.info-row {
    display: flex;

    gap: 20px;

    padding: 25px 0;

    border-bottom: 1px solid #444;
}

.info-row > span {
    font-size: 24px;
}

.info-row strong {
    font-size: 16px;
}

.info-row p {
    color: #aaa;

    font-size: 14px;
}


/* ---------- FAQ ---------- */

.faq {
    background: white;
}

.faq-list {
    max-width: 850px;

    margin: 0 auto;
}

.faq-item {
    border-top: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;

    border: none;

    background: none;

    padding: 25px 0;

    display: flex;

    justify-content: space-between;

    align-items: center;

    font-family: inherit;

    font-size: 17px;

    text-align: left;

    cursor: pointer;
}

.faq-question span {
    font-size: 25px;

    font-weight: 300;

    transition: 0.3s;
}

.faq-answer {
    max-height: 0;

    overflow: hidden;

    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding-bottom: 25px;

    color: #777;

    font-size: 15px;
}

.faq-item.active .faq-question span {
    transform: rotate(45deg);
}


/* ---------- LOCATION ---------- */

.location {
    background: var(--cream);
}

.location-grid {
    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 80px;

    align-items: center;
}

.location-text > p:last-child {
    color: #777;

    margin-top: 25px;

    max-width: 450px;
}

.map-placeholder {
    height: 450px;

    background:
        linear-gradient(
            135deg,
            #dad8d1,
            #efeee9
        );

    display: flex;

    justify-content: center;

    align-items: center;

    text-align: center;
}

.map-content span {
    font-size: 40px;
}

.map-content p {
    color: #666;
}


/* ---------- CONTACT ---------- */

.contact {
    background: #171717;

    color: white;

    text-align: center;
}

.contact-box {
    max-width: 1000px;

    margin: 0 auto;
}

.contact .eyebrow {
    color: #aaa;
}

.contact h2 {
    margin-bottom: 20px;
}

.contact-box > p:not(.eyebrow) {
    color: #aaa;

    margin-bottom: 35px;
}


/* ---------- CONTACT SECONDARY ---------- */

.contact-secondary {
    margin-top: 40px;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 14px;
}

.contact-secondary-item {
    display: flex;

    align-items: center;

    gap: 14px;

    padding: 16px 18px;

    border: 1px solid #333;

    border-radius: 12px;

    background: #202020;

    color: white;

    text-align: left;

    transition: 0.3s ease;
}

.contact-secondary-item:hover {
    background: #292929;

    border-color: #555;

    transform: translateY(-2px);
}

.contact-secondary-icon {
    width: 44px;

    height: 44px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #2b2b2b;

    color: white;

    font-size: 19px;
}

.instagram-icon {
    color: white;
}

.contact-secondary-text {
    display: flex;

    flex-direction: column;

    min-width: 0;
}

.contact-secondary-text span {
    color: #888;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1.5px;

    margin-bottom: 2px;
}

.contact-secondary-text strong {
    font-size: 15px;

    font-weight: 500;

    color: white;
}


/* ---------- FOOTER ---------- */

.footer {
    background: #111;

    color: white;

    padding-top: 60px;
}

.footer-content {
    display: flex;

    justify-content: space-between;

    gap: 40px;

    padding-bottom: 50px;
}

.footer h3 {
    font-family: "Playfair Display", serif;

    font-size: 25px;
}

.footer p {
    color: #777;

    font-size: 14px;
}

.footer-links {
    display: flex;

    gap: 25px;

    align-items: center;
}

.footer-links a {
    color: #aaa;

    font-size: 14px;

    transition: 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #292929;

    padding: 25px 0;
}


/* =========================================
   RESPONSIVE
========================================= */


@media (max-width: 900px) {

    .nav-menu {
        display: none;
    }


    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .feature-card:nth-child(2) {
        border-right: none;
    }


    .feature-card:nth-child(1),
    .feature-card:nth-child(2) {
        border-bottom: 1px solid var(--border);
    }


    .intro-grid,
    .info-content,
    .location-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }


    /* GALERÍA */

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);

        gap: 12px;
    }


    /* LIGHTBOX */

    .lightbox-content {
        width: min(900px, 80vw);

        height: min(700px, 78vh);
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next {
        right: 20px;
    }


    /* CONTACTO */

    .contact-secondary {
        grid-template-columns: 1fr 1fr;
    }

    .contact-secondary-item:last-child {
        grid-column: 1 / -1;
    }

}



@media (max-width: 600px) {

    .navbar-content {
        height: 75px;
    }


    .nav-button {
        padding: 9px 15px;

        font-size: 12px;
    }


    .logo {
        font-size: 20px;
    }


    .hero {
        min-height: 90vh;
    }


    .hero h1 {
        font-size: 58px;
    }


    .hero-description {
        font-size: 15px;
    }


    .section {
        padding: 80px 0;
    }


    /* COMODIDADES */

    .features-grid {
        grid-template-columns: 1fr;
    }


    .feature-card {
        border-right: none;

        border-bottom: 1px solid var(--border);
    }


    /* GALERÍA */

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 8px;
    }


    .gallery-item {
        border-radius: 8px;
    }


    /* LIGHTBOX */

    .lightbox {
        padding: 10px;
    }


    .lightbox-content {
        width: 100%;

        height: 75vh;
    }


    .lightbox-content img {
        border-radius: 5px;
    }


    .lightbox-arrow {
        width: 42px;

        height: 42px;

        font-size: 30px;

        background: rgba(0,0,0,0.45);

        border: 1px solid rgba(255,255,255,0.45);
    }


    .lightbox-prev {
        left: 8px;
    }


    .lightbox-next {
        right: 8px;
    }


    .lightbox-close {
        top: 15px;

        right: 15px;

        font-size: 40px;
    }


    .lightbox-counter {
        bottom: -28px;
    }


    /* CONTACTO */

    .contact-secondary {
        grid-template-columns: 1fr;
    }


    .contact-secondary-item:last-child {
        grid-column: auto;
    }


    .contact-secondary-item {
        padding: 15px 16px;
    }


    .contact-secondary-icon {
        width: 42px;

        height: 42px;
    }


    /* FOOTER */

    .footer-content {
        flex-direction: column;
    }


    .footer-links {
        flex-wrap: wrap;
    }

}



@media (max-width: 400px) {

    .hero h1 {
        font-size: 50px;
    }


    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 6px;
    }


    .gallery-item {
        border-radius: 6px;
    }


    .lightbox-arrow {
        width: 38px;

        height: 38px;

        font-size: 26px;
    }

}