/* --- Paleta de Colores Monocromática --- */
:root {
  --primary-accent: #ffffff; /* Blanco como acento principal */
  --secondary-accent: #cccccc; /* Gris claro para acentos sutiles */
  --dark-bg: #000000; /* Fondo negro puro */
  --card-bg: #121212; /* Fondo de tarjetas gris muy oscuro */
  --text-color: #f5f5f5; /* Texto blanco suave */
  --light-text-color: #a0a0a0; /* Texto secundario gris claro */
  --border-color: #2a2a2a; /* Borde gris oscuro */
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-color);
  line-height: 1.7;
  overflow-x: hidden;
}
body.menu-open {
  overflow: hidden;
}

#about {
  background: #080808;
}

#hero .container {
  max-width: 1200px;
}
.container {
  width: 100%;
  margin: auto;
  padding: 100px 0;
}
h1,
h2,
h3 {
  color: #ffffff;
  margin-bottom: 25px;
  font-weight: 700;
}
h1 {
  font-size: 4.8rem;
  line-height: 1.3;
}
h2 {
  font-size: 2.8rem;
  text-align: center;
}
h3 {
  font-size: 1.8rem;
}
p {
  margin-bottom: 20px;
  color: var(--light-text-color);
}

/* --- Estilo de Botones con Micro-animación --- */
.btn {
  display: inline-block;
  padding: 15px 35px;
  background: var(--primary-accent);
  color: var(--dark-bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
  border: 2px solid var(--primary-accent);
  cursor: pointer;
  position: relative; /* Necesario para la animación */
  overflow: hidden; /* Necesario para la animación */
  z-index: 1;
}
.btn::after {
  /* NUEVO: Capa para la animación de hover */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: #e0e0e0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.btn:hover {
  transform: translateY(-2px); /* Un poco más sutil */
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary-accent);
  color: var(--primary-accent);
  box-shadow: none;
}
.btn-secondary::after {
  background-color: var(--primary-accent);
}
.btn-secondary:hover {
  color: var(--dark-bg); /* Cambia el color del texto sobre el fondo blanco */
}

/* --- Header y Navegación (sin cambios) --- */
.header {
  padding: 20px 5%;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease, padding 0.3s ease;
}
.header.scrolled {
  background-color: rgb(0 0 0 / 96%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.header.scrolled .logo {
  height: 25px;
}
.logo img {
  height: 100%;
}

.logo {
  transition: 1s;
  height: 45px;
}
.menu-toggle {
  display: block;
  cursor: pointer;
  z-index: 1001;
  position: relative;
  width: 30px;
  height: 30px;
}
.menu-toggle .bar {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  position: absolute;
}
.menu-toggle .bar:nth-child(1) {
  top: 0;
}
.menu-toggle .bar:nth-child(2) {
  top: 9px;
}
.menu-toggle .bar:nth-child(3) {
  top: 18px;
}
.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* --- Menú a Pantalla Completa (sin cambios) --- */
#fullscreen-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(15px);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}
#fullscreen-nav.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.fullscreen-nav-links {
  list-style: none;
  text-align: center;
}
.fullscreen-nav-links li {
  margin: 30px 0;
}
.fullscreen-nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 2.5rem;
  font-weight: 600;
  transition: color 0.3s ease;
}
.fullscreen-nav-links a:hover {
  color: var(--primary-accent);
}
.fullscreen-nav-links .btn-secondary {
  font-size: 2rem;
  padding: 15px 40px;
}

#hero {
  background-image: linear-gradient(
      rgba(0 0 0) 0%,
      rgba(0, 0, 0, 0.8) 70%,
      var(--dark-bg) 100%
    ),
    url(img/fondo.jpg);
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 2;
  margin: auto;
}

