/* ============================================
   FUENTES PERSONALIZADAS
   ============================================ */

@font-face {
  font-family: "Poppins";
  src: url("../../fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../../fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

body {
  background-color: #e4e2e2;
  font-family: "Poppins", sans-serif;
  color: #111;
  margin: 0;
  overflow-x: hidden;
  font-weight: 400;
}

/* ===================================
   TRANSICIONES ENTRE PÁGINAS
   (Igual que el menú: derecha a izquierda)
   =================================== */

/* Contenedor principal */
#page-container {
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Contenido de la página - APARECE SOBRE EL MENÚ */
#page-content {
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
  transform: translateX(0);
  position: relative;
  z-index: 2000; /* Mayor que el menú (1050) para aparecer encima */
  background-color: #e4e2e2; /* Fondo para cubrir el menú */
  min-height: 100vh;
}

/* Animación de salida - se va a la derecha */
#page-content.page-exit {
  transform: translateX(100%);
}

/* Animación de entrada - viene desde la derecha */
#page-content.page-entering {
  transform: translateX(100%);
}

#page-content.page-enter-active {
  transform: translateX(0);
}

/* ===================================
   NAVBAR TRANSPARENTE
   =================================== */

.custom-navbar {
  background-color: transparent !important;
  position: absolute;
  top: 1rem;
  left: 2rem;
  right: 0;
  z-index: 1030;
}

/* Logos sincronizados - MISMO TAMAÑO */
.navbar-logo,
.menu-logo {
  width: 160px;
  height: auto;
  transition: all 0.3s ease;
}

/* ===================================
   MENÚ DESLIZANTE (OFFCANVAS)
   =================================== */

.offcanvas-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  color: #fff;
  transition: right 0.6s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 1050;
  overflow-y: auto;
}

.offcanvas-menu.active {
  right: 0;
}

/* Fondo oscuro cuando se abre */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1040;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ===================================
   SECCIÓN PRINCIPAL DEL MENÚ
   (Sin separación entre columnas)
   =================================== */

.main-section {
  min-height: 100vh;
  height: 100vh;
  background-color: #e4e2e2;
  padding: 0;
}

/* Contenedor flex sin gap */
.main-section > div {
  display: flex;
  flex-direction: row;
  height: 100%;
  gap: 0; /* Sin separación */
}

/* --- Contenido Izquierdo --- */
.left-content {
  flex: 1;
  background-color: #e4e2e2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  padding-right: 3rem; /* Espacio interno en lugar de gap */
  height: 100%;
  width: 100%;
}

/* Logo se mantiene arriba a la izquierda */
.logo {
  align-self: flex-start;
  opacity: 0;
  transform: translateY(0px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.offcanvas-menu.active .logo {
  opacity: 1;
  transform: translateY(-1);
}

/* Contenedor del menú centrado */
.menu-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.menu li {
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateX(-30px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

/* Animación escalonada de los items del menú */
.offcanvas-menu.active .menu li:nth-child(1) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.1s;
}

.offcanvas-menu.active .menu li:nth-child(2) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.2s;
}

.offcanvas-menu.active .menu li:nth-child(3) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.3s;
}

.offcanvas-menu.active .menu li:nth-child(4) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.4s;
}

.offcanvas-menu.active .menu li:nth-child(5) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.5s;
}

.menu a {
  text-decoration: none;
  color: #000000;
  font-weight: 500;
  font-size: 2.5rem;
  transition: all 0.3s ease;
  display: block;
  position: relative;
}

.menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #dd5d2a;
  transition: width 0.3s ease;
}

.menu a:hover {
  color: #dd5d2a;
  transform: translateX(10px);
}

.menu a:hover::after {
  width: 100%;
}

/* ===================================
   CONTENIDO DERECHO (IMAGEN)
   =================================== */

