/* Reset y base */
* { margin:0; padding:0; box-sizing:border-box; font-family:'Montserrat', sans-serif; scroll-behavior:smooth; }
/* Elimina el recuadro azul al tocar elementos en móviles */
* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none; /* opcional: evita el menú al mantener presionado */
}

body { background:#f5f5f5; color:#000;   transition: opacity 0.5s ease;}

/* Loader completo */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
}

#loader.hidden {
  z-index: 0;
  pointer-events: none;
}

/* Logo del loader */
.loader-logo {
  width: 150px;
  border-radius: 50%;
  animation: pulse 1.5s infinite; /* opcional: efecto pulso */
}

.menu-toggle {
  display: none;
}

/* Navbar */
header img {
  height: 5%;
  width: 5%;
}

#navbar {
  position:fixed; 
  top:0; 
  left:0; 
  width:100%;
  color:#fff;
  opacity: 99%;
  display:flex; 
  justify-content:space-between; 
  align-items:center;
  padding:1rem 2rem; z-index:1000;
}

#navbar.scrolled {
  background: #fff;
  box-shadow:0 4px 10px rgba(0,0,0,0.3);
  color: #000;
}

#navbar.scrolled a {
  color: #000
}

#navbar.scrolled a:hover {
  color: #00c46c;
}

#navbar.scrolled .logo {
  color: #000
}


.logo {
  font-weight:700; 
  font-size:1.8rem; 
  color:#fff; 
}

nav a { 
  text-decoration: none; 
  margin:0 1rem; 
  font-weight:500; 
  transition:0.3s; 
  color:#fff; 
}

