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

/* VARIABLES */
:root {
  --primary: #e10600;
  --background: #0b0b0b;
  --background-light: #111;
  --text: #E5E2E1;
  --text-muted: #9a9a9a;

  --container-width: 1200px;
}

/* BASE */
body {
  font-family: "Space Grotesk", sans-serif;
  background-color: var(--background);
  color: var(--text);
  padding-top: 70px; /* Para compensar el header fijo */
}

/* CONTAINER */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* SECTIONS */
.section {
  padding: 80px 0;
}

/* TIPOGRAFÍA */
h1, h2, h3 {
  font-weight: 700;
}

p {
  color: var(--text-muted);
  line-height: 1.6;
}


/* BOTONES */
.btn-primary {
  background-color: var(--primary);
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  display: inline-block;
  border: 1px solid var(--primary);
}

.btn-secondary {
  border: 1px solid white;
  color: white;
  padding: 12px 20px;
  text-decoration: none;
}



.seo-hidden {
  position: absolute;
  left: -9999px;
}


/* NAVBAR */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: rgba(11, 11, 11, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
}


.nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 70px;
    padding: 0 40px;
}

/* LOGO */
.logo {
    font-weight: bold;
    font-size: 20px;
    letter-spacing: 1px;
    justify-self: start;
}

.logo a{
    text-decoration: none;
    color: var(--primary);
}

.logo a span {
    color: var(--text);
}

/* NAV LINKS */
.nav-links {
    display: flex;
    gap: 30px;
    justify-self: center;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s ease;
}

/* Hover */
.nav-links a:hover {
    color: var(--text);
}

/* Línea */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.4s ease; /* 👈 más lento */
}

/* Activo */
.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    width: 100%;
}

/* BOTON DE CONTACTO */
.nav-btn {
    font-size: 16px;
    font-weight: bold;
    color: var(--text);
    justify-self: end;
}

.nav-btn:hover {
    background-color: var(--background);
    color: var(--primary);
    border: 1px solid var(--primary);

}



.section {
  min-height: 100vh;
}
























/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;

  background: url("../assets/hero.jpg") center/cover no-repeat;
}

/* Overlay oscuro */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

/* Contenido */
.hero-content {
  position: relative;
  max-width: 1000px;
  text-align: left;
  margin-left: 100px;
}

/* Título */
.hero h1 {
  font-size: 8rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--primary);
}

/* Texto */
.hero p {
  font-size: 23px;
  margin-bottom: 30px;
  color: var(--text-muted);
  max-width: 800px;
}

/* Botones */
.hero-buttons {
  font-size: 20px;
  font-weight: bold;
  padding-right: 9rem;
}

/* HERO BUTTONS EFECTO */




.hero-buttons a {
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: inline-block;
  padding: 14px 28px;
  font-weight: bold;
  transition: color 0.4s ease, border 0.4s ease;
  
}


.hero-buttons a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  z-index: -1;
  transition: left 0.5s ease;
  
}



.hero-buttons .btn-primary::before {
  background: var( --background);
}

.hero-buttons .btn-primary:hover {
  color: var(--text);
  border: 1px solid white;
}

.hero-buttons .btn-primary:hover::before {
  left: 0;
}




.hero-buttons .btn-secondary::before {
  background: var(--primary);
}

.hero-buttons .btn-secondary:hover {
  color: white;
  border: 1px solid var(--primary);
}

.hero-buttons .btn-secondary:hover::before {
  left: 0;
}
























/* ===== SERVICES ===== */

.services {
  background: var(--background-light);
  display: flex;
  align-items: center;
  min-height: 100vh;
}

/* CONTAINER ALINEADO */
.services-container {
  max-width: 1300px;
}

/* HEADER */
.services-header {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: end;
  margin-bottom: 30px;
}

/* IZQUIERDA */
.services-header-left span {
  font-size: 26px;
  color: var(--primary);
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.services-header-left h2 {
  font-size: 68px;
  line-height: 1.1;
  font-weight: bold;
}

/* DERECHA */
.services-header-right {
  display: flex;
  justify-content: flex-end;
}

.services-header-right p {
  max-width: 340px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: left;
}

/* LINEA */
.services-divider {
  width: 100%;
  height: 1px;
  background: #222;
  margin-bottom: 50px;
}

/* GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* CARDS */
.service-card {
  padding: 40px 30px;
  background: #151515;
  border: 1px solid #222;
  transition: 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 260px;
}


/* ICONO */
.service-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.service-icon svg {
  width: 30px;
  height: 30px;
  color: var(--text-muted);
  transition: 0.3s;
}

.service-card:hover .service-icon svg {
  color: var(--text);
}

/* CONTENIDO */
.feature-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-content strong {
  font-size: 20px;
  transition: 0.3s;
}

.feature-content span {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  transition: 0.3s;
}

.service-card:hover .feature-content strong {
  color: var(--primary);
}

.service-card:hover .feature-content span {
  color: var(--text);
}

/* EFECTO LUZ */
.feature {
  --x: 50;
  --y: 50;
}

.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: 0.3s;

  background: radial-gradient(
    600px circle at calc(var(--x) * 1px) calc(var(--y) * 1px),
    rgba(225, 6, 0, 0.25),
    transparent 40%
  );
}

