/* === RESET GENERAL === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #f1f1f1;
  background-color: #1a1a1a;
  overflow-x: hidden;
  padding-top: 70px; /* compensar header fijo */
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* === HEADER === */
header {
  background-color: #ff4b00;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
}

.logo {
  max-width: 160px;
  height: auto;
}

.navbar {
  display: flex;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #fff;
  font-weight: 700;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 0.8;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* === MENÚ RESPONSIVO === */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .navbar {
    display: none;
    flex-direction: column;
    background-color: #ff4b00;
    position: fixed;
    top: 70px;
    right: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    padding: 2rem 0;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
  }

  .navbar.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  body.menu-open {
    overflow: hidden; /* evita mover el fondo */
  }
}

/* === HERO === */
.hero {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url('hero.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 6rem 0;
  background-attachment: fixed;
}

.hero h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #ff4b00, #ff8c00, #ff4b00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200%;
  animation: gradientMove 4s infinite alternate;
}

@keyframes gradientMove {
  from { background-position: 0%; }
  to { background-position: 100%; }
}

.hero-logo {
  width: clamp(220px, 25vw, 380px);
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.6));
}

/* === SERVICIOS === */
.services {
  padding: 4rem 0;
  text-align: center;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: #262626;
  padding: 2rem;
  border-radius: 10px;
  border-top: 4px solid transparent;
  background-image: linear-gradient(#262626, #262626),
                    linear-gradient(90deg, #ff4b00, #ff8c00);
  background-origin: border-box;
  background-clip: content-box, border-box;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* === GALERÍA === */
.images {
  padding: 4rem 0;
  text-align: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.4s ease, box-shadow 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.5);
}

/* === CONTACTO === */
.contact {
  padding: 4rem 0;
  background: #202020;
  text-align: center;
}

.contact a {
  color: #ff4b00;
}

.mapa {
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  animation: fadeIn 1.2s ease;
}

.mapa iframe {
  width: 100%;
  height: 400px;
  border: none;
}

@media (max-width: 768px) {
  .mapa iframe {
    height: 300px;
  }
}

/* === FOOTER === */
footer {
  background: #111;
  color: #ccc;
  padding: 2rem 0;
  text-align: center;
}

footer .socials a {
  margin: 0 0.5rem;
  color: #ff4b00;
}

/* === WHATSAPP === */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  z-index: 100;
  animation: pulse 2s infinite;
}

.whatsapp-float img {
  width: 45px;
  height: 45px;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(37,211,102, 0.4); }
  70% { transform: scale(1.1); box-shadow: 0 0 15px rgba(37,211,102, 0.3); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(37,211,102, 0.4); }
}

/* === ANIMACIONES SCROLL === */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}
/* --- HEADER FIJO Y SIN SALTO EN MÓVIL --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ff4b00;
  z-index: 1000;
  transition: background 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

body {
  margin: 0;
  padding-top: 80px; /* evita que el contenido quede bajo el header fijo */
}

/* --- TARJETAS (SERVICIOS) --- */
.card {
  background: #1e1e1e;
  border-radius: 20px;
  margin: 20px auto;
  padding: 25px 20px;
  max-width: 90%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* --- Borde degradado más fino y elegante --- */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(90deg, #ff4b00, #ff8c00);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* --- Texto interno --- */
.card h3, .card h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 12px;
}

.card p, .card li {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #ccc;
}

/* --- LISTAS --- */
.card ul {
  list-style: none;
  padding-left: 0;
}

.card ul li::before {
  content: "•";
  color: #ff6a00;
  margin-right: 8px;
}

/* --- RESPONSIVO --- */
@media (min-width: 768px) {
  .card {
    max-width: 700px;
    padding: 30px;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 20px 16px;
    max-width: 92%;
  }
  .card h3, .card h4 {
    font-size: 1rem;
  }
  .card p {
    font-size: 0.9rem;
  }
}