/* GENERAL */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.7;
  font-size: 1.05rem;
  background: #ececec;
  color: #1f1f1f;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 20px;
  background: #111111;
  color: #f5f5f5;
  font-size: 0.85rem;
  letter-spacing: 0.2px;
}

.top-bar a {
  color: #f5f5f5;
  text-decoration: none;
  margin-left: 12px;
}

.top-bar-left {
  font-weight: 600;
}

.top-bar-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 14px;
  }

  .top-bar-right {
    gap: 8px;
  }

  .top-bar a {
    margin-left: 0;
  }

  /* Modificado para celular: ajustar logo y navegación en pantallas pequeñas */
  .navbar {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 12px 14px;
    gap: 12px;
  }

  .logo {
    height: 82px;
    max-height: 82px;
  }

  .navbar a {
    font-size: 0.95rem;
  }
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 2px 14px rgba(0,0,0,0.12);
}

.navbar a {
  text-decoration: none;
  color: #111111;
  font-weight: 600;
}

.logo-link {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.logo {
  height: 130px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
}

/* HERO */
.hero {
  min-height: 100vh;
  padding: 120px 20px 140px;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url("../assets/fondo.jpg.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

/* CONTENIDO */
.hero-content {
  max-width: 760px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 4.2rem;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.hero-content p {
  font-size: 1.35rem;
  margin-bottom: 32px;
  color: #f5f5f5;
}

.nav-contact {
  color: #1f1f1f;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

/* BOTONES */
.buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn {
  padding: 14px 24px;
  background: #b22222;
  color: white;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: #8f1b1b;
}

.btn-secundario {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 1000;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.05);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  display: block;
}

.section {
  padding: 110px 24px;
  text-align: center;
  background: linear-gradient(180deg, #f4f4f4 0%, #e9e9e9 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #d8d8d8;
}

.section-alt {
  background: linear-gradient(180deg, #f7f7f7 0%, #ececec 100%);
}

.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  text-align: left;
}

.about-content h2 {
  text-align: left;
  margin-bottom: 18px;
}

.about-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  object-fit: cover;
  min-height: 320px;
}

@media (max-width: 800px) {
  .about-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-content h2 {
    text-align: center;
  }
}

.section h2 {
  margin-bottom: 12px;
  color: #111111;
  font-size: 2.2rem;
}

.section p {
  max-width: 760px;
  margin: 0 auto;
  color: #4b4b4b;
  font-size: 1.12rem;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 240px));
  gap: 24px;
  width: 100%;
  max-width: 980px;
  margin: 30px auto 20px;
  justify-content: center;
  justify-items: center;
}

@media (max-width: 600px) {
  .works-grid {
    grid-template-columns: 1fr;
  }
}

.work-card {
  background: #fdfdfd;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,0.1);
  text-align: center;
  width: 100%;
  max-width: 240px;
  border: 1px solid #dddddd;
}

.work-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.work-card h3 {
  padding: 14px 12px 6px;
  margin: 0;
  color: #1f1f1f;
  font-size: 1.08rem;
}

.work-btn {
  display: inline-block;
  margin: 8px 12px 16px;
  padding: 8px 12px;
  background: #b22222;
  color: white;
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.work-btn:hover {
  background: #8f1b1b;
}

