/* ==========================================================================
   GILRAM - Estilos Oficiales
   Arrendamiento Puro | Fuerza que impulsa tu negocio
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --color-purple-primary: #622585;
  --color-purple-dark: #4d1c69;
  --color-purple-light: #8E38BD;
  --color-purple-glow: rgba(98, 37, 133, 0.25);
  --color-black: #08080a;
  --color-black-card: #121216;
  --color-white: #ffffff;
  --color-gray-light: #f5f5f7;
  --color-gray-border: #dcdce2;
  --color-gray-text: #55555e;
  --color-whatsapp: #25D366;
  
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --transition-fast: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  font-size: 16px;
  color: #1a1a1a;
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (IntersectionObserver)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.reveal-left {
  transform: translateX(-45px);
}

.reveal-on-scroll.reveal-right {
  transform: translateX(45px);
}

.reveal-on-scroll.reveal-zoom {
  transform: scale(0.9);
}

/* Estado activo al ingresar a pantalla */
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Retardos secuenciales (Stagger) */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ==========================================================================
   HEADER / NAVBAR (Diseño exacto del PDF)
   ========================================================================== */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 28px 0 12px 0;
  transition: var(--transition-normal);
}

.header.scrolled {
  position: fixed;
  background-color: rgba(10, 10, 14, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 16px 0 10px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.header-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}

.header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.header-top-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-container {
  display: inline-block;
  transition: var(--transition-fast);
}

.header-logo-icon {
  height: 52px;
  width: auto;
  transition: var(--transition-fast);
}

.logo-container:hover .header-logo-icon {
  transform: scale(1.05);
}

.header-contact-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
  text-decoration: none;
  transition: var(--transition-fast);
}

.header-contact-info:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.header-wa-icon {
  width: 32px;
  height: 32px;
}

.header-contact-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.contact-lbl {
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1.1;
}

.contact-num {
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--color-white);
  line-height: 1.2;
}

/* Linea divisoria con segmento morado en la izquierda */
.header-divider-line {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 12px;
}

.divider-purple-accent {
  width: 60px;
  height: 2.5px;
  background-color: var(--color-purple-light);
  flex-shrink: 0;
}

.divider-white-line {
  flex-grow: 1;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.7);
}

/* Fila inferior de navegacion */
.header-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  color: var(--color-white);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  padding: 2px 0;
  transition: var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-purple-light);
  transition: var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-divider {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  font-size: 0.9rem;
}

/* Boton Hamburguesa Animado */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 102;
  width: 40px;
  height: 38px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-sm);
  transition: background-color 0.3s ease;
}

.mobile-nav-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  transform-origin: center;
}

.mobile-nav-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-nav-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 85vh;
  background-image: url('../images/Gilram Principal.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 60px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg, 
    rgba(0, 0, 0, 0.4) 0%, 
    rgba(0, 0, 0, 0.2) 60%, 
    rgba(0, 0, 0, 0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.ver-mas-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-white);
  color: #111111;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: var(--transition-normal);
}

.ver-mas-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.4);
  background-color: #f8f8f8;
}

.ver-mas-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.ver-mas-btn:hover svg {
  transform: translateY(3px);
}

/* ==========================================================================
   NOSOTROS / PURPLE BANNER
   ========================================================================== */
.nosotros-section {
  background-color: var(--color-purple-primary);
  color: var(--color-white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.nosotros-content {
  max-width: 860px;
  margin: 0 auto;
}

.nosotros-text {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 24px;
  opacity: 0.95;
}

.nosotros-text:last-of-type {
  margin-bottom: 40px;
}

.nosotros-logo-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
  transition: transform 0.4s ease;
}

.nosotros-logo-icon:hover {
  transform: rotate(5deg) scale(1.08);
}

.nosotros-tagline {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-top: 10px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* ==========================================================================
   SERVICIOS GRID & CARDS
   ========================================================================== */
.servicios-section {
  padding: 80px 0 90px 0;
  background-color: #ffffff;
}

.section-title-container {
  margin-bottom: 48px;
  border-bottom: 1.5px solid #000000;
  padding-bottom: 16px;
}

.section-title-main {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #000000;
  text-transform: uppercase;
}

.servicios-subtitle {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: #000000;
  letter-spacing: 0.5px;
  margin-bottom: 50px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.service-card {
  background: var(--color-white);
  border: 1.5px solid #000000;
  border-radius: var(--radius-lg);
  padding: 36px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.card-icon-wrapper {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon-wrapper img {
  width: 44px;
  height: 44px;
  filter: brightness(0);
  transition: var(--transition-fast);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #000000;
  margin-bottom: 12px;
  line-height: 1.25;
  transition: var(--transition-fast);
}

.card-desc {
  font-size: 0.88rem;
  color: #222222;
  line-height: 1.5;
}

/* Hover en las tarjetas */
.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-purple-primary);
  box-shadow: 0 16px 36px rgba(98, 37, 133, 0.18);
}

.service-card:hover .card-title {
  color: var(--color-purple-primary);
}

.service-card:hover .card-icon-wrapper img {
  filter: invert(19%) sepia(85%) saturate(2250%) hue-rotate(265deg) brightness(85%) contrast(98%);
  transform: scale(1.1);
}

.servicios-bottom-divider {
  width: 100%;
  height: 1.5px;
  background-color: #000000;
  margin-bottom: 90px;
}

/* ==========================================================================
   SECTOR DETAILED ROWS
   ========================================================================== */
.sector-detail-row {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 90px;
}

.sector-detail-row.reverse {
  flex-direction: row-reverse;
}

.sector-images-col {
  flex: 1;
  position: relative;
  min-height: 380px;
}

.stacked-images {
  position: relative;
  width: 100%;
  height: 380px;
}

.stacked-img {
  position: absolute;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.stacked-img.top-img {
  width: 75%;
  height: 240px;
  top: 0;
  left: 0;
  z-index: 1;
}

.stacked-img.bottom-img {
  width: 75%;
  height: 240px;
  bottom: 0;
  right: 0;
  z-index: 2;
}

.sector-detail-row:hover .stacked-img.top-img {
  transform: translateY(-4px) scale(1.01);
}

.sector-detail-row:hover .stacked-img.bottom-img {
  transform: translateY(-4px) scale(1.02);
}

.sector-content-col {
  flex: 1;
}

.sector-heading {
  font-size: 2rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 24px;
}

.sector-subgroup {
  margin-bottom: 20px;
}

.sector-subheading {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}

.sector-bullets {
  list-style: none;
  padding-left: 0;
}

.sector-bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 6px;
  line-height: 1.5;
}

.sector-bullets li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--color-purple-primary);
  font-weight: bold;
}

.sector-paragraph {
  font-size: 1rem;
  color: #333;
  line-height: 1.7;
  margin-bottom: 16px;
}

.sector-paragraph li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
}

