/* ============================================
   SENDEROS DE LA COSTA — REDESIGN 2026
   Estética: Arquitectónica / Editorial / Dark
   ============================================ */

:root {
    --ink:        #1e1e1e;
    --ink-soft:   #282828;
    --ink-mid:    #3d3d3d;
    --chalk:      #f8f5f0;
    --chalk-dim:  #d0ccc5;
    --chalk-muted:#8e8c88;
    --red:        #e8000b;
    --red-hot:    #ff1a1f;
    --red-dim:    #99000a;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body:    'DM Sans', sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--chalk);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--ink);
    border-bottom: 1px solid var(--ink-mid);
}

.nav-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo img {
    height: 38px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-menu a {
    display: block;
    padding: 8px 18px;
    text-decoration: none;
    color: var(--chalk-dim);
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--chalk);
}

.nav-menu a.nav-cta {
    color: var(--red-hot);
    border: 1px solid var(--red-dim);
    border-radius: 2px;
    margin-left: 12px;
    transition: background 0.2s, color 0.2s;
}

.nav-menu a.nav-cta:hover {
    background: var(--red);
    color: var(--chalk);
    border-color: var(--red);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 7px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
    outline: none;
}

.hamburger span {
    display: block;
    width: 24px; height: 1.5px;
    background: var(--chalk);
    transition: all 0.3s;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    height: 100svh;
    min-height: 600px;
    background: var(--ink);
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 0 0 80px 0;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: background-image 0.8s ease-in-out;
    opacity: 0.35;
    filter: grayscale(80%) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13,13,13,0.3) 0%,
        rgba(13,13,13,0.2) 40%,
        rgba(13,13,13,0.85) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.hero-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red-hot);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(5rem, 12vw, 11rem);
    line-height: 0.9;
    color: var(--chalk);
    letter-spacing: -0.01em;
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}

.hero-title .line-3 {
    color: var(--red-hot);
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(3.8rem, 9vw, 8.5rem);
    letter-spacing: -0.02em;
    line-height: 1.0;
    margin-top: 8px;
}

.hero-bottom {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.hero-sub {
    color: var(--chalk-muted);
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    max-width: 280px;
}

.btn-hero {
    display: inline-block;
    padding: 14px 32px;
    background: var(--red);
    color: var(--chalk);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

.btn-hero:hover {
    background: var(--red-hot);
    transform: translateX(4px);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero-scroll-hint span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--chalk-muted);
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: var(--chalk-muted);
    opacity: 0.4;
}

/* ============================================
   SOBRE NOSOTROS
   ============================================ */
.about {
    background: var(--chalk);
    padding: 120px 40px;
}

.about-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
}

.big-number {
    font-family: var(--font-display);
    font-size: clamp(6rem, 14vw, 14rem);
    line-height: 0.85;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.big-number span {
    color: var(--red);
}

.big-number-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--chalk-muted);
    margin-top: 16px;
    margin-bottom: 40px;
}

.stat-row {
    display: flex;
    gap: 32px;
}

.mini-stat {
    border-left: 2px solid var(--red);
    padding-left: 16px;
}

.mini-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--ink);
    line-height: 1;
}

.mini-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--chalk-muted);
    margin-top: 4px;
}

.section-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--red);
    margin-bottom: 20px;
    font-weight: 500;
}

.section-tag.light { color: var(--red-hot); }

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1.0;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin-bottom: 32px;
}

.section-heading.light { color: var(--chalk); }

.body-text {
    font-size: 1.1rem;
    line-height: 1.85;
    color: #444;
    font-weight: 300;
    max-width: 560px;
}

.body-text.muted { color: var(--chalk-muted); }

.divider-line {
    width: 48px;
    height: 1px;
    background: var(--red);
    margin: 28px 0;
}

/* ============================================
   SERVICIOS
   ============================================ */
.services {
    background: var(--ink);
    padding: 120px 40px;
}

.services-inner {
    max-width: 1300px;
    margin: 0 auto;
}

.section-header-row {
    margin-bottom: 60px;
    border-bottom: 1px solid var(--ink-mid);
    padding-bottom: 32px;
}

.services-list {
    display: flex;
    flex-direction: column;
}

.service-item {
    display: grid;
    grid-template-columns: 80px 1fr 40px;
    align-items: center;
    padding: 32px 0;
    border-bottom: 1px solid var(--ink-mid);
    cursor: default;
    transition: background 0.2s;
    gap: 32px;
}

.service-item:hover {
    background: rgba(255,255,255,0.02);
}

.service-item:hover .service-arrow {
    transform: translateX(6px);
    color: var(--red-hot);
}

.service-num {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--chalk-muted);
    opacity: 0.4;
    letter-spacing: 0.05em;
}

.service-body h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--chalk);
    letter-spacing: 0.02em;
    margin-bottom: 6px;
}

.service-body p {
    font-size: 1rem;
    color: var(--chalk-muted);
    font-weight: 300;
}

.service-arrow {
    display: none;
}

/* ============================================
   PROYECTOS
   ============================================ */
.projects {
    background: var(--chalk);
    padding: 120px 40px;
}

.projects-inner {
    max-width: 1300px;
    margin: 0 auto;
}

.section-header-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    border-bottom: 1px solid #d5d1c8;
    padding-bottom: 32px;
    gap: 32px;
}

