/* ===== RUVI STUDIO — estilos compartidos (index.html + real-estate.html) ===== */
:root {
    --bg-deep: #020202;
    --bg-section: #0a0e0b;
    --bg-card: #000;
    --text-main: #f4f0e6;
    --text-muted: #a3a3a3;
    --accent-gold: #d9c8aa;
    --accent-green: #142920;
    --line: rgba(217, 200, 170, 0.15);
    --nav-h: 90px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }

/* ===== Idiomas ===== */
[lang="es"] .en { display: none !important; }
[lang="en"] .es { display: none !important; }

/* ===== NAV ===== */
nav {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-h);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%;
    background: rgba(2, 2, 2, 0.85);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    z-index: 100;
    border-bottom: 1px solid var(--line);
}
.logo-img { height: 64px; transition: transform 0.3s; }
.logo-img:hover { transform: scale(1.05); }

.nav-links { display: flex; gap: 34px; list-style: none; }
.nav-links a {
    color: var(--text-muted); text-decoration: none;
    font-family: 'Montserrat', sans-serif; font-weight: 700;
    font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase;
    transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.current { color: var(--accent-gold); }
.nav-links a.highlight { color: var(--text-main); border-bottom: 1px solid var(--accent-gold); padding-bottom: 3px; }

.nav-controls { display: flex; align-items: center; gap: 22px; }
.lang-btn {
    background: transparent; border: none; color: var(--text-muted);
    font-family: 'Montserrat', sans-serif; font-size: 0.9rem; font-weight: 700;
    cursor: pointer; transition: color 0.3s; letter-spacing: 1px;
}
.lang-btn:hover { color: var(--accent-gold); }
.nav-btn, .btn {
    color: var(--accent-gold); text-decoration: none; font-family: 'Montserrat', sans-serif; font-weight: 700;
    font-size: 0.78rem; letter-spacing: 2px; border: 1px solid var(--accent-gold);
    padding: 10px 24px; border-radius: 2px; transition: all 0.3s; text-transform: uppercase;
    display: inline-block;
}
.nav-btn:hover, .btn:hover { background: var(--accent-gold); color: #000; }
.btn.solid { background: var(--accent-gold); color: #000; }
.btn.solid:hover { background: transparent; color: var(--accent-gold); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 35px; }

/* ===== HERO ===== */
.hero {
    min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: calc(var(--nav-h) + 40px) 5% 60px;
    position: relative; overflow: hidden;
}
.hero-bg-img { background: linear-gradient(rgba(2,2,2,0.7), rgba(2,2,2,0.95)), url('Foto%2002.jpg') center/cover no-repeat; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(rgba(2,2,2,0.55), rgba(2,2,2,0.92)); z-index: 1; }
.hero > *:not(.hero-video):not(.hero-overlay) { position: relative; z-index: 2; }

.eyebrow { color: var(--accent-gold); font-family: 'Montserrat', sans-serif; font-weight: 700; letter-spacing: 4px; font-size: 0.8rem; margin-bottom: 18px; text-transform: uppercase; }
.hero-title {
    font-family: 'Montserrat', sans-serif; font-weight: 900;
    font-size: clamp(2.8rem, 10vw, 7rem); line-height: 0.95; margin-bottom: 28px; letter-spacing: 1px;
}
.hero-title.sm { font-size: clamp(2.4rem, 7.5vw, 5.4rem); }
.outline { color: transparent; -webkit-text-stroke: 1px var(--accent-gold); }
.hero-desc {
    max-width: 780px; font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--text-main);
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}
.hero-desc strong { color: var(--accent-gold); font-weight: 500; }

/* ===== SECCIONES ===== */
.container { padding: 120px 5%; background-color: var(--bg-section); }
.container-dark { padding: 120px 5%; background-color: var(--bg-deep); }
.section-header { margin: 0 auto 70px; text-align: center; max-width: 900px; }
.section-header p.kicker { color: var(--accent-gold); font-weight: 700; letter-spacing: 4px; font-size: 0.85rem; margin-bottom: 15px; text-transform: uppercase; }
.section-header h2 { font-family: 'Montserrat', sans-serif; font-size: clamp(2rem, 5vw, 3rem); text-transform: uppercase; line-height: 1.1; }
.section-header .lead { color: var(--text-muted); font-size: 1.1rem; margin-top: 20px; }

/* Visión */
.vision-section { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.vision-img { width: 100%; border-radius: 2px; box-shadow: 0 30px 60px rgba(0,0,0,0.9); border: 1px solid rgba(255,255,255,0.05); }
.vision-text h2 { font-family: 'Montserrat', sans-serif; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 30px; line-height: 1.1; }
.vision-text p { font-size: 1.12rem; color: var(--text-muted); margin-bottom: 22px; line-height: 1.7; }
.vision-text p strong { color: var(--text-main); font-weight: 500; }
.vision-bullets { margin-top: 30px; border-left: 2px solid var(--accent-gold); padding-left: 20px; }
.vision-bullets li { list-style: none; font-family: 'Montserrat', sans-serif; font-size: 0.95rem; color: var(--text-main); margin-bottom: 10px; letter-spacing: 1px; }

/* Pilares */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.pillar { border: 1px solid var(--line); padding: 50px 40px; background: var(--bg-card); }
.pillar-num { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 3.2rem; line-height: 1; margin-bottom: 18px; }
.pillar h3 { font-family: 'Montserrat', sans-serif; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.pillar > p { color: var(--text-muted); margin-bottom: 30px; }
.pillar ul { list-style: none; }
.pillar li { padding: 16px 0; border-top: 1px solid var(--line); }
.pillar li b { display: block; font-family: 'Montserrat', sans-serif; color: var(--accent-gold); font-size: 1rem; margin-bottom: 4px; }
.pillar li span { color: var(--text-muted); font-size: 0.95rem; }

/* Proceso */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; counter-reset: step; }
.step { border-top: 1px solid rgba(217,200,170,0.35); padding-top: 22px; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: 'Montserrat', sans-serif; font-weight: 900; color: var(--accent-gold); font-size: 0.9rem; letter-spacing: 2px; }
.step h4 { font-family: 'Montserrat', sans-serif; font-size: 1.15rem; margin: 10px 0 8px; text-transform: uppercase; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* Ejemplos */
.examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.example { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06); padding: 36px 30px; display: flex; flex-direction: column; transition: border-color 0.4s; }
.example:hover { border-color: var(--accent-gold); }
.example .tag { align-self: flex-start; color: var(--accent-gold); border: 1px solid var(--accent-gold); font-family: 'Montserrat', sans-serif; font-size: 0.68rem; letter-spacing: 2px; text-transform: uppercase; padding: 4px 10px; margin-bottom: 22px; }
.example h4 { font-family: 'Montserrat', sans-serif; font-size: 1.25rem; margin-bottom: 18px; line-height: 1.25; }
.example dl { flex-grow: 1; }
.example dt { font-family: 'Montserrat', sans-serif; font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-main); margin-top: 14px; }
.example dd { color: var(--text-muted); font-size: 0.95rem; }
.example .ref { margin-top: 24px; font-size: 0.85rem; color: var(--text-muted); }
.example .ref a { color: var(--accent-gold); text-decoration: none; border-bottom: 1px solid var(--accent-gold); }
.note { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: 40px; font-style: italic; }

/* Banda Real Estate (home) */
.re-band { position: relative; min-height: 80vh; display: flex; align-items: center; padding: 100px 5%; overflow: hidden; }
.re-band video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.re-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,2,2,0.95) 0%, rgba(2,2,2,0.75) 45%, rgba(2,2,2,0.2) 100%); z-index: 1; }
.re-band-content { position: relative; z-index: 2; max-width: 620px; }
.re-band-content h2 { font-family: 'Montserrat', sans-serif; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; margin-bottom: 22px; text-transform: uppercase; }
.re-band-content p { color: var(--text-main); opacity: 0.85; font-size: 1.1rem; margin-bottom: 30px; }
.re-band-content .btn-row { justify-content: flex-start; }

