/* Variables (Design System basado en capturas) */
:root {
    --color-bg: #F7F5E8; /* Crema cálido */
    --color-text: #1A1A1A; /* Carbón */
    --color-accent: #6A7B6E; /* Verde Salvia/Oliva */
    --color-border: #D1CFC2;
    
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

/* Tipografía */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(247, 245, 232, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--color-text);
}

.logo img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-accent);
}

.nav-links a.active {
    color: var(--color-accent);
    border-bottom: 1px solid var(--color-accent);
    padding-bottom: 0.35rem;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    width: 42px;
    height: 42px;
    padding: 10px;
}

.menu-toggle span { display: block; height: 2px; background: var(--color-text); margin: 5px 0; transition: transform 0.3s, opacity 0.3s; }

.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.cta-btn {
    text-decoration: none;
    background-color: var(--color-accent);
    color: var(--color-bg);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

/* Hero Section (Split Asimétrico) */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 4rem;
    padding-top: 5rem;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 4vw;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-content h1 em {
    color: var(--color-accent);
    font-style: normal;
}

.hero-content p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 3rem;
}

.explore-link {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    border-bottom: 1px solid var(--color-text);
    padding-bottom: 5px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.hero-actions { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.text-link, .inline-link { color: var(--color-accent); text-decoration: none; font-size: 0.85rem; font-weight: 500; }
.inline-link { display: inline-block; margin-top: 2rem; border-bottom: 1px solid var(--color-accent); padding-bottom: 5px; }
.eyebrow { color: var(--color-accent); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1.5px; margin-bottom: 1rem; font-weight: 500; }

.hero-image {
    flex: 1;
    height: 70vh;
}

.hero-image img {
    width: 100%;
    height: 100%;
}

/* Estudio */
.about {
    padding: 8rem 4rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

/* Servicios (Estilo Lista Editorial) */
.services {
    padding: 8rem 4rem;
    background-color: var(--color-accent);
    color: var(--color-bg);
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 4rem;
}

.services-list {
    list-style: none;
}

.services-list li {
    display: flex;
    justify-content: space-between;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(247, 245, 232, 0.3);
    cursor: pointer;
    transition: padding-left 0.4s ease;
}

.services-list li:hover {
    padding-left: 2rem;
}

.services-list h3 {
    font-size: 2rem;
    font-weight: 400;
}

.services-list span {
    font-family: var(--font-body);
    font-size: 1.2rem;
    opacity: 0.5;
}

.services-list p { margin-top: 0.65rem; opacity: 0.75; font-size: 0.9rem; line-height: 1.5; max-width: 520px; }
.btn-light { display: inline-block; color: var(--color-bg); border: 1px solid rgba(247,245,232,0.6); padding: 0.85rem 1.5rem; text-decoration: none; margin-top: 2.5rem; border-radius: 4px; transition: background-color 0.3s, color 0.3s; }
.btn-light:hover { background: var(--color-bg); color: var(--color-accent); }

/* Portafolio (Masonry Grid simulado) */
.portfolio {
    padding: 8rem 4rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    gap: 1rem;
}

.port-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.port-item img {
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

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

.port-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 26, 26, 0.3);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.port-item:hover .port-overlay {
    opacity: 1;
}

.port-overlay span {
    color: #fff;
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

/* Footer */
.footer {
    padding: 6rem 4rem 2rem 4rem;
    text-align: left;
    background: #eeecde;
}

.footer h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
}

.footer-content { max-width: 760px; margin: 0 auto; text-align: center; }
.footer-content p { color: #555; line-height: 1.6; max-width: 520px; margin: -1.5rem auto 2rem; }

.btn-primary {
    display: inline-block;
    background-color: var(--color-text);
    color: var(--color-bg);
    text-decoration: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 4px;
    margin-bottom: 6rem;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: var(--color-accent);
}

.about-text .btn-primary, .contact-strip .btn-primary { margin-bottom: 0; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.footer-bottom a {
    color: var(--color-text);
    text-decoration: none;
}
.footer-bottom strong { font-family: var(--font-heading); font-size: 1.2rem; }
.footer-bottom p { margin-top: 0.5rem; line-height: 1.5; }
.footer-links { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.footer-links a:hover { color: var(--color-accent); }

.whatsapp-float { position: fixed; right: 1.5rem; bottom: 1.5rem; width: 64px; height: 64px; z-index: 110; border-radius: 50%; box-shadow: 0 8px 24px rgba(26,26,26,0.2); transition: transform 0.25s ease; }
.whatsapp-float:hover { transform: translateY(-4px) scale(1.04); }
.whatsapp-float img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.page-main { padding-top: 7rem; }
.page-intro { padding: 5rem 4rem 3rem; max-width: 900px; }
.page-intro h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); line-height: 1.05; margin-bottom: 1.5rem; }
.page-intro > p:last-child { color: #555; font-size: 1.15rem; line-height: 1.7; max-width: 610px; }
.about-page { padding-top: 4rem; }
.services-page { margin-top: 2rem; }
.portfolio-page { padding-top: 4rem; }
.principles, .process, .portfolio-notes { padding: 6rem 4rem; }
.principles { background: #eeecde; }
.principles .section-header, .process .section-header { max-width: 700px; margin-bottom: 3rem; }
.principles h2, .process h2 { font-size: 3rem; }
.principles-grid, .process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 1100px; }
.principle, .process-step { border-top: 1px solid var(--color-border); padding-top: 1.25rem; }
.principle span, .process-step span { color: var(--color-accent); font-size: 0.8rem; letter-spacing: 1px; }
.principle h3, .process-step h3 { font-size: 1.5rem; margin: 1.5rem 0 0.8rem; }
.principle p, .process-step p, .portfolio-note p:last-child { color: #555; line-height: 1.7; font-size: 0.95rem; }
.statement { padding: 6rem 4rem; max-width: 1000px; margin: 0 auto; text-align: center; }
.statement p { color: var(--color-accent); font-family: var(--font-heading); font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.2; }
.process { background: var(--color-bg); }
.process-grid { grid-template-columns: repeat(4, 1fr); max-width: none; }
.portfolio-notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5rem; border-top: 1px solid var(--color-border); }
.portfolio-note { max-width: 500px; }
.portfolio-note h2 { font-size: 2rem; line-height: 1.15; margin-bottom: 1rem; }
.contact-strip { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 4rem; border-top: 1px solid var(--color-border); }
.contact-strip h2 { font-size: 2rem; }

/* Animaciones */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive básico */
@media (max-width: 992px) {
    .hero { flex-direction: column; padding-top: 8rem; height: auto; }
    .hero-image { height: 50vh; width: 100%; }
    .about-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .port-item { grid-column: span 1 !important; grid-row: span 1 !important; }
    .navbar { padding: 1rem 1.5rem; }
    .menu-toggle { display: block; order: 2; }
    .nav-links { display: flex; position: absolute; top: 100%; left: 0; width: 100%; background: var(--color-bg); border-bottom: 1px solid var(--color-border); padding: 0 1.5rem; flex-direction: column; gap: 0; max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none; transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease, visibility 0.4s; }
    .nav-links.is-open { max-height: 360px; padding: 1rem 1.5rem 1.5rem; opacity: 1; visibility: visible; pointer-events: auto; }
    .nav-links li { border-bottom: 1px solid var(--color-border); padding: 1rem 0; }
    .navbar .cta-btn { order: 1; margin-left: auto; margin-right: 0.5rem; }
    .logo { order: 0; }
    .logo { min-width: 0; }
    .logo span { display: block; font-size: 0.78rem; line-height: 1.1; max-width: 190px; }
    .hero-content h1 { font-size: 2.5rem; }
    .about, .services, .portfolio { padding-left: 1.5rem; padding-right: 1.5rem; }
    .principles, .process, .portfolio-notes, .statement { padding-left: 1.5rem; padding-right: 1.5rem; }
    .principles-grid, .process-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
    .portfolio-notes { gap: 3rem; }
    .page-intro { padding-left: 1.5rem; padding-right: 1.5rem; }
    .footer { padding-left: 1.5rem; padding-right: 1.5rem; }
    .footer-bottom, .contact-strip { flex-direction: column; align-items: flex-start; }
    .footer-bottom { gap: 2rem; }
    .contact-strip { padding: 3rem 1.5rem; }
}

@media (max-width: 540px) {
    .logo img { width: 36px; height: 36px; }
    .logo span { font-size: 0.7rem; max-width: 150px; }
    .navbar .cta-btn { padding: 0.55rem 0.8rem; font-size: 0.78rem; }
    .hero { padding-left: 1.5rem; padding-right: 1.5rem; gap: 2rem; }
    .hero-content p { font-size: 1rem; }
    .hero-actions { gap: 1rem; }
    .services-list h3 { font-size: 1.35rem; }
    .principles h2, .process h2 { font-size: 2.3rem; }
    .principles-grid, .process-grid, .portfolio-notes { grid-template-columns: 1fr; }
    .footer h2 { font-size: 2.2rem; }
    .footer-links { gap: 0.8rem; flex-direction: column; align-items: flex-start; }
    .whatsapp-float { right: 1rem; bottom: 1rem; width: 56px; height: 56px; }
}

@media (max-width: 400px) {
    .navbar .cta-btn { display: none; }
    .logo span { max-width: 180px; }
}