.sector-paragraph li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--color-purple-primary);
  font-weight: bold;
}

/* ==========================================================================
   DISEÑO ESPECIAL CONSTRUCCIÓN
   ========================================================================== */
.construccion-detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: flex-start;
  margin-bottom: 90px;
}

.construccion-left-col {
  display: flex;
  flex-direction: column;
}

.construccion-heading {
  font-size: 2.5rem;
  font-weight: 800;
  color: #000000;
  margin-bottom: 16px;
}

.construccion-excavator-img {
  width: 100%;
  max-width: 460px;
  height: auto;
  border-radius: 24px;
  display: block;
}

.construccion-right-col {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-top: 10px;
}

.construccion-worker-img {
  width: 100%;
  max-width: 380px;
  height: 250px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   ARRENDAMIENTO BLACK BANNER
   ========================================================================== */
.arrendamiento-black-section {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 100px 0;
  text-align: center;
}

.arrendamiento-title-huge {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 4px;
}

.arrendamiento-subtitle-purple {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 30px;
}

.arrendamiento-lead-text {
  font-size: 1.15rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.planes-box {
  max-width: 760px;
  margin: 0 auto 50px auto;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
}

.planes-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-white);
}

.planes-list {
  list-style: none;
}

.planes-list li {
  position: relative;
  padding-left: 24px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
  line-height: 1.6;
}

.planes-list li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: var(--color-purple-light);
  font-size: 1.2rem;
}

.arrendamiento-callout {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-white);
}

.arrendamiento-subcallout {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-white);
}

/* ==========================================================================
   CONTACTO PURPLE SECTION
   ========================================================================== */
.contacto-section {
  background-color: var(--color-purple-primary);
  color: var(--color-white);
  padding: 70px 0 60px 0;
}

.contacto-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.contacto-title {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--color-white);
  text-transform: uppercase;
}

.contacto-logo-img {
  height: 52px;
  width: auto;
}

.contacto-divider-line {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.6);
  margin-bottom: 36px;
}

.contacto-body-content {
  margin-bottom: 45px;
}

.contacto-heading {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 4px;
  line-height: 1.3;
}

.contacto-subheading {
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 24px;
}

.contacto-bullets {
  list-style: none;
  padding-left: 0;
  margin-bottom: 24px;
}

.contacto-bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 1.02rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 4px;
  line-height: 1.5;
}

.contacto-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-white);
  font-weight: bold;
}

.contacto-slogan {
  font-size: 1.12rem;
  font-weight: 400;
  color: var(--color-white);
  margin-top: 14px;
}

.contacto-footer-row {
  display: flex;
  align-items: flex-end;
  gap: 50px;
}

.contact-item-email {
  display: flex;
  flex-direction: column;
}

.contact-item-label {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1.2;
}

.contact-item-value {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.3;
  transition: opacity 0.2s ease;
}

.contact-item-value:hover {
  opacity: 0.85;
}

.contact-item-wa {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-wa-circle-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.contact-wa-text {
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   FOOTER (BLACK BAR)
   ========================================================================== */
.footer-bar {
  background-color: #000000;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 18px 0;
  font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN & MOBILE MENU
   ========================================================================== */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sector-detail-row,
  .sector-detail-row.reverse,
  .construccion-detail-row {
    grid-template-columns: 1fr;
    flex-direction: column;
    gap: 40px;
  }

  .sector-images-col {
    width: 100%;
    min-height: 300px;
  }
  
  .stacked-images {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: flex;
  }

  .header-divider-line {
    margin-bottom: 0;
  }

  .header-bottom-row {
    position: static;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 20px;
    right: 20px;
    background-color: rgba(14, 14, 18, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    flex-direction: column;
    padding: 24px 20px;
    gap: 16px;
    z-index: 999;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px) scale(0.96);
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.35s ease, 
                visibility 0.35s ease;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .nav-link {
    font-size: 1rem;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-divider {
    display: none;
  }

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

  .arrendamiento-title-huge {
    font-size: 2.2rem;
  }

  .arrendamiento-subtitle-purple {
    font-size: 1.6rem;
  }

  .nosotros-tagline {
    font-size: 1.8rem;
  }

  .contacto-footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .contacto-header-row {
    align-items: flex-start;
  }

  .contacto-logo-img {
    height: 40px;
  }
}
