/*
Theme Name: Asmobius Architecture
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: Modern Japanese Architecture Portfolio Theme
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: asmobius
*/

/* Google Fonts - Nunito Sans */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;200;300;400&family=Inter:wght@100;200;300;400&display=swap');

/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

:root {
    --primary-black: #000000;
    --primary-white: #ffffff;
    --gray-light: #f5f5f5;
    --gray-medium: #cccccc;
    --transition-speed: 0.4s;
    --font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-japanese: 'Noto Sans JP', 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--primary-black);
    background: var(--primary-white);
    background-image: url('https://c7estudio.esuntipazo.com/wp-content/uploads/2025/07/photo-1601662528567-526cd06f6582-scaled.jpeg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   HEADER - DYNAMIC COLORS
   ======================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    z-index: 1000;
    transition: all var(--transition-speed) ease;
    background: transparent;
}

.site-header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    padding: 20px 50px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo */
.site-logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    color: var(--primary-white);
    transition: color var(--transition-speed) ease;
}

.site-header.scrolled .site-logo {
    color: var(--primary-white);
}

.site-header.on-light-bg:not(.scrolled) .site-logo {
    color: var(--primary-black);
}

/* Sistema de logos dinámicos (Dark/Light) */
.dynamic-logo-link {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.site-logo-image {
    max-height: 80px;
    width: auto;
    transition: opacity 0.4s ease, visibility 0.4s ease, max-height 0.4s ease;
    display: block;
}

.site-logo-image.light-logo {
    position: relative;
    z-index: 2;
    opacity: 1;
    visibility: visible;
}

.site-logo-image.dark-logo {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
}

.site-logo-image.light-logo.active {
    opacity: 1;
    visibility: visible;
}

.site-logo-image.light-logo.active ~ .dark-logo {
    opacity: 0;
    visibility: hidden;
}

.site-logo-image.dark-logo.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.site-logo-image.light-logo:not(.active) {
    opacity: 0;
    visibility: hidden;
}

.site-header.scrolled .site-logo-image {
    max-height: 60px;
}

.custom-logo-link {
    display: inline-block;
    text-decoration: none;
    line-height: 0;
}

.custom-logo {
    height: auto;
    max-height: 90px;
    width: auto;
    max-width: 180px;
    display: block;
    transition: all 0.3s ease;
}

.site-header.scrolled .custom-logo {
    max-height: 60px;
}

/* Navigation */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.main-navigation a {
    text-decoration: none;
    color: var(--primary-white);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    transition: color var(--transition-speed) ease, opacity 0.3s ease;
    opacity: 0.9;
}

.main-navigation a:hover {
    opacity: 1;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-white);
    transition: width var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1), background var(--transition-speed) ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

.site-header.scrolled .main-navigation a {
    color: var(--primary-white);
}

.site-header.scrolled .main-navigation a::after {
    background: var(--primary-white);
}

.site-header.on-light-bg:not(.scrolled) .main-navigation a {
    color: var(--primary-black);
}

.site-header.on-light-bg:not(.scrolled) .main-navigation a::after {
    background: var(--primary-black);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary-white);
    transition: all 0.3s ease;
}

.site-header.scrolled .menu-toggle span {
    background: var(--primary-white);
}

.site-header.on-light-bg:not(.scrolled) .menu-toggle span {
    background: var(--primary-black);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   HERO SECTION - ADVANCED SLIDER
   ======================================== */

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: #000;
    cursor: grab;
}

.hero-section.dragging {
    cursor: grabbing;
}

.hero-slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: none;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform, clip-path;
}

.hero-slide-image.mask-ready {
    clip-path: circle(150% at 50% 50%);
}

.hero-slide.active .hero-slide-image {
    animation: slowZoom 12s ease-out forwards;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

/* Overlay gradiente cinematográfico */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.1) 30%,
            rgba(0, 0, 0, 0.1) 60%,
            rgba(0, 0, 0, 0.5) 100%
        ),
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.4) 0%,
            transparent 40%,
            transparent 60%,
            rgba(0, 0, 0, 0.2) 100%
        );
    z-index: 1;
    pointer-events: none;
}

/* Vignette effect */
.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Hero Content */
.hero-content {
    position: absolute;
    bottom: 15vh;
    left: 8vw;
    right: 8vw;
    z-index: 10;
    max-width: 700px;
}

.hero-slide.active .hero-content {
    opacity: 1;
}

.hero-category {
    font-family: var(--font-japanese);
    font-size: 10px;
    font-weight: 200;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    display: block;
    position: relative;
    padding-left: 40px;
}

