/* ============================================================
   CONSTRUCTORA R.C. — EFFECTS SYSTEM v4.0
   Industrial Luxury Dark — Custom Design Language
   ============================================================ */

/* ─── 1. DESIGN TOKENS ──────────────────────────────────────── */
:root {
  --rc-navy:        #001659;
  --rc-orange:      #FF5E15;
  --rc-dark:        #001248;
  --rc-midnight:    #000c32;
  --rc-carbon:      #0d0f1a;
  --rc-glass:       rgba(255,255,255,0.06);
  --rc-glass-border:rgba(255,255,255,0.12);
  --rc-glow-orange: rgba(255,94,21,0.35);
  --rc-glow-blue:   rgba(0,22,89,0.6);
  --spring:         cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --snappy:         cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── 2. CUSTOM CURSOR ──────────────────────────────────────── */
* { cursor: none !important; }
@media (hover: none) { * { cursor: auto !important; } }

#rc-cursor-dot,
#rc-cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
#rc-cursor-dot {
  width: 8px; height: 8px;
  background: var(--rc-orange);
  transition: transform 0.1s var(--spring), opacity 0.2s, background 0.2s;
}
#rc-cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255,94,21,0.7);
  background: transparent;
  transition: transform 0.35s var(--smooth), width 0.3s var(--spring),
              height 0.3s var(--spring), border-color 0.25s, opacity 0.2s;
}
body.cursor-hover #rc-cursor-dot  { transform: translate(-50%,-50%) scale(2.5); background: #fff; }
body.cursor-hover #rc-cursor-ring { width: 60px; height: 60px; border-color: rgba(255,94,21,0.4); }
body.cursor-click #rc-cursor-dot  { transform: translate(-50%,-50%) scale(0.5); }
body.cursor-img   #rc-cursor-ring { width: 80px; height: 80px; border-color: rgba(255,255,255,0.5); border-width: 1px; }
body.cursor-text  #rc-cursor-ring { width: 4px; height: 32px; border-radius: 2px; }