.feature:hover::after {
  opacity: 1;
}

















/* ===== PROJECTS ===== */

.projects {
  background: var(--background);
  padding: 100px 0;
}

/* HEADER */
.projects-header {
  display: grid;
  grid-template-columns: 2.5fr 0.5fr;
  align-items: end;
  margin-bottom: 30px;
}

.projects-header-left span {
  font-size: 26px;
  color: var(--primary);
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.projects-header-left h2 {
  font-size: 68px;
  font-weight: bold;
}

.projects-header-right {
  display: flex;
  justify-content: flex-end;
}

.projects-header-right p {
  max-width: 420px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: right;
}

.projects-divider {
  width: 100%;
  height: 1px;
  background: #222;
  margin-bottom: 50px;
}

/* GRID */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* CARD */
.project-card {
  position: relative;
  overflow: hidden;
  height: 350px;
}

/* IMG */
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s ease;
}

/* OVERLAY */
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  padding: 20px;
  opacity: 0;
  transition: 0.3s ease;
}

.project-overlay h3 {
  font-size: 20px;
  margin-bottom: 5px;
}

.project-overlay span {
  font-size: 14px;
  color: var(--text-muted);
}

/* HOVER */
.project-card:hover img {
  transform: scale(1.1);
}

.project-card:hover .project-overlay {
  opacity: 1;
}













/* ===== METRICS ===== */

.metrics {
  background: #0b0b0b;
  padding: 120px 0;
}

/* CONTENEDOR */
.metrics-container {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 80px;
  align-items: center;
}

/* TEXTO */
.metrics-text span {
  font-size: 14px;
  color: var(--primary);
  display: block;
  margin-bottom: 10px;
}

.metrics-text h2 {
  font-size: 58px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.metrics-text p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 15px;
  line-height: 1.6;
  max-width: 500px;
}

/* GRID METRICAS */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  background-color: var(--primary);
  padding: 40px;
  border-radius: 8px;
}

/* BLOQUE */
.metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* NUMERO */
.metric h2 {
  font-size: 48px;
  color: var(--text);
}

/* TEXTO */
.metric p {
  font-size: 14px;
  color: var(--text);
}
















/* ===== BENEFITS ===== */

.benefits {
  background: var(--background-light);
  padding: 140px 0;
}

/* TEXTO ARRIBA */
.benefits-text {
  max-width: 700px;
  margin-bottom: 80px;
}

.benefits-text span {
  font-size: 14px;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}

.benefits-text h2 {
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.benefits-text p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* GRID DE BENEFICIOS */
.benefits-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  width: 100%;
}

.benefit {
  width: calc(50% - 25px);
  position: relative;
  padding-left: 0px;
  box-sizing: border-box;
}
/* LINEA */
.benefit::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 3px;
  height: 0%;
  background: var(--primary);
  transition: height 0.3s ease;
}

/* NUMERO */
.benefit::after {
  content: attr(data-number);
  position: absolute;
  left: 0;
  top: -5px;
  font-size: 12px;
  color: var(--text-muted);
}

/* TITULO */
.benefit h3 {
  font-size: 22px;
  margin-bottom: 8px;
  transition: 0.3s;
}

/* TEXTO */
.benefit p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  transition: 0.3s;
}

/* HOVER */
.benefit:hover::before {
  height: 100%;
}

.benefit:hover h3 {
  color: var(--primary);
  transform: translateX(5px);
}

.benefit:hover p {
  color: var(--text);
}







/* ===== CONTACT ===== */

.contact {
  background: var(--background);
  padding: 140px 0;
}

/* CONTENEDOR */
.contact-container {
  max-width: 700px;
  text-align: center;
}

/* TEXTO */
.contact-text span {
  font-size: 14px;
  color: var(--primary);
  display: block;
  margin-bottom: 10px;
}

.contact-text h2 {
  font-size: 48px;
  margin-bottom: 20px;
}

.contact-text p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 50px;
}

/* FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* INPUTS */
.contact-form input,
.contact-form textarea {
  background: #111;
  border: 1px solid #222;
  padding: 16px;
  color: white;
  font-family: inherit;
  font-size: 14px;
  transition: 0.3s;
}

