/* ===== BASE ===== */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family: Futura, Arial, sans-serif;
  background:#ffffff;              /* ✅ FONDO BLANCO */
  color:#111;                      /* ✅ TEXTO OSCURO */
  overflow-x:hidden;
}

/* Scroll suave */
html{ scroll-behavior:smooth; }

/* Evita que el header tape secciones */
#top, #servicios, #portfolio, #contacto{
  scroll-margin-top:90px;
}

/* ===================== HEADER (TODO FIJO) ============================ */
.header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background: rgba(247,247,247,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* ===== TOP BAR ===== */
.topbar {
  width: 100%;
  background: #0e9edc;
  border-bottom: 4px solid #e23731;
  font-size: 11px;
}

.topbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.topbar-item:hover {
  color: #0f172a;
}

.topbar-item .icon {
  font-size: 14px;
  line-height: 1;
}

/* ===== HEADER CONTENT ===== */
.header-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 3px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Logo */
.logo{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #000000;
  flex: 0 0 auto;
}

.logo-img{
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.logo-text{
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* Nav */
.nav{
  flex: 1;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 15px;
}

.nav-link{
  text-decoration: none;
  color: #000000;
  font-weight: 500;
  padding: 0px 10px;
  border-radius: 10px;
  transition: 0.2s ease;
}

.nav-link:hover{
  color: #E23731;
  background: rgba(0,0,0,0.04);
}

/* ====================================== HERO FULL ============================== */
.hero-full{
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Imagen */
.hero-bg{
  width: 100%;
  height: clamp(360px, 48vw, 600px);
  object-fit: cover;
  display: block;
}

/* Overlay */
.hero-overlay{
  position: absolute;
  inset: 0;
}

/* Degradado suave para legibilidad */
.hero-overlay::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.20) 35%,
    rgba(0,0,0,0.05) 60%,
    transparent 80%
  );
}

/* ===== BLOQUE TEXTO ===== */
.hero-text{
  position: absolute;
  left: clamp(16px, 5vw, 80px);
  top: 40%;
  transform: translateY(-50%);
  width: min(600px, 50%);
  text-align: center;
  color: #fff;
  z-index: 2;
  margin-right: 10px;
  margin-top: 110px;
}

/* Título responsive */
.hero-title{
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 54px);
  line-height: 1.05;
  font-weight: 800;
  text-shadow: 0 4px 18px rgba(0,0,0,0.45);
}

/* Subtítulo responsive */
.hero-subtitle{
  margin: 0 0 22px;
  font-size: clamp(15px, 1.6vw, 20px);
  max-width: 900px;
  text-shadow: 0 3px 12px rgba(0,0,0,0.45);
}

/* ===== CTA CENTRADO CON EL TEXTO ===== */
.hero-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 55px; /* súbelo o bájalo aquí */

  background: #e11d48;
  color: #fff;
  text-decoration: none;
  font-weight: 800;

  padding: 14px 22px;
  border-radius: 12px;
  font-size: clamp(14px, 1.2vw, 16px);

  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
  transition: transform 0.25s ease, background 0.25s ease;
}

.hero-cta:hover{
  background: #be123c;
  transform: translateY(-2px);
}

/* móvil */
@media (max-width: 768px){
  .hero-text{
    width: 90%;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    text-align: center;
  }
}

/* ===== SOBRE NOSOTROS HOME ===== */