/* ─── 3. FLOATING NAVIGATION ─────────────────────────────────── */
.rc-float-nav {
  position: fixed !important;
  top: 18px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 40px) !important;
  max-width: 1200px !important;
  z-index: 9990 !important;
  background: rgba(0, 18, 72, 0.75) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 60px !important;
  padding: 8px 24px !important;
  transition: all 0.4s var(--smooth) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08) !important;
}
.rc-float-nav.scrolled {
  background: rgba(0, 10, 45, 0.92) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06) !important;
  width: calc(100% - 60px) !important;
}
.rc-float-nav .navbar-brand { padding: 4px 0 !important; }
.rc-float-nav .navbar-brand h1 { font-size: 1.15rem !important; margin: 0 !important; }
.rc-float-nav .nav-item .nav-link { color: rgba(255,255,255,0.8) !important; font-size: 0.875rem !important; padding: 6px 14px !important; border-radius: 30px !important; transition: all 0.25s var(--spring) !important; }
.rc-float-nav .nav-item .nav-link:hover, .rc-float-nav .nav-item .nav-link.active { color: #fff !important; background: rgba(255,94,21,0.2) !important; }
.rc-float-nav .dropdown-menu { background: rgba(0, 18, 72, 0.95) !important; backdrop-filter: blur(20px) !important; border: 1px solid rgba(255,255,255,0.1) !important; border-radius: 16px !important; padding: 8px !important; margin-top: 8px !important; }
.rc-float-nav .dropdown-item { color: rgba(255,255,255,0.75) !important; border-radius: 10px !important; font-size: 0.875rem !important; padding: 8px 16px !important; }
.rc-float-nav .dropdown-item:hover { background: rgba(255,94,21,0.15) !important; color: #fff !important; }
.rc-float-nav .btn { border-radius: 30px !important; padding: 6px 18px !important; font-size: 0.85rem !important; }
.rc-float-nav .navbar-toggler { border: 1px solid rgba(255,255,255,0.2) !important; border-radius: 10px !important; padding: 6px 10px !important; color: #fff !important; }
/* Push content down to account for floating nav */
body { padding-top: 80px; }
@media (max-width: 991.98px) {
  .rc-float-nav { border-radius: 20px !important; padding: 10px 16px !important; }
  .rc-float-nav .navbar-collapse { background: rgba(0,10,45,0.98); border-radius: 16px; padding: 16px; margin-top: 8px; border: 1px solid rgba(255,255,255,0.1); }
}

/* ─── 3. FLOATING NAVIGATION (using #rc-nav) ──────────────── */
/* ╔══════════════════════════════════════════════════════════════╗
   ║  FLOATING NAV — CLEAN REBUILD (no sticky-top conflict)      ║
   ╚══════════════════════════════════════════════════════════════╝ */

/* 1. Fixed positioned wrapper — NOT sticky, NOT container-fluid */
#rc-nav {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1200px;
    z-index: 9990;
    background: rgba(0, 18, 72, 0.82);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 60px;
    padding: 0 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
    transition: background 0.4s ease, box-shadow 0.4s ease, width 0.4s ease, top 0.4s ease;
}
#rc-nav.scrolled {
    background: rgba(0, 10, 40, 0.95);
    box-shadow: 0 12px 48px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
    width: calc(100% - 72px);
    top: 12px;
}

/* 2. Body offset — exactly the nav height + 18px gap */
body {
    padding-top: 90px;
}

/* 2c. Anclas de scroll — para que los botones que prometen algo puntual
   (formulario, cotizador, una categoría de FAQ, un servicio específico)
   lleguen directo ahí y no se escondan detrás del nav flotante fijo. */
#formulario-contacto,
#cot-wizard-section,
.rc-scroll-anchor {
    scroll-margin-top: 110px;
}
@media (max-width: 991.98px) {
    #formulario-contacto,
    #cot-wizard-section,
    .rc-scroll-anchor {
        scroll-margin-top: 100px;
    }
}

/* 2b. FULL-BLEED TOP SECTIONS — extend hero/header backgrounds behind the
   floating nav so no white body background shows above it. Pulls the
   section up by the same amount body's padding-top pushes it down, then
   adds that amount back as extra top padding so inner content (titles,
   captions) keeps its original visual position, unobstructed by the nav. */
.rc-top-fullbleed {
    margin-top: -90px; /* homepage carousel: height:100vh + centered caption need no extra padding */
}
.bg-breadcrumb.rc-top-fullbleed {
    padding-top: 150px; /* 60px original + 90px nav offset */
}

/* Hero compacto — Preguntas Frecuentes y Contacto: ~30% menos de alto que el
   hero estándar. Acá el contenido es texto (título + bajada), no una foto
   protagonista como en Nosotros/Servicios, así que no necesita tanto
   aire vertical.
   IMPORTANTE: el -30% es sobre el alto TOTAL (fondo exterior + padding
   interior del texto). Reducir solo el contenedor exterior no alcanza,
   porque el contenedor interior (antes con la utilidad "py-5" de
   Bootstrap, 48px fijos) seguía aportando la mayor parte del aire. Por
   eso esta pareja de clases va siempre junta: rc-hero-compacto en el
   contenedor exterior + rc-hero-content-pad en el interior, en
   reemplazo de "py-5". */
.bg-breadcrumb.rc-hero-compacto.rc-top-fullbleed {
    padding-top: 132px; /* 42px (60px × 0.7) + 90px nav offset */
    padding-bottom: 42px;
}
.rc-hero-content-pad { padding-top: 34px; padding-bottom: 34px; }
@media (max-width: 991.98px) {
    .bg-breadcrumb.rc-hero-compacto.rc-top-fullbleed {
        padding-top: 122px; /* 42px + 80px nav offset mobile */
        padding-bottom: 42px;
    }
}
.page-header.rc-top-fullbleed {
    padding-top: 138px; /* 48px (py-5) original + 90px nav offset */
}
.cot-hero.rc-top-fullbleed {
    padding-top: 170px; /* 80px original + 90px nav offset */
}
@media (max-width: 991.98px) {
    .rc-top-fullbleed {
        margin-top: -80px;
    }
    .bg-breadcrumb.rc-top-fullbleed {
        padding-top: 140px; /* 60px + 80px mobile nav offset */
    }
    .page-header.rc-top-fullbleed {
        padding-top: 128px; /* 48px + 80px mobile nav offset */
    }
    .cot-hero.rc-top-fullbleed {
        padding-top: 160px; /* 80px + 80px mobile nav offset */
    }
}

#rc-nav .navbar-nav .nav-item::before,
#rc-nav .navbar-nav .nav-item::after {
    display: none !important;
}

/* 3. Navbar internals */
#rc-nav .navbar {
    padding: 10px 16px !important;
    background: transparent !important;
    border-radius: 60px;
}
#rc-nav .navbar-brand h1 {
    font-size: 1.1rem !important;
    margin: 0 !important;
    color: #fff !important;
}
#rc-nav .navbar-logo {
    height: 36px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}