.right-content {
  flex: 1;
  background-color: #e4e2e2;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
  overflow: hidden;
  padding-left: 0; /* Sin padding adicional */
  opacity: 0;
  transform: translateX(50px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.offcanvas-menu.active .right-content {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.3s;
}

.crane-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* WhatsApp */
.whatsapp {
  position: absolute;
  top: 0;
  right: 0;
  padding: 1rem;
  text-align: left;
  margin: 1.5rem 6rem;
  z-index: 10;
}

.whatsapp p {
  font-size: 0.9rem;
  margin: 0;
  color: #000;
  text-align: left;
}

.whatsapp span {
  color: #000;
  font-weight: 500;
}

.whatsapp img {
  width: 22px;
}

.whatsapp a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.3s ease;
}

.whatsapp a:hover span {
  color: #dd5d2a;
}

/* ===================================
   BOTÓN HAMBURGUESA
   =================================== */

.navbar-toggler {
  border: none;
  outline: none;
  transition: transform 0.3s ease;
  /* margin-right: 3%; */
}

.navbar-toggler:hover {
  transform: scale(1.1);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Botón de cierre */
.btn-close {
  opacity: 0.8;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  top: 1rem;
  right: 2rem;
}

.btn-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

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

@media (max-width: 992px) {
  body {
    overflow-y: auto;
  }

  .navbar-logo,
  .menu-logo {
    width: 130px;
  }

  .main-section {
    padding: 0;
  }

  .main-section > div {
    flex-direction: column !important;
  }

  .left-content {
    align-items: flex-start;
    justify-content: flex-start;
    height: auto;
    order: 1;
    padding: 1.5rem;
    padding-right: 1.5rem;
    flex: none;
    height: 50% !important;
  }

  .logo {
    align-self: flex-start;
    margin-bottom: 0rem;
    margin-top: 1rem;
    margin-left: 0rem;
  }

  .menu-container {
    width: 100%;
    justify-content: flex-start;
    height: auto;
  }

  .menu ul {
    text-align: left;
  }

  .menu a {
    font-size: 1.8rem;
  }

  .right-content {
    order: 2;
    margin-bottom: 1rem;
    height: 50vh;
    padding: 0rem;
    /* padding-left: 1rem; */
    flex: none;
    height: 50% !important;
  }

  .crane-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 15px;
  }

  .whatsapp {
    position: relative;
    text-align: left;
    padding: 0;
    margin: 1.5rem 0rem;
  }

  .whatsapp p {
    text-align: left;
  }
}

@media (max-width: 576px) {
  .navbar-logo,
  .menu-logo {
    width: 110px;
  }

  .menu a {
    font-size: 1.4rem;
  }

  .right-content {
    height: 40vh;
  }

  .left-content {
    padding: 1rem;
    padding-right: 1rem;
  }

  .main-section {
    padding: 0;
  }
}

/* Ajustes para pantallas muy grandes */
@media (min-width: 1600px) {
  .navbar-logo,
  .menu-logo {
    width: 180px;
  }

  .crane-image {
    object-fit: contain;
  }
}

/* ===================================
   ANIMACIÓN DE CARGA DE PÁGINA
   =================================== */

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Prevenir flash de contenido sin estilo */
body:not(.loaded) #page-content {
  transform: translateX(100%);
}

body.loaded #page-content {
  animation: slideInFromRight 0.6s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

/* Imagen de fondo */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Overlay oscuro sobre la imagen */

/* Contenido sobre la imagen */
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
}

.hero-content .container-fluid {
  height: 100%;
}

/* Texto principal */
.hero-text {
  color: white;
  max-width: 650px;
  padding-left: 2rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.hero-title br {
  display: block;
}

.hero-description {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 580px;
}

.hero-description .highlight {
  color: #ff6b35;
  font-weight: 600;
}

/* Botón de cotizar */
.btn-cotizar {
  background-color: transparent;
  border: 2px solid white;
  color: white;
  padding: 12px 35px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.5px;
}

.btn-cotizar:hover {
  background-color: #ff6b35;
  border-color: #ff6b35;
  transform: translateX(5px);
}

.btn-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.btn-cotizar:hover .btn-arrow {
  transform: translateX(5px);
}

/* Cards de servicios */
.services-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-right: 3rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ff6b35;
  transform: translateX(-5px);
}

.service-icon {
  color: #ff6b35;
  flex-shrink: 0;
}

.service-text h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.3rem;
}

.service-text p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.4;
}

/* Información de contacto superior derecha */
.hero-contact {
  position: absolute;
  top: 100px;
  right: 3rem;
  text-align: right;
  z-index: 3;
}

.contact-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.contact-phone:hover {
  color: #ff6b35;
}

/* Botón de scroll */
.hero-scroll-btn {
  position: absolute;
  bottom: 3rem;
  right: 3rem;
  width: 60px;
  height: 60px;
  background-color: #ff6b35;
  border: none;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
}

