:root {
  --blue: #0569FF;
  --royal-blue: #002D72;
  --orange: #ff4400;
  --white: #FFFFFF;
  --black: #111111;
  --light-gray: #f4f4f4;
  --radius: 12px;
  --shadow: 0 20px 40px rgba(0,0,0,0.1);
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { 
  scroll-behavior: smooth; 
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.bg-royal-blue { background-color: var(--royal-blue) !important; }
.text-orange { color: var(--orange); }
.text-blue { color: var(--blue); }
.bg-light { background-color: var(--light-gray) !important; }
.text-center { text-align: center; }
.text-white { color: var(--white) !important; } /* Utility class for white text */

/* NAV */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 0; /* Adjusted padding for a slightly smaller navbar */
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
  z-index: 1000;
  transition: padding 0.3s ease; /* Smooth transition for potential future scroll effects */
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo { 
  display: flex;
  flex-direction: column; /* Stacked vertically */
  align-items: center;
  text-decoration: none;
}
.logo-dist { 
  font-weight: 300; /* Reverted to 300 as per "letras delgadas" */
  font-size: 0.9rem; /* Adjusted size */
  color: var(--black); 
  letter-spacing: 2px; /* Added spacing */
}
.logo-separator {
  width: 150px; /* Adjusted width */
  height: 3px; /* Thickness of the blue line */
  background-color: var(--blue);
  margin: 8px 0; /* Space above and below the line */
}
.logo-jhon { 
  font-family: 'Orbitron', sans-serif; 
  font-weight: 700; 
  font-size: 1.1rem; /* Aún más pequeño para un estilo más minimalista */
  color: var(--blue); 
  letter-spacing: 5px; /* Más espaciado para estilo tecnológico */
  line-height: 1; /* Ensure tight line height */
}
.logo-bottom-separator {
  width: 60px; /* Adjusted width */
  height: 3px;
  background-color: var(--orange); /* Orange color */
  margin-top: 8px; /* Space below JHONKARS */
  margin-bottom: 0; /* No bottom margin if it's the last element */
}

.nav-links { 
  display: flex; 
  gap: 30px; 
}

.nav-links a {
  text-decoration: none;
  color: var(--black);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.nav-links a:hover { color: var(--blue); }

.btn-nav {
  background: var(--orange);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.nav-btn { display: none; }
.mobile-only { display: none !important; }
#nav-check:checked ~ .nav-links { display: flex; }

.btn-nav:hover { 
  background: var(--blue); 
  transform: translateY(-2px); 
}

/* HERO */
.hero {
  min-height: 100vh;
  padding-top: 120px; /* Adjusted padding for the slightly smaller navbar */
  padding-bottom: 60px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden; 
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.pexels.com/photos/4489732/pexels-photo-4489732.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}

.hero-shape {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 105, 255, 0.92) 0%, transparent 75%);
  clip-path: polygon(0 0, 65% 0, 45% 100%, 0% 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 650px;
  color: var(--white);
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin: 10px 0 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.badge { background: var(--orange); color: var(--white); padding: 5px 12px; font-size: 0.7rem; font-weight: 800; border-radius: 2px; margin-bottom: 20px; display: inline-block; }
.hero p { 
  font-size: 1.05rem; 
  opacity: 0.85; 
  margin-bottom: 30px; 
  max-width: 520px; 
  line-height: 1.5;
}

.hero-buttons { display: flex; gap: 15px; }
.btn-cta { background: var(--orange); color: var(--white); padding: 16px 32px; font-weight: 700; text-decoration: none; transition: var(--transition); border-radius: 4px; text-align: center; }
.btn-outline { border: 2px solid var(--white); color: var(--white); padding: 14px 32px; font-weight: 700; text-decoration: none; transition: var(--transition); border-radius: 4px; }

.btn-cta:hover { background: var(--white); color: var(--blue); transform: translateY(-3px); }
.btn-outline:hover { background: var(--blue); border-color: var(--blue); }

/* SECTIONS */
.section { padding: 100px 0; background-color: var(--white); } /* Default background for sections */
.section-header { margin-bottom: 60px; }
.section-title { font-size: 2.5rem; font-weight: 800; margin: 0; }

/* NEW MULTI-LINE STYLE */
.title-lines { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.title-lines .line { height: 6px; display: block; border-radius: 3px; }
.line-1 { width: 280px; background: var(--blue); }
.line-2 { width: 200px; background: var(--orange); }
.line-3 { width: 120px; background: var(--blue); }
.line-4 { width: 60px; background: var(--orange); }

/* NUESTROS VALORES SECTION */
#valores .section-title {
  margin-bottom: 20px; /* Adjust margin for title in this section */
}
#valores .title-line {
  margin: 15px 0; /* Aligned to the left */
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.value-item {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on royal blue */
  border-radius: var(--radius);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.value-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}
.value-item i {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}
.value-item h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--white);
}
.value-item p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

/* CALL TO ACTION SECTION */
#cta .section-title {
  margin-bottom: 20px;
}
#cta .title-line {
  margin: 15px 0 0;
}
.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.cta-content p {
  font-size: 1.1rem;
  margin-bottom: 40px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.btn-outline-white {
  border: 2px solid var(--white);
  color: var(--white);
  padding: 14px 32px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-outline-white:hover {
  background: var(--orange);
  border-color: var(--orange);
}

/* PRODUCTS ASYMMETRIC GRID */
.products-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--white);
  padding: 40px;
  border: 1px solid #eee;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 5px; height: 0;
  background: var(--blue);
  transition: var(--transition);
}