#rc-nav.scrolled .navbar-logo {
    height: 30px;
}
#rc-nav .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.875rem !important;
    padding: 7px 14px !important;
    border-radius: 30px !important;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    font-weight: 500;
}
#rc-nav .navbar-nav .nav-link:hover,
#rc-nav .navbar-nav .nav-link.active {
    color: #fff !important;
    background: rgba(255, 94, 21, 0.22) !important;
}
#rc-nav .dropdown-menu {
    background: rgba(0, 14, 55, 0.97) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    padding: 8px !important;
    margin-top: 6px !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5) !important;
}
#rc-nav .dropdown-item {
    color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 10px !important;
    font-size: 0.875rem !important;
    padding: 8px 16px !important;
    transition: all 0.2s ease !important;
}
#rc-nav .dropdown-item:hover {
    background: rgba(255, 94, 21, 0.18) !important;
    color: #fff !important;
}
#rc-nav .btn-secondary {
    border-radius: 30px !important;
    padding: 7px 20px !important;
    font-size: 0.85rem !important;
}
#rc-nav .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 10px !important;
    padding: 7px 12px !important;
    color: #fff !important;
}
#rc-nav .navbar-toggler-icon,
#rc-nav .fa-bars {
    color: #fff !important;
    font-size: 1rem;
}

/* 4. Mobile collapse — drop down below the pill */
@media (max-width: 991.98px) {
    #rc-nav {
        border-radius: 24px;
        padding: 0 4px;
    }
    #rc-nav .navbar-logo {
        height: 30px;
    }
    #rc-nav .navbar-collapse {
        background: rgba(0, 10, 45, 0.98);
        border-radius: 16px;
        padding: 16px;
        margin-top: 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 8px;
    }
    #rc-nav .navbar-nav .nav-link {
        padding: 10px 14px !important;
        border-radius: 10px !important;
    }
    body { padding-top: 80px; }
}


/* ─── 4. SCROLL PROGRESS BAR ─────────────────────────────────── */
#rc-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rc-navy), var(--rc-orange));
  z-index: 99998;
  width: 0%;
  transition: width 0.1s linear;
}

/* ─── 5. GRAINY TEXTURE OVERLAY ──────────────────────────────── */
.rc-grain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  mix-blend-mode: overlay;
}
.rc-grain { position: relative; overflow: hidden; }

/* ─── 6. GLASSMORPHISM ────────────────────────────────────────── */
.rc-glass {
  background: var(--rc-glass) !important;
  backdrop-filter: blur(16px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
  border: 1px solid var(--rc-glass-border) !important;
}
.rc-glass-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  transition: all 0.4s var(--spring);
}
.rc-glass-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,94,21,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,94,21,0.15);
}

/* ─── 7. HIGH-CONTRAST GRADIENT BORDERS ─────────────────────── */
.rc-border-gradient {
  position: relative;
  border-radius: 16px;
  background: transparent;
}
.rc-border-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,94,21,0.6), rgba(0,22,89,0.4), rgba(255,94,21,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ─── 8. HOVER GLOW EFFECT ───────────────────────────────────── */
.rc-glow {
  position: relative;
  overflow: hidden;
}
.rc-glow-cursor {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,94,21,0.15) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
  z-index: 0;
}
.rc-glow:hover .rc-glow-cursor { opacity: 1; }

/* ─── 9. MAGNETIC BUTTONS ────────────────────────────────────── */
.rc-magnetic {
  position: relative;
  display: inline-block;
  transition: transform 0.4s var(--spring);
  will-change: transform;
}
.rc-magnetic .rc-magnetic-inner {
  transition: transform 0.4s var(--spring);
  display: block;
}

/* ─── 10. ACTIVE STATES (loading → check) ────────────────────── */
.btn.rc-btn-loading {
  pointer-events: none;
  position: relative;
  color: transparent !important;
}
.btn.rc-btn-loading::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rc-spin 0.7s linear infinite;
}
.btn.rc-btn-success {
  background: #198754 !important;
  border-color: #198754 !important;
  color: #fff !important;
  pointer-events: none;
}
.btn.rc-btn-success::before {
  content: '✓ ';
  font-weight: 700;
}
@keyframes rc-spin {
  to { transform: rotate(360deg); }
}

