/****************** page defaults ******************/

body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
}

.fixed-width {
  width: 600px;
  margin: 0 auto;
  /* centers content on the screen */
}

.hidden {
  display: none;
  /* hides elements that are needed for DOM */
}

.flex {
  display: flex;
}

/****************** typography ******************/

h1,
h2,
a {
  font-family: 'Roboto Slab', serif;
}


/*** INSERT YOUR WORK BELOW: ***/

h1 {
  font-size: 32px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
  font-weight: bold;
}

footer {
  font-size: 12px;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header a {
  color: white;
}

p,
h2 {
  margin-bottom: 15px;
}

/****************** site-wide styling ******************/
/*** INSERT YOUR WORK BELOW: ***/

header,
footer {
  background-color: #111827;
  box-shadow: 0 2px 8px rgba (0, 0, 0, 0.3);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;

  display: flex;
  justify-content: center;
  align-items: center;

  background-color: #111827;
  padding: 10px;
  margin-bottom: 0;

  gap: 400px;
  /* si usas esto en desktop */
}

header img {
  width: 130px;
  height: 130px;
}

nav a {
  margin-right: 30px;
  font-size: 25px;

}

main {
  margin-top: 150px;
}

/* ===== FOOTER REDISEÑADO PREMIUM ===== */
.fc-footer {
  background: #111827;
  padding: 60px 10% 30px;
  color: #e5e7eb;
}

.fc-footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 50px;
  max-width: 1400px;
  margin: auto;
}

.fc-footer-col {
  flex: 1;
  min-width: 260px;
}

.fc-footer-logo {
  width: 110px;
  margin-bottom: 12px;
}

.fc-footer-col h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
  letter-spacing: 1px;
}

.fc-footer-contact {
  font-size: 15px;
  line-height: 1.6;
}

/* Social icons */

.fc-footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Centra título + iconos */
  justify-content: center;
  text-align: center;
}

.footer-social {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2 columnas */
  gap: 18px;
  justify-items: center;
  margin-top: 25px;
}

.footer-social a i {
  font-size: 36px;
  color: white;
  transition: 0.25s ease;
}

.footer-social a i:hover {
  transform: scale(1.25);
  color: #e63946;
  /* rojo cemento como tu marca */
}

/* Gallery */
.fc-footer-gallery {
  display: grid;
  grid-template-columns: repeat(2, 75px);
  gap: 10px;
}

.fc-footer-gallery img {
  width: 75px;
  height: 75px;
  object-fit: cover;
  border-radius: 6px;
  transition: 0.3s ease;
}

.fc-footer-gallery img:hover {
  transform: scale(1.08);
}

/* Bottom text */
.fc-footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #111827;
  font-size: 14px;
  color: #9ca3af;
}

/* === BOTÓN SVG ELEGANTE === */
.svg-btn {
  position: fixed;
  bottom: 35px;
  right: 35px;
  width: 55px;
  height: 55px;
  background: #0a2a52;
  color: white;
  border-radius: 50%;
  border: none;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  transition: all .3s ease;
  z-index: 9999;
}

.svg-btn:hover {
  transform: translateY(-5px);
  background: #133b74;
}

/************************************************* ===== SERVICES SECTION ===== *****************************************/
.services-hero {
  position: relative;
  width: 100%;
  height: 80vh;
  background-image: url('../images/servicespage.jpg');
  /* <-- aquí tu imagen */
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.services-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.services-hero-title {
  position: relative;
  z-index: 2;
  color: white;
  font-size: 48px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 800;
  text-align: center;
}

/***************************************************************** VIDEO SECTION **********************************/
/* ================= SERVICES MAIN LAYOUT ================= */
.services-main {
  background: #ffffff;
  padding-bottom: 80px;
}

/* CONTENEDOR PRINCIPAL: VIDEO + TEXTO */
.what-we-do {
  display: flex;
  align-items: stretch;
  /* 🔥 Hace que ambos tengan la misma altura */
  gap: 40px;
  padding: 60px 10%;
}

/* VIDEO */
.what-video video {
  width: 100%;
  height: 100%;
  /* 🔥 Coincide con la altura del texto */
  object-fit: cover;
  /* Mantiene proporción sin distorsión */
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* TEXTO */
.what-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* 🔥 Centra todo verticalmente */
  text-align: center;
  /* 🔥 Centra el texto */
}

.what-text h2 {
  font-size: 42px;
  margin-bottom: 20px;
}

.what-text p,
.what-text li {
  font-size: 20px;
  line-height: 1.6;
}

.services-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.services-list li {
  margin-bottom: 10px;
}

/* ===== PORTFOLIO / OUR WORK ===== */
.fc-portfolio {
  padding: 80px 10%;
  background: #ffffff;
  text-align: center;
}

.fc-portfolio .fc-title {
  font-size: 40px;
  font-weight: 800;
  color: #0a2a52;
  margin-bottom: 10px;
}

.fc-portfolio .fc-subtitle {
  font-size: 18px;
  color: #444;
  margin-bottom: 50px;
}

/* Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pf-item {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.pf-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: 0.3s ease;
}

.pf-item:hover img {
  transform: scale(1.07);
}

/* Responsive */
@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .pf-item img {
    height: 220px;
  }
}

/* ===== HEADER MOBILE – FIX DEFINITIVO ===== */
@media (max-width: 1100px) {

  header {
    padding: 24px 24px !important;
    min-height: 130px !important;
    gap: 0 !important;

    justify-content: flex-start !important;
    align-items: center !important;
  }

  header img {
    margin-left: 50px !important;
    /* ⬅️ mueve el logo a la derecha */
    width: 130px !important;
    height: auto !important;
  }

  nav {
    margin-left: 80px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  nav ul.flex {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;

    gap: 28px !important;
    white-space: nowrap !important;
  }

  nav a {
    font-size: 24px !important;
    line-height: 1 !important;
    margin-right: 0 !important;

    white-space: nowrap !important;
  }

  main {
    margin-top: 150px !important;
  }
}