/* ==========================================================
   Skysill — estilos v2
   Cambie los colores de marca en :root cuando tengan el manual.
   ========================================================== */
:root {
    --ink: #121212;
    --ink-2: #1c1c1c;
    --paper: #faf8f5;
    --soft: #f0ebe4;
    --line: rgba(18, 18, 18, .12);
    --line-dark: rgba(255, 255, 255, .16);
    --muted: #4d4843;
    --muted-dark: rgba(255, 255, 255, .82);
    --accent: #F36A10;          /* Naranja Skysill (marca oficial) */
    --accent-red: #D21F12;      /* Rojo Skysill: solo detalles */
    --graphite: #2B2E33;
    --accent-dark: #C2540C;   /* acento sobre fondos claros (más contraste) */
    --sans: 'Josefin Sans', system-ui, sans-serif;
    --serif: 'Merriweather', Georgia, serif;
    --max: 1280px;
    --header-h: 84px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
    margin: 0; font-family: var(--serif); font-weight: 300; color: var(--ink); background: var(--paper);
    font-size: 16px; line-height: 1.85; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--sans); font-weight: 300; line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.35rem; font-weight: 400; }
p { margin: 0 0 1.2em; }
strong { font-weight: 400; color: var(--ink); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.center { text-align: center; }
.eyebrow {
    font-family: var(--sans); font-size: .78rem; letter-spacing: .32em; text-transform: uppercase; font-weight: 400;
    color: var(--accent); margin-bottom: 1.4em;
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; font-family: var(--sans);
    padding: 17px 38px 15px; font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 400;
    text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: all .35s var(--ease);
}
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; }
.btn-outline { border-color: rgba(255,255,255,.75); color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--ink); }
.btn-solid { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-solid:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); color: #fff;
    transition: background .4s, height .4s, box-shadow .4s;
}
.site-header::before { content: ''; position: absolute; inset: 0 0 -60px; background: linear-gradient(180deg, rgba(0,0,0,.6), transparent); pointer-events: none; z-index: -1; transition: opacity .4s; }
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-scrolled { background: rgba(18,18,18,.92); backdrop-filter: blur(10px); height: 68px; }
.header-inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 40px; }
.nav-side { display: flex; gap: 34px; font-family: var(--sans); }
.nav-right { justify-content: flex-end; }
.nav-side a {
    text-decoration: none; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; position: relative; padding: 6px 0; font-weight: 400; text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.nav-side a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav-side a:hover::after { transform: scaleX(1); transform-origin: left; }
.lang-switch { display: flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: .8rem; letter-spacing: .15em; padding-left: 30px; border-left: 1px solid rgba(255,255,255,.35); text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.lang-switch a { text-decoration: none; opacity: .65; padding: 6px 2px !important; transition: opacity .3s; }
.lang-switch a::after { display: none; }
.lang-switch a:hover, .lang-switch a.is-active { opacity: 1; }
.lang-switch a.is-active { border-bottom: 1px solid var(--accent); }
.lang-switch span { opacity: .5; }
.header-mobile { display: none; align-items: center; gap: 14px; justify-self: end; color: #fff; }
.header-mobile .lang-switch { border-left: 0; padding-left: 0; }
.brand { text-decoration: none; display: flex; justify-content: center; }
.brand img { height: 46px; width: auto; filter: drop-shadow(0 1px 6px rgba(0,0,0,.45)); transition: height .4s; }
.site-header.is-scrolled .brand img { height: 38px; }
.brand-word { font-family: var(--sans); font-weight: 400; text-shadow: 0 1px 10px rgba(0,0,0,.45); letter-spacing: .5em; font-size: 1.2rem; margin-right: -.5em; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; justify-self: end; color: #fff; z-index: 70; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform .35s, top .35s; }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 26px; }
.nav-open .nav-toggle span:first-child { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
    position: fixed; inset: 0; z-index: 60; background: var(--ink); color: #fff; padding: 110px 32px 40px;
    display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.mobile-menu > a {
    font-family: var(--sans); font-weight: 300; font-size: 1.9rem; text-decoration: none; padding: 14px 0;
    border-bottom: 1px solid var(--line-dark); display: flex; justify-content: space-between;
}
.mobile-menu > a span { color: var(--accent); }
.mobile-menu-foot { margin-top: auto; display: grid; gap: 8px; font-size: .95rem; color: var(--muted-dark); }
.mobile-menu-foot a { text-decoration: none; }
.nav-open .mobile-menu { opacity: 1; visibility: visible; }
.nav-open { overflow: hidden; }

/* ---------- Portada ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; max-height: 1100px; color: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; background: #111; }
.hero-slides, .hero-slide, .hero-overlay { position: absolute; inset: 0; }
.hero-slide { background-size: cover; background-position: center; opacity: 0; transform: scale(1.12); transition: opacity 1.8s ease, transform 9s linear; }
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-overlay { background: radial-gradient(ellipse 65% 55% at 50% 50%, rgba(0,0,0,.5), transparent 80%), linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.42) 45%, rgba(0,0,0,.7) 100%); }
.hero-content { position: relative; z-index: 2; padding: 0 24px; max-width: 980px; }
.hero-title { margin: 0 0 .6em; }
.hero-word {
    display: block; font-weight: 200; font-size: clamp(3.6rem, 13vw, 10.5rem); letter-spacing: .14em; margin-right: -.14em;
    line-height: 1; text-shadow: 0 2px 30px rgba(0,0,0,.55);
}
.hero-sub {
    display: block; font-weight: 400; font-size: clamp(.78rem, 1.5vw, 1.15rem); letter-spacing: .24em; text-transform: uppercase; text-shadow: 0 1px 14px rgba(0,0,0,.7);
    margin-top: 22px;
}
.hero-lead { font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 640px; margin: 0 auto 2.6em; color: #fff; font-weight: 400; text-shadow: 0 1px 14px rgba(0,0,0,.75); }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; text-decoration: none;
    font-family: var(--sans); font-size: .68rem; letter-spacing: .4em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0,0,0,.6); display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.hero-scroll i { width: 1px; height: 56px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.hero-scroll i::after { content: ''; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: #fff; animation: scrollLine 2.2s var(--ease) infinite; }
@keyframes scrollLine { to { top: 100%; } }

/* Entrada de la portada */
.js .hero-word, .js .hero-sub, .js .hero-lead, .js .hero .hero-actions { opacity: 0; transform: translateY(30px); animation: heroIn 1.4s var(--ease) forwards; }
.js .hero-word { letter-spacing: .4em; animation-name: heroWord; animation-duration: 2s; }
.js .hero-sub { animation-delay: .5s; }
.js .hero-lead { animation-delay: .8s; }
.js .hero .hero-actions { animation-delay: 1.1s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
@keyframes heroWord { to { opacity: 1; transform: none; letter-spacing: .14em; } }

/* ---------- Secciones ---------- */
.section { padding: clamp(90px, 12vw, 160px) 0; }
.section--tight { padding: 70px 0; }
.section--dark { background: var(--ink); color: #fff; }
.section--dark strong { color: #fff; }
.section--dark .eyebrow, .contact .eyebrow { color: #e0b98f; }
.section--soft { background: var(--soft); }
.section:not(.section--dark) .eyebrow, .member-role, .pillars span { color: var(--accent-dark); }
.section-head { max-width: 780px; margin: 0 auto 70px; }
.section-head.center { text-align: center; }
.section-lead { font-size: 1.02rem; color: var(--muted); }
.section--dark .section-lead, .contact .section-lead { color: var(--muted-dark); }
.note { display: inline-block; font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-dark); border: 1px solid var(--line-dark); padding: 8px 16px 6px; margin: 10px 0 0; }

/* Nosotros */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(50px, 8vw, 120px); align-items: center; }
.about-media { position: relative; z-index: 0; }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-media::before { content: ''; position: absolute; inset: 30px -30px -30px 30px; border: 1px solid var(--accent); z-index: -1; }
.about-badge {
    position: absolute; right: -30px; bottom: 50px; background: var(--ink); color: #fff; padding: 26px 30px; display: flex; align-items: center; gap: 18px;
    font-family: var(--sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.5;
}
.about-badge strong { font-size: 3.6rem; font-weight: 100; color: var(--accent); line-height: 1; }
.about-text h2 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); }
.prose p, .section-lead, .steps p, .member-prof { font-weight: 400; }
.prose p { color: var(--muted); }
.pillars { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.pillars li { font-family: var(--sans); font-size: 1.02rem; padding: 22px 14px 0 0; }
.pillars span { display: block; font-size: .72rem; letter-spacing: .2em; color: var(--accent); margin-bottom: 6px; }

/* Servicios: tarjetas con foto */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 0 2px; }
.service { position: relative; min-height: 640px; overflow: hidden; display: flex; align-items: flex-end; outline: none; }
.service-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 1.4s var(--ease); }
.service::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.55) 40%, rgba(0,0,0,.95) 100%); transition: background .6s; }
.service:hover .service-bg, .service:focus-within .service-bg { transform: scale(1.08); }
.service:hover::after, .service:focus-within::after { background: linear-gradient(180deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.85) 50%, rgba(0,0,0,.96) 100%); }
.service-body { position: relative; z-index: 2; padding: 40px 34px; width: 100%; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.service-num { font-family: var(--sans); font-size: .8rem; letter-spacing: .25em; color: #e0b98f; font-weight: 600; display: block; margin-bottom: 10px; }
.service h3 { font-size: 2rem; font-weight: 400; margin-bottom: .4em; }
.service p { color: #fff; font-weight: 400; font-size: .93rem; line-height: 1.75; margin-bottom: 0; }
.service ul { list-style: none; padding: 0; margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .7s var(--ease), opacity .5s, margin .5s; font-family: var(--sans); font-size: .92rem; }
.service li { padding: 8px 0 6px; border-bottom: 1px solid var(--line-dark); }
.service:hover ul, .service:focus-within ul { max-height: 320px; opacity: 1; margin: 20px 0 24px; }
.link-arrow {
    display: inline-flex; gap: 10px; margin-top: 22px; font-family: var(--sans); font-size: .76rem; letter-spacing: .25em; text-transform: uppercase;
    text-decoration: none; color: #fff; border-bottom: 1px solid var(--accent); padding-bottom: 4px;
}
.link-arrow span { transition: transform .3s; }
.link-arrow:hover span { transform: translateX(5px); }

/* Banda con frase */
.band { position: relative; background-size: cover; background-position: center; background-attachment: fixed; color: #fff; padding: clamp(110px, 15vw, 190px) 0 0; overflow: hidden; }
.band-overlay { position: absolute; inset: 0; background: rgba(10,10,10,.74); }
.band-content { position: relative; text-align: center; }
.band-quote { font-family: var(--sans); font-weight: 300; text-shadow: 0 2px 20px rgba(0,0,0,.5); font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.25; margin: 0 0 clamp(90px, 12vw, 150px); }
.marquee { position: relative; border-top: 1px solid var(--line-dark); padding: 26px 0 22px; overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; align-items: center; gap: 40px; animation: marquee 38s linear infinite; padding-left: 40px; }
.marquee span { font-family: var(--sans); font-size: 1.05rem; letter-spacing: .25em; text-transform: uppercase; font-weight: 400; }
.marquee i { color: var(--accent); font-style: normal; font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Proceso */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.steps li { padding: 0 26px; border-left: 1px solid var(--line); }
.steps li:first-child { border-left: 0; padding-left: 0; }
.steps span { font-family: var(--sans); font-weight: 100; font-size: 3.6rem; color: var(--accent); display: block; line-height: 1; margin-bottom: 22px; }
.steps h3 { font-size: 1.15rem; }
.steps p { font-size: .9rem; color: var(--muted); line-height: 1.75; }

/* Equipo */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; max-width: 1080px; margin: 0 auto; }
.member { text-align: center; }
.member-photo {
    width: 230px; height: 230px; border-radius: 50%; overflow: hidden; margin: 0 auto 30px; position: relative;
    background: linear-gradient(145deg, #2a2724, #121212); display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 1px var(--accent), 0 0 0 12px var(--soft), 0 0 0 13px rgba(243,106,16,.35);
    transition: box-shadow .5s var(--ease);
}
.member:hover .member-photo { box-shadow: 0 0 0 1px var(--accent), 0 0 0 8px var(--soft), 0 0 0 9px var(--accent); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2); transition: filter .5s, transform .8s var(--ease); }
.member:hover .member-photo img { filter: none; transform: scale(1.05); }
.member-initials { font-family: var(--sans); font-weight: 100; font-size: 4.4rem; color: var(--accent); letter-spacing: .08em; }
.member h3 { font-size: 1.45rem; margin-bottom: .3em; }
.member-role { font-family: var(--sans); font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; color: var(--accent); margin: 0 0 .5em; }
.member-prof { font-size: .95rem; color: var(--muted); margin: 0 0 16px; }
.member-tag { display: inline-block; font-family: var(--sans); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; border: 1px solid var(--line); padding: 7px 14px 5px; }

/* Proyectos: mosaico */
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter .6s; }
.project::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.9)); transition: background .5s; }
.project:hover img { transform: scale(1.06); }
.project:hover::after { background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.92)); }
.project-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 30px 32px; text-shadow: 0 1px 10px rgba(0,0,0,.6); transform: translateY(10px); transition: transform .5s var(--ease); }
.project:hover .project-info { transform: none; }
.project-tag { display: block; font-family: var(--sans); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: #ff8c3f; font-weight: 600; }
.project-title { display: block; font-family: var(--sans); font-size: 1.5rem; line-height: 1.2; margin: 4px 0 0; color: #fff; font-weight: 400; }
.project-sub { display: block; font-size: .9rem; color: rgba(255,255,255,.85); margin-top: 2px; }

/* Testimonios y clientes */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.testimonial { margin: 0; padding: 40px; background: #fff; border-top: 1px solid var(--accent); }
.testimonial blockquote { margin: 0 0 24px; font-style: italic; }
.testimonial figcaption strong { font-family: var(--sans); display: block; }
.testimonial figcaption span { color: var(--muted); font-size: .88rem; }
.clients { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 60px; align-items: center; margin-top: 30px; }
.client img { max-height: 46px; width: auto; filter: grayscale(1); opacity: .7; transition: .3s; }
.client img:hover { filter: none; opacity: 1; }

/* Contacto */
.contact { position: relative; background-size: cover; background-position: center; color: #fff; padding: clamp(100px, 12vw, 160px) 0; }
.contact-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.93) 0%, rgba(10,10,10,.85) 55%, rgba(10,10,10,.7) 100%); }
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.contact-intro h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 300; }
.contact-list { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--line-dark); }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.contact-list span { font-family: var(--sans); color: var(--muted-dark); font-size: .75rem; text-transform: uppercase; letter-spacing: .22em; padding-top: 4px; }
.contact-list a { text-decoration: none; font-family: var(--sans); font-size: 1.1rem; }
.contact-list a:hover { color: var(--accent); }
.contact-card { background: rgba(255,255,255,.97); color: var(--ink); padding: clamp(30px, 4vw, 50px); }