/* ─── 11. STAGGERED ENTRANCE ─────────────────────────────────── */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  transition: opacity 0.9s var(--smooth), transform 0.9s var(--smooth);
}
[data-stagger].rc-visible > *:nth-child(1)  { opacity: 1; transform: none; transition-delay: 0.05s; }
[data-stagger].rc-visible > *:nth-child(2)  { opacity: 1; transform: none; transition-delay: 0.16s; }
[data-stagger].rc-visible > *:nth-child(3)  { opacity: 1; transform: none; transition-delay: 0.27s; }
[data-stagger].rc-visible > *:nth-child(4)  { opacity: 1; transform: none; transition-delay: 0.38s; }
[data-stagger].rc-visible > *:nth-child(5)  { opacity: 1; transform: none; transition-delay: 0.49s; }
[data-stagger].rc-visible > *:nth-child(6)  { opacity: 1; transform: none; transition-delay: 0.60s; }
[data-stagger].rc-visible > *:nth-child(7)  { opacity: 1; transform: none; transition-delay: 0.71s; }
[data-stagger].rc-visible > *:nth-child(8)  { opacity: 1; transform: none; transition-delay: 0.82s; }

/* ─── 12. SCROLL-TRIGGERED REVEAL ───────────────────────────── */
[data-reveal] {
  opacity: 0;
  transition: opacity 1.1s var(--smooth), transform 1.1s var(--smooth);
}
[data-reveal="up"]    { transform: translateY(50px); }
[data-reveal="left"]  { transform: translateX(-60px); }
[data-reveal="right"] { transform: translateX(60px); }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal="fade"]  { transform: none; }
[data-reveal].rc-visible { opacity: 1; transform: none; }

/* ─── 13. KINETIC TYPOGRAPHY ─────────────────────────────────── */
.rc-kinetic .rc-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  margin-right: 0.22em;
}
.rc-kinetic .rc-word-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.75s var(--spring);
}
.rc-kinetic.rc-visible .rc-word-inner {
  transform: translateY(0);
}
.rc-kinetic.rc-visible .rc-word:nth-child(1) .rc-word-inner  { transition-delay: 0.00s; }
.rc-kinetic.rc-visible .rc-word:nth-child(2) .rc-word-inner  { transition-delay: 0.06s; }
.rc-kinetic.rc-visible .rc-word:nth-child(3) .rc-word-inner  { transition-delay: 0.12s; }
.rc-kinetic.rc-visible .rc-word:nth-child(4) .rc-word-inner  { transition-delay: 0.18s; }
.rc-kinetic.rc-visible .rc-word:nth-child(5) .rc-word-inner  { transition-delay: 0.24s; }
.rc-kinetic.rc-visible .rc-word:nth-child(6) .rc-word-inner  { transition-delay: 0.30s; }
.rc-kinetic.rc-visible .rc-word:nth-child(7) .rc-word-inner  { transition-delay: 0.36s; }
.rc-kinetic.rc-visible .rc-word:nth-child(8) .rc-word-inner  { transition-delay: 0.42s; }
.rc-kinetic.rc-visible .rc-word:nth-child(9) .rc-word-inner  { transition-delay: 0.48s; }
.rc-kinetic.rc-visible .rc-word:nth-child(10) .rc-word-inner { transition-delay: 0.54s; }
.rc-kinetic.rc-visible .rc-word:nth-child(n+11) .rc-word-inner { transition-delay: 0.60s; }

/* ─── 14. SKELETON LOADING ───────────────────────────────────── */
.rc-skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.06) 25%,
    rgba(255,255,255,0.12) 50%,
    rgba(255,255,255,0.06) 75%);
  background-size: 200% 100%;
  animation: rc-shimmer 1.8s infinite;
  border-radius: 8px;
}
@keyframes rc-shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ─── 15. SOFT SPRING TRANSITIONS ───────────────────────────── */
.rc-spring {
  transition: transform 0.5s var(--spring), box-shadow 0.3s var(--smooth);
}
.rc-spring:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.rc-spring-img {
  overflow: hidden;
  border-radius: 16px;
}
.rc-spring-img img {
  transition: transform 0.6s var(--spring);
}
.rc-spring-img:hover img {
  transform: scale(1.06);
}

/* ─── 16. MICRO-BOUNCE ON SCROLL END ─────────────────────────── */
@keyframes rc-bounce-in {
  0%   { transform: var(--base-transform, none) translateY(8px); }
  60%  { transform: var(--base-transform, none) translateY(-4px); }
  80%  { transform: var(--base-transform, none) translateY(2px); }
  100% { transform: var(--base-transform, none) translateY(0); }
}
.rc-bounce-enter { animation: rc-bounce-in 0.5s var(--spring) forwards; }

