/* Reset & base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Barlow', Arial, sans-serif;
  background: #f7f7f7;
  color: #222;
  line-height: 1.6;
}

/* Header - delgado y hamburger a la izquierda */
.header {
  background: #222;
  color: #fff;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 10;
  min-height: 44px;
  gap: 18px;
}
.hamburger {
  display: none;
  font-size: 1.7rem;
  cursor: pointer;
  margin-right: 12px;
  margin-left: 0;
  padding: 2px 0;
  order: 0;
}
.logo {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 2px;
  order: 1;
}
.logo span {
  color: #f7b32b;
  font-weight: 300;
}
.nav {
  display: flex;
  gap: 18px;
  align-items: center;
  order: 2;
}
.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
  font-weight: 500;
  padding: 4px 0;
}
.nav a:hover {
  color: #f7b32b;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #222;
  overflow: hidden;
  flex-direction: column;
}
.hero-video-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.youtube-bg {
  width: 100vw;
  height: 56vw; /* Mantiene proporción 16:9 en escritorio */
  min-height: 220px;
  max-height: 100vh;
  pointer-events: none;
  filter: brightness(0.5) blur(1px);
  border: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  color: #fff;
  padding: 40px 20px;
  box-sizing: border-box;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fffbe7;
  text-shadow: 0 2px 8px #0006;
}
.hero p {
  font-size: 1.1rem;
  color: #ffe6b3;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 4px #0005;
}
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.btn {
  background: #f7b32b;
  color: #222;
  padding: 12px 28px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px #0002;
  margin-bottom: 8px;
  display: inline-block;
}
.btn:hover {
  background: #222;
  color: #f7b32b;
}
.btn-secondary {
  background: #fff;
  color: #222;
  border: 2px solid #f7b32b;
}
.btn-secondary:hover {
  background: #f7b32b;
  color: #222;
}

/* About Section */
.about {
  background: #fff;
  padding: 32px 0;
}
.about .container {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 16px;
  box-sizing: border-box;
}
.about .container img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px #0002;
  flex-shrink: 0;
}
.about .text {
  flex: 1;
}
.about h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #2d2d2d;
}
.about p {
  font-size: 1.1rem;
  color: #444;
}

/* Services Section */
.services {
  background: #f7f7f7;
  padding: 32px 0;
}
.services h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 24px;
  color: #222;
}
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.service-grid div {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px #0001;
  padding: 24px 18px;
  text-align: center;
  width: 180px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.service-grid div:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 6px 24px #0002;
}
.service-grid i {
  font-size: 2.2rem;
  color: #f7b32b;
  margin-bottom: 12px;
}
.service-grid p {
  font-size: 1.1rem;
  color: #222;
}

/* Projects Section */
.projects {
  background: #fff;
  padding: 32px 0;
}
.projects h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 24px;
  color: #222;
}
.project-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.project-gallery img {
  width: 100%;
  max-width: 320px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin: 10px;
  box-shadow: 0 2px 8px #0004;
}

/* Reviews Section */
.reviews {
  background: #f7f7f7;
  padding: 32px 0;
}
.reviews h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 24px;
  color: #222;
}
.review-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
blockquote {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px #0001;
  padding: 24px 18px;
  max-width: 340px;
  font-size: 1.1rem;
  color: #222;
  margin: 0;
}
blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 0.95rem;
  color: #f7b32b;
  font-style: normal;
}

/* Pricing Section */
.pricing {
  background: #fff;
  padding: 32px 0;
}
.pricing h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 24px;
  color: #222;
}
.pricing-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.pricing-cards div {
  background: #f7f7f7;
  border-radius: 16px;
  box-shadow: 0 2px 8px #0001;
  padding: 24px 18px;
  text-align: center;
  width: 220px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-cards div:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 6px 24px #0002;
}
.pricing-cards h3 {
  font-size: 1.3rem;
  color: #f7b32b;
  margin-bottom: 8px;
}
.pricing-cards p {
  font-size: 1.1rem;
  color: #222;
  margin-bottom: 10px;
}
.pricing-cards ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pricing-cards li {
  font-size: 1rem;
  color: #444;
  margin-bottom: 6px;
}

/* Contact Section */
.contact {
  background: #f7f7f7;
  padding: 32px 0;
}
.contact h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 24px;
  color: #222;
}
.contact form {
  max-width: 400px;
  margin: 0 auto 24px auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  padding: 24px 18px;
  border-radius: 12px;
  box-shadow: 0 2px 8px #0001;
}
.contact input,
.contact textarea {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 1rem;
  resize: vertical;
}
.contact button {
  background: #f7b32b;
  color: #222;
  border: none;
  border-radius: 24px;
  padding: 10px 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.contact button:hover {
  background: #222;
  color: #f7b32b;
}
.contact .info {
  max-width: 400px;
  margin: 0 auto;
  background: #fff;
  padding: 18px 14px;
  border-radius: 12px;
  box-shadow: 0 2px 8px #0001;
  font-size: 1rem;
  color: #222;
}
.contact .info p {
  margin-bottom: 8px;
}
.contact .info a {
  color: #f7b32b;
  text-decoration: none;
}
.socials {
  display: flex;
  gap: 16px;
  margin: 12px 0;
}
.socials a {
  color: #222;
  font-size: 1.5rem;
  transition: color 0.2s;
}
.socials a:hover {
  color: #f7b32b;
}

/* Footer */
.footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 32px 0 24px 0;
}
.footer p {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.footer .btn {
  margin-top: 8px;
}

/* Animaciones de entrada al hacer scroll */
.animate {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(.77,0,.18,1), transform 0.8s cubic-bezier(.77,0,.18,1);
  will-change: opacity, transform;
}
.animate.visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 900px) {
  .about .container {
    flex-direction: column;
    gap: 18px;
    padding: 18px 6px;
    text-align: center;
  }
  .about .container img {
    width: 90px;
    height: 90px;
  }
  .about h2 {
    font-size: 1.3rem;
  }
  .about p {
    font-size: 1rem;
  }
  .service-grid {
    gap: 14px;
  }
  .service-grid div {
    width: 140px;
    padding: 18px 10px;
  }
  .project-gallery img {
    max-width: 100%;
    height: 140px;
  }
  .pricing-cards {
    gap: 14px;
  }
  .pricing-cards div {
    width: 140px;
    padding: 18px 10px;
  }
}

@media (max-width: 700px) {
  .header {
    flex-direction: row;
    padding: 4px 4px;
    gap: 8px;
    min-height: 36px;
  }
  .hamburger {
    display: block;
    font-size: 1.5rem;
    margin-right: 8px;
    margin-left: 0;
    padding: 2px 0;
    align-self: flex-start;
  }
  .logo {
    font-size: 1rem;
  }
  .nav {
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
    display: none;
    background: #222;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    padding: 12px 0;
    z-index: 99;
  }
  .nav.active {
    display: flex;
  }
  .nav a {
    font-size: 0.95rem;
    padding: 8px 0;
    width: 100vw;
    text-align: left;
    padding-left: 18px;
    border-bottom: 1px solid #333;
  }
  /* HERO: El video cubre todo el fondo en móviles, aunque se recorte */
  .hero {
    min-height: 100vh;
    height: 100vh;
    padding: 0;
    position: relative;
    overflow: hidden;
  }
  .hero-video-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
  }
  .youtube-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120vw;
    height: 120vh;
    min-width: 100vw;
    min-height: 100vh;
    max-width: none;
    max-height: none;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: brightness(0.5) blur(1px);
    border: none;
  }
  .hero-content {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px 8px;
    z-index: 2;
    width: 100vw;
    height: 100vh;
      }
}