/* 🔷 Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  color: #1a1a1a;
  overflow-x: hidden;
  line-height: 1.6;
}

/* 🔷 Header con altura fija y fondo negro */
header {
  height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  background-color: #000;
  position: relative;
  z-index: 1000;
}

.logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  margin-right: auto;
}

.logo img {
  max-height: 320%;
  width: auto;
}

.tagline {
  font-size: 0.75rem;
  color: #ccc;
  margin-top: 6px;
}

/* 🔷 Menú horizontal en escritorio */
nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  color: #d97706;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #b45309;
}

/* 🔷 Botón hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #fff;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* 🔷 Responsive para móviles */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    padding-top: 6rem;
    text-align: center;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  nav ul.active {
    transform: translateY(0);
  }

  nav ul li {
    margin: 2rem 0;
  }

  nav ul li a {
    font-size: 1.6rem;
  }

  body.menu-open {
    overflow: hidden;
  }

  .tagline {
    font-size: 0.65rem;
    text-align: center;
  }

  .separador {
    font-size: 1.4rem;
    margin: 30px 0 10px;
  }

  .separador::before,
  .separador::after {
    width: 25px;
  }
}

/* 🔷 Sección principal */
.service-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 4rem 2rem;
}

.service {
  background-color: #fff;
  color: #1a1a1a;
  padding: 2rem;
  border-radius: 8px;
  max-width: 300px;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  display: block;
}

.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.service h3 {
  margin-bottom: 1rem;
  color: #d97706;
}

/* 🔷 Separadores visuales */
.separador {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
  color: #d97706;
  margin: 40px 0 20px;
  width: 100%;
  position: relative;
}

.separador::before,
.separador::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 2px;
  background-color: #d97706;
  margin: 0 10px;
  vertical-align: middle;
}

/* 🔷 Footer */
footer {
  text-align: center;
  padding: 2rem;
  background-color: #e5e5e5;
  font-size: 0.9rem;
  color: #555;
}

/* 🔷 Botón */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #ff6b00;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: #e65c00;
  transform: translateY(-2px);
}

/* 🔷 Formulario de contacto */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 16px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #ff6b00;
  outline: none;
}

.contact-form button.btn {
  align-self: flex-start;
}

/* 🔷 WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  bottom: 70px;
  right: 50px;
  width: 48px;
  height: 48px;
  z-index: 1000;
}

.whatsapp-float img {
  width: 200%;
  height: auto;
  display: block;
}
.portfolio-section {
  padding: 4rem 2rem;
  background-color: #fff;
  text-align: center;
}

.portfolio-section h2 {
  color: #d97706;
  margin-bottom: 1rem;
}

.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.portfolio-item {
  max-width: 210px;
  text-align: center;
}

.portfolio-item img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.portfolio-item img:hover {
  transform: scale(1.05);
}

.portfolio-item h4 {
  margin-top: 1rem;
  color: #333;
}

.portfolio-item p {
  font-size: 0.9rem;
  color: #666;
}
