/* ====== Reset & Base ====== */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #fff;
  color: #333;
  scroll-behavior: smooth;
}

h1, h2, h3 { margin: 0; }

/* ====== Hero ====== */
.hero {
  position: relative;
  height: 100vh;
  background-image: url('../img/hero.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right, rgba(0,0,0,0.8), rgba(0,0,0,0.4));
  animation: subtle-glow 8s infinite alternate;
  z-index: 1;
}

@keyframes subtle-glow {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
}

.hero-title { font-size: 3rem; font-weight: 700; margin-bottom: 15px; }
.hero-subtitle { font-size: 1.3rem; color: #ccc; margin-bottom: 30px; }

.btn-cta {
  display: inline-block; /* Para comportarse como botón */
  text-decoration: none; /* Quita el subrayado */
  padding: 14px 40px;
  border: none;
  background: white;
  color: black;
  cursor: pointer;
  font-weight: bold;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: 0.3s;
}

.btn-cta:hover {
  background: #444;
  color: white;
  transform: translateY(-3px);
  text-decoration: none; /* Asegura que no se subraye al pasar el mouse */
}
/* ====== Sobre Nosotros ====== */
.about {
  padding: 100px 20px;
  text-align: center;
  max-width: 1200px;
  margin: auto;
}
.about h2 { font-size: 2.5rem; margin-bottom: 20px; font-weight: bold; }
.about-text { font-size: 1.1rem; max-width: 700px; margin: auto; margin-bottom: 60px; color: #555; line-height: 1.6; }

/* ====== Servicios con tarjetas 3D ====== */
.services {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 120px 120px;
  margin-top: 80px;
}
.service-card { perspective: 1000px; width: 280px; height: 280px; cursor: pointer; position: relative; }
.service-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.8s; }
.service-card:hover .service-inner { transform: rotateY(180deg); }

.service-front,
.service-back {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 15px;
  backface-visibility: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 30px 20px;
  text-align: center;
  transition: 0.3s ease;
}

/* Frente */
.service-front { background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.service-front i { font-size: 3rem; margin-bottom: 20px; color: #000; transition: 0.3s; }
.service-card:hover .service-front i { color: #444; }
.service-front h3 { margin-bottom: 10px; font-size: 1.2rem; }
.service-front p { font-size: 0.95rem; color: #555; }

/* Dorso */
.service-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #ff7e5f, #feb47b, #86a8e7, #91eae4);
  background-size: 300% 300%;
  animation: gradientMove 6s ease infinite;
  color: white;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.service-back p { font-size: 0.95rem; line-height: 1.5; max-width: 220px; text-align: center; }

/* ====== Por Qué Elegirnos ====== */
.why-us { background: #000; color: white; padding: 120px 20px; text-align: center; }
.why-us h2 { font-size: 2.8rem; margin-bottom: 60px; font-weight: bold; }
.benefits { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; max-width: 1200px; margin: auto; }

.benefit-card {
  background: #111; padding: 50px 35px; border-radius: 20px; width: 300px; transition: 0.4s ease;
  text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.2); position: relative; overflow: hidden;
}
.benefit-card::before {
  content: ""; position: absolute; top: -100%; left: -100%; width: 200%; height: 200%;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.1), transparent 70%);
  transform: rotate(25deg); transition: 0.5s;
}
.benefit-card:hover::before { top: 0; left: 0; }
.benefit-card i { font-size: 3rem; margin-bottom: 20px; color: #fff; transition: 0.3s; }
.benefit-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.benefit-card p { font-size: 0.95rem; line-height: 1.5; color: #ccc; }
.benefit-card:hover { transform: translateY(-12px); background: linear-gradient(145deg, #111 0%, #1a1a1a 100%); }
.benefit-card:hover i { color: #aaa; transform: scale(1.1); }

/* ====== Contacto con Fondo ====== */
/* ====== Contacto Moderno ====== */
.contact {
  background: url('../img/botton.jpg') center/cover no-repeat;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact h2 {
  font-size: 2.3rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: rgb(3, 3, 3);
  margin-left: 15px;
}

.contact-text {
  font-size: 1rem;
  color: #070707;
  margin-bottom: 35px;
  max-width: 500px;
  margin-left: 17px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 400px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: white;
  box-shadow: 0 0 8px rgba(255,255,255,0.8);
}

.contact-form textarea {
  resize: none;
  height: 120px;
}

.btn-submit {
  width: 100%;               /* Ocupa todo el ancho del form */
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(to right, #444, #000);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  margin-left: 15px;          /* Lo empuja visualmente a la derecha */
  width: calc(100% - 10px);   /* Mantiene el ancho completo menos el margen */
}

.btn-submit:hover {
  background: linear-gradient(to right, #000, #444);
  transform: translateY(-2px);
}



/* LinkedIn */
.social-links {
  margin-top: 25px;
}
.social-links a {
  color: rgb(14, 13, 13);
  font-size: 2rem;
  transition: 0.3s;
  margin-left: 15px;
}
.social-links a:hover {
  color: #00a0dc;
  transform: scale(1.2);
}


/* ====== Footer ====== */
footer { text-align: center; padding: 30px 20px; background: #000; color: #aaa; font-size: 0.9rem; border-top: 1px solid #222; }
footer strong { color: #fff; font-weight: 600; }
footer p { margin: 0; transition: 0.3s; }
footer p:hover { color: #fff; }