/* FOCUS */
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* TEXTAREA */
.contact-form textarea {
  min-height: 120px;
  resize: none;
}

/* BOTÓN */
.contact-form button {
  background: var(--primary);
  border: none;
  padding: 16px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

/* HOVER */
.contact-form button:hover {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}










/* ===== THANKS PAGE ===== */

.thanks-body {
  font-family: "Space Grotesk", sans-serif;
  background: var(--background);
  color: var(--text);

  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* CONTENEDOR */
.thanks-container {
  text-align: center;
  max-width: 500px;
  padding: 40px;
}

/* TITULO */
.thanks-container h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

/* TEXTO */
.thanks-container p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* BOTON */
.thanks-container a {
  text-decoration: none;
}







.whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;

  width: 60px;
  height: 60px;

  background: #25D366;
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  font-size: 28px;

  text-decoration: none;
  z-index: 999;

  transition: 0.3s;
}

/* HOVER */
.whatsapp-btn:hover {
  transform: scale(1.1);
  background: #1ebe5d;
}


.whatsapp-btn.pro {
  width: auto;
  padding: 0 20px;
  border-radius: 30px;
  font-size: 14px;
}

.whatsapp-btn img {
  width: 24px;
  height: 24px;
}










/* ===== FOOTER ===== */

.footer {
  background: #050505;
  padding-top: 80px;
}

/* CONTENEDOR */
.footer-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  padding-bottom: 50px;
}

/* MARCA */
.footer-brand h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.footer-brand span {
  color: var(--primary);
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 300px;
}

/* LINKS */
.footer-links h4,
.footer-contact h4 {
  font-size: 16px;
  margin-bottom: 15px;
}

.footer-links a {
  display: block;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 10px;
  transition: 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
}

/* CONTACTO */
.footer-contact p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* BOTTOM */
.footer-bottom {
  border-top: 1px solid #111;
  text-align: center;
  padding: 20px 0;
}

.footer-bottom p {
  font-size: 15px;
  color: #666;
}



.carlos {
  color: var(--primary);
  text-decoration: none;
  font-size: 18px;
}






.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
}

.mobile-menu {
  position: fixed;
  top: 70px;
  right: 0;
  width: 100%;
  height: calc(100vh - 70px);
  background: #0b0b0b;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;

  transform: translateX(100%);
  transition: 0.3s;
}

.mobile-menu a {
  color: white;
  text-decoration: none;
  font-size: 20px;
}

.mobile-menu.active {
  transform: translateX(0);
}






/* ============================= */
/* ====== RESPONSIVE ========== */
/* ============================= */

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 2001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  display: block;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 70px;
  right: 0;
  width: 100%;
  height: calc(100vh - 70px);
  background: #0b0b0b;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;

  transform: translateX(100%);
  transition: 0.3s;
  z-index: 2000;
}

.mobile-menu a {
  color: white;
  text-decoration: none;
  font-size: 20px;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* ============================= */
/* ====== RESPONSIVE ========== */
/* ============================= */

/* ===== TABLET + MOBILE NAVBAR FIX ===== */
@media (max-width: 1024px) {

  .nav {
    display: flex; /* 👈 CAMBIO CLAVE */
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .nav-btn {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* HERO */
  .hero h1 {
    font-size: 5rem;
  }

  .hero-content {
    margin-left: 40px;
  }

  /* SERVICES */
  .services-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .services-header-right {
    justify-content: flex-start;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* PROJECTS */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* METRICS */
  .metrics-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  /* FOOTER */
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ===== MOBILE ===== */
@media (max-width: 768px) {

  /* HERO */
  .hero-content {
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 40px;
  }

  .hero {
    align-items: center;
  }

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

  .hero p {
    font-size: 16px;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-right: 0;
  }

  /* SERVICES */
  .services-header-left h2 {
    font-size: 40px;
  }

  .services-header-left span {
    font-size: 18px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  /* PROJECTS */
  .projects-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .projects-header-left h2 {
    font-size: 40px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* METRICS */
  .metrics-text h2 {
    font-size: 36px;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  /* BENEFITS */
  .benefits-text h2 {
    font-size: 36px;
  }

  .benefits-grid {
    flex-direction: column;
  }

  .benefit {
    width: 100%;
  }

  /* CONTACT */
  .contact-text h2 {
    font-size: 36px;
  }

  .contact-container {
    padding: 0 20px;
  }

  /* FOOTER */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}


/* ===== MOBILE CHICO ===== */
@media (max-width: 480px) {

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 28px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 14px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .whatsapp-btn {
    width: 50px;
    height: 50px;
  }
}