@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --primary-color: #e81f23;
  --background-color: #0c0a0b;
  --text-light: #767268;
  --extra-light: #f3f4f6;
  --white: #ffffff;
  --max-width: 1200px;
  --header-font: "Orbitron", sans-serif;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

.section__subheader {
  max-width: 650px;      /* antes 800px, mejora lectura */
  letter-spacing: 1px;   /* antes 5px, demasiado */
  font-weight: 400;      /* antes 600, más suave */
  line-height: 1.5;      /* mejora separación */
  opacity: 0.95;         /* más elegante */
}


.section__header {
  max-width: 800px;
  margin-inline: auto;
  font-size: 3rem;
  color: var(--white);
  font-family: var(--header-font);
  letter-spacing: 2px;
  text-align: center;
}

.section__description {
  color: var(--white);
  line-height: 1.75rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  outline: none;
  border: none;
  color: var(--white);
  background-color: transparent;
  border: 2px solid var(--primary-color);
  transition: 0.3s;
  cursor: pointer;
}

img {
  display: flex;
  width: 100%;
}

a {
  text-decoration: none;
  transition: 0.3s;
}

ul {
  list-style: none;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  position: relative;
  font-family: "Roboto", sans-serif;
  background-color: var(--background-color);
}

.background {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  justify-content: space-between;
  z-index: -99;
}

.background span {
  width: 2px;
  height: 100%;
  background-color: var(--text-light);
  opacity: 0.1;
}

nav {
  position: fixed;
  isolation: isolate;
  width: 100%;
  z-index: 9;
}

.nav__header {
  padding: 0.5rem 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--primary-color);
}

.nav__logo a img {
  max-width: 150px;
}

