/* styles.css - Custom Design System for Consultoría Creativa Innovar */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #f8fafc;
    --accent: #10b981;
    --dark: #0f172a;
    --light: #ffffff;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-800: #1e293b;
    --font-poppins: 'Poppins', sans-serif;
    --transition-base: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-poppins);
    background-color: var(--secondary);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Typography Overrides */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Custom Architectural Grid Components */
.arch-grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

/* Custom Buttons */
.btn-premium {
    position: relative;
    padding: 1rem 2.5rem;
    font-weight: 600;
    color: var(--light);
    background: var(--primary);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    border: none;
    z-index: 1;
    text-decoration: none;
    cursor: pointer;
    min-height: 44px;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--dark);
    transition: var(--transition-base);
    z-index: -1;
}

.btn-premium:hover::before {
    left: 0;
}

.btn-premium:hover {
    color: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Hero Section Styles */
.hero-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 6rem 5% 4rem;
}

.hero-text-large {
    font-size: clamp(3rem, 8vw, 6rem);
    z-index: 10;
}

.hero-image-framed {
    position: absolute;
    right: 5%;
    top: 15%;
    width: 50%;
    height: 70vh;
    object-fit: cover;
    z-index: 1;
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 0 90%);
    filter: grayscale(0.2);
    transition: var(--transition-base);
}

.hero-image-framed:hover {
    filter: grayscale(0);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Navigation System */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 5%;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
}

nav.scrolled {
    padding: 1rem 5%;
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-base);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Card System */
.premium-card {
    background: var(--light);
    padding: 2.5rem;
    height: 100%;
    transition: var(--transition-base);
    border-top: 4px solid transparent;
    display: flex;
    flex-direction: column;
}

.premium-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.premium-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--primary);
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

/* Storytelling Sections */
.story-section {
    padding: 8rem 0;
}

.vertical-label {
    writing-mode: vertical-rl;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--gray-200);
    position: absolute;
    left: -2rem;
    top: 0;
}

/* Mobile Menu */
.mobile-menu {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: var(--dark);
    z-index: 200;
    padding: 4rem 2rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    visibility: hidden;
}

.mobile-menu.active {
    transform: translateX(0);
    visibility: visible;
}

.mobile-menu a {
    color: var(--light);
    font-size: 1.5rem;
    padding: 1rem;
    margin: 0.5rem 0;
    text-decoration: none;
    font-weight: 700;
    min-height: 44px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cookie Consent */
#cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background: var(--dark);
    color: var(--light);
    padding: 1.5rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: translateY(200%);
    transition: var(--transition-base);
}

#cookie-banner.visible {
    transform: translateY(0);
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--light);
    padding: 6rem 5% 2rem;
}

/* Utils */
.text-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.text-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Form Styles */
input, select, textarea {
    font-size: 16px !important; /* Prevent zoom on iOS */
    min-height: 44px;
}

/* Floating Elements Animation */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

@media (max-width: 768px) {
    .hero-wrapper {
        flex-direction: column-reverse;
        padding-top: 6rem;
    }
    
    section {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .hero-image-framed {
        position: relative;
        width: 100%;
        right: 0;
        top: 0;
        height: 40vh;
        clip-path: none;
        margin-bottom: 2rem;
    }
    
    .hero-text-large {
        font-size: 2.5rem;
        margin-top: 1rem;
    }

    h1 { font-size: 2.5rem !important; }
    h2 { font-size: 2rem !important; }
    h3 { font-size: 1.5rem !important; }

    .arch-grid-container {
        grid-template-columns: 1fr;
    }
    #cookie-banner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
    }

    .btn-premium {
        width: 100%;
        text-align: center;
    }
}
