/* ═══ FUENTES LOCALES ═══════════════════════════════════════════════ */

/* Eurostile Extended — títulos principales */
@font-face {
  font-family: 'Eurostile Extd';
  src: url('../fonts/Eurostile/fonts/fonnts.com-Eurostile_Extd.otf') format('opentype');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Eurostile Extd';
  src: url('../fonts/Eurostile/fonts/fonnts.com-Eurostile_Extd_Black.otf') format('opentype');
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

/* Area Extended — nav, botones, labels, títulos de cards */
@font-face {
  font-family: 'Area Extended';
  src: url('../fonts/Area/fonts/fonnts.com-Area_Extended_Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Area Extended';
  src: url('../fonts/Area/fonts/fonnts.com-Area_Extended_SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Area Extended';
  src: url('../fonts/Area/fonts/fonnts.com-Area_Extended_Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Area Extended';
  src: url('../fonts/Area/fonts/fonnts.com-Area_Extended_ExtraBold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Area Extended';
  src: url('../fonts/Area/fonts/fonnts.com-Area_Extended_Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Area Normal — cuerpo de texto, párrafos */
@font-face {
  font-family: 'Area Normal';
  src: url('../fonts/Area/fonts/fonnts.com-Area_Normal_Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Area Normal';
  src: url('../fonts/Area/fonts/fonnts.com-Area_Normal_SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Area Normal';
  src: url('../fonts/Area/fonts/fonnts.com-Area_Normal_Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ═══════════════════════════════════════════════════════
   RUCH Multiservicios — Estilos principales
   Versión: 1.0
   Autor: RUCH Multiservicios
═══════════════════════════════════════════════════════ */

/* ─── BASE & RESET ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #111835;
  --blue:   #0245C1;
  --yellow: #F7C114;
  --white:  #FFFFFF;
  --black:  #000000;
  --gray:   #F2F2F2;
  --shadow: 0px 4px 21.8px -5px rgba(0,0,0,.25);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Area Normal', sans-serif;
  color: var(--black);
  overflow-x: hidden;
  background: #fff;
}

.container {
  width: min(1260px, calc(100% - 48px));
  margin: 0 auto;
}

/* ─── HEADER ───────────────────────────────────────── */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 107px;
  display: flex;
  align-items: center;
  transition: background .3s, position .1s;
  background: linear-gradient(180deg, rgba(255,255,255,0.47) -12.48%, rgba(255,255,255,0) 100%);
}
.site-header.scrolled {
  position: fixed;
  background: rgba(17,24,53,.97);
  backdrop-filter: blur(8px);
}
.header-inner {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 80px;
}
.header-logo { height: 48px; width: auto; max-width: 220px; }

.nav { display: flex; align-items: center; }
.nav-links {
  display: flex; align-items: center;
  gap: 31px; list-style: none;
}
.nav-links a {
  font-family: 'Eurostile Extd', sans-serif;
  font-weight: 700; font-size: 15px;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--white); text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--yellow); }

.btn-cotiza {
  display: flex; align-items: center; justify-content: center;
  height: 90px; padding: 0 32px;
  background: rgba(0,0,0,.45);
  font-family: 'Eurostile Extd', sans-serif;
  font-weight: 700; font-size: 15px;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--white); text-decoration: none;
  transition: background .2s;
  white-space: nowrap; margin-left: 20px;
}
.btn-cotiza:hover { background: var(--blue); }

.hamburger {
  display: none; flex-direction: column;
  gap: 5px; cursor: pointer;
  padding: 4px; background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: white; transition: .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ─────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%; height: 100vh; min-height: 580px;
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../images/Home.jpg') center/cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(17,24,53,.35);
}
.hero-gradient { display: none; }
.hero-content {
  position: relative; z-index: 2;
  padding: 0 125px 80px;
  width: 100%;
}
.hero-title {
  font-family: 'Eurostile Extd', sans-serif;
  font-weight: 800;
  font-size: clamp(48px, 5.8vw, 90px);
  line-height: 1.05; text-transform: uppercase;
  color: var(--white); letter-spacing: .02em;
}
.hero-title-line1 { display: block; }
.hero-line {
  width: calc(100% + 125px + 20px);
  margin-left: -125px;
  height: 7px; background: var(--yellow);
  margin-top: 8px; margin-bottom: 6px;
}
.hero-title-line2 { display: block; }

/* ─── WHATSAPP FLOAT ───────────────────────────────── */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(0,0,0,.25);
  transition: transform .2s; text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 32px; height: 32px; fill: white; }

/* ─── QUIÉNES SOMOS ────────────────────────────────── */
.about {
  background: var(--white);
  padding: 85px 0;
}
.about-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 75px; align-items: center;
}
.about-img-wrap {
  width: 100%; overflow: hidden;
}
.about-img-wrap img {
  width: 100%; height: 480px;
  object-fit: cover; object-position: center;
  display: block;
}
.about-text { display: flex; flex-direction: column; gap: 5px; }
.about-eyebrow {
  font-family: 'Eurostile Extd', sans-serif;
  font-weight: 400; font-size: 15px;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--black); margin-bottom: 4px;
}
.about-title {
  font-family: 'Eurostile Extd', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 3vw, 44px);
  color: var(--blue); margin-bottom: 20px; line-height: 1.1;
}
.about-text p {
  font-size: 16px; line-height: 1.85;
  color: var(--black); margin-bottom: 16px;
}
.about-text p:last-child { margin-bottom: 0; }

/* ─── PROYECTOS: HEADER NAVY ───────────────────────── */
.projects-intro {
  background: var(--navy);
  padding: 72px 24px 260px;
  text-align: center;
}
.projects-intro-title {
  font-family: 'Eurostile Extd', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 4vw, 55px);
  text-transform: uppercase; letter-spacing: .02em;
  color: var(--white); margin-bottom: 16px;
}
.projects-intro-sub {
  font-size: 16px; line-height: 1.85;
  color: rgba(255,255,255,.75);
  max-width: 700px; margin: 0 auto;
}

/* ─── PROJECT BLOCKS ───────────────────────────────── */
.project-block {
  position: relative;
  background: var(--white);
}
.project-image {
  position: relative;
  width: 100%; height: 590px; overflow: hidden;
}
.project-image img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block;
}
/* Espacio para que el label azul no tape el contenido siguiente */
.project-block { padding-bottom: 0; }
.services-grid-wrap { padding-top: 80px; }
.project-block--first .project-image { margin-top: -200px; }

.project-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  background: var(--blue);
  padding: 26px 40px;
  text-align: center; z-index: 2;
}
.project-label span {
  font-family: 'Eurostile Extd', sans-serif;
  font-weight: 900;
  font-size: clamp(24px, 2.8vw, 40px);
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--white); display: block; line-height: 1.15;
}