/* ─── 17. BENTO GRID ─────────────────────────────────────────── */
.rc-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 120px;
  gap: 16px;
  padding: 0;
}
.rc-bento-cell {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: rgba(0,18,72,0.6);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.4s var(--spring), box-shadow 0.3s, border-color 0.3s;
}
.rc-bento-cell:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  border-color: rgba(255,94,21,0.3);
  z-index: 2;
}
.rc-bento-cell img, .rc-bento-cell video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--spring);
}
.rc-bento-cell:hover img { transform: scale(1.05); }
/* Bento size variants */
.rc-bento-1x1  { grid-column: span 4; grid-row: span 2; }
.rc-bento-2x1  { grid-column: span 8; grid-row: span 2; }
.rc-bento-3x1  { grid-column: span 12; grid-row: span 2; }
.rc-bento-1x2  { grid-column: span 4; grid-row: span 4; }
.rc-bento-2x2  { grid-column: span 8; grid-row: span 4; }
.rc-bento-2x1-mid { grid-column: span 6; grid-row: span 2; }
.rc-bento-tall { grid-column: span 4; grid-row: span 5; }
.rc-bento-wide { grid-column: span 8; grid-row: span 3; }
@media (max-width: 767px) {
  .rc-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; gap: 10px; }
  .rc-bento > * { grid-column: span 2 !important; grid-row: span 2 !important; }
}

/* ─── 18. SERVICE BENTO CARDS ────────────────────────────────── */
.rc-service-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 991px) { .rc-service-bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px)  { .rc-service-bento { grid-template-columns: 1fr; } }
.rc-svc-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  min-height: 340px;
  background: #000c32;
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform 0.45s var(--spring), box-shadow 0.3s, border-color 0.3s;
}
.rc-svc-card:nth-child(1) { grid-column: span 1; min-height: 380px; }
.rc-svc-card:nth-child(2) { grid-column: span 1; }
.rc-svc-card:nth-child(3) { grid-column: span 1; }
.rc-svc-card:nth-child(4) { grid-column: span 1; }
.rc-svc-card:nth-child(5) { grid-column: span 1; }
.rc-svc-card:nth-child(6) { grid-column: span 1; min-height: 380px; }
.rc-svc-card:hover { transform: translateY(-8px); box-shadow: 0 24px 64px rgba(0,0,0,0.5); border-color: rgba(255,94,21,0.4); }

/* ─── 18b. PANEL: MATERIALES DE OBRA GRUESA ─────────────────── */
.rc-materiales-panel {
  position: relative;
  z-index: 2;
  margin-top: 24px;
  padding: 36px 40px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.rc-materiales-panel .rc-tagline { color: #FF5E15; }
.rc-materiales-panel .rc-tagline::before { background: #FF5E15; }
@media (max-width: 767px) { .rc-materiales-panel { padding: 28px 24px; } }
.rc-svc-img { position: absolute; inset: 0; transition: transform 0.6s var(--spring); }
.rc-svc-img img { width: 100%; height: 100%; object-fit: cover; }
.rc-svc-card:hover .rc-svc-img { transform: scale(1.06); }
.rc-svc-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,12,50,0.97) 0%, rgba(0,12,50,0.75) 50%, rgba(0,12,50,0.2) 100%);
  transition: background 0.4s;
}
.rc-svc-card:hover .rc-svc-overlay {
  background: linear-gradient(to top, rgba(0,12,50,0.99) 0%, rgba(0,12,50,0.85) 55%, rgba(0,12,50,0.3) 100%);
}
.rc-svc-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px; z-index: 2; }
.rc-svc-icon { width: 48px; height: 48px; background: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; transition: transform 0.4s var(--spring); }
.rc-svc-card:hover .rc-svc-icon { transform: scale(1.15) rotate(-5deg); }
.rc-svc-title { color: #fff; font-size: 1.1rem; font-weight: 700; font-family: 'Nunito Sans', sans-serif; margin-bottom: 8px; }
.rc-svc-desc { color: rgba(255,255,255,0.65); font-size: 0.82rem; line-height: 1.5; max-height: 0; overflow: hidden; transition: max-height 0.45s var(--smooth), opacity 0.3s; opacity: 0; }
.rc-svc-card:hover .rc-svc-desc { max-height: 120px; opacity: 1; }
.rc-svc-tag { display: inline-block; background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,94,21,0.35); border-radius: 30px; font-size: 0.72rem; padding: 3px 10px; margin-bottom: 10px; letter-spacing: 0.05em; text-transform: uppercase; }