.nav__menu__btn {
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

.nav__links {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  background-color: var(--primary-color);
  transition: transform 0.5s;
  z-index: -1;
}

.nav__links.open {
  transform: translateY(100%);
}

.nav__links a {
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
  letter-spacing: 2px;
}

header {
  min-height: 100vh;
  position: relative;
  isolation: isolate;

  background-image: url("assets/white-low-poly-background-338.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

header::before {
  position: absolute;
  content: "";
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background-image: linear-gradient(
    to bottom,
    var(--background-color),
    rgba(0, 0, 0, 0),
    var(--background-color)
  );
  z-index: -1;
}

.header__container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gallery__container {
  max-width: 1500px;
}

.swiper {
  margin-top: 4rem;
  width: 100%;
}

.swiper-slide {
  max-width: 45rem;
}

.service__content {
  margin-block: 4rem;
  display: grid;
  gap: 4rem;
}

.service__img {
  margin-inline: auto;
  height: 20rem;
  overflow: hidden;
}

.service__img img {
  height: 100%;
  object-fit: cover;
}

.service__details {
  max-width: 400px;
  margin-inline: auto;
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service__details h4 {
  margin-bottom: 1rem;
  font-size: 2rem;
  font-family: var(--header-font);
  font-weight: 600;
  color: var(--white);
}

.service__details p {
  line-height: 1.75rem;
  color: var(--extra-light);
}

.service__btn {
  text-align: center;
}

.instagram__container {
  max-width: 1500px;
}

.instagram__wrapper {
  overflow: hidden;
  margin-top: 4rem;
}

.instagram__images {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 1rem;

  animation: scroll-left 30s linear infinite;
}

@keyframes scroll-left {
  to {
    transform: translateX(calc(-50% - 0.5rem));
  }
}

.instagram__images img {
  max-width: 200px;
}

.banner {
  min-height: 100vh;
  position: relative;
  isolation: isolate;

  background-image: url("assets/banner.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.banner::before {
  position: absolute;
  content: "";
  height: 50%;
  width: 100%;
  top: 0;
  left: 0;
  background-image: linear-gradient(
    to bottom,
    var(--background-color),
    rgba(0, 0, 0, 0)
  );
  z-index: -1;
}

.footer__container {
  display: grid;
  gap: 4rem 2rem;
}

.footer__logo {
  display: inline-flex;
  margin-bottom: 2rem;
}

.footer__logo img {
  max-width: 200px;
}

.footer__socials {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__socials a {
  display: inline-flex;
  padding: 5px 6px;
  font-size: 1.5rem;
  color: var(--white);
  border: 2px solid var(--white);
  border-radius: 100%;
}

.footer__socials a:hover {
  border-color: var(--primary-color);
}

.footer__col h4 {
  margin-bottom: 2rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 2px;
}

.footer__links {
  display: grid;
  gap: 2rem;
}

.footer__links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 2px;
}

.footer__links a:hover {
  color: var(--primary-color);
}

.footer__col form {
  width: 100%;
  display: flex;
  align-items: center;
  border: 2px solid var(--primary-color);
}

.footer__col input {
  flex: 1;
  padding-inline: 1rem;
  outline: none;
  border: none;
  font-size: 1rem;
  color: var(--white);
  background-color: transparent;
}

.footer__col input::placeholder {
  color: var(--white);
}

.footer__col form .btn {
  padding: 0.75rem;
  border: none;
  font-size: 1.25rem;
}

.footer__col form .btn:hover {
  color: var(--primary-color);
}

.footer__bar {
  padding: 1.5rem 1rem;
  font-size: 1rem;
  color: var(--white);
  text-align: center;
  background-color: #1f1b1c;
}

@media (width > 540px) {
  .header__container .section__header {
    font-size: 4rem;
  }

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width > 768px) {
  nav {
    position: static;
    padding: 2rem 1rem 1rem;
    max-width: var(--max-width);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav__header {
    padding: 0;
    background-color: transparent;
  }

  .nav__logo a img {
    max-width: 200px;
  }

  .nav__menu__btn {
    display: none;
  }

  .nav__links {
    position: static;
    width: fit-content;
    padding: 0;
    flex-direction: row;
    background-color: transparent;
    transform: none !important;
  }

  .nav__links a {
    position: relative;
    isolation: isolate;
  }

  .nav__links a::after {
    position: absolute;
    content: "````";
    font-size: 1.75rem;
    bottom: calc(-100% - 1rem);
    left: 0;
    color: var(--background-color);
    transition: 0.3s;
  }

  .nav__links a:hover {
    color: var(--primary-color);
  }

  .nav__links a:hover::after {
    color: var(--primary-color);
  }

  .header__container {
    justify-content: flex-start;
    align-items: flex-start;
  }

  .header__container .section__header {
    margin: 0;
    text-align: left;
    font-size: 5rem;
  }

  .service__container :is(.section__header, .section__subheader) {
    text-align: left;
  }

  .service__row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .service__row:nth-child(1) .service__img {
    aspect-ratio: 1;
    margin-inline: unset;
    margin-inline-start: auto;
  }

  .service__row:nth-child(2) .service__img {
    order: 1;
    width: 100%;
  }

  .service__row:nth-child(3) .service__img {
    width: 100%;
  }

  .service__row:nth-child(4) .service__img {
    order: 1;
    aspect-ratio: 1;
    margin-inline: unset;
    margin-inline-end: auto;
  }

  .service__details {
    margin-inline: unset;
    text-align: left;
  }

  .service__row:nth-child(2n-1) .service__details {
    padding-left: 4rem;
  }

  .service__row:nth-child(2n) .service__details {
    margin-inline-start: auto;
    padding-right: 4rem;
  }

  .footer__container {
    grid-template-columns: repeat(4, 1fr);
  }
}














/* ------------------------------------ */
/*       HEADER FINAL OPTIMIZADO        */
/* ------------------------------------ */

header {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url("assets/white-low-poly-background-338.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #000000dd 10%, #00000088 40%, transparent);
  z-index: 1;
}

.header-content {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding-top: 6rem;
}

.left-header {
  width: 40%;
  color: rgb(240, 240, 240);
}

.left-header h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.left-subtitle {
  color: #e81f23;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.left-text {
  color: #ddd;
  margin-bottom: 1.8rem;
  font-size: 1rem;
  line-height: 1.6;
}

.left-btn {
  border: 2px solid #e81f23;
  padding: 0.7rem 2rem;
  font-weight: 600;
}

.right-header {
  width: 55%;
}

.right-header img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0px 0px 12px #000);
}


/* ------------------------------------ */
/*         RESPONSIVE FIXES             */
/* ------------------------------------ */

@media (max-width: 992px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .left-header {
    width: 100%;
  }

  .right-header {
    width: 75%;
    margin-top: 2rem;
  }
}

@media (max-width: 600px) {
  .left-header h1 {
    font-size: 2rem;
  }

  .left-subtitle {
    font-size: 1.1rem;
  }

  .right-header {
    width: 90%;
  }
}




/* =========================================================
   HEADER DEFINITIVO: mantiene ESCRITORIO y corrige MÓVIL
   ========================================================= */

/* --- Reglas base (aplican al escritorio por defecto) --- */
header {
  position: relative;
  width: 100%;
  height: 100vh; /* escritorio: ocupa pantalla completa */
  min-height: 600px;
  background-image: url("assets/white-low-poly-background-338.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  overflow: visible;
}

/* Contenedor principal (asegura centrado y ancho máximo) */
.header-content,
.hero-content {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3.5rem;
  padding-top: 5.5rem;
  z-index: 5; /* por encima del overlay */
  position: relative;
}

/* Bloque izquierdo (texto) */
.hero-left,
.left-header {
  width: 42%;
  color: #fff;
  z-index: 6;
  position: relative;
}

/* Título principal (escritorio) */
.section__header {
  font-size: 4.5rem !important;
  line-height: 1.05;
  font-family: "Orbitron", sans-serif !important;
  color: #fff;
  text-shadow: 0 0 6px rgba(0,0,0,0.6);
  margin: 0 0 0.6rem 0;
}

/* Subtítulo y párrafo */
.hero-subtitle {
  font-size: 1.8rem;
  color: #e81f23;
  margin: 0.6rem 0;
  text-shadow: 0 0 4px rgba(0,0,0,0.6);
}

.hero-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #e0e0e0;
  max-width: 420px; /* evita que llegue a la escalera en escritorio */
  margin-bottom: 1.6rem;
}

/* Botón */
.hero-btn {
  padding: 0.8rem 2rem;
  border: 2px solid #e81f23;
  background: transparent;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* Bloque derecho (imagen de la escalera) */
.hero-banner,
.right-header {
  width: 55%;
  z-index: 4;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-banner img,
.right-header img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  z-index: 4;
  position: relative;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.45));
}

/* Si hay overlay oscuro a la izquierda, asegúrate que esté debajo */
.header-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* =========================================================
   RESPUESTA A MEDIA QUERIES: SOLO APLICAN EN ANCHOS REDUCIDOS
   ========================================================= */

/* MÓVIL / TABLET: < 900px */
@media (max-width: 900px) {

  /* Allow header to grow and not cut content */
  header {
    height: auto !important;
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
    min-height: auto;
  }

  /* Column layout, texto arriba, imagen debajo */
  .header-content,
  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    padding-top: 3rem;
  }

  .hero-left,
  .left-header {
    width: 92%;
    max-width: 920px;
    margin: 0 auto;
  }

  .section__header {
    font-size: 2.6rem !important; /* reduce en móvil */
    line-height: 1.15 !important;
  }

  .hero-subtitle {
    font-size: 1.35rem !important;
  }

  .hero-text {
    font-size: 1.03rem !important;
    max-width: 92% !important;
    margin: 0.6rem auto 1.2rem auto !important;
  }

  .hero-btn {
    margin: 0 auto;
  }

  /* Imagen visible y centrada en móvil */
  .hero-banner,
  .right-header {
    width: 100% !important;
    display: flex;
    justify-content: center;
    margin-top: 6px;
  }

  .hero-banner img,
  .right-header img {
    width: 80% !important;
    max-width: 360px !important;
    height: auto !important;
  }
}

/* MÓVILES muy pequeños */
@media (max-width: 480px) {
  .section__header {
    font-size: 2rem !important;
  }
  .hero-subtitle {
    font-size: 1.15rem !important;
  }
  .hero-banner img {
    width: 95% !important;
    max-width: 300px !important;
  }
}

/* =========================================================
   FORZAR VISIBILIDAD: evita que reglas antiguas oculten elementos
   ========================================================= */
.hero-banner,
.hero-banner img,
.right-header,
.right-header img,
.header-content,
.hero-content {
  visibility: visible !important;
  display: block !important;
  opacity: 1 !important;
}

/* =========================================
   HERO – NOMBRE GRANDE + TEXTO DEBAJO
   ÚNICO, PROFESIONAL Y 100% SEGURO
   ========================================= */

.hero-elevator {
  min-height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  background-image: url("assets/banner.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-elevator .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
  z-index: 1;
}

.hero-elevator .hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 900px;
  padding: 0 1rem;
}

/* NOMBRE DE LA EMPRESA */
.hero-elevator .hero-brand {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: 3px;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-shadow: 0 5px 15px rgba(0,0,0,0.8);
}

/* TEXTO DESCRIPTIVO */
.hero-elevator .hero-slogan {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: #e0e0e0;
  max-width: 780px;
  margin-inline: auto;
  line-height: 1.6;
  opacity: 0.95;
  text-shadow: 0 3px 10px rgba(0,0,0,0.7);
}


/* ================================================
   BOTÓN ULTIMATE — PREMIUM, MODERNO, ELEGANTE
   ================================================ */

.cotiza-btn-ultimate {
  all: unset;
  box-sizing: border-box;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 2.5rem;
  padding: 1.2rem 3.4rem;

  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;

  font-size: clamp(1rem, 1.4vw, 1.3rem);
  font-weight: 900;
  letter-spacing: 2px;

  color: #ffffff;
  position: relative;
  overflow: hidden;

  /* Glass effect */
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);

  /* Gradient Halo Edge */
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 25px rgba(232, 31, 35, 0.45);

  /* Entrance animation */
  opacity: 0;
  transform: translateY(40px);
  animation: ultimateEnter 1s ease forwards 0.4s;

  /* Pulse animation */
  animation: ultimateEnter 1s ease forwards 0.4s,
             ultimatePulse 3s ease-in-out infinite;
}

/* Shine effect */
.cotiza-btn-ultimate::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 130%;
  height: 100%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );

  transform: skewX(-20deg);
  transition: 0.7s;
}

.cotiza-btn-ultimate:hover::after {
  left: 150%;
}

/* Halo glow around */
.cotiza-btn-ultimate::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 60px;
  background: linear-gradient(135deg, #ff6b6b, #e81f23, #ff6b6b);
  filter: blur(20px);
  opacity: 0.4;
  z-index: -1;
}

/* Hover improvements */
.cotiza-btn-ultimate:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 20px 40px rgba(232, 31, 35, 0.6);
}