/* ─── SERVICE GRIDS ────────────────────────────────── */
.services-grid-wrap {
  padding: 0 0 80px;
}
.services-grid--2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 50px; padding: 50px 0 0;
}
.services-grid--3 {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 35px; padding: 50px 0 0;
}
.services-grid--1 {
  display: flex; justify-content: center;
  padding: 50px 0 0;
}
.service-card {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 50px 60px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; min-height: 380px;
}
.service-card--wide {
  width: min(943px, 100%);
  min-height: 275px; padding: 50px 60px;
}
.service-card h3 {
  font-family: 'Eurostile Extd', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.2; color: var(--navy);
  margin-bottom: 14px;
}
.service-card p {
  font-size: 16px; line-height: 1.85; color: var(--black);
}

/* Mantenimiento overlap */
.project-block--mant .project-image { height: 714px; }
.project-block--mant .project-label { z-index: 4; }
.project-block--mant .services-grid-wrap {
  margin-top: 0; position: relative; z-index: 3;
  padding-top: 50px; padding-bottom: 60px;
}

/* ─── CONTACTO ─────────────────────────────────────── */
.contact {
  position: relative;
  background: url('../images/Form_Section.jpg') center/cover no-repeat;
  padding: 80px 0;
}
.contact-overlay {
  position: absolute; inset: 0;
  background: rgba(17,24,53,.70);
}
.contact-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.contact-title {
  font-family: 'Eurostile Extd', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3vw, 38px);
  text-transform: uppercase; line-height: 1.15;
  color: var(--white); margin-bottom: 20px;
}
.contact-sub {
  font-size: 18px; line-height: 1.8;
  color: var(--white); margin-bottom: 36px;
}
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info-item {
  display: flex; align-items: center; gap: 14px;
  font-size: 18px; color: var(--white);
  text-decoration: none; transition: color .2s;
}
.contact-info-item:hover { color: var(--yellow); }
.contact-icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-icon--mail { background: var(--yellow); }
.contact-icon--phone { background: var(--yellow); }
.contact-icon--mail svg, .contact-icon--phone svg { stroke: #fff; fill: none; }
.contact-icon svg { width: 22px; height: 22px; }

.contact-form {
  background: var(--white);
  padding: 35px 44px 50px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--black); margin-bottom: 7px;
}
.form-group input,
.form-group textarea {
  width: 100%; background: var(--gray);
  border: none; outline: none;
  padding: 16px 18px; font-size: 15px;
  font-family: 'Area Normal', sans-serif; color: var(--black);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #aaa; }
.form-group input:focus,
.form-group textarea:focus { background: #e8e8e8; }
.form-group textarea { height: 120px; resize: vertical; }
.btn-send {
  width: 100%; padding: 18px; background: var(--blue); border: none;
  font-family: 'Eurostile Extd', sans-serif;
  font-weight: 900; font-size: 18px;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--white); cursor: pointer; transition: background .2s;
}
.btn-send:hover { background: #0336a0; }

/* ─── FOOTER ───────────────────────────────────────── */
.footer { background: var(--navy); padding: 60px 0 0; }
.footer-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap; gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-logo { height: 52px; width: auto; max-width: 260px; margin-bottom: 22px; display: block; }
.footer-social { display: flex; gap: 18px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.footer-social a:hover { background: var(--blue); }
.footer-social svg { width: 16px; height: 16px; fill: white; }
.footer-contact-title {
  font-family: 'Area Normal', sans-serif;
  font-size: 20px; text-transform: uppercase;
  color: var(--white); margin-bottom: 18px;
}
.footer-contact-items { display: flex; flex-direction: column; gap: 8px; }
.footer-contact-item {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; font-size: 16px;
  color: rgba(255,255,255,.8); transition: color .2s;
}
.footer-contact-item:hover { color: var(--yellow); }
.footer-contact-item svg { color: var(--yellow); flex-shrink: 0; }
.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 28px 0 32px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer-bottom-divider {
  display: block;
  width: 1px; height: 18px;
  background: rgba(255,255,255,.25);
  flex-shrink: 0;
}
.footer-bottom p, .footer-bottom a {
  font-family: 'Area Normal', sans-serif;
  font-size: 15px; color: rgba(255,255,255,.65); text-decoration: none;
}
.footer-bottom a:hover { color: var(--white); }
.footer-bottom-links { display: flex; gap: 24px; }

/* ─── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 1024px) {
  .header-inner { padding: 0 40px; }
  .hero-content { padding: 0 40px 60px; }
  .services-grid--2 { gap: 30px; }
  .services-grid--3 { gap: 24px; }
  .service-card { padding: 36px 28px; }
}

@media (max-width: 768px) {

  /* ─── HEADER MOBILE ─── */
  .site-header {
    height: 80px;
    background: rgba(17,24,53,.35);
  }
  .header-inner { padding: 0 25px; }
  .header-logo { height: 46px; max-width: 148px; }
  .hamburger { display: flex; z-index: 999; }
  .btn-cotiza { display: none; }

  /* Menú desplegado */
  .nav-links {
    display: none; flex-direction: column;
    position: fixed; inset: 0;
    background: rgba(17,24,53,.95);
    justify-content: center; align-items: center;
    gap: 0; z-index: 998;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 35px;
    font-size: 14px; font-weight: 800;
  }

  /* ─── HERO MOBILE ─── */
  .hero { height: 471px; min-height: unset; }
  .hero-content {
    padding: 0 24px 60px;
    text-align: center;
    align-items: center;
    display: flex; flex-direction: column; justify-content: flex-end;
  }
  .hero-title {
    font-size: 25.6px;
    line-height: 1.08;
    text-align: center;
  }
  .hero-line {
    width: 290px;
    margin-left: 0;
    height: 2px;
    margin-top: 5px; margin-bottom: 5px;
  }

  /* ─── QUIÉNES SOMOS MOBILE ─── */
  .about { padding: 22px 0 0; }
  .about-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .about-img-wrap img {
    height: 162px;
    object-fit: cover;
  }
  .about-text {
    padding: 22px 32px 35px;
    align-items: center;
    text-align: center;
  }
  .about-eyebrow {
    font-size: 16px;
    letter-spacing: .3em;
    text-align: center;
  }
  .about-title {
    font-size: 28px;
    line-height: 1;
    text-align: center;
    margin-bottom: 10px;
  }
  .about-text p {
    font-size: 12px;
    line-height: 1.82;
    text-align: center;
    margin-bottom: 8px;
  }

  /* ─── NUESTROS PROYECTOS HEADER MOBILE ─── */
  .projects-intro {
    padding: 40px 72px 20px;
    background: var(--navy);
  }
  .projects-intro-title {
    font-size: 28px;
    line-height: 1.14;
    text-align: center;
    margin-bottom: 0;
  }
  .projects-intro-sub {
    font-size: 12px;
    line-height: 1.82;
    text-align: center;
    padding: 10px 32px 35px;
    max-width: 100%;
  }

  /* ─── PROJECT BLOCKS MOBILE ─── */
  .project-block--first .project-image { margin-top: 0; }
  .project-image { height: 248px; }
  .project-label {
    width: 275px;
    left: 50%; right: auto;
    transform: translateX(-50%);
    padding: 10px;
    bottom: 0;
  }
  .project-label span { font-size: 18px; letter-spacing: .05em; }

  .services-grid-wrap {
    padding: 0 50px 20px;
  }
  .services-grid--2,
  .services-grid--3 {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px 0 0;
  }
  .services-grid--1 { padding: 15px 0 0; }
  .service-card {
    min-height: 250px;
    padding: 24px 29px;
    box-shadow: 0px 1.92px 10.48px -2.4px rgba(0,0,0,.25);
  }
  .service-card h3 { font-size: 16px; line-height: 19px; margin-bottom: 10px; }
  .service-card p { font-size: 12px; line-height: 1.82; }
  .service-card--wide {
    min-height: 250px;
    width: 100%;
    padding: 24px 29px;
  }

  /* Mantenimiento mobile */
  .project-block--mant .project-image { height: 265px; }
  .project-block--mant .services-grid-wrap { margin-top: 0; padding-top: 15px; }

  /* ─── CONTACTO MOBILE ─── */
  .contact { padding: 0; }
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }
  .contact-left {
    padding: 40px 50px 30px;
    text-align: center;
    align-items: center;
    display: flex; flex-direction: column;
  }
  .contact-title {
    font-size: 17px;
    text-align: center;
    margin-bottom: 12px;
  }
  .contact-sub {
    font-size: 12px;
    line-height: 1.82;
    text-align: center;
    margin-bottom: 22px;
  }
  .contact-info { gap: 8px; align-items: center; }
  .contact-info-item { font-size: 12px; gap: 6px; }
  .contact-icon { width: 21px; height: 21px; }
  .contact-icon svg { width: 12px; height: 12px; }
  .contact-form {
    padding: 18px 23px 26px;
    width: 100%;
  }
  .btn-send { padding: 10px; font-size: 14px; }

  /* ─── FOOTER MOBILE ─── */
  .footer { padding: 30px 0 0; }
  .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
  }
  .footer-brand { align-items: center; display: flex; flex-direction: column; }
  .footer-logo { height: 47px; margin-bottom: 16px; }
  .footer-social { justify-content: center; }
  .footer-contact-title {
    font-size: 14px;
    text-align: center;
    margin-bottom: 10px;
  }
  .footer-contact-items { gap: 6px; align-items: flex-start; }
  .footer-contact-item { font-size: 10px; gap: 6px; }
  .footer-contact-item svg { width: 14px; height: 14px; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 0 20px;
  }
  .footer-bottom-divider { display: none; }
  .footer-bottom p, .footer-bottom a { font-size: 12px; text-align: center; }
  .footer-bottom-links { gap: 12px; }
}