.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: grid; gap: 6px; font-family: var(--sans); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea {
    width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--ink);
    padding: 10px 0; font-family: var(--serif); font-size: 1rem; font-weight: 300; border-radius: 0; transition: border-color .3s;
}
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--accent); }
.form textarea { resize: vertical; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-family: var(--sans); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; display: inline-block !important; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 16px 7px; border: 1px solid var(--line); font-size: .7rem; letter-spacing: .15em; color: var(--ink); transition: .25s; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-legal { font-size: .78rem; color: var(--muted); margin: 0; line-height: 1.6; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 14px 18px; margin-bottom: 24px; font-size: .92rem; }
.alert--ok { background: #e8f4ec; border-left: 3px solid #3b9a5e; }
.alert--error { background: #fbeaea; border-left: 3px solid #c0453c; }

/* Footer */
.site-footer { background: #0b0b0b; color: rgba(255,255,255,.7); padding: 90px 0 30px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1.3fr 1fr 1fr; gap: 40px; }
.brand-word--light { color: #fff; display: inline-block; margin-bottom: 20px; }
.footer-logo { width: 200px; height: auto; display: block; margin-bottom: 26px; }
.footer-about { max-width: 340px; color: rgba(255,255,255,.55); }
.site-footer h3 { font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; color: #fff; font-weight: 400; margin-bottom: 20px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; transition: color .3s; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 70px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); font-family: var(--sans); font-size: .75rem; letter-spacing: .12em; color: rgba(255,255,255,.45); }

/* WhatsApp flotante */
.wa-float {
    position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
    background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .3s;
}
.wa-float:hover { transform: scale(1.08); }

/* Aparición al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal, .js .hero-word, .js .hero-sub, .js .hero-lead, .js .hero .hero-actions { opacity: 1; transform: none; animation: none; transition: none; }
    .js .hero-word { letter-spacing: .14em; }
    .hero-slide { transition: opacity 1s; transform: none; }
    .marquee-track { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .services { grid-template-columns: repeat(2, 1fr); }
    .service { min-height: 520px; }
    .service ul { max-height: 320px; opacity: 1; margin: 20px 0 10px; }
    .steps { grid-template-columns: repeat(3, 1fr); row-gap: 50px; }
    .steps li:nth-child(4) { border-left: 0; padding-left: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
    .nav-side { display: none; }
    .header-inner { grid-template-columns: 1fr auto; padding: 0 22px; }
    .brand { justify-content: flex-start; }
    .nav-toggle { display: block; }
    .header-mobile { display: flex; position: relative; z-index: 70; }
    .about, .contact-grid { grid-template-columns: 1fr; }
    .about-media { max-width: 560px; }
    .team { grid-template-columns: 1fr; gap: 70px; }
    .testimonials { grid-template-columns: 1fr; }
    .band { background-attachment: scroll; }
}
@media (max-width: 640px) {
    body { font-size: 15px; }
    .container { padding: 0 22px; }
    .services { grid-template-columns: 1fr; }
    .service { min-height: 480px; }
    .steps { grid-template-columns: 1fr; }
    .steps li, .steps li:nth-child(4) { border-left: 0; padding: 0 0 30px; border-bottom: 1px solid var(--line); }
    .pillars { grid-template-columns: 1fr; }
    .pillars li { padding: 16px 0 14px; border-bottom: 1px solid var(--line); }
    .about-media::before { inset: 16px -12px -16px 16px; }
    .about-badge { right: -8px; bottom: 24px; padding: 18px 20px; }
    .about-badge strong { font-size: 2.6rem; }
    .form-row, .footer-grid { grid-template-columns: 1fr; }
    .member-photo { width: 200px; height: 200px; }
    .hero-actions .btn { width: 100%; max-width: 300px; }
    .contact-list li { flex-direction: column; gap: 2px; }
    .footer-bottom { flex-direction: column; }
}

/* ==========================================================
   Legibilidad: paneles translúcidos + sombra marcada en textos sobre fotos
   ========================================================== */
:root {
    --glass: rgba(12, 12, 12, .55);
    --glass-border: rgba(255, 255, 255, .18);
    --shadow-text: 0 2px 3px rgba(0,0,0,.75), 0 0 22px rgba(0,0,0,.55);
}
.hero-content {
    background: var(--glass); border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    padding: clamp(36px, 5vw, 60px) clamp(22px, 5vw, 70px);
    margin: 0 20px; box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.hero-word, .hero-sub, .hero-lead, .hero-scroll, .band-quote, .service-body, .project-info, .contact-intro, .nav-side a, .lang-switch, .brand-word { text-shadow: var(--shadow-text); }
.hero-word { font-weight: 300; }

.service-body {
    margin: 14px; width: calc(100% - 28px); padding: 30px 28px;
    background: var(--glass); border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

.band-quote {
    display: inline-block; background: var(--glass); border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    padding: clamp(30px, 4vw, 50px) clamp(30px, 5vw, 70px);
}

.project-info {
    left: 14px; right: auto; bottom: 14px; max-width: calc(100% - 28px); padding: 18px 24px;
    background: var(--glass); border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

.site-header:not(.is-scrolled) .header-inner { background: linear-gradient(180deg, rgba(0,0,0,.35), transparent); }

@media (max-width: 640px) {
    .hero-content { margin: 0 14px; }
    .service-body { margin: 10px; width: calc(100% - 20px); padding: 24px 20px; }
}

/* ==========================================================
   v5: 5 servicios, necesidades, experiencia, recomendaciones y páginas de servicio
   ========================================================== */
/* Servicios: 5 tarjetas */
.services { grid-template-columns: repeat(5, 1fr); }
.service { min-height: 620px; }
.service h3 a { text-decoration: none; }
.service h3 a:hover { color: #e0b98f; }
.service-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.link-plain { margin-top: 22px; font-family: var(--sans); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: rgba(255,255,255,.85); padding-bottom: 4px; border-bottom: 1px solid transparent; }
.link-plain:hover { border-bottom-color: #fff; color: #fff; }
@media (max-width: 1380px) {
    .services { grid-template-columns: repeat(6, 1fr); }
    .service { grid-column: span 2; min-height: 540px; }
    .service:nth-child(4), .service:nth-child(5) { grid-column: span 3; }
    .service ul { max-height: 320px; opacity: 1; margin: 18px 0 8px; }
}
@media (max-width: 860px) {
    .services { grid-template-columns: 1fr 1fr; }
    .service, .service:nth-child(4) { grid-column: span 1; }
    .service:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 640px) {
    .services { grid-template-columns: 1fr; }
    .service:nth-child(5) { grid-column: span 1; }
}

/* ¿Qué necesita resolver? */
.needs { background: var(--paper); }
.needs .section-head { margin-bottom: 44px; }
.needs-list { list-style: none; padding: 0; margin: 0 auto; max-width: 1200px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.needs-list a {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%;
    padding: 24px 26px; background: #fff; border: 1px solid var(--line); text-decoration: none;
    font-family: var(--sans); font-size: 1.05rem; transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.needs-list a i { font-style: normal; color: var(--accent-dark); transition: transform .3s; }
.needs-list a:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.07); }
.needs-list a:hover i { transform: translateX(5px); }
@media (max-width: 980px) { .needs-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .needs-list { grid-template-columns: 1fr; } }

/* Experiencia */
.exp-total { display: flex; align-items: center; gap: 16px; margin: 6px 0 0; }
.exp-total strong { font-family: var(--sans); font-weight: 200; font-size: 3.4rem; line-height: 1; color: var(--accent-dark); }
.exp-total span { font-family: var(--sans); text-transform: uppercase; letter-spacing: .15em; font-size: .8rem; max-width: 180px; line-height: 1.5; }
.member-exp { font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: -6px 0 16px; color: var(--ink); }

/* Recomendaciones */
.reco-icon { color: var(--accent-dark); display: flex; justify-content: center; margin-bottom: 18px; }
.testimonial { position: relative; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,.05); }
.testimonial-quote { color: var(--accent); opacity: .5; margin-bottom: 12px; }
.stars { color: #c9973f; letter-spacing: .2em; font-size: 1.05rem; margin-bottom: 14px; }
.testimonial blockquote { flex: 1; font-size: 1rem; font-weight: 400; }
.testimonial figcaption { display: flex; align-items: center; gap: 14px; }
.testimonial figcaption strong { font-family: var(--sans); font-size: 1.05rem; }
.testimonial figcaption small { display: block; color: var(--muted); font-size: .85rem; }
.testimonial-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--accent); display: flex !important; align-items: center; justify-content: center; font-family: var(--sans); font-size: .95rem; flex-shrink: 0; }

/* ---------- Página de servicio ---------- */
.page-hero { position: relative; min-height: min(78vh, 760px); display: flex; align-items: flex-end; background-size: cover; background-position: center; color: #fff; padding: calc(var(--header-h) + 60px) 0 80px; }
.page-hero-inner { position: relative; z-index: 2; }
.page-hero-card {
    max-width: 760px; background: var(--glass); border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: clamp(30px, 4vw, 54px);
    text-shadow: var(--shadow-text); box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.page-hero-card .eyebrow { color: #e0b98f; }
.page-hero-card h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); font-weight: 300; margin-bottom: .4em; }
.page-hero-lead { font-size: 1.08rem; font-weight: 400; margin-bottom: 2em; }
.page-hero .hero-actions { justify-content: flex-start; }
.breadcrumbs { font-family: var(--sans); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 8px; opacity: .9; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: #e0b98f; }
.breadcrumbs span { opacity: .7; }

.problems { list-style: none; padding: 0; margin: 0 auto; max-width: 1100px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.problems li { display: flex; gap: 14px; align-items: flex-start; padding: 24px; background: #fff; border: 1px solid var(--line); font-family: var(--sans); font-size: 1.05rem; line-height: 1.45; }
.problems svg { color: var(--accent-dark); flex-shrink: 0; margin-top: 1px; }

.split-service { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.includes { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.includes li { display: flex; gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); font-family: var(--sans); font-size: 1.12rem; }
.includes span { font-size: .78rem; letter-spacing: .2em; color: var(--accent-dark); }

.advantages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; max-width: 1100px; margin: -30px auto 0; }
.advantage { padding: 10px 36px; border-left: 1px solid var(--line-dark); }
.advantage:first-child { border-left: 0; }
.advantage span { font-family: var(--sans); font-weight: 200; font-size: 3rem; color: #e0b98f; display: block; line-height: 1; margin-bottom: 18px; }
.advantage p { color: var(--muted-dark); font-weight: 400; }

.faq-wrap { max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.2rem; font-weight: 400; }
.faq summary i { width: 16px; height: 16px; position: relative; flex-shrink: 0; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 1.5px; background: var(--accent-dark); transition: transform .3s; }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details p { color: var(--muted); font-weight: 400; margin: 0 0 26px; max-width: 760px; }

.other-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.other-service { position: relative; min-height: 220px; display: flex; align-items: flex-end; overflow: hidden; text-decoration: none; color: #fff; }
.other-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 1s var(--ease); }
.other-service::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.85)); }
.other-service:hover .other-bg { transform: scale(1.07); }
.other-body { position: relative; z-index: 2; padding: 22px; text-shadow: var(--shadow-text); }
.other-body small { display: block; font-family: var(--sans); color: #e0b98f; letter-spacing: .2em; font-weight: 600; }
.other-body strong { font-family: var(--sans); font-weight: 400; font-size: 1.15rem; line-height: 1.3; color: #fff; }

.page-404 { min-height: 70vh; display: flex; align-items: center; padding-top: calc(var(--header-h) + 60px); }
.page-404 h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 1.2em; }

@media (max-width: 980px) {
    .problems { grid-template-columns: 1fr 1fr; }
    .split-service { grid-template-columns: 1fr; }
    .advantages { grid-template-columns: 1fr; gap: 34px; }
    .advantage, .advantage:first-child { border-left: 0; padding: 0; }
    .other-services { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .problems, .other-services { grid-template-columns: 1fr; }
    .page-hero { min-height: auto; padding-bottom: 40px; }
    .page-hero .hero-actions .btn { width: 100%; }
}

/* Equipo: fotos en blanco y negro, a color al pasar el mouse */
.member-photo img { filter: grayscale(1) contrast(.96) brightness(1.02); transition: filter .6s var(--ease), transform .8s var(--ease); }
.member:hover .member-photo img, .member:focus-within .member-photo img, .member:active .member-photo img { filter: grayscale(0) contrast(1) brightness(1); transform: scale(1.05); }

/* Equipo: resumen de experiencia en una línea */
.member-bio { max-width: 300px; margin: -4px auto 18px; font-size: .92rem; line-height: 1.55; color: var(--ink); font-style: italic; }

/* ---------- Marca oficial: toques de color ---------- */
::selection { background: var(--accent); color: #fff; }
.hero-word b { font-weight: inherit; color: var(--accent); }
/* Bloque rojo + naranja (eco del símbolo) antes de cada eyebrow */
.eyebrow::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--accent-red); vertical-align: .1em; box-shadow: 11px 0 0 var(--accent); margin-right: 20px; }
/* Franja de marca arriba del footer */
.site-footer { border-top: 4px solid var(--accent); position: relative; }
.site-footer::before { content: ''; position: absolute; top: -4px; left: 0; width: 120px; height: 4px; background: var(--accent-red); }
.site-header.is-scrolled { box-shadow: inset 0 -2px 0 var(--accent); }
@media (max-width: 600px) { .brand img, .site-header.is-scrolled .brand img { height: 36px; } }

/* Portada: SKYSILL con BUILDERS debajo, mismo ancho (como el logo) */
.hero-word { width: fit-content; margin-left: auto; margin-right: auto; }
.hero-word .hw-last { letter-spacing: 0; }
.hero-builders { display: flex; align-items: center; gap: .35em; margin-top: .16em; font-size: .17em; font-weight: 400; letter-spacing: 0; color: #fff; }
.hero-builders em { flex: 0 0 13%; height: 2px; background: currentColor; }
.hero-builders span { flex: 1; display: flex; justify-content: space-between; padding: 0 .4em; }
.hero-builders i { font-style: normal; }
.hero-word + .hero-sub { margin-top: 30px; }
/* Legibilidad del naranja en textos pequeños sobre fondo claro */
.member-role, .section:not(.section--dark) .eyebrow, .pillars span, .includes span { color: var(--accent-dark); font-weight: 600; }
.member-role { font-size: .86rem; }

/* ---------- Proyectos: cuadrícula y galería ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 340px; grid-auto-flow: dense; gap: 2px; padding: 0 2px; }
.project { position: relative; overflow: hidden; background: #222; }
.project:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.project:nth-child(8) { grid-column: span 2; }
.project-open { all: unset; box-sizing: border-box; display: block; position: absolute; inset: 0; cursor: zoom-in; }
.project-open:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.project-open img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.project:hover .project-open img { transform: scale(1.06); }
.project-info { text-align: left; }
.project-count { position: absolute; top: 14px; right: 14px; z-index: 2; font-family: var(--sans); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.25); padding: 6px 10px 4px; }
.project-count::before { content: ''; display: inline-block; width: 7px; height: 7px; background: var(--accent); margin-right: 8px; vertical-align: .05em; }
@media (max-width: 980px) {
    .projects { grid-template-columns: 1fr 1fr; grid-auto-rows: 300px; }
    .project:nth-child(1) { grid-row: span 1; }
}
@media (max-width: 600px) {
    .projects { grid-template-columns: 1fr; grid-auto-rows: 280px; }
    .project:nth-child(1), .project:nth-child(8) { grid-column: span 1; }
}

.lightbox { position: fixed; inset: 0; z-index: 100; background: #0b0b0b; color: #fff; display: flex; flex-direction: column; }
.lightbox[hidden] { display: none; }
.lb-open { overflow: hidden; }
.lb-top { display: flex; align-items: center; gap: 20px; padding: 18px 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.lb-head { flex: 1; min-width: 0; }
.lb-sub { margin: 0; font-family: var(--sans); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: #ff8c3f; font-weight: 600; }
.lb-titulo { margin: 2px 0 0; font-size: 1.4rem; font-weight: 400; color: #fff; }
.lb-count { font-family: var(--sans); font-size: .8rem; letter-spacing: .15em; color: rgba(255,255,255,.7); }
.lb-close { background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; width: 44px; height: 44px; font-size: 1.8rem; line-height: 1; cursor: pointer; transition: background .3s, border-color .3s; }
.lb-close:hover { background: var(--accent); border-color: var(--accent); }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; gap: 10px; padding: 16px; position: relative; }
.lb-figure { flex: 1; height: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; position: relative; }
.lb-figure img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.6); transition: opacity .25s; }
.lb-figure img.is-loading { opacity: .25; }
.lb-figure figcaption { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); font-family: var(--sans); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; background: rgba(0,0,0,.65); padding: 6px 12px 4px; border-left: 3px solid var(--accent); white-space: nowrap; }
.lb-figure figcaption:empty { display: none; }
.lb-nav { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.4); color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; transition: background .3s, border-color .3s; padding-bottom: 4px; }
.lb-nav:hover { background: var(--accent); border-color: var(--accent); }
.lb-datos { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; margin: 0; padding: 4px 28px 10px; font-size: .85rem; }
.lb-datos div { display: flex; gap: 8px; }
.lb-datos dt { font-family: var(--sans); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55); padding-top: 3px; }
.lb-datos dd { margin: 0; color: #fff; }
.lb-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 28px 18px; scrollbar-width: thin; }
.lb-thumbs button { flex: 0 0 auto; width: 92px; height: 64px; padding: 0; border: 2px solid transparent; background: #222; cursor: pointer; opacity: .55; transition: opacity .3s, border-color .3s; }
.lb-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-thumbs button:hover { opacity: .9; }
.lb-thumbs button.is-active { opacity: 1; border-color: var(--accent); }
@media (max-width: 700px) {
    .lb-top { padding: 12px 14px; gap: 12px; }
    .lb-titulo { font-size: 1.1rem; }
    .lb-stage { padding: 8px 0; }
    .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; font-size: 1.8rem; }
    .lb-prev { left: 6px; } .lb-next { right: 6px; }
    .lb-datos { font-size: .78rem; padding: 4px 14px 6px; gap: 4px 16px; }
    .lb-thumbs { padding: 8px 14px 14px; }
    .lb-thumbs button { width: 64px; height: 46px; }
}
.project::after { pointer-events: none; z-index: 1; }