/* Cards / sliders (casos) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 50px; }
.card { background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.05); transition: all 0.5s ease; display: flex; flex-direction: column; }
.card:hover { border-color: var(--accent-gold); transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.6); }
.slider-container { width: 100%; height: 380px; overflow: hidden; position: relative; }
.card-tag { position: absolute; top: 20px; left: 20px; background: rgba(0,0,0,0.8); color: var(--accent-gold); padding: 5px 12px; font-family: 'Montserrat', sans-serif; font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; z-index: 10; border: 1px solid var(--accent-gold); }
.slider-wrapper { width: 100%; height: 100%; position: relative; }
.slide { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; opacity: 0; transition: opacity 0.5s ease, transform 0.8s ease; }
.slide.active { opacity: 0.85; z-index: 2; }
.card:hover .slide.active { opacity: 1; transform: scale(1.04); }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.4); color: var(--accent-gold); border: 1px solid rgba(217, 200, 170, 0.2); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; z-index: 10; display: flex; justify-content: center; align-items: center; transition: all 0.3s; opacity: 0; }
.card:hover .slider-btn { opacity: 1; }
.slider-btn:hover { background: var(--accent-gold); color: #000; }
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }
.card-body { padding: 40px 30px; display: flex; flex-direction: column; flex-grow: 1; z-index: 5; position: relative; }
.card-title { font-family: 'Montserrat', sans-serif; font-size: 1.6rem; margin-bottom: 15px; letter-spacing: 1px; text-transform: uppercase; }
.card-text { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 30px; flex-grow: 1; }
.card-text p + p { margin-top: 14px; }
.card-text strong { color: var(--text-main); }
.watch-btn { align-self: flex-start; color: var(--text-main); text-decoration: none; font-family: 'Montserrat', sans-serif; font-size: 0.85rem; letter-spacing: 2px; border-bottom: 1px solid var(--accent-gold); padding-bottom: 5px; text-transform: uppercase; transition: color 0.3s; }
.watch-btn:hover { color: var(--accent-gold); }

/* ===== REAL ESTATE: servicios con video ===== */
.showcase { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center; margin-bottom: 110px; }
.showcase:last-child { margin-bottom: 0; }
.showcase.reverse .showcase-media { order: 2; }
.showcase-media { position: relative; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; overflow: hidden; }
.showcase-media video { width: 100%; height: 100%; object-fit: cover; }
.showcase-media .live { position: absolute; top: 16px; left: 16px; background: rgba(0,0,0,0.75); color: var(--accent-gold); border: 1px solid var(--accent-gold); font-family: 'Montserrat', sans-serif; font-size: 0.65rem; letter-spacing: 2px; padding: 4px 10px; text-transform: uppercase; }
.showcase-text .num { font-family: 'Montserrat', sans-serif; font-weight: 900; color: var(--accent-gold); letter-spacing: 3px; font-size: 0.85rem; }
.showcase-text h3 { font-family: 'Montserrat', sans-serif; font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.1; margin: 12px 0 18px; text-transform: uppercase; }
.showcase-text > p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 22px; }
.showcase-text ul { list-style: none; border-left: 2px solid var(--accent-gold); padding-left: 18px; }
.showcase-text li { color: var(--text-main); font-size: 0.95rem; margin-bottom: 8px; }
.showcase-text li em { color: var(--text-muted); font-style: normal; }