.hero-category::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 25px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%);
}

.hero-content h1 {
    font-family: var(--font-japanese);
    font-size: clamp(36px, 6vw, 80px);
    font-weight: 200;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.hero-description,
.hero-content p {
    font-family: var(--font-japanese);
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 25px;
    max-width: 500px;
}

/* ========================================
   SLIDE COUNTER - ESTILO JAPONÉS
   ======================================== */

.slide-counter {
    position: absolute;
    right: 8vw;
    bottom: 15vh;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-japanese);
}

.counter-current {
    font-size: 48px;
    font-weight: 100;
    color: #ffffff;
    letter-spacing: -2px;
    line-height: 1;
    display: inline-block;
}

.counter-separator {
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(-45deg);
}

.counter-total {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

/* ========================================
   PROGRESS BAR
   ======================================== */

.slide-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    padding: 0 8vw;
}

.progress-track {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.progress-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.4) 100%
    );
    transform-origin: left center;
    transform: scaleX(0);
}

/* ========================================
   ENSO CANVAS ANIMATION
   ======================================== */

.enso-canvas-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 75vmin;
    height: 75vmin;
    max-width: 800px;
    max-height: 800px;
    transform: translate(-50%, -50%);
    z-index: 15;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#enso-canvas {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 60px rgba(255, 255, 255, 0.06));
}

.enso-glow-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.01) 30%,
        transparent 60%
    );
    filter: blur(30px);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* ========================================
   SCROLL INDICATOR
   ======================================== */

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 50px;
    z-index: 10;
    opacity: 0;
    animation: scrollFade 2s ease-in-out 2s forwards, scrollBounce 2s ease-in-out 3s infinite;
}

@keyframes scrollFade {
    to { opacity: 0.6; }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

.scroll-indicator-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%
    );
    margin: 0 auto 10px;
}