/* ─── 19. HORIZONTAL SCROLL SECTION ─────────────────────────── */
.rc-hscroll-wrap {
  overflow: hidden;
  position: relative;
}
.rc-hscroll-track {
  display: flex;
  gap: 20px;
  padding: 0 60px 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  will-change: scroll-position;
}
.rc-hscroll-track::-webkit-scrollbar { display: none; }
.rc-hscroll-track:active { cursor: grabbing; }
.rc-hscroll-card {
  flex: 0 0 320px;
  height: 420px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform 0.4s var(--spring);
  flex-shrink: 0;
}
.rc-hscroll-card:hover { transform: scale(1.03); }
.rc-hscroll-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--spring); }
.rc-hscroll-card:hover img { transform: scale(1.08); }
.rc-hscroll-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px 20px 20px;
  background: linear-gradient(transparent, rgba(0,8,30,0.95));
  color: #fff; font-size: 0.9rem; font-weight: 600;
}
/* Drag scroll arrows */
.rc-hscroll-arrows { display: flex; gap: 10px; padding: 0 60px; margin-bottom: 16px; }
.rc-hscroll-arrow { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: all 0.25s var(--spring); }
.rc-hscroll-arrow:hover { background: var(--rc-orange); border-color: var(--rc-orange); transform: scale(1.1); }

/* ─── 20. STICKY STACKED CARDS ───────────────────────────────── */
.rc-stack-wrap {
  position: relative;
}
.rc-stack-track {
  position: sticky;
  top: 100px;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.rc-stack-card {
  position: absolute;
  width: 100%;
  max-width: 820px;
  border-radius: 24px;
  padding: 40px 48px;
  background: rgba(0,18,72,0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.5s var(--smooth), opacity 0.4s;
  will-change: transform, opacity;
}
.rc-stack-card:nth-child(1) { z-index: 5; }
.rc-stack-card:nth-child(2) { z-index: 4; transform: scale(0.97) translateY(16px); opacity: 0.7; }
.rc-stack-card:nth-child(3) { z-index: 3; transform: scale(0.94) translateY(32px); opacity: 0.45; }

/* ─── 21. PARALLAX CONTAINERS ────────────────────────────────── */
[data-parallax] { will-change: transform; }
.rc-parallax-hero { overflow: hidden; }
.rc-parallax-hero .rc-parallax-img {
  position: absolute;
  inset: -15%;
  width: 130%;
  height: 130%;
  will-change: transform;
}
.rc-parallax-hero .rc-parallax-img img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ─── 22. SCROLLYTELLING HERO ────────────────────────────────── */
.rc-hero-scroll {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.rc-hero-scroll .rc-hero-bg {
  position: absolute;
  inset: 0;
  will-change: transform;
  transition: transform 0.1s linear;
}
.rc-hero-scroll .rc-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,12,50,0.85) 0%, rgba(0,8,30,0.6) 50%, rgba(0,12,50,0.8) 100%);
}
.rc-hero-scroll .rc-hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.rc-hero-content {
  position: relative;
  z-index: 2;
  will-change: transform, opacity;
}

/* ─── 23. STATS COUNTER ANIMATION ───────────────────────────── */
.rc-counter-val {
  display: inline-block;
  transition: all 0.1s;
}

/* ─── 24. SECTION ATMOSPHERE (dark sections) ─────────────────── */
.rc-dark-section {
  background: var(--rc-carbon);
  position: relative;
}
.rc-dark-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,94,21,0.5), transparent);
}
.rc-dark-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,94,21,0.3), transparent);
}

/* ─── 25. SPOTLIGHT ON FEATURE CARDS ─────────────────────────── */
.rc-spotlight {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,18,72,0.4);
  transition: border-color 0.3s, transform 0.4s var(--spring);
  padding: 32px;
}
.rc-spotlight::before {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,94,21,0.12) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(var(--mx, 0px), var(--my, 0px)) translate(-50%, -50%);
  left: 0; top: 0;
  transition: opacity 0.3s;
  opacity: 0;
}
.rc-spotlight:hover { border-color: rgba(255,94,21,0.25); transform: translateY(-4px); }
.rc-spotlight:hover::before { opacity: 1; }

/* ─── 26. PAGE TRANSITION OVERLAY ───────────────────────────── */
#rc-page-transition {
  position: fixed;
  inset: 0;
  background: var(--rc-midnight);
  z-index: 999999;
  transform: scaleY(0);
  transform-origin: top;
  pointer-events: none;
}
#rc-page-transition.rc-leaving {
  transform: scaleY(1);
  transition: transform 0.35s cubic-bezier(0.76, 0, 0.24, 1);
  transform-origin: bottom;
  pointer-events: all;
}
#rc-page-transition.rc-entering {
  transform: scaleY(0);
  transition: transform 0.35s cubic-bezier(0.76, 0, 0.24, 1);
  transform-origin: top;
}

