:root{
  --rf-red:#BE1622;
  --rf-blue:#1D71B8;
  --rf-solar:#F39200;
  --rf-ink:#0B1220;
  --rf-soft:#F5F8FC;
  --rf-line:#E7ECF5;
  --rf-white:#FFFFFF;
  --rf-muted:#667085;
  --header-h:88px;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  padding:0;
  height:100%;
}

body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--rf-ink);
  background:#fff;
}

body.quote-drawer-open{
  overflow:hidden;
}

.page-wrap{
  overflow:hidden;
}

/* HEADER */

.rf-navbar{
  min-height:var(--header-h);
  max-height:100px;
  background:rgba(255,255,255,.86)!important;
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--rf-line);
}

.rf-navbar-wrap{
  min-height:var(--header-h);
}

.rf-brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}

.rf-brand img{
  width:auto;
  height:auto;
  max-width:550px;
  max-height:280px;
  object-fit:contain;
  display:block;
}

.rf-brand span{
  color:var(--rf-ink);
  font-weight:800;
  font-size:1rem;
  line-height:1;
}

.navbar .nav-link{
  color:rgba(11,18,32,.82)!important;
  font-weight:700;
}

.navbar .nav-link:hover{
  color:var(--rf-blue)!important;
}

.lang-pill{
  display:flex;
  align-items:center;
  gap:2px;
  background:#fff;
  border:1px solid var(--rf-line);
  border-radius:999px;
  padding:3px;
}

.lang-pill a{
  text-decoration:none;
  color:rgba(11,18,32,.70);
  padding:6px 10px;
  border-radius:999px;
  font-size:.82rem;
  font-weight:800;
}

.lang-pill a.active{
  background:rgba(29,113,184,.10);
  color:var(--rf-ink);
}

.btn-rf-nav{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  background:var(--rf-solar);
  color:#fff;
  font-weight:800;
  padding:12px 18px;
  border-radius:14px;
}

.btn-rf-nav:hover{
  opacity:.95;
  color:#fff;
}

/* HERO */

.rf-hero{
  position:relative;
  height:calc(100svh - var(--header-h));
  min-height:calc(100svh - var(--header-h));
  overflow:hidden;
  background:#000;
}

.rf-hero-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.rf-hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(11,18,32,.78) 0%, rgba(11,18,32,.48) 48%, rgba(11,18,32,.58) 100%),
    radial-gradient(circle at 18% 18%, rgba(29,113,184,.18), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(243,146,0,.12), transparent 28%);
}

.rf-hero-inner{
  position:relative;
  z-index:2;
  height:100%;
}

.rf-hero-grid{
  min-height:calc(100svh - var(--header-h));
  display:grid;
  grid-template-columns:1.2fr .8fr;
  align-items:center;
  gap:34px;
}

.rf-hero-copy{
  max-width:760px;
}

.rf-eyebrow{
  display:inline-block;
  margin-bottom:14px;
  color:#d6e8ff;
  font-size:.80rem;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.rf-eyebrow.dark{
  color:var(--rf-blue);
}

.rf-hero-copy h1{
  margin:0 0 18px;
  color:#fff;
  font-size:clamp(2.4rem,5vw,5rem);
  line-height:1.02;
  letter-spacing:-.04em;
  font-weight:950;
  max-width:11ch;
}

.rf-hero-copy p{
  margin:0 0 28px;
  color:rgba(255,255,255,.88);
  font-size:1.08rem;
  line-height:1.8;
  max-width:58ch;
}

.rf-hero-actions,
.rf-inline-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.btn-rf-primary,
.btn-rf-secondary,
.btn-rf-outline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight:900;
  border-radius:14px;
  padding:14px 22px;
}