/* Placeholder para servicio sin video */
.media-placeholder { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 14px; padding: 30px; background: radial-gradient(circle at 30% 30%, var(--accent-green), #000 70%); }
.media-placeholder .big { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; }
.media-placeholder small { color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; font-size: 0.72rem; }

/* Beneficios */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.benefit { background: var(--bg-section); padding: 40px 30px; }
.benefit .big { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 2.2rem; color: var(--accent-gold); line-height: 1; margin-bottom: 14px; }
.benefit h4 { font-family: 'Montserrat', sans-serif; text-transform: uppercase; font-size: 1rem; letter-spacing: 1px; margin-bottom: 8px; }
.benefit p { color: var(--text-muted); font-size: 0.95rem; }

/* Packs */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: stretch; }
.pack { border: 1px solid var(--line); background: var(--bg-card); padding: 44px 34px; display: flex; flex-direction: column; }
.pack.featured { border-color: var(--accent-gold); box-shadow: 0 0 0 1px var(--accent-gold) inset; }
.pack .who { color: var(--accent-gold); font-family: 'Montserrat', sans-serif; font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; }
.pack h3 { font-family: 'Montserrat', sans-serif; font-size: 1.7rem; text-transform: uppercase; margin: 10px 0 6px; }
.pack .price { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }
.pack ul { list-style: none; flex-grow: 1; margin-bottom: 30px; }
.pack li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.pack li::before { content: "— "; color: var(--accent-gold); }
.pack .btn { text-align: center; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-gold); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-muted); margin-top: 12px; }