/* Animated arrow */
.cotiza-btn-ultimate .arrow {
  margin-left: 12px;
  display: inline-block;
  transition: 0.35s;
}

.cotiza-btn-ultimate:hover .arrow {
  transform: translateX(8px);
}

/* Entrance animation */
@keyframes ultimateEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulse subtle */
@keyframes ultimatePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}










.whatsapp-expand {
  position: fixed;
  bottom: 25px;
  right: 25px;
  height: 60px;
  padding: 0 18px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  z-index: 9999;
  overflow: hidden;
  transition: width 0.25s ease, background 0.25s ease;
  width: 60px; /* solo el icono visible */
}

/* Icono */
.whatsapp-expand i {
  font-size: 28px;
}

/* Texto escondido */
.whatsapp-expand .wa-text {
  opacity: 0;
  white-space: nowrap;
  transition: 0.25s ease;
}

/* Cuando pasas el mouse, se expande */
.whatsapp-expand:hover {
  width: 200px; /* ancho expandido */
  background-color: #128c7e;
}

.whatsapp-expand:hover .wa-text {
  opacity: 1;
}

/* Movil: solo icono (no hover) */
@media (max-width: 768px) {
  .whatsapp-expand {
    width: 60px !important;
  }
  .whatsapp-expand .wa-text {
    display: none;
  }
}
/* Animación tipo salto (bounce) */
@keyframes waBounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
}

/* Aplicar bounce al botón */
.whatsapp-expand {
  animation: waBounce 2.5s infinite ease-in-out;
}

/* Cuando hace hover, se detiene el salto para expandir suave */
.whatsapp-expand:hover {
  animation: none;
}