.btn-rf-primary{
  background:linear-gradient(135deg,var(--rf-solar),#ffb84d);
  color:#241400;
}

.btn-rf-primary:hover{
  color:#241400;
  transform:translateY(-1px);
}

.btn-rf-secondary{
  color:#fff;
  border:1px solid rgba(255,255,255,.26);
  background:rgba(255,255,255,.08);
}

.btn-rf-secondary:hover{
  color:#fff;
  background:rgba(255,255,255,.14);
}

.btn-rf-outline{
  color:var(--rf-ink);
  border:1px solid var(--rf-line);
  background:#fff;
}

.btn-rf-outline:hover{
  color:var(--rf-ink);
  background:var(--rf-soft);
}

.rf-hero-card{
  max-width:420px;
  margin-left:auto;
  padding:28px;
  border-radius:24px;
  background:linear-gradient(180deg, rgba(29,113,184,.24), rgba(190,22,34,.26));
  border:1px solid rgba(255,255,255,.16);
  backdrop-filter:blur(12px);
  color:#fff;
}

.rf-hero-card-kicker{
  display:inline-block;
  margin-bottom:12px;
  color:#ffd9aa;
  font-size:.75rem;
  letter-spacing:.16em;
  font-weight:900;
  text-transform:uppercase;
}

.rf-hero-card h3{
  margin:0 0 16px;
  font-size:1.5rem;
  line-height:1.15;
  font-weight:900;
}

.rf-hero-card ul{
  margin:0;
  padding-left:18px;
  line-height:1.9;
  color:rgba(255,255,255,.90);
}

/* SECTIONS */

.rf-section{
  padding:88px 0;
}

.rf-section-soft{
  background:var(--rf-soft);
  border-top:1px solid var(--rf-line);
  border-bottom:1px solid var(--rf-line);
}

.rf-section-head{
  max-width:760px;
  margin-bottom:34px;
}

.rf-section-head h2{
  margin:0 0 14px;
  font-size:clamp(1.9rem,3vw,3rem);
  line-height:1.08;
  font-weight:950;
  letter-spacing:-.03em;
}

.rf-section-head p{
  margin:0;
  color:var(--rf-muted);
  line-height:1.8;
}

.rf-cards-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.rf-card{
  background:#fff;
  border:1px solid var(--rf-line);
  border-radius:24px;
  padding:28px 24px;
  box-shadow:0 18px 50px rgba(11,18,32,.06);
}

.rf-card-icon{
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:linear-gradient(135deg, rgba(29,113,184,.10), rgba(243,146,0,.14));
  margin-bottom:16px;
  font-size:1.2rem;
}

.rf-card h3{
  margin:0 0 10px;
  font-size:1.1rem;
  font-weight:900;
}

.rf-card p{
  margin:0;
  color:var(--rf-muted);
  line-height:1.75;
}

/* SPLIT */

.rf-split{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:28px;
  align-items:start;
}

.rf-split-copy h2{
  margin:0 0 14px;
  font-size:clamp(1.9rem,3vw,3rem);
  line-height:1.08;
  font-weight:950;
  letter-spacing:-.03em;
}

.rf-split-copy p{
  margin:0;
  color:var(--rf-muted);
  line-height:1.8;
}

.rf-inline-actions{
  margin-top:22px;
}

.rf-split-panels{
  display:grid;
  gap:16px;
}

.rf-mini-panel{
  padding:24px 22px;
  border-radius:22px;
  background:#fff;
  border:1px solid var(--rf-line);
  box-shadow:0 18px 50px rgba(11,18,32,.06);
}

.rf-mini-panel strong{
  display:block;
  margin-bottom:8px;
  font-size:1.02rem;
}

.rf-mini-panel span{
  color:var(--rf-muted);
  line-height:1.7;
}

/* CTA BAND */

.rf-cta-band{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:34px 30px;
  border-radius:28px;
  background:linear-gradient(135deg, rgba(29,113,184,.07), rgba(243,146,0,.09), rgba(190,22,34,.07));
  border:1px solid var(--rf-line);
}

.rf-cta-band h3{
  margin:8px 0 0;
  font-size:clamp(1.4rem,2.5vw,2.2rem);
  line-height:1.1;
  font-weight:950;
  letter-spacing:-.02em;
}

/* FOOTER */

.rf-footer{
  background:#09111d;
  color:#e8eef8;
  padding:28px 0;
}

.rf-footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}

.rf-footer-brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.rf-footer-brand img{
  height:50px;
  width:auto;
}

.rf-footer-brand strong{
  display:block;
  color:#fff;
}

.rf-footer-brand span{
  color:rgba(232,238,248,.70);
  font-size:.95rem;
}

.rf-footer-links{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
}

.rf-footer-links a{
  color:#fff;
  text-decoration:none;
}

/* DRAWER */

.quote-drawer-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.42);
  opacity:0;
  visibility:hidden;
  transition:.25s ease;
  z-index:1090;
}

.quote-drawer-overlay.active{
  opacity:1;
  visibility:visible;
}

.quote-drawer{
  position:fixed;
  top:0;
  right:-400px;
  width:100%;
  max-width:400px;
  height:100vh;
  background:var(--rf-red);
  color:#fff;
  z-index:1091;
  transition:right .30s ease;
  box-shadow:-18px 0 40px rgba(0,0,0,.24);
  display:flex;
  flex-direction:column;
}

.quote-drawer.active{
  right:0;
}

.quote-drawer-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:22px 20px 18px;
  border-bottom:1px solid rgba(255,255,255,.16);
  font-size:1.05rem;
  font-weight:900;
}

