html {
  scroll-behavior: smooth;
}

body {
  cursor: none;
}

:root {
  --primary-color: #ec6624;
  --navbar-color: #d6d6d6;
  --card-color: #e6e6e6;
  --dark-color: #333;
  --light-color: #fff;
  --bg-color: #f4f4f4;
}

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

body {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;

  color: var(--dark-color);
  line-height: 1.6;
  background: var(--light-color);
}

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

.header {
  background: var(--navbar-color);
  padding: 20px 0;
  position: fixed;
  width: 100%;
  z-index: 1000;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.header.visible {
  transform: translateY(0);
  opacity: 1;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo h1 {
  color: var(--light-color);
}
.nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
.nav ul li a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
  transition: opacity 0.3s;
}
.nav ul li a:hover {
  opacity: 0.8;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 25px;
  margin: 4px 0;
  background: var(--light-color);
  transition: all 0.3s ease;
}

/* Animación del burger al activarse */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Estilos responsive para el nav */
@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 70px;
    right: 20px;
    width: 200px;
    background: var(--navbar-color);
    padding: 20px;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none;
  }
  .nav.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }
  .nav ul {
    flex-direction: column;
  }
  .nav ul li {
    margin-bottom: 10px;
  }
  .menu-toggle {
    display: flex;
  }
}

.logo img {
  width: 150px;
  height: auto;
}

.logo-img {
  color: var(--primary-color);
}
.logo img :hover {
  filter: brightness(0) invert(1);
}

.hero {
  position: relative;
  background: url(assets/banner.aad3168c853ae15cbd3e.jpeg) no-repeat center center/cover;
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding-top: 80px;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgb(139 139 139 / 50%),
    rgb(139 139 139 / 55%)
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--light-color);
}
.hero h2 {
  font-family: var(--font-primary);
  font-size: 3rem;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}
.btn {
  background: var(--primary-color);
  border: none;
  padding: 12px 25px;
  color: var(--light-color);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
  text-decoration: none;
  border-radius: 4px;
}
.btn:hover {
  background: var(--card-color);
}

.section-title {
  text-align: center;
  font-family: var(--font-primary);
  font-size: 2.5rem;
  margin-bottom: 50px;
}

.servicios {
  padding: 100px 0 60px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.service-card {
  background: var(--card-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}
.service-card:hover {
  transform: translateY(-10px);
}
.service-card img {
  max-height: 250px;
  object-fit: cover;
  width: 100%;
  display: block;
}
.service-card h3 {
  margin: 15px;
  font-size: 1.5rem;
}
.service-card p {
  margin: 0 15px 15px;
  font-size: 0.95rem;
}

.portafolio {
  padding: 100px 0 60px;
  background: var(--bg-color);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.portfolio-item {
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s;
}
.portfolio-item img {
  width: 100%;
  display: block;
  max-height: 290px;
  height: 100%;
}

img {
  transition: transform 0.3s ease, filter 0.3s ease;
  will-change: transform, filter;
  backface-visibility: hidden;
}

img:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.contacto {
  padding: 100px 0 60px;
  text-align: center;
}
.contact-form {
  max-width: 600px;
  margin: auto;
  text-align: left;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

/* Sección de Catálogo */
.catalogo {
  padding: 80px 0;
  text-align: center;
  background: var(--light-color);
}

/* Footer */
.footer {
  background: var(--dark-color);
  color: var(--light-color);
  padding: 30px 0;
  text-align: center;
}

/* Cursor personalizado completo */
#cursor,
#cursor-follow {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.1s ease;
}
#cursor {
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
#cursor-follow {
  width: 32px;
  height: 32px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

#cursor.input-focus {
  background: var(--card-color);
  transform: translate(-50%, -50%) scale(1.2);
}
#cursor-follow.input-focus {
  border-color: var(--card-color);
  transform: translate(-50%, -50%) scale(0.9);
}
@media (max-width: 768px) {
  #cursor,
  #cursor-follow {
    display: none;
  }
  body {
    cursor: auto;
  }
}

/* Mensajes de validación */
.error-message {
  color: var(--primary-color);
  font-size: 0.9rem;
  margin-top: 5px;
  display: block;
}
#form-message {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 1.1rem;
  display: none;
  border-radius: 4px;
}
#form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
#form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Animaciones */
.animate {
  opacity: 0;
  transform: translateY(20px);
  animation-fill-mode: forwards;
  animation-duration: 0.8s;
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.fadeInDown {
  animation-name: fadeInDown;
  animation-delay: 0.2s;
}
.fadeInUp {
  animation-name: fadeInUp;
  animation-delay: 0.4s;
}
.slideInUp {
  animation-name: slideInUp;
}
.zoomIn {
  animation-name: zoomIn;
}

/* Responsividad */
@media (max-width: 768px) {
  .nav ul {
    flex-direction: column;
    display: none;
  }
  .nav.active ul {
    display: flex;
  }
  .menu-toggle {
    display: flex;
  }
  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .hero h2 {
    font-size: 2rem;
  }
}

.footer .social-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  text-align: center;
}

.footer .social-links a {
  margin: 0 10px;
  display: inline-block;
}

.footer .social-links img {
  height: auto;
  transition: filter 0.3s;
}