.section-note {
    font-size: 0.92rem;
    color: var(--chalk-muted);
    font-weight: 300;
    letter-spacing: 0.02em;
    text-align: right;
    max-width: 240px;
}

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

.project-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    background: var(--ink-soft);
}

.project-img-wrap {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.project-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s var(--ease-out), filter 0.4s;
    filter: grayscale(30%);
}

.project-card:hover .project-img-wrap img {
    transform: scale(1.06);
    filter: grayscale(0%);
}

.project-hover {
    position: absolute;
    inset: 0;
    background: rgba(200, 51, 26, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .project-hover {
    opacity: 1;
}

.project-hover span {
    color: var(--chalk);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 10px 20px;
}

.project-meta {
    padding: 14px 16px;
    background: var(--ink);
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.project-index {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--red);
    flex-shrink: 0;
}

.project-meta h3 {
    font-size: 0.97rem;
    font-weight: 400;
    color: var(--chalk-dim);
    line-height: 1.35;
    letter-spacing: 0.01em;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 15, 25, 0.97);
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    border-bottom: 1px solid #222;
    flex-shrink: 0;
}

.lightbox-title-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--chalk);
    letter-spacing: 0.05em;
}

.lightbox-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--chalk-muted);
    font-size: 0.85rem;
}

.lb-sep { opacity: 0.3; }

.lightbox-close {
    margin-left: 20px;
    cursor: pointer;
    color: var(--chalk-muted);
    font-size: 1rem;
    transition: color 0.2s;
    padding: 4px 8px;
}

.lightbox-close:hover { color: var(--red-hot); }

.lightbox-stage {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px 80px;
    overflow: hidden;
}

#lightbox-img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.25s;
    display: block;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 1px solid #333;
    color: var(--chalk-muted);
    font-size: 1.2rem;
    width: 48px; height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    border-color: var(--red);
    color: var(--red-hot);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ============================================
   CONTACTO
   ============================================ */
.contact {
    background: var(--ink);
    padding: 120px 40px;
}

.contact-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px;
    align-items: start;
}

.contact-details {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-line {
    display: flex;
    gap: 16px;
    align-items: baseline;
    font-size: 0.95rem;
    color: var(--chalk-dim);
    font-weight: 300;
}

.contact-icon {
    color: var(--red-hot);
    flex-shrink: 0;
    font-size: 0.8rem;
}

.contact-line a {
    color: var(--chalk-dim);
    text-decoration: none;
    transition: color 0.2s;
}
.contact-line a:hover { color: var(--chalk); }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--chalk-muted);
    font-weight: 500;
}

.form-field input,
.form-field textarea {
    background: var(--ink-soft);
    border: 1px solid var(--ink-mid);
    color: var(--chalk);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.2s;
    resize: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--chalk-muted);
    opacity: 0.4;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--red);
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--red);
    color: var(--chalk);
    border: none;
    padding: 18px 28px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover { background: var(--red-hot); }

.btn-arrow {
    font-size: 1.1rem;
    transition: transform 0.3s var(--ease-out);
}

.btn-submit:hover .btn-arrow { transform: translateX(5px); }

.form-message {
    font-size: 0.9rem;
    padding: 12px 16px;
    display: none;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border-left: 2px solid #4ade80;
    display: block;
}

.form-message.error {
    background: rgba(200, 51, 26, 0.1);
    color: var(--red-hot);
    border-left: 2px solid var(--red-hot);
    display: block;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #0d0d0d;
    padding: 40px;
    border-top: 1px solid var(--ink-mid);
}

.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    color: var(--chalk-dim);
}

.footer-copy {
    font-size: 0.78rem;
    color: var(--chalk-muted);
    opacity: 0.5;
    font-weight: 300;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-inner { padding: 0 24px; }

    .hamburger { display: flex; }

    .nav-menu {
        position: fixed;
        top: 64px; left: 0; right: 0;
        background: var(--ink);
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s var(--ease-out), opacity 0.3s;
        border-bottom: 1px solid var(--ink-mid);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu li { border-bottom: 1px solid var(--ink-mid); }
    .nav-menu a { padding: 16px 24px; font-size: 0.9rem; }
    .nav-menu a.nav-cta { margin: 16px 24px 0; text-align: center; }

    .hero { padding: 0 0 60px 0; }
    .hero-content { padding: 0 24px; }
    .hero-scroll-hint { display: none; }
    .hero-bottom { flex-direction: column; align-items: flex-start; gap: 24px; }

    .about { padding: 80px 24px; }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }

    .services { padding: 80px 24px; }
    .service-item { grid-template-columns: 56px 1fr 32px; gap: 16px; padding: 24px 0; }
    .service-body h3 { font-size: 1.5rem; }

    .projects { padding: 80px 24px; }
    .section-header-split { flex-direction: column; align-items: flex-start; }
    .section-note { text-align: left; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }

    .contact { padding: 80px 24px; background: var(--ink); }
    .contact-grid { grid-template-columns: 1fr; gap: 60px; }

    .form-row { grid-template-columns: 1fr; }

    .footer { padding: 32px 24px; }
    .footer-inner { flex-direction: column; gap: 12px; text-align: center; }

    .lightbox-stage { padding: 16px 60px; }
}

@media (max-width: 480px) {
    .projects-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: clamp(3.8rem, 14vw, 6rem); }
    .lightbox-stage { padding: 16px 52px; }
}