/* ─── 27. BACK TO TOP (redesigned) ───────────────────────────── */
.back-to-top {
  position: fixed !important;
  bottom: 30px !important;
  right: 30px !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: rgba(0,18,72,0.8) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255,255,255,0.4) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.35s var(--spring) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
}
.back-to-top:hover {
  background: var(--rc-orange) !important;
  color: #fff !important;
  transform: translateY(-4px) scale(1.1) !important;
  border-color: var(--rc-orange) !important;
}

/* ─── 28. BLOG CARD ENHANCEMENTS ─────────────────────────────── */
.blog-item {
  border-radius: 16px !important;
  overflow: hidden;
  transition: transform 0.4s var(--spring), box-shadow 0.3s !important;
  border: 1px solid rgba(255,255,255,0.05) !important;
}
.blog-item:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25) !important;
}
.blog-item .blog-img { overflow: hidden; }
.blog-item .blog-img img { transition: transform 0.6s var(--spring) !important; }
.blog-item:hover .blog-img img { transform: scale(1.07) !important; }

/* ─── 29. TESTIMONIAL CARD GLOW ─────────────────────────────── */
.bg-white.p-4.border {
  border-radius: 16px !important;
  border: 1px solid rgba(0,22,89,0.08) !important;
  transition: all 0.4s var(--spring) !important;
}
.bg-white.p-4.border:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 50px rgba(0,22,89,0.12) !important;
  border-color: rgba(255,94,21,0.2) !important;
}

/* ─── 30. SMOOTH SCROLL OVERRIDE ────────────────────────────── */
html { scroll-behavior: smooth; }

/* ─── 31. SECTION DIVIDERS (decorative) ─────────────────────── */
.rc-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--rc-orange), transparent);
  border-radius: 2px;
  margin: 12px auto 0;
}
.rc-divider-left { margin: 12px 0 0; }

/* ─── 32. ANIMATED COUNTER NUMBERS ──────────────────────────── */
.rc-stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  font-family: 'Nunito Sans', sans-serif;
  background: linear-gradient(135deg, #fff 0%, var(--rc-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* ─── 33. FLOATING LABEL BADGE ───────────────────────────────── */
.rc-badge-float {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--rc-orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 30px;
  box-shadow: 0 4px 16px rgba(255,94,21,0.4);
  animation: rc-float-badge 3s ease-in-out infinite;
}
@keyframes rc-float-badge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}

/* ─── 34. SECTION TAGLINE STYLE ─────────────────────────────── */
.rc-tagline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
}
.rc-tagline::before {
  content: '';
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 1px;
}

/* ─── 35. MEDIA QUERIES FOR EFFECTS ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  #rc-cursor-dot, #rc-cursor-ring { display: none; }
  * { cursor: auto !important; }
}
@media (max-width: 575px) {
  .rc-hscroll-card { flex: 0 0 260px; height: 320px; }
  .rc-stack-card { padding: 24px; }
}

/* ─── ADDITIONAL BUG FIXES ─────────────────────────────────── */

/* BUG: style.css sets sticky-top top:0 !important which interferes
   with anything that had that class. Since we removed it from nav,
   we just need to ensure #rc-nav is never affected by sticky-top rules */
.sticky-top { top: 0 !important; }

/* BUG: page transition must never block clicks on initial load */
#rc-page-transition {
  display: none;
  pointer-events: none !important;
}
#rc-page-transition.rc-leaving {
  display: block;
  pointer-events: all !important;
}
#rc-page-transition.rc-entering {
  display: block;
  pointer-events: none !important;
}

/* BUG: cursor:none !important broke dropdown menus in some browsers
   because pointer-events need the OS cursor for touch events.
   Add explicit pointer-events auto to interactive elements */
a, button, input, select, textarea, label,
.btn, [role="button"], .dropdown-item, .navbar-toggler,
.carousel-control-prev, .carousel-control-next,
.carousel-indicators li, video {
  pointer-events: auto !important;
}

/* BUG: #rc-nav needs overflow:visible so dropdown menus show */
#rc-nav {
  overflow: visible !important;
}

/* BUG: service cards on service.html were clipping dropdown */
.service-item { overflow: visible; }

/* BUG: rc-kinetic on headings that already rendered text causes
   double-rendering if initKinetic runs twice. Safe guard: */