nav a:hover { color:#00c46c; }

.btn-contratar { 
  background:#00c46c; 
  color:#000; 
  padding:0.5rem 1rem; 
  border-radius:6px;
  border: none; 
  font-weight:600; 
  transition:0.3s; 
}

.btn-contratar:hover { 
  transform:translateY(-2px); 
  box-shadow:0 6px 12px rgba(0,0,0,0.3); 
}

/* Secciones */
.section { 
  min-height:100vh; 
  display:flex; 
  flex-direction:column; 
  justify-content:center; 
  align-items:center; 
  text-align:center; 
  position:relative; 
  padding:100px 20px; 
  opacity:0; 
  transform: translateY(50px); 
  transition: all 0.8s ease; 
}

.section.show {
  opacity:1; 
  transform: translateY(0); 
}

/* Hero Inicio */
.hero { 
  background: linear-gradient(135deg, #0a0a0a 30%, #00c76f 100%);
  color: #fff; 
  overflow:hidden;
}

.hero-content { 
  z-index:1;
  position:relative; 
  max-width:800px; 
}

.hero h1 { 
  font-size:3rem; 
  margin-bottom:1rem; 
}

.h1-resaltado {
  color: #00c46c
}

.hero p { 
  font-size:1.3rem; 
  margin-bottom:2rem; 
}

.hero button { 
  background:#00c46c; 
  border:none; 
  padding:0.7rem 1.5rem; 
  font-weight:700; 
  border-radius:6px; 
  cursor:pointer; 
  transition:0.3s; 
}

.hero button:hover { 
  transform:translateY(-3px); 
  box-shadow:0 8px 15px rgba(0,196,108,0.5); 
}

/* Hero Animation */
.hero-animation { 
  position:absolute; 
  top:0; 
  left:0; 
  width:100%; 
  height:100%; 
  /* background:radial-gradient(circle at 30% 30%, #00c46c20, transparent 70%), radial-gradient(circle at 70% 70%, #00c46c10, transparent 70%);  */
  animation: moveBackground 20s linear infinite; 
  z-index:0; 
}

/* Cards Qué hacemos */
.cards { 
  display:flex; 
  flex-wrap:wrap; 
  gap:2rem; 
  justify-content:center; 
  margin-top:2rem;
}

.icon-service {
  height: 100%;
  width: 100%;
}

.icon {
  object-fit: cover;
  border-radius: 20px;
  width: 100%;
  height: 100%;
}

.card { 
  display: flex;
  flex-direction: column;
  background:#fff;
  box-shadow: 0 15px 25px rgba(0,0,0,0.1);
  border-radius: 30px;
 /* background: #e0e0e0;
  box-shadow: 15px 15px 30px #bebebe,
             -15px -15px 30px #ffffff; */
  padding:20px; 
  border-radius:12px; 
  width:260px; 
  color:#fff; 
  perspective:1000px; 
  transition:0.5s; 
  border-top: #00c46c solid 7px;
}

.card:hover { 
  transform: rotateY(10deg) translateY(-10px); 
  box-shadow:0 15px 25px rgba(0,0,0,0.5); 
}

.card h3 { 
  color:#00c46c; 
  margin-top: 20px;
}

.card p { 
  color: #000;
  margin-bottom:1rem; 
}

.card button { 
  background:#00c46c;   
  border:none; 
  padding:0.5rem 1.2rem; 
  border-radius:6px; 
  font-weight:500; 
  transition:0.3s; 
}

.card button:hover { 
  transform:translateY(-2px); 
  box-shadow:0 6px 12px rgba(0,196,108,0.5); 
}

#tecnologias-que-usamos {
  background: #fff;
}

.cards-tech {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  padding: 20px;
  justify-items: center;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.card-tech {
  background: #fff;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  width: 150px;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
}

.card-tech:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(0,0,0,0.3);
}

.card-tech img {
  width: 80%;
  height: auto;
  object-fit: contain;
  margin: 10px auto;
}




/* Contacto */
.contacto { 
  background:#fff; 
  color:#000; 
}

.informacion {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
}

.info {
  margin: 10px;
  width: 50%;
  height: auto;
  display: flex;
  flex-direction: column;
  text-align: left;
  justify-content: center;
}

.card-info {
  width: 80%;
  background: #fff;
  padding: 20px;
  margin: 10px auto;
  border-radius: 20px;
  border-bottom: #00c46c solid 2px;
  box-shadow:0 4px 10px rgba(0,0,0,0.1);
}

.card-info h4 {
  margin: 0 0 10px 0;
}

.info a {
  text-decoration: none;
  color: blue;
}

.info a:hover{
  color: #000;
}

.info iframe {
  width: 80%;
  height: 80%;
  aspect-ratio: 1/1;
  margin: auto;
}

.contact input:focus, .contact textarea:focus { 
  outline:none; 
  box-shadow:0 0 10px #00c46c; 
}

.contact button { 
  background:#00c46c; 
  border:none; 
  padding:0.6rem; 
  font-weight:700; 
  border-radius:6px; 
  transition:0.3s; 
}

.contact button:hover { 
  transform:translateY(-2px); 
  box-shadow:0 6px 12px rgba(0,196,108,0.5); 
}

/* Modal */
.modal { 
  display:none; 
  position:fixed; 
  top:0; 
  left:0; 
  width:100%; 
  height:100%; 
  background:rgba(0,0,0,0.8); 
  justify-content:center; 
  align-items:center; 
  z-index:2000; 
}

.modal.show { display:flex; }

.modal-content { 
  background:#fff; 
  padding:2rem; 
  border-radius:12px; 
  width:320px; 
  display:flex; 
  flex-direction:column; 
  gap:1rem; 
  animation:modalShow 0.5s ease; 
}

.modal-content h3 {
  margin: 0 auto;
}
 
.modal-content input, .modal-content select, .modal-content textarea { 
  padding:0.5rem; 
  /* border-radius:6px;  */
  border:1px solid #00c46c; 
}


.modal-content input:focus, .modal-content select:focus, .modal-content textarea:focus { 
  outline:none; 
  box-shadow:0 0 10px #00c46c; 
}

.modal-content button { 
  background:#00c46c; 
  border:none; 
  padding:0.6rem; 
  font-weight:700; 
  border-radius:6px; 
  transition:0.3s; 
}

.modal-content button:hover { 
  transform:translateY(-2px); 
  box-shadow:0 6px 12px rgba(0,196,108,0.5); 
}

.form-group {
  /* margin-bottom: 15px; */
  display: flex;
  flex-direction: column;
}

input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border 0.3s;
}

input:focus {
  border-color: #00c46c;
  outline: none;
}

input.invalid {
  border-color: red;
}

.error-message {
  color: red;
  font-size: 0.9rem;
  margin-top: 5px;
  visibility: hidden;
  height: 0;
  transition: 0.3s ease;
}

.error-message.active {
  visibility: visible;
  height: auto;
}



/* Footer */
footer { 
  background:#111; 
  color:#888; 
  padding:2rem; 
  text-align:center; 
}

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 28px;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.whatsapp-float img {
  width: 32px;
  height: 32px;
  filter: invert(1); /* hace el ícono blanco sobre fondo verde */
}