/* ===== FOOTER ===== */
footer { text-align: center; padding: 120px 5%; background: #000; border-top: 1px solid var(--line); }
footer h2 { font-family: 'Montserrat', sans-serif; font-size: clamp(2rem, 5vw, 4rem); margin-bottom: 30px; color: var(--accent-gold); line-height: 1.1; }
footer p { color: var(--text-muted); margin-bottom: 30px; font-size: 1.1rem; }
footer .links a { color: var(--text-main); text-decoration: none; margin: 0 15px; letter-spacing: 1px; font-size: 1rem; border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color 0.3s; display: inline-block; margin-bottom: 10px; }
footer .links a:hover { border-color: var(--accent-gold); }
footer .legal { font-size: 0.8rem; margin: 40px 0 0; opacity: 0.6; }

/* Aparición suave al scrollear */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .nav-links { display: none; }
    .steps { grid-template-columns: 1fr 1fr; }
    .packs { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 900px) {
    :root { --nav-h: 76px; }
    .logo-img { height: 52px; }
    .container, .container-dark { padding: 80px 16px; }
    .vision-section, .pillars, .showcase { grid-template-columns: 1fr; gap: 36px; }
    .showcase.reverse .showcase-media { order: 0; }
    .showcase { margin-bottom: 80px; }
    .pillar { padding: 36px 24px; }
    .nav-btn { padding: 8px 14px; font-size: 0.68rem; letter-spacing: 1px; }
    .nav-controls { gap: 14px; }
    .slider-btn { opacity: 1; background: rgba(0,0,0,0.6); }
    .grid { grid-template-columns: 1fr; }
    .re-band { padding: 80px 16px; }
    .re-band::after { background: linear-gradient(rgba(2,2,2,0.6), rgba(2,2,2,0.92)); }
    nav { padding: 0 16px; }
}
@media (max-width: 560px) {
    .steps { grid-template-columns: 1fr; }
    .slider-container { height: 300px; }
    .examples { grid-template-columns: 1fr; }
}

/* ===== Tarjetas con video + reproductor ===== */
.video-card { cursor: pointer; }
.card-video { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.5s ease, transform 0.8s ease; }
.card:hover .card-video { opacity: 1; transform: scale(1.04); }
.play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--accent-gold); background: rgba(0,0,0,0.5); color: var(--accent-gold); display: flex; justify-content: center; align-items: center; padding-left: 4px; font-size: 1.3rem; z-index: 5; transition: all 0.3s; }
.video-card:hover .play-icon { background: var(--accent-gold); color: #000; }
button.watch-btn { background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; }
.video-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.92); display: none; justify-content: center; align-items: center; z-index: 1000; padding: 60px 16px 24px; }
.video-modal.open { display: flex; }
.video-modal video { max-width: min(1200px, 100%); max-height: 100%; width: auto; height: auto; background: #000; }
.video-modal-close { position: absolute; top: 14px; right: 20px; background: none; border: 0; color: var(--accent-gold); font-size: 2.4rem; line-height: 1; cursor: pointer; }
.yt-frame { display: none; width: min(1200px, 100%); aspect-ratio: 16 / 9; max-height: 100%; }
.yt-frame iframe { width: 100%; height: 100%; border: 0; }

/* ===== HERO dividido: texto a la izquierda, foto a la derecha ===== */
.hero-split {
    flex-direction: row; align-items: stretch; text-align: left; gap: 0;
    padding: var(--nav-h) 0 0; min-height: 88vh; min-height: 88svh;
}
.hero-split .hero-text { flex: 1 1 50%; display: flex; flex-direction: column; justify-content: center; padding: 60px 4% 60px 5%; }
.hero-split .hero-title { font-size: clamp(2.6rem, 6.2vw, 5.6rem); }
.hero-split .hero-desc { max-width: 560px; font-size: clamp(1rem, 1.5vw, 1.15rem); }
.hero-split .btn-row { justify-content: flex-start; }
.hero-photo { flex: 1 1 50%; position: relative; overflow: hidden; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, var(--bg-deep) 0%, rgba(2,2,2,0) 22%), linear-gradient(0deg, rgba(2,2,2,0.5) 0%, rgba(2,2,2,0) 30%); }

@media (max-width: 900px) {
    .hero-split { flex-direction: column-reverse; min-height: auto; }
    .hero-photo { flex: none; height: 46vh; min-height: 280px; }
    .hero-photo img { object-position: 50% 25%; }
    .hero-photo::before { background: linear-gradient(0deg, var(--bg-deep) 0%, rgba(2,2,2,0) 35%); }
    .hero-split .hero-text { padding: 10px 16px 50px; text-align: center; align-items: center; }
    .hero-split .btn-row { justify-content: center; }
}