.rc-kinetic[data-kinetic-done] .rc-word { display: inline-block; }

/* BUG: body padding-top conflicts with pages that have a page-header hero */
.page-header { margin-top: 0 !important; }

/* BUG: bento service cards overflow on small screens */
@media (max-width: 575px) {
  .rc-service-bento { grid-template-columns: 1fr !important; }
  .rc-svc-card { min-height: 280px !important; }
}

/* BUG: horizontal scroll track arrows not visible on light bg */
.rc-hscroll-arrow {
  background: rgba(0, 22, 89, 0.15);
  border: 1px solid rgba(0, 22, 89, 0.25);
  color: var(--rc-navy);
}
.rc-hscroll-wrap ~ * .rc-hscroll-arrow,
[style*="040b20"] .rc-hscroll-arrow {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: #fff;
}

/* ─── 26. TESTIMONIALS — HORIZONTAL CAROUSEL CARDS ────────────── */
.rc-testi-track { padding: 6px 60px 30px; }
.rc-testi-card {
  flex: 0 0 340px;
  height: 300px;
  background: #f6f7f9;
  border: 1px solid rgba(0,0,0,0.07) !important;
  border-radius: 16px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.rc-testi-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); }
.rc-testi-avatar {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--rc-orange);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem;
}
.rc-testi-stars { color: var(--rc-orange); font-size: 0.85rem; }
.rc-testi-quote {
  color: #5b6472;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
}
@media (max-width: 575px) {
  .rc-testi-card { flex: 0 0 280px; height: 320px; }
}

/* ─── 27. VIDEO HERO (home) ──────────────────────────────────── */
/* Alto original restablecido (100vh / 640-980px). La reducción del 30%
   solo se había pedido para los heroes de FAQ y Contacto (rc-hero-compacto,
   ver sección 2b más arriba); acá se había aplicado por error y se revierte. */
.rc-video-hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    max-height: 980px;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.rc-video-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 1;
    transition: opacity 0.6s ease;
}
.rc-video-hero-bg.is-active-hidden {
    opacity: 0;
}
.rc-video-hero-bg--reel {
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}
.rc-video-hero-bg--reel.is-active {
    opacity: 1;
    pointer-events: auto;
}
.rc-video-hero-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.7s ease;
}
.rc-video-hero-poster.is-hidden {
    opacity: 0;
    pointer-events: none;
}
/* En escritorio el poster arranca invisible (sin transición, sin parpadeo).
   Sólo se hace visible si el video tarda/falla en arrancar (clase .is-visible
   agregada por JS como red de seguridad); en ese caso sí se anima la entrada. */
@media (min-width: 992px) {
    .rc-video-hero-poster {
        opacity: 0;
        transition: opacity 0.35s ease;
    }
    .rc-video-hero-poster.is-visible {
        opacity: 1;
    }
}
/* Scrim eliminado por preferencia: el video queda 100% natural.
   La legibilidad del texto se apoya sólo en text-shadow. */
.rc-video-hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    padding: 0 60px;
}
.rc-video-hero-bar {
    width: 5px;
    height: 58px;
    background: var(--bs-secondary);
    border-radius: 3px;
    margin-bottom: 26px;
}
.rc-video-hero-title {
    color: #fff;
    font-family: "Nunito Sans", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(2.6rem, 5.2vw, 4.4rem);
    line-height: 1.08;
    margin-bottom: 26px;
    text-shadow: 0 2px 18px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.55);
}
.rc-video-hero-subtitle {
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.55;
    max-width: 540px;
    margin-bottom: 40px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.6);
}
.rc-video-hero-btn {
    display: inline-block;
    border-radius: 6px;
    padding: 15px 36px;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 30px;
}
.rc-video-hero-scrolldown {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.55);
    width: fit-content;
}
.rc-video-hero-scrolldown:hover { color: #fff; opacity: 0.85; }
.rc-video-hero-scrolldown i { animation: rc-video-hero-bounce 1.8s ease-in-out infinite; }
@keyframes rc-video-hero-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}
@media (max-width: 991.98px) {
    .rc-video-hero { height: 100svh; min-height: 560px; }
    .rc-video-hero-content { padding: 0 28px; max-width: 100%; }
    .rc-video-hero-subtitle { font-size: 1.05rem; max-width: 100%; }
}
@media (max-width: 575.98px) {
    .rc-video-hero-title { font-size: clamp(2.1rem, 9vw, 2.8rem); }
    .rc-video-hero-btn { padding: 13px 26px; font-size: 0.95rem; }
}