.scroll-indicator-text {
    font-family: var(--font-japanese);
    font-size: 9px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* ========================================
   NAVIGATION DOTS (Legacy support)
   ======================================== */

.hero-navigation {
    position: absolute;
    left: 8vw;
    bottom: 60px;
    z-index: 10;
    display: flex;
    gap: 12px;
    align-items: center;
}

.hero-nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.hero-nav-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-nav-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.hero-nav-dot.active {
    background: #ffffff;
    width: 24px;
    border-radius: 4px;
}

.hero-nav-dot.active::before {
    border-color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   PROJECTS SECTION
   ======================================== */

.projects-section {
    padding: 80px 0;
}

.projects-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 60px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px 60px;
    margin-top: 0;
}

.project-card {
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:nth-child(1) { transition-delay: 0s; }
.project-card:nth-child(2) { transition-delay: 0.1s; }
.project-card:nth-child(3) { transition-delay: 0.2s; }
.project-card:nth-child(4) { transition-delay: 0.3s; }
.project-card:nth-child(5) { transition-delay: 0.4s; }
.project-card:nth-child(6) { transition-delay: 0.5s; }
.project-card:nth-child(7) { transition-delay: 0.6s; }
.project-card:nth-child(8) { transition-delay: 0.7s; }

.project-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-image {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%;
    overflow: hidden;
    background: #f8f8f8;
    margin-bottom: 20px;
}

.project-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.project-card:hover .project-image img {
    transform: scale(1.04);
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 1;
    transition: background 0.6s ease;
    pointer-events: none;
}

.project-card:hover .project-image::before {
    background: rgba(0, 0, 0, 0.1);
}

.project-info {
    padding: 0;
}

.project-category {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 10px;
    font-weight: 400;
}

.project-title {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    line-height: 1.5;
    color: #000;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: #666;
}

.project-description {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    display: none;
}

.project-meta {
    font-size: 11px;
    color: #999;
    letter-spacing: 1px;
}

.project-meta span {
    margin-right: 15px;
}

.project-meta span::before {
    content: '・';
    margin-right: 5px;
    opacity: 0.5;
}

.project-meta span:first-child::before {
    content: none;
}

/* ========================================
   LOAD MORE / PAGINATION
   ======================================== */

.load-more-container {
    margin-top: 80px;
    text-align: center;
    padding-top: 60px;
    border-top: 1px solid #e5e5e5;
}

.btn-load-more {
    display: inline-block;
    padding: 15px 50px;
    border: 1px solid #000;
    color: #000;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    background: transparent;
}

.btn-load-more:hover {
    background: #000;
    color: #fff;
}

/* Pagination */
.pagination-minimal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.pagination-minimal .page-numbers {
    padding: 10px 15px;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.pagination-minimal .page-numbers:hover,
.pagination-minimal .page-numbers.current {
    color: #000;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
}

.about-image {
    background-size: cover;
    background-position: center;
    min-height: 500px;
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 60px;
    background: #f8f8f8;
}

.about-content h2 {
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.about-content p {
    font-size: 15px;
    line-height: 2;
    color: #555;
    margin-bottom: 20px;
}

/* ========================================
   SINGLE PROJECT
   ======================================== */

.single-project {
    background: #fff;
}

.project-hero {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
}

.project-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

.project-hero-content {
    position: absolute;
    bottom: 15vh;
    left: 8vw;
    right: 8vw;
    z-index: 10;
    color: #fff;
}

.project-hero-content .project-category {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.project-hero-content .project-title {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 200;
    line-height: 1.1;
    margin-bottom: 30px;
    color: #fff;
}

.project-hero-content .project-meta {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.project-hero-content .meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.project-hero-content .meta-label {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.project-hero-content .meta-value {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.project-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 40px;
}

.project-content {
    font-size: 16px;
    line-height: 2;
    color: #333;
}

.project-content p {
    margin-bottom: 30px;
}

.project-content img {
    max-width: 100%;
    height: auto;
    margin: 40px 0;
}

/* Project Navigation */
.project-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid #e5e5e5;
}

.project-navigation a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.nav-previous,
.nav-next {
    transition: transform 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    transform: translateY(-5px);
}

.nav-label {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 10px;
}

.nav-title {
    font-size: 18px;
    font-weight: 400;
    color: #000;
}

.nav-next {
    text-align: right;
}

/* Related Projects */
.related-projects {
    padding: 80px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.related-projects .section-title {
    margin-bottom: 40px;
}

.related-projects .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* ========================================
   PAGE TEMPLATE
   ======================================== */

.page-wrapper {
    padding-top: 160px;
    min-height: 100vh;
    background: #fff;
}

/* Taxonomy & Archive pages - más espacio para el header */
.page-wrapper.taxonomy-archive {
    padding-top: 200px;
}

.page-wrapper.taxonomy-archive .page-header {
    margin-bottom: 60px;
}

.page-wrapper.taxonomy-archive .section-title {
    margin-bottom: 0;
}

.page-hero {
    width: 100%;
    max-height: 60vh;
    overflow: hidden;
}

.page-hero img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.page-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 40px;
}

.page-header {
    margin-bottom: 60px;
}

.page-title {
    font-size: 42px;
    font-weight: 300;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.page-content {
    font-size: 16px;
    line-height: 2;
    color: #333;
}

.page-content p {
    margin-bottom: 25px;
}

.page-content h2,
.page-content h3,
.page-content h4 {
    margin-top: 50px;
    margin-bottom: 20px;
    font-weight: 400;
}

.page-content h2 {
    font-size: 28px;
}

.page-content h3 {
    font-size: 22px;
}

.page-content img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
}

.page-content ul,
.page-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.page-content li {
    margin-bottom: 10px;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background: #000;
    color: #fff;
    padding: 60px 40px 40px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto 40px;
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.footer-section h3 {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 400;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #fff;
    opacity: 1;
}

.footer-section p {
    font-size: 13px;
    line-height: 1.8;
    opacity: 0.7;
    margin: 0;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 10px;
    opacity: 0.5;
    letter-spacing: 1px;
    margin: 0;
}

.footer-bottom .footer-links {
    display: flex;
    gap: 20px;
}

.footer-bottom .footer-links a {
    font-size: 10px;
    color: #fff;
    text-decoration: none;
    opacity: 0.5;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.footer-bottom .footer-links a:hover {
    opacity: 1;
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-black);
    color: var(--primary-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* ========================================
   ANIMATIONS
   ======================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */

@media (max-width: 1024px) {
    .projects-grid {
        gap: 60px 40px;
    }
    
    .enso-canvas-container {
        width: 65vmin;
        height: 65vmin;
    }
    
    .slide-counter {
        right: 6vw;
    }
    
    .counter-current {
        font-size: 36px;
    }
    
    .related-projects .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 768px) {
    .site-header {
        padding: 20px 25px;
    }
    
    .site-header.scrolled {
        padding: 15px 25px;
    }
    
    .site-logo-image {
        max-height: 65px;
        max-width: 180px;
    }
    
    .site-header.scrolled .site-logo-image {
        max-height: 55px;
    }
    
    .custom-logo {
        max-height: 65px;
        max-width: 150px;
    }
    
    .site-header.scrolled .custom-logo {
        max-height: 60px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: #000000;
        padding: 100px 30px 30px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        z-index: 1000;
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 30px;
    }
    
    .main-navigation a {
        color: #ffffff;
        font-size: 16px;
        opacity: 0.8;
    }
    
    .main-navigation a::after {
        background: #ffffff;
    }
    
    /* Fix para páginas con fondo claro (proyectos, obras) */
    .site-header.on-light-bg .main-navigation a,
    .site-header.on-light-bg:not(.scrolled) .main-navigation a {
        color: #ffffff;
    }
    
    .site-header.on-light-bg .main-navigation a::after,
    .site-header.on-light-bg:not(.scrolled) .main-navigation a::after {
        background: #ffffff;
    }
    
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.7);
        z-index: 999;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    /* Hero Mobile */
    .hero-section {
        cursor: default;
    }
    
    .hero-content {
        bottom: 18vh;
        left: 6vw;
        right: 6vw;
    }
    
    .hero-category {
        font-size: 9px;
        letter-spacing: 3px;
        padding-left: 30px;
    }
    
    .hero-category::before {
        width: 20px;
    }
    
    .hero-content h1 {
        font-size: clamp(28px, 8vw, 42px);
        font-weight: 300;
    }
    
    .hero-description {
        font-size: 14px;
        margin-top: 15px;
    }
    
    .scroll-indicator {
        right: 20px;
        bottom: 30px;
    }
    
    .hero-navigation {
        left: 6vw;
        bottom: 40px;
    }
    
    /* Slide Counter Mobile */
    .slide-counter {
        right: 6vw;
        bottom: 18vh;
        gap: 10px;
    }
    
    .counter-current {
        font-size: 32px;
    }
    
    .counter-separator {
        width: 25px;
    }
    
    .counter-total {
        font-size: 12px;
    }
    
    /* Enso Mobile */
    .enso-canvas-container {
        width: 80vmin;
        height: 80vmin;
        opacity: 0.6;
    }
    
    .enso-glow-layer {
        filter: blur(20px);
    }
    
    .projects-container {
        padding: 0 20px;
    }
    
    .projects-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 12px;
        margin-bottom: 40px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .project-filters {
        margin-bottom: 40px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 20px;
    }
    
    .project-filters .filter-btn {
        margin-right: 30px;
        font-size: 11px;
    }
    
    .project-title {
        font-size: 16px;
    }
    
    .load-more-container {
        margin-top: 60px;
        padding-top: 40px;
    }
    
    .about-section {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        min-height: 300px;
    }
    
    .about-content {
        padding: 60px 30px;
    }
    
    .about-content h2 {
        font-size: 32px;
    }
    
    .project-content-wrapper {
        padding: 60px 25px;
    }
    
    .project-hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .project-hero-content {
        bottom: 10vh;
        left: 6vw;
        right: 6vw;
    }
    
    .project-hero-content .project-title {
        font-size: clamp(28px, 8vw, 42px);
    }
    
    .project-hero-content .project-meta {
        gap: 20px;
        font-size: 12px;
    }
    
    .project-navigation {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .related-projects .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .page-wrapper {
        padding-top: 140px;
    }
    
    .page-wrapper.taxonomy-archive {
        padding-top: 180px;
    }
    
    .page-content-wrapper {
        padding: 60px 25px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .site-footer {
        padding: 40px 20px 30px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .footer-section h3 {
        font-size: 10px;
        margin-bottom: 15px;
    }
    
    .footer-section a,
    .footer-section p {
        font-size: 12px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding-top: 20px;
    }
    
    .footer-bottom .footer-links {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        bottom: 15vh;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .slide-counter {
        bottom: 15vh;
    }
    
    .counter-current {
        font-size: 28px;
    }
    
    .enso-canvas-container {
        width: 90vmin;
        height: 90vmin;
        opacity: 0.5;
    }
    
    .project-image {
        padding-bottom: 75%;
    }
    
    .page-wrapper {
        padding-top: 120px;
    }
    
    .page-wrapper.taxonomy-archive {
        padding-top: 160px;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .footer-bottom .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .site-header,
    .hero-section,
    .back-to-top,
    .scroll-indicator,
    .enso-canvas-container,
    .slide-counter,
    .slide-progress {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .page-wrapper {
        padding-top: 0 !important;
    }
}