.about-home{
  padding: 50px 20px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.about-container{
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
  align-items: start;
}

/* FILA SUPERIOR: título ocupa todo */
.about-heading{
  grid-column: 1 / -1;
  text-align: left;
}

.about-eyebrow{
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #e11d48;
}

.about-heading h2{
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  color: #0f172a;
  max-width: none;
}

/* BLOQUE IZQUIERDO */
.about-text{
  max-width: none;
  justify-self: start;
}

.about-text p{
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.75;
  color: #64748b;
  max-width: 58ch;
}

/* BLOQUE DERECHO */
.about-stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.stat{
  background: rgba(255,255,255,0.92);
  padding: 28px 22px;
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 16px 35px rgba(15,23,42,0.06);
  text-align: center;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.stat:hover{
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(15,23,42,0.10);
  border-color: rgba(225,29,72,0.16);
}

.stat-number{
  display: block;
  margin-bottom: 8px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1;
  color: #e11d48;
}

.stat-text{
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: #64748b;
}

/* ===== Responsive ===== */

@media (max-width: 900px){
  .about-home{
    padding: 70px 16px;
  }

  .about-container{
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-heading{
    grid-column: auto;
  }

  .about-text{
    max-width: 100%;
  }

  .about-stats{
    grid-template-columns: 1fr;
  }
}
/* ===== SERVICIOS HOME ===== */
/* =================================== SERVEIS + EDIFICI DECORATIU =================================== */

.services-showcase{
  padding: 20px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  overflow: hidden;
}

.services-showcase-container{
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
  align-items: stretch;
}

/* ===== TÍTOL SUPERIOR ===== */

.services-heading{
  grid-column: 1 / -1;
  text-align: left;
}

.services-eyebrow{
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #e11d48;
}

.services-title{
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  color: #0f172a;
  max-width: none;
}

/* ========= ESQUERRA ========= */

.services-content{
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 720px;
}

.services-description{
  margin: 0 0 15px;
  max-width: 58ch;
  font-size: 17px;
  line-height: 1.75;
  color: #64748b;
  margin-top: -70px;
}

.services-cards{
  display: grid;
  gap: 18px;
}

.service-box{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 22px;
  padding: 24px 24px 22px;
  box-shadow: 0 16px 35px rgba(15,23,42,0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.service-box:hover{
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(15,23,42,0.10);
  border-color: rgba(225,29,72,0.16);
}

.service-box h3{
  margin: 0 0 10px;
  font-size: 24px;
  color: #0f172a;
}

.service-box p{
  margin: 0 0 16px;
  color: #475569;
  line-height: 1.65;
  font-size: 15px;
}

.service-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e11d48;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, color 0.2s ease;
}

.service-link::after{
  content: "→";
  transition: transform 0.2s ease;
}

.service-link:hover{
  color: #be123c;
}

.service-link:hover::after{
  transform: translateX(4px);
}

/* ========= DRETA ========= */

.services-visual{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 720px;
}

.building-wrapper{
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 720px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* ombra */
.building-wrapper::after{
  content: "";
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 78%;
  height: 30px;
  background: radial-gradient(circle, rgba(15,23,42,0.18), transparent 72%);
  filter: blur(10px);
}

/* edifici fons */
.building-back{
  position: absolute;
  right: 70px;
  bottom: 70px;
  width: 210px;
  height: 520px;
  border-radius: 28px 28px 10px 10px;
  background: linear-gradient(180deg, #334155 0%, #0f172a 100%);
  opacity: 0.16;
  animation: buildingBackFloat 6s ease-in-out infinite;
}

/* edifici principal */
.building-main{
  position: absolute;
  right: 120px;
  bottom: 45px;
  width: 280px;
  height: 610px;
  border-radius: 28px 28px 14px 14px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  box-shadow: 0 28px 50px rgba(15,23,42,0.18);
  overflow: hidden;
  animation: buildingFrontFloat 5s ease-in-out infinite;
}

.roof-line{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #e11d48, #fb7185);
}

/* grid finestres */
.windows-grid{
  position: absolute;
  top: 42px;
  left: 32px;
  right: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 14px;
}

.window{
  position: relative;
  display: block;
  height: 84px;
  border-radius: 14px;
  background: linear-gradient(180deg, #93c5fd 0%, #dbeafe 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,0.18),
    0 0 18px rgba(147,197,253,0.20);
  animation: glowWindow 3.8s ease-in-out infinite;
  overflow: hidden;
}

.window:nth-child(2),
.window:nth-child(5),
.window:nth-child(8),
.window:nth-child(11){
  animation-delay: .6s;
}

.window:nth-child(3),
.window:nth-child(6),
.window:nth-child(9),
.window:nth-child(12){
  animation-delay: 1.2s;
}

/* siluetes animades */
.person-window::before{
  content: "";
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 16px;
  height: 34px;
  transform: translateX(-50%);
  background: rgba(15,23,42,0.35);
  border-radius: 10px 10px 6px 6px;
}

.person-window::after{
  content: "";
  position: absolute;
  bottom: 36px;
  left: 50%;
  width: 16px;
  height: 16px;
  transform: translateX(-50%);
  background: rgba(15,23,42,0.38);
  border-radius: 50%;
}

.person-1{
  animation: glowWindow 3.8s ease-in-out infinite, personMove 2.8s ease-in-out infinite;
}

.person-2{
  animation: glowWindow 3.8s ease-in-out infinite 1s, personMove2 3.4s ease-in-out infinite;
}

/* porta */
.building-door{
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 66px;
  height: 96px;
  border-radius: 16px 16px 6px 6px;
  background: linear-gradient(180deg, #475569 0%, #1e293b 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.08);
}

/* aparells exteriors */
.ac-box{
  position: absolute;
  width: 62px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fafc 0%, #cbd5e1 100%);
  box-shadow: 0 10px 20px rgba(15,23,42,0.15);
}

.ac-box::before{
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 12px;
  height: 4px;
  border-radius: 999px;
  background: #64748b;
}

.ac-box-1{
  right: 28px;
  top: 190px;
}

.ac-box-2{
  right: 18px;
  top: 330px;
}

/* línies d’aire */
.air-line{
  position: absolute;
  width: 86px;
  height: 24px;
  border-top: 2px solid rgba(59,130,246,0.45);
  border-radius: 50%;
  opacity: 0;
}

.air-line-1{
  right: 74px;
  top: 198px;
  animation: airWave 2.3s infinite;
}

.air-line-2{
  right: 64px;
  top: 338px;
  animation: airWave 2.3s infinite .6s;
}

/* ========= ANIMACIONS ========= */

@keyframes buildingFrontFloat{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-10px); }
}

@keyframes buildingBackFloat{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(8px); }
}

@keyframes glowWindow{
  0%,100%{
    box-shadow:
      inset 0 0 0 2px rgba(255,255,255,0.18),
      0 0 12px rgba(147,197,253,0.16);
  }
  50%{
    box-shadow:
      inset 0 0 0 2px rgba(255,255,255,0.24),
      0 0 24px rgba(147,197,253,0.30);
  }
}

@keyframes personMove{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-4px); }
}

@keyframes personMove2{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(3px); }
}

@keyframes airWave{
  0%{
    transform: translateX(0) scale(0.9);
    opacity: 0;
  }
  20%{
    opacity: 1;
  }
  100%{
    transform: translateX(-40px) scale(1.08);
    opacity: 0;
  }
}

/* ========= RESPONSIVE ========= */

@media (max-width: 1100px){
  .services-showcase-container{
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-heading{
    grid-column: auto;
  }

  .services-content,
  .services-visual{
    min-height: auto;
  }

  .services-visual{
    order: -1;
  }

  .building-wrapper{
    max-width: 420px;
    height: 600px;
  }

  .building-main{
    right: 80px;
    width: 240px;
    height: 500px;
  }

  .building-back{
    width: 180px;
    height: 420px;
    right: 40px;
  }

  .windows-grid{
    top: 34px;
    left: 26px;
    right: 26px;
    gap: 14px 10px;
  }

  .window{
    height: 66px;
  }
}

@media (max-width: 640px){
  .services-showcase{
    padding: 70px 16px;
  }

  .services-title{
    font-size: clamp(30px, 8vw, 42px);
  }

  .services-description{
    font-size: 16px;
  }

  .service-box{
    padding: 20px 18px;
  }

  .building-wrapper{
    max-width: 300px;
    height: 430px;
  }

  .building-main{
    right: 45px;
    width: 180px;
    height: 350px;
    bottom: 32px;
  }

  .building-back{
    width: 130px;
    height: 280px;
    right: 18px;
    bottom: 45px;
  }

  .windows-grid{
    top: 24px;
    left: 18px;
    right: 18px;
    gap: 10px 8px;
  }

  .window{
    height: 46px;
    border-radius: 10px;
  }

  .building-door{
    width: 44px;
    height: 64px;
  }

  .ac-box{
    width: 44px;
    height: 22px;
  }

  .ac-box-1{
    right: 4px;
    top: 110px;
  }

  .ac-box-2{
    right: 0;
    top: 200px;
  }

  .air-line-1{
    right: 32px;
    top: 116px;
  }

  .air-line-2{
    right: 28px;
    top: 206px;
  }
}

/* ========================= FRANJA DE LOGOS INFINITA ========================= */
.logo-strip{
  width: 100%;
  overflow: hidden;
  background: #ffffff;
  padding: 28px 0;
  border-top: 1px solid rgba(15,23,42,0.06);
  border-bottom: 1px solid rgba(15,23,42,0.06);
  position: relative;
}

.logo-strip-track{
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: logoScroll 28s linear infinite;
}

.logo-item{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
}

.logo-item img{
  max-height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
  opacity: 0.75;
  filter: grayscale(100%);
  transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

.logo-item img:hover{
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.04);
}

/* difuminado en bordes */
.logo-strip::before,
.logo-strip::after{
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.logo-strip::before{
  left: 0;
  background: linear-gradient(to right, #ffffff 0%, rgba(255,255,255,0) 100%);
}

.logo-strip::after{
  right: 0;
  background: linear-gradient(to left, #ffffff 0%, rgba(255,255,255,0) 100%);
}

@keyframes logoScroll{
  from{
    transform: translateX(0);
  }
  to{
    transform: translateX(-50%);
  }
}

/* responsive */
@media (max-width: 768px){
  .logo-strip{
    padding: 22px 0;
  }

  .logo-strip-track{
    gap: 40px;
    animation-duration: 22s;
  }

  .logo-item{
    min-width: 110px;
  }

  .logo-item img{
    max-height: 34px;
  }
}
/* ========================= FOOTER ========================= */

.site-footer{
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  color: #e2e8f0;
  padding: 50px 20px 30px;
  margin-top: 50px;
  position: relative;
  overflow: hidden;
}

.site-footer::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #e11d48, #fb7185);
}

.footer-container{
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* TOP */
.footer-top{
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.8fr 1fr;
  gap: 34px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Marca */
.footer-brand h3{
  margin: 0 0 16px;
  font-size: 30px;
  line-height: 1.1;
  color: #ffffff;
}

.footer-brand p{
  margin: 0;
  color: #94a3b8;
  line-height: 1.8;
  font-size: 15px;
  max-width: 38ch;
}

/* Titulares columnas */
.footer-links h4,
.footer-contact h4,
.footer-cta-box h4{
  margin: 0 0 16px;
  font-size: 18px;
  color: #ffffff;
}

/* Listas */
.footer-links ul,
.footer-contact ul{
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-contact li{
  margin-bottom: 12px;
}

.footer-links a,
.footer-contact a{
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover{
  color: #ffffff;
}

/* CTA box */
.footer-cta-box{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.footer-cta-label{
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(225,29,72,0.14);
  color: #fb7185;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-cta-box p{
  margin: 0 0 18px;
  color: #94a3b8;
  line-height: 1.7;
  font-size: 15px;
}

.footer-cta-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 12px;
  background: #e11d48;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.25s ease, background 0.25s ease;
}

.footer-cta-btn:hover{
  background: #be123c;
  transform: translateY(-2px);
}

/* BOTTOM */
.footer-bottom{
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom p{
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

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

.footer-legal a{
  color: #64748b;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-legal a:hover{
  color: #ffffff;
}

/* Responsive */
@media (max-width: 1100px){
  .footer-top{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px){
  .site-footer{
    padding: 60px 16px 26px;
  }

  .footer-top{
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-brand h3{
    font-size: 26px;
  }

  .footer-cta-box{
    padding: 20px;
    border-radius: 20px;
  }

  .footer-bottom{
    flex-direction: column;
    align-items: flex-start;
  }
}