/* ==========================================
   TIPOGRAFÍA GLOBAL POPPINS
   ========================================== */
html, body, * {
  font-family: 'Poppins', sans-serif;
}

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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: #222;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ==========================================
   TOPBAR ROJA CON ICONOS SVG BLANCOS
   ========================================== */
.topbar {
  background: #d30000;
  color: #ffffff;
  font-size: 14px;
  padding: 7px 0;
}

.topbar-content {
  display: flex;
  justify-content: flex-end;   /* alineado a la derecha */
  align-items: center;
  gap: 28px;
}

.topbar-item {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.topbar-item svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

/* Responsive topbar */
@media (max-width: 600px) {
  .topbar-content {
    justify-content: center;
    flex-direction: column;
    gap: 6px;
  }
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.logo {
  height: 58px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  font-size: 16px;
}

.nav-links a:hover {
  color: #ff2525;
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  position: relative;
  background: url("hero.webp") center/cover no-repeat;
  padding: 110px 0 120px;
  color: #ffffff;
}

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

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-content {
  max-width: 600px;
}

.subtitulo {
  background: #ff2525;
  padding: 6px 14px;
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 20px;
}

.hero h1 {
  font-size: 45px;
  line-height: 1.2;
  margin-bottom: 10px;
  font-weight: 900;
}

.checklist {
  margin: 15px;
}

.checklist li {
  list-style: "✔ ";
  margin: 4px 0 0 9px;
  font-size: 16px;
}

.numero {
  font-size: 20px;
  margin-top: 15px;
  font-weight: 500;
}

/* Formulario del hero */
.form-box {
  background: rgba(0, 0, 0, 0.78);
  padding: 25px 22px;
  border-radius: 8px;
  width: 360px;
}

.form-box h4 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 500;
}

.form-box input,
.form-box textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 9px 10px;
  border-radius: 4px;
  border: 1px solid #444;
  background: #111;
  color: #ffffff;
  font-size: 14px;
}

.form-box textarea {
  min-height: 80px;
  resize: vertical;
}

.form-box input::placeholder,
.form-box textarea::placeholder {
  color: #b9b9b9;
}

.form-box button {
  width: 100%;
  background: #ff2525;
  color: #ffffff;
  padding: 11px;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

.form-box button:hover {
  background: #e01818;
}

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}
/* ==========================================
   NOSOTROS / SERVICIOS
   ========================================== */
.nosotros {
  padding: 70px 0;
  background: #ffffff;
}

.nosotros-layout {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.nosotros-texto {
  flex: 1 1 320px;
}

.mini-logo {
  height: 70px;
  margin-bottom: 10px;
}

.nosotros h2 {
  font-size: 30px;
  margin-bottom: 10px;
  font-weight: 900;
}

.nosotros p {
  margin-bottom: 15px;
  line-height: 1.5;
  font-size: 16px;
}

.bullet-list {
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.4;
}

.bullet-list li {
  margin-bottom: 5px;
}

.nosotros-imgs {
  flex: 1 1 280px;
  display: flex;
  justify-content: center;
}

.nosotros-imgs img {
  max-width: 100%;
  border-radius: 5px;
}

/* ==========================================
   NUESTROS TRABAJOS
   ========================================== */
.trabajos {
  padding: 70px 0;
  background: #fafafa;
  text-align: center;
}

.trabajos h2 {
  font-size: 26px;
  margin-bottom: 5px;
  font-weight: 600;
}

.trabajos p {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

.galeria {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.galeria img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 5px;
}

/* ==========================================
   CONTACTO NUEVO
   ========================================== */

.contacto {
  background: #000000;
  color: #ffffff;
  padding: 100px 0;
  background-image: url("contacto-bg.webp");
  background-size: cover;
  background-position: center;
  position: relative;
}

.contacto::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.60);
}

.contacto-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* -------- IZQUIERDA -------- */

.contact-left h2 {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 35px;
}

.c-item {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}

.c-icon svg {
  width: 48px;
  height: 48px;
  margin-right: 18px;
}

.c-text h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #ff2525;
}

.c-text p {
  font-size: 17px;
  opacity: .9;
}

/* -------- FORMULARIO -------- */

.contact-right {
  background: rgba(0,0,0,0.75);
  padding: 30px 35px 40px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

.contact-right h3 {
  font-size: 20px;
  margin-bottom: 18px;
  font-weight: 500;
}

.contact-right input,
.contact-right textarea {
  width: 100%;
  border: 1px solid #444;
  background: #111;
  padding: 12px 14px;
  color: #fff;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 15px;
}

.contact-right textarea {
  min-height: 110px;
  resize: none;
}

.contact-right button {
  width: 100%;
  padding: 14px;
  background: #ff2525;
  color: #fff;
  border: none;
  font-size: 17px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.contact-right button:hover {
  background: #d00000;
}

/* -------- MOBILE -------- */

@media (max-width: 900px) {
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-left h2 {
    font-size: 38px;
  }
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
  background: #000;
  color: #ffffff;
  text-align: center;
  padding: 15px;
  font-size: 13px;
}

/* Margen para secciones ancladas (que no queden tapadas por el menú) */
section {
  scroll-margin-top: 80px;
}
footer a {
  color: #ff2525;   /* rojo marca */
  font-weight: 600;
  text-decoration: none;
}

footer a:hover {
  color: #ff4747;   /* rojo más claro en hover */
  text-decoration: underline;
}


/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-box {
    width: 100%;
    max-width: 380px;
    margin-top: 20px;
  }

  .contact-form-wrapper {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .nav-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero {
    padding: 90px 0 80px;
  }

  .hero h1 {
    font-size: 26px;
  }
}