.hero-scroll-btn:hover {
  background-color: #e55a28;
  transform: translateY(5px);
}

.hero-scroll-btn svg {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* ===================================
   RESPONSIVE - HERO SECTION
   =================================== */

@media (max-width: 1400px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-text {
    padding-left: 1.5rem;
  }

  .services-cards {
    padding-right: 2rem;
  }
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-text {
    padding-left: 1rem;
    max-width: 100%;
  }

  .hero-contact {
    top: 80px;
    right: 1.5rem;
  }

  .hero-scroll-btn {
    width: 50px;
    height: 50px;
    bottom: 2rem;
    right: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 500px;
  }

  .hero-content {
    padding: 80px 0 60px;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .hero-description {
    font-size: 0.9rem;
    margin-bottom: 2rem;
  }

  .hero-text {
    padding-left: 0;
  }

  .btn-cotizar {
    padding: 10px 25px;
    font-size: 0.9rem;
  }

  .hero-contact {
    position: static;
    text-align: center;
    margin-top: 2rem;
    padding: 0 1rem;
  }

  .contact-phone {
    justify-content: center;
  }

  .hero-scroll-btn {
    width: 45px;
    height: 45px;
    bottom: 1.5rem;
    right: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-description {
    font-size: 0.85rem;
  }

  .btn-cotizar {
    width: 30% !important;
    justify-content: center;
  }
}
/* ===================================
   PANEL DERECHO FIJO
   =================================== */
.right-panel {
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 148px !important;
  background: #1e1e1eb2 !important;
  display: flex !important;
  flex-direction: column !important;
   justify-content: space-between !important;
  align-items: center;
  padding: 50px 0 !important;
  text-align: center !important;
  color: white !important;
  z-index: 10 !important;
  backdrop-filter: blur(3px) !important;
}

.panel-options {
  display: flex;
  flex-direction: column;
  margin: auto 0;
  gap: 40px;
}

.panel-item {
  text-decoration: none;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 10px;
  opacity: 0.9;
  transition: opacity 0.2s ease-in-out;
}

.panel-item:hover {
  opacity: 1;
}

.panel-item img {
  width: 55px !important;
  height: 55px !important;
  object-fit: contain !important;
  display: block !important;
}

.panel-item h2 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
  text-align: center;
}

.panel-arrow {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px 0;
  background: var(--color-primary); /* naranja */
  cursor: pointer;
}

.panel-arrow:hover {
  background: var(--color-secondary); /* amarillo */
}

.panel-arrow i {
  font-size: 26px;
  color: white;
}

/* Hover fuerte y notorio */
.panel-item:hover {
  transform: translateY(-10px) scale(1.05);
}

.panel-item:hover img {
  transform: scale(1.15);
  filter: drop-shadow(0 12px 20px rgba(0,0,0,0.3));
}

.panel-arrow a {
  font-size: 2.5rem;
  color: #333;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

.panel-arrow a:hover {
  transform: translateX(10px) scale(1.15);
}


@media (max-width: 768px) {
  .right-panel {
    display: none !important;
  }
}

/* Sección de servicios móviles */
.mobile-services {
  display: none; /* Oculto por defecto */
  background-color: #646464; /* Fondo gris oscuro */
  color: white;
  padding: 15px 35px;
  width: 100%;
}

.service-option {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  background-color: #646464;
  overflow: hidden;
}

.service-image {
  width: 20%;
  height: 20%;
  object-fit: cover;
  flex-shrink: 0;
}

.service-content {
  padding: 20px;
  flex-grow: 1;
}

.service-content h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: white; /* Color naranja de Intersteel */
  text-decoration: none!important;
}

a {
  text-decoration: none!important;
}

.service-content p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Mostrar solo en móviles */
@media (max-width: 768px) {
  .mobile-services {
    display: block;
  }
}

/* Estilos para mostrar cómo se vería en el contexto de la página */
.demo-content {
  padding: 20px;
  text-align: center;
}

.desktop-message {
  background-color: #e4e2e2;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.mobile-message {
  display: none;
}

@media (max-width: 768px) {
  .desktop-message {
    display: none;
  }

  .mobile-message {
    display: block;
    background-color: #dd5d2a;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
  }
}