.quote-drawer-close{
  border:none;
  background:transparent;
  color:#fff;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}

.quote-drawer-body{
  padding:20px;
  overflow:auto;
}

.quote-drawer-text{
  margin:0 0 16px;
  color:rgba(255,255,255,.90);
  line-height:1.6;
}

.quote-form{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.quote-form input,
.quote-form textarea{
  width:100%;
  border:1px solid rgba(255,255,255,.16);
  border-radius:10px;
  padding:13px 14px;
  background:rgba(255,255,255,.10);
  color:#fff;
  outline:none;
}

.quote-form input::placeholder,
.quote-form textarea::placeholder{
  color:rgba(255,255,255,.78);
}

.quote-form textarea{
  resize:vertical;
  min-height:140px;
}

.quote-form button{
  border:none;
  border-radius:10px;
  padding:14px 18px;
  background:#fff;
  color:var(--rf-red);
  font-weight:900;
  cursor:pointer;
}

/* RESPONSIVE */

@media (max-width: 991.98px){
  :root{
    --header-h:78px;
  }

  .rf-brand img{
    height:46px;
  }

  .rf-hero{
    height:auto;
    min-height:calc(100svh - var(--header-h));
  }

  .rf-hero-grid{
    min-height:calc(100svh - var(--header-h));
    grid-template-columns:1fr;
    gap:24px;
    padding:34px 0;
  }

  .rf-hero-card{
    margin-left:0;
    max-width:100%;
  }

  .rf-cards-3{
    grid-template-columns:1fr;
  }

  .rf-split{
    grid-template-columns:1fr;
  }

  .rf-cta-band{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media (max-width: 576px){
  .quote-drawer{
    max-width:100%;
    right:-100%;
  }

  .rf-hero-copy h1{
    max-width:none;
  }
}
/* GALLERY / PROJECTS */

.rf-gallery-wrap{
  position:relative;
  display:flex;
  align-items:center;
  gap:14px;
}

.rf-gallery-track{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:calc(33.333% - 12px);
  gap:18px;
  overflow:hidden;
  scroll-behavior:smooth;
  width:100%;
}

.rf-gallery-item{
  border-radius:24px;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--rf-line);
  box-shadow:0 18px 50px rgba(11,18,32,.06);
  aspect-ratio: 4 / 3;
}

.rf-gallery-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .35s ease;
}

.rf-gallery-item:hover img{
  transform:scale(1.04);
}

.rf-gallery-btn{
  width:52px;
  height:52px;
  flex:0 0 52px;
  border:none;
  border-radius:50%;
  background:#fff;
  color:var(--rf-ink);
  font-size:2rem;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 18px 40px rgba(11,18,32,.10);
  border:1px solid var(--rf-line);
  cursor:pointer;
}

.rf-gallery-btn:hover{
  background:var(--rf-soft);
}

@media (max-width: 991.98px){
  .rf-gallery-track{
    grid-auto-columns:calc(50% - 10px);
  }
}

@media (max-width: 576px){
  .rf-gallery-wrap{
    gap:10px;
  }

  .rf-gallery-track{
    grid-auto-columns:100%;
    gap:14px;
  }

  .rf-gallery-btn{
    width:44px;
    height:44px;
    flex:0 0 44px;
    font-size:1.6rem;
  }
}
.rf-section-bg-partner {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
}
/* Overlay oscuro + tono tecnológico */
.rf-section-bg-partner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(5, 10, 25, 0.85),
    rgba(10, 20, 40, 0.75)
  );
  z-index: 1;
}

/* Opcional glow tecnológico */
.rf-section-bg-partner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(0,150,255,0.15), transparent 60%);
  z-index: 1;
}

/* Asegura que el contenido quede arriba */
.rf-section-bg-partner .container {
  position: relative;
  z-index: 2;
}

/* Texto blanco para contraste */
.rf-section-bg-partner h2,
.rf-section-bg-partner p,
.rf-section-bg-partner span,
.rf-section-bg-partner strong {
  color: #fff;
}

/* Panels con glass effect */
.rf-section-bg-partner .rf-mini-panel {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
}

/* LIGHTBOX GALLERY */

.rf-lightbox{
  position:fixed;
  inset:0;
  background:rgba(5,10,20,.94);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  z-index:999999;
  transition:opacity .25s ease, visibility .25s ease;
  padding:30px;
}

.rf-lightbox.active{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.rf-lightbox-img-wrap{
  position:relative;
  max-width:92vw;
  max-height:90vh;
  display:flex;
  align-items:center;
  justify-content:center;
}

.rf-lightbox img{
  display:block;
  max-width:92vw;
  max-height:90vh;
  width:auto;
  height:auto;
  object-fit:contain;
  border-radius:18px;
  box-shadow:0 40px 120px rgba(0,0,0,.60);
  background:#fff;
}

.rf-lightbox-close{
  position:absolute;
  top:18px;
  right:18px;
  width:54px;
  height:54px;
  border:none;
  border-radius:50%;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:1.8rem;
  line-height:1;
  cursor:pointer;
  z-index:2;
  backdrop-filter:blur(10px);
}

.rf-lightbox-close:hover{
  background:rgba(255,255,255,.2);
}

.rf-lightbox-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:58px;
  height:58px;
  border:none;
  border-radius:50%;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:2rem;
  line-height:1;
  cursor:pointer;
  z-index:2;
  backdrop-filter:blur(10px);
}

.rf-lightbox-nav:hover{
  background:rgba(255,255,255,.2);
}

.rf-lightbox-prev{
  left:18px;
}

.rf-lightbox-next{
  right:18px;
}

.rf-gallery-item img{
  cursor:zoom-in;
}

@media (max-width: 576px){
  .rf-lightbox{
    padding:16px;
  }

  .rf-lightbox-close{
    top:10px;
    right:10px;
    width:46px;
    height:46px;
    font-size:1.4rem;
  }

  .rf-lightbox-nav{
    width:46px;
    height:46px;
    font-size:1.5rem;
  }

  .rf-lightbox-prev{
    left:10px;
  }

  .rf-lightbox-next{
    right:10px;
  }
}