.hero-content strong {
  background: #ffffff;
  padding: 0px 20px;
  color: #000;
}
.hero-buttons {
  display: flex;
  gap: 20px;
}
.hero-content h1 {
  margin-bottom: 25px;
}
.hero-content p {
  font-size: 1.6rem;
  margin-bottom: 40px;
  max-width: 700px;
  color: var(--text-color);
}
section {
  border-bottom: 1px solid var(--border-color);
}
section:last-of-type {
  border-bottom: none;
}
.section-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 80px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background-color: var(--primary-accent);
  border-radius: 2px;
}

.section-title strong {
  background: #fff;
  color: #000;
}
.services-flex {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Tarjetas de Servicio con Micro-animación --- */
.service-card {
  background-color: var(--card-bg);
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  width: 350px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  cursor: pointer;
}
.service-card:hover {
  transition: 1s;
  transform: translateY(-10px) scale(1.02); /* NUEVO: Efecto de "levantar" y escalar */
  box-shadow: 0 0 45px rgba(54, 54, 54, 0.8);
  border-color: #ffffff;
}

.service-card:hover .service-icon {
  transition: 1s;
  width: 100%;
}

.service-card:hover p {
  transition: 1s;
  color: #ffffff;
}

.service-header {
  display: flex;
  flex-direction: column;
  background-size: cover;
  margin-bottom: 1rem;
  padding: 1rem;
  height: 180px;
  align-items: flex-start;
  justify-content: space-around;
}
.service-icon {
  font-size: 3rem;
  color: var(--primary-accent);
  height: 60px;
  padding: 10px;
  width: 60px;
  background: #000000;
  backdrop-filter: blur(18px);
  border: 1px solid #444;
}
.service-card h3 {
  color: #ffffff;
  margin: 0;
  font-size: 1.5rem;
  background: #000000;
  backdrop-filter: blur(18px);
  padding: 0px 10px;
  width: 100%;
  border: 1px solid #444;
  text-align: left;
}
.service-card p {
  color: var(--light-text-color);
  padding: 0 1rem;
  text-align: left;
}

.service-header.dev {
  background: url(/assets/img/fondoServicio.png);
}

.service-header.mantenimiento {
  background: url(/assets/img/support.png);
}

.service-header.seo {
  background: url(/assets/img/seo.png);
}

.service-header.ui {
  background: url(/assets/img/ui.png);
}

.service-header.consult {
  background: url(/assets/img/consult.png);
}

.service-header.re {
  background: url(/assets/img/re.png);
}

#about .about-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.contact-form {
  max-width: 700px;
  margin: 60px auto 0 auto;
  padding: 40px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.form-group {
  margin-bottom: 25px;
}
.form-group label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 18px;
  border: 1px solid var(--border-color);
  background-color: #050505;
  color: var(--text-color);
  font-size: 1.05rem;
  font-family: "Poppins", sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}
.contact-form textarea {
  resize: vertical;
}
.contact-form .btn {
  width: 100%;
}
.footer {
  background-color: #050505;
  text-align: center;
  padding: 50px 0;
  border-top: 1px solid var(--border-color);
  color: var(--light-text-color);
  font-size: 0.9rem;
}
.footer p {
  margin-bottom: 10px;
}
.footer a {
  color: var(--light-text-color);
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}
.footer a:hover {
  color: var(--primary-accent);
}
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact > p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px auto;
  font-size: 1rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.4rem;
  }
  .hero-content {
    margin-left: 0;
    width: 100%;
    padding: 0 5%;
  }

  .service-card h3 {
    font-size: 1.3rem;
  }

  .service-icon {
    height: 50px;
    width: 50px;
  }
  .hero-buttons {
    display: flex;
  }
  .container {
    padding: 80px 10px;
  }
  .fullscreen-nav-links a {
    font-size: 1.8rem;
  }
  .fullscreen-nav-links .btn-secondary {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .btn {
    padding: 10px 10px;
  }

  .logo {
    height: 25px;
  }
}

@media (max-width: 460px) {
  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }
  .btn {
    font-size: 0.9rem;
  }
  .hero-content p {
    font-size: 0.8rem;
  }

  .contact-form {
    padding: 15px;
  }
}
