
:root {
    --primary: #ffe15c;
    --accent: #594d36;
    --background: #000414;
    --text: #f3eaea;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--text);
    
}

main.main-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

header {
    background-color: var(--accent);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

header h1 {
    margin: 0;
    color: var(--primary);

}
main h2, main h3 {
  color: var(--accent);
}

nav a {
    color: white;
    margin-left: 1rem;
    text-decoration: none;
    font-weight: bold;
    display: block;
    margin: 0.5rem 0;
}

.hero h2 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary); /* Acento sutil: solo el título */
}

.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text);
}

.hero {
  /*background-image: url('./assets/imag1.jpg');*/ /* Imagen inicial */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text);
  transition: background-image 0.5s ease-in-out;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero button {
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background-color: var(--primary);
  color: var(--background);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.hero button:hover {
  background-color: var(--accent);
  color: var(--text);
}

#change-bg-btn {
  position: absolute;
  top: 50%;          
  right: 1rem;       
  transform: translateY(-50%); 
  background-color: var(--primary);
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
}
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 30px;
    line-height: 60px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
    
  }

 .whatsapp-btn,
.whatsapp-btn i {
  text-decoration: none;
}

  .whatsapp-btn:hover {
    background-color: #128C7E;
  }

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    background-color: white;
}

.service {
    background-color: var(--background);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.service h3 {
    color: var(--primary);
}

.contact {
    padding: 2rem;
    background-color: #e9ecef;
}

.contact form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.contact input,
.contact textarea,
.contact button {
    margin-bottom: 1rem;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contact button {
    background-color: var(--primary);
    color: var(--accent);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    cursor: pointer;
}


#reponse {
  display: none;              
  padding: 12px 20px;
  margin-top: 15px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  max-width: 400px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 0;
  transform: translateY(-10px);
}


#reponse.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 1rem;
}

.service video {
  width: 100%;       
  height: auto;      
  border-radius: 8px; 
  display: block;    
  margin-bottom: 1rem; 
  object-fit: cover; 
}

.swiper {
  width: 100%;
  height: auto;
}

@media (min-width: 600px) {
  nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
  }

  nav a {
    display: inline-block;
    margin: 0;
  }
}


@media (min-width: 600px) {
  nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
  }

  nav a {
    display: inline-block;
    margin: 0;
  }
}

@media (min-width: 900px) {
  .services {
    grid-template-columns: repeat(3, 1fr);
  }
}
