/* ============================================================
   PALETA ZADA — CYPRESS (VERSIÓN 1 LIMPIA + FONDO OLIVE)
   ============================================================ */
:root {
    --cypress: #4C583E;   /* Verde profundo arquitectónico */
    --olive: #768064;     /* Fondo general */
    --moss: #DADDD8;      /* Acentos claros */
    --aleo: #959581;      /* Texto/acento suave */
    --cedar: #2C3424;     /* Verde oscuro profundo */

    --text-light: #f5f7f4;
    --text-muted: #c7cec5;

    --btn-primary: #DADDD8;
    --btn-primary-text: #2C3424;

    --shadow-soft: 0 18px 45px rgba(0,0,0,0.28);
    --border-soft: rgba(255,255,255,0.12);
}

/* ============================================================
   BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--olive);
    color: var(--text-light);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1120px, 100% - 3rem);
    margin: 0 auto;
}

/* ============================================================
   LOADER PREMIUM
   ============================================================ */
.loader {
    position: fixed;
    inset: 0;
    background: var(--cedar);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-circle {
    width: 65px;
    height: 65px;
    border: 5px solid rgba(218,221,216,0.25);
    border-top-color: var(--moss);
    border-radius: 50%;
    animation: loaderSpin 0.8s linear infinite;
}

@keyframes loaderSpin {
    to { transform: rotate(360deg); }
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    background: rgba(44, 52, 36, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
    gap: 1.5rem;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

/* ⭐ ANIMACIÓN DE LOGO */
.logo-main {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: var(--moss);
    animation: logoGlow 3.2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% {
        letter-spacing: 0.33em;
        text-shadow: 0 0 0px rgba(218,221,216,0);
    }
    100% {
        letter-spacing: 0.37em;
        text-shadow: 0 0 10px rgba(218,221,216,0.6);
    }
}

.logo-sub {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--aleo);
    margin-top: 0.25rem;
}

.menu {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    font-size: 0.85rem;
}

.menu a {
    text-decoration: none;
    color: var(--text-light);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.74rem;
    position: relative;
    padding-bottom: 0.1rem;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    width: 0;
    height: 1px;
    background: var(--moss);
    transition: width 0.25s ease;
}

.menu a:hover::after {
    width: 100%;
}

.btn-nav {
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(218,221,216,0.7);
}

/* ============================================================
   MENÚ HAMBURGUESA
   ============================================================ */
.menu-toggle {
    display: none;
    width: 32px;
    height: 26px;
    cursor: pointer;
    position: relative;
}

.menu-toggle span {
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--text-light);
    left: 0;
    border-radius: 4px;
    transition: all 0.35s ease;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }

.menu-toggle.open span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn.primary {
    background: var(--btn-primary);
    color: var(--btn-primary-text);
    border: none;
    box-shadow: 0 10px 26px rgba(0,0,0,0.35);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 32px rgba(0,0,0,0.5);
}

.btn.ghost {
    background: transparent;
    border: 1px solid rgba(245,247,244,0.8);
    color: var(--btn-ghost-text);
}

.btn.ghost:hover {
    background: rgba(250,252,248,0.08);
}

/* ============================================================
   HERO — Zoom + Parallax + Animaciones
   ============================================================ */
.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(20%);
    animation: heroZoom 12s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes heroZoom {
    0% { transform: scale(1.03); }
    100% { transform: scale(1.12); }
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.35), rgba(0,0,0,0.10));
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 4.5rem 0 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero p {
    max-width: 500px;
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
}

/* Animaciones del hero */
.hero-slide-left {
    opacity: 0;
    transform: translateX(-60px);
    animation: heroLeft 1s ease forwards;
}

.hero-slide-right {
    opacity: 0;
    transform: translateX(60px);
    animation: heroRight 1s ease forwards;
    animation-delay: 0.25s;
}

.hero-slide-up {
    opacity: 0;
    transform: translateY(40px);
    animation: heroUp 1s ease forwards;
    animation-delay: 0.45s;
}

@keyframes heroLeft { to {opacity:1; transform:translateX(0);} }
@keyframes heroRight { to {opacity:1; transform:translateX(0);} }
@keyframes heroUp { to {opacity:1; transform:translateY(0);} }

/* ============================================================
   FADE-IN SCROLL
   ============================================================ */
.fade-section {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(7px);
    transition: opacity 0.9s ease, transform 1s ease, filter 1s ease;
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* ============================================================
   SECCIONES GENERALES
   ============================================================ */
.section {
    padding: 5.5rem 0;
}

.section.alt {
    background: rgba(34,40,30,0.8);
    backdrop-filter: blur(10px);
}

.center { text-align: center; }

.section-sub {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================================
   ESTUDIO
   ============================================================ */
.two-columns {
    display: grid;
    grid-template-columns: minmax(0,1.4fr) minmax(0,1fr);
    gap: 2.8rem;
    align-items: flex-start;
}

#estudio h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--moss);
}

#estudio p {
    font-size: 0.97rem;
    color: var(--text-muted);
    margin-bottom: 0.7rem;
}

.values {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.8rem;
}

.values li {
    font-size: 0.8rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(218,221,216,0.7);
    color: var(--text-light);
    background: rgba(76,88,62,0.35);
}

.studio-card {
    border-radius: 1.6rem;
    padding: 2rem 1.8rem;
    background: rgba(23,27,22,0.92);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
}

.studio-card .tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--aleo);
    margin-bottom: 0.6rem;
}

.studio-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
    color: var(--moss);
}

.studio-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ============================================================
   SERVICIOS
   ============================================================ */
.grid {
    display: grid;
    gap: 1.8rem;
}

#servicios h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 1.7rem;
    color: var(--moss);
}

.service-card {
    border-radius: 1.4rem;
    padding: 1.7rem 1.5rem;
    background: var(--moss);
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 14px 35px rgba(0,0,0,0.25);
    color: var(--cedar);
}

/* HOVER 3D */
.service-card {
    transform-style: preserve-3d;
    transition: transform .25s ease, box-shadow .25s ease;
    will-change: transform;
}

.service-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.service-card p {
    font-size: 0.9rem;
    color: #363b32;
}

@media (min-width: 720px) {
    .grid {
        grid-template-columns: repeat(4,1fr);
    }
}

/* ============================================================
   PROYECTOS
   ============================================================ */
.masonry {
    columns: 3;
    column-gap: 1.5rem;
}

.m-item {
    margin-bottom: 1.5rem;
    break-inside: avoid;
}

.m-item img {
    width: 100%;
    border-radius: 1.2rem;
    cursor: pointer;
    transition: transform .35s ease, filter .35s ease;
    filter: grayscale(25%);
}

.m-item img:hover {
    transform: scale(1.03);
    filter: grayscale(0%);
}

/* ============================================================
   LIGHTBOX PREMIUM (NEGRO)
   ============================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.82);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 3000;
    backdrop-filter: blur(6px);
}

.lightbox.open {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 1rem;
    box-shadow: 0 25px 50px rgba(0,0,0,0.45);
    animation: fadeZoom .35s ease;
}

@keyframes fadeZoom {
    from { opacity:0; transform: scale(.85); }
    to { opacity:1; transform: scale(1); }
}

.lightbox-title {
    font-size: 1rem;
    margin-top: 1rem;
    color: var(--moss);
    font-weight: 500;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 3rem;
    color: #ffffff;
    cursor: pointer;
    font-weight: 300;
    transition: 0.25s ease;
}

.lightbox-close:hover {
    transform: scale(1.15);
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-grid {
    display: grid;
    gap: 2.8rem;
    align-items: flex-start;
}

@media (min-width: 720px) {
    .contact-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    }
}

.contact-info p {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--text-light);
}

.contact-info a {
    color: var(--moss);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* ============================================================
   FOOTER PREMIUM
   ============================================================ */
.footer {
    padding: 2.4rem 0 2.7rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(38,44,33,0.65);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* ============================================================
    ICONOS FLOTANTES (Instagram + WhatsApp)
   ============================================================ */
.floating-icons {
    position: fixed;
    right: 22px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 1600;
}

.floating-icons a img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0,0,0,0.25);
    padding: 6px;
    backdrop-filter: blur(6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
    transition: transform .25s ease;
}

.floating-icons a:hover img {
    transform: scale(1.12);
}

/* Fotos de proyectos en una columna en celulares */
@media (max-width: 720px) {
    .masonry {
        columns: 1 !important;
        column-gap: 1.2rem;
    }

    .m-item {
        break-inside: avoid;
        margin-bottom: 1.5rem;
    }
}


/* ============================================================
    RESPONSIVE COMPLETO
   ============================================================ */
@media (max-width: 880px) {
    .two-columns {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 60vh;
    }
}

@media (max-width: 720px) {

    .nav-content {
        padding: 0.8rem 0;
    }

    .menu {
        position: absolute;
        top: 100%;
        right: 1.5rem;
        background: rgba(19,22,18,0.98);
        border-radius: 1.1rem;
        padding: 0.9rem 1.2rem;
        box-shadow: 0 22px 45px rgba(0,0,0,0.6);
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        min-width: 190px;
        display: none;
    }

    .menu.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content {
        padding: 3.6rem 0 3.4rem;
    }

    .section {
        padding: 4.2rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100% - 2.2rem, 100%);
    }

    .studio-card,
    .service-card,
    .pro-item,
    .contact-form {
        border-radius: 1.1rem;
    }
}