.product-card:hover { 
  transform: translateY(-10px); 
  box-shadow: var(--shadow); 
  border-color: transparent; 
}

.product-card:hover::before { height: 100%; }
.product-card.border-orange:hover::before { background: var(--orange); }

.card-icon { font-size: 2.5rem; color: var(--blue); margin-bottom: 20px; transition: var(--transition); }
.product-card:hover .card-icon { color: var(--orange); transform: scale(1.1); }
.product-card h3 { font-size: 1.4rem; margin-bottom: 15px; font-weight: 700; }
.product-card p { color: #666; margin: 0; } /* Keep text dark for readability on white cards */

/* GALLERY MASONRY */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 15px;
}

.gallery-img {
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  transition: var(--transition);
  cursor: pointer;
  filter: grayscale(0.5);
}

.gallery-img:hover { filter: grayscale(0); transform: scale(0.98); }

.item-1 { grid-column: span 2; grid-row: span 2; }
.item-2 { grid-column: span 1; grid-row: span 1; }
.item-6 { grid-column: span 2; grid-row: span 1; }

/* TESTIMONIALS */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  border-left: 6px solid var(--blue);
  transition: var(--transition);
}

.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.testimonial-text { font-style: italic; font-size: 1.1rem; margin-bottom: 20px; color: #444; line-height: 1.6; }

.testimonial-profile { display: flex; align-items: center; gap: 15px; }
.user-icon { font-size: 2.5rem; color: var(--blue); opacity: 0.7; }

.testimonial-author { display: flex; flex-direction: column; }
.testimonial-author strong { font-size: 1.1rem; color: var(--royal-blue); }
.testimonial-author span { font-size: 0.85rem; color: var(--orange); font-weight: 700; text-transform: uppercase; margin-top: 4px; }

/* LOCATION */
.location-wrapper {
  display: grid;
  grid-template-columns: 1fr 450px;
  align-items: center;
  margin-top: 50px;
  position: relative;
}

.map-box { 
  height: 600px; 
  z-index: 1; 
  border-radius: var(--radius); 
  overflow: hidden; 
  box-shadow: var(--shadow);
  border: 8px solid var(--white); /* Borde estilo cuadro premium */
}
.map-box iframe { width: 100%; height: 100%; border: 0; }

.info-card {
  background: var(--white);
  padding: 50px;
  margin-left: -100px; /* Mayor solapamiento */
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  border-top: 6px solid var(--blue); /* Acento superior */
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.info-card h3 { font-size: 1.8rem; margin-bottom: 30px; font-weight: 800; color: var(--royal-blue); }

.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-icon {
  width: 45px;
  height: 45px;
  background: var(--light-gray);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-text strong { display: block; font-size: 0.85rem; text-transform: uppercase; color: #888; letter-spacing: 1px; }
.contact-text p { margin: 0; font-weight: 600; color: var(--black); }

.check-list { list-style: none; padding: 20px 0; margin: 0 0 30px 0; border-top: 1px solid #eee; }
.check-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; font-weight: 600; font-size: 0.95rem; }
.check-list i { color: var(--orange); font-size: 1.2rem; }

/* General button styles (ensure these are consistent) */
.btn-cta.full { display: block; width: 100%; }

/* FOOTER */
.footer { background: var(--royal-blue); color: var(--white); padding: 80px 0; text-align: center; border-top: 4px solid var(--orange); }
.footer-logo {
  justify-content: center;
  margin-bottom: 20px;
  /* Removed font-size as individual spans define their size */
}
.footer-logo .logo-dist {
  color: var(--white); /* White text for 'DISTRIBUIDORA' in footer */
}
.footer-logo .logo-separator {
  background-color: var(--white); /* White line in footer */
}
.footer-logo .logo-bottom-separator {
  background-color: var(--white); /* White color for the bottom separator in footer */
}
.footer-logo .logo-jhon {
  color: var(--white); /* White text for 'JHONKARS' in footer */
  opacity: 0.9; /* Slightly less opaque for 'JHONKARS' */
  /* Adjust font-size if needed for footer specifically, otherwise inherits from .logo-jhon */
  font-size: 1.4rem; /* Reducido también en el footer para coherencia */
}
.footer p { 
  font-size: 0.8rem; 
  opacity: 0.7; 
  letter-spacing: 0.5px;
}
.social-links { display: flex; justify-content: center; gap: 25px; margin-bottom: 40px; }
.social-links a { color: var(--white); font-size: 1.5rem; transition: var(--transition); }
.social-links a:hover { color: var(--orange); }

/* RESPONSIVE */
@media (max-width: 992px) {
  .nav-btn { 
    display: flex; 
    font-size: 2rem; 
    color: var(--blue); 
    cursor: pointer; 
  }
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; margin-top: 10px; justify-content: center; }
  
  .nav-links { 
    display: none; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    width: 100%; 
    background: var(--white); 
    flex-direction: column; 
    padding: 30px; 
    gap: 20px; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    text-align: center;
  }

  .location-wrapper { grid-template-columns: 1fr; }
  .info-card { margin-left: 0; margin-top: -40px; padding: 30px; }
  .gallery-masonry { grid-template-columns: repeat(2, 1fr); }
  
  .hero-shape {
    clip-path: none;
    background: linear-gradient(to bottom, rgba(5, 105, 255, 0.9), rgba(17, 17, 17, 0.7));
  }
  .hero-content { text-align: center; margin: 0 auto; }
  .hero-buttons { justify-content: center; }
}

@media (max-width: 768px) {
  .hero-buttons, .cta-buttons {
    flex-direction: column;
  }
  .btn-cta, .btn-outline, .btn-outline-white {
    width: 100%;
  }
  .section { padding: 60px 0; }
  .section-header { text-align: center; }
  .section-title { font-size: 2rem; }
  .title-lines { align-items: center; }
  .title-lines .line { max-width: 100%; }
  .line-1 { width: 80%; max-width: 280px; }
  .line-2 { width: 60%; max-width: 200px; }
  .line-3 { width: 40%; max-width: 120px; }
  .line-4 { width: 20%; max-width: 60px; }
}

@media (max-width: 576px) {
  .gallery-masonry { 
    grid-template-columns: 1fr; 
    grid-auto-rows: 250px;
  }
  .item-1, .item-6 { grid-column: span 1; }
}
