/* =========================================
   JALMAQ - Industrial Landing Page Styles
   ========================================= */

/* CSS Variables based on Official Logo Palette */
:root {
  --primary: #6FA63B;      /* Green */
  --primary-dark: #5b8d30; /* Darker Green for hover */
  --secondary: #3C4372;    /* Technical Blue */
  --dark-blue: #2B3054;    /* Deep Blue */
  --light-gray: #F4F6F8;   /* Background Gray */
  --steel-gray: #6B7280;   /* Text Gray */
  --white: #FFFFFF;
  
  --text-main: #6B7280;
  --text-titles: #2B3054;
  --text-subtitles: #3C4372;
  
  --border-radius: 8px;
  --border-radius-btn: 6px;
  --transition: all 0.3s ease;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08); /* Card Shadow */
  
  --container-width: 1200px;
  --section-padding: 80px 0;
}

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

html {
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--text-titles);
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  color: var(--text-titles);
}

h3 {
  color: var(--text-subtitles);
}

a {
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Utility Classes */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.section {
  padding: var(--section-padding);
}

.bg-white { background-color: var(--white); }
.bg-light { background-color: var(--light-gray); }
.bg-dark { background-color: var(--dark-blue); color: var(--white); }

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }

.section-header {
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-main);
}

.highlight-info-box {
  background: var(--white);
  border-left: 5px solid var(--primary);
  padding: 3rem;
  margin-bottom: 3rem;
  border-radius: var(--border-radius);
  text-align: left;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  border-left: 5px solid var(--primary);
  width: 100%;
}

.highlight-intro {
  color: var(--text-titles);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--light-gray);
  padding-bottom: 1.5rem;
}

.highlight-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.highlight-list strong {
  display: block;
  color: var(--secondary);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.highlight-list ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.highlight-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-main);
  font-weight: 500;
}

.highlight-list i {
  color: var(--primary);
  font-size: 1rem;
}

@media (max-width: 768px) {
  .highlight-features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.grid {
  display: grid;
  gap: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--border-radius-btn);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(111, 166, 59, 0.3);
}

.btn-secondary, .btn-outline {
  background-color: transparent;
  border-color: var(--secondary);
  color: var(--secondary);
}

.btn-secondary:hover, .btn-outline:hover {
  background-color: var(--secondary);
  color: var(--white);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
}

.btn-full {
  width: 100%;
}

.btn-whatsapp {
  background-color: #25D366;
  color: var(--white);
  padding: 1rem;
  border-radius: var(--border-radius-btn);
}

.btn-whatsapp:hover {
  background-color: #128C7E;
  transform: translateY(-2px);
}

/* ================= HEADER ================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(
    90deg,
    #5A6296 0%,
    #50588A 25%,
    #3C4372 55%,
    #353C66 78%,
    #2F355C 100%
  );
  z-index: 1000;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.header.scrolled {
  padding: 0.25rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header.scrolled .logo-img {
  height: 50px;
}

@media (max-width: 768px) {
  .header .logo-img {
    height: 60px;
  }
  .header.scrolled .logo-img {
    height: 45px;
  }
}

@media (max-width: 480px) {
  .header .logo-img {
    height: 50px;
  }
  .header.scrolled .logo-img {
    height: 40px;
  }
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 120px;
  transition: var(--transition);
}

.header.scrolled .nav-container {
  height: 80px;
}

@media (max-width: 768px) {
  .nav-container {
    height: 75px;
  }
  .header.scrolled .nav-container {
    height: 60px;
  }
}

.logo-img {
  height: 90px;
  width: auto;
  display: block;
  transition: var(--transition);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo-img:hover {
  transform: scale(1.05);
}

.footer-logo {
  height: 120px;
  margin-bottom: 2rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-link:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1001;
}

@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }
}

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  background: linear-gradient(135deg, var(--dark-blue), var(--secondary));
  color: var(--white);
  overflow: hidden;
}

/* Decorative background image overlay */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/img/Fondo_suelo.png');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
}

.badge {
  display: inline-block;
  background-color: rgba(111, 166, 59, 0.2);
  color: var(--primary);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  border: 1px solid var(--primary);
}

.hero-title {
  font-size: 3.25rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3rem;
  max-width: 650px;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

.hero .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.hero .btn-outline:hover {
  background-color: var(--white);
  color: var(--dark-blue);
}

/* ================= QUIÉNES SOMOS ================= */
.about-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
}

.about-content .section-title {
  text-align: left;
  margin-left: 0;
}

.lead-text {
  font-size: 1.25rem;
  color: var(--text-titles);
  margin-bottom: 1.5rem;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.a-feature {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.a-feature i {
  font-size: 2rem;
  color: var(--primary);
  margin-top: 0.25rem;
}

.a-feature h4 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.about-image {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  border-bottom: 6px solid var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 100%;
}

.representative-img {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
  transition: var(--transition);
}

.about-image:hover .representative-img {
  transform: scale(1.05);
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    max-width: 500px;
    margin: 0 auto;
  }
}

/* ================= ALCANCE ================= */


/* ================= SOLUTION / CARDS ================= */
.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.product-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--primary);
  text-align: left;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-8px);
}



.product-card h3 {
  margin-bottom: 1rem;
}

/* Product Card overrides if needed */
.product-card {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.product-image {
  position: relative;
  height: 240px;
  background: var(--white); /* White background highlights the product better than light gray */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--light-gray);
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05); /* Slight scale on hover for dynamic feel */
}

.product-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-content p {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* ================= PAGINATION ================= */
.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  width: 100%;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  border: 1px solid var(--light-gray);
  background-color: var(--white);
  color: var(--secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.page-btn:hover {
  background-color: var(--light-gray);
}

.page-btn.active {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ================= PRODUCT TABS ================= */
.product-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
  background-color: var(--primary);
  color: var(--white);
}

.product-card {
  display: flex !important;
}

.product-card.hide {
  display: none !important;
}

.product-category-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--secondary);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* ================= SERVICE SECTORS ================= */
.service-sectors {
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid var(--light-gray);
}

.subsection-title {
  font-size: 1.75rem;
  margin-bottom: 2.5rem;
  text-align: center;
  color: var(--secondary);
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.sector-card {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  transition: var(--transition);
  border: 1px solid transparent;
}

.sector-card:hover {
  background: var(--white);
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
}

.sector-card i {
  font-size: 1.75rem;
  color: var(--primary);
}

.sector-card span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-titles);
}

/* ================= WHY CHOOSE US ================= */
.feature-item {
  text-align: center;
}

.f-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

/* ================= PROCESS ================= */
.process-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  position: relative;
}

.process-card {
  background: var(--light-gray);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
  border-bottom: 5px solid transparent;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.process-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-10px);
  border-bottom: 5px solid var(--primary);
}

.process-icon {
  width: 75px;
  height: 75px;
  background: var(--white);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.process-card:hover .process-icon {
  background: var(--primary);
  color: var(--white);
  transform: rotate(10deg);
}

.process-content h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-titles);
}

.process-content p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-main);
}

/* ================= CONTACT ================= */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-info {
  background: var(--dark-blue);
  color: var(--white);
  padding: 4rem;
}

.contact-info .section-title {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.contact-info > p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-details li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-details li i {
  color: var(--primary);
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

.contact-details strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.contact-details p {
  font-size: 1.1rem;
  color: var(--white);
  margin: 0;
}

.contact-form-container {
  background: var(--white);
  padding: 4rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.form-group label {
  font-weight: 600;
  color: var(--text-titles);
  font-size: 0.9rem;
}

.form-group input, .form-group textarea {
  width: 100%;
  background: var(--light-gray);
  border: 1px solid #e5e7eb;
  padding: 1rem;
  border-radius: 4px;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}

/* ================= FOOTER ================= */
.footer {
  background: linear-gradient(
    135deg,
    #5A6296 0%,
    #50588A 25%,
    #3C4372 55%,
    #353C66 78%,
    #2F355C 100%
  );
  color: var(--white);
  padding: 80px 0 20px;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
}

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

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1200px) {
  .container { width: 95%; }
}

@media (max-width: 992px) {
  .hero-title { font-size: 3rem; }
  .contact-wrapper { grid-template-columns: 1fr; }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: linear-gradient(
      180deg,
      #5A6296 0%,
      #3C4372 55%,
      #2F355C 100%
    );
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
    transition: 0.4s ease-in-out;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    z-index: 1000;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .footer-col {
    align-items: center;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 40px 0;
  }
  
  .section-title { font-size: 2.2rem; margin-bottom: 0.5rem; }
  .section-header { margin-bottom: 2rem; }
  .hero { padding-top: 120px; padding-bottom: 60px; min-height: auto; }
  .hero-subtitle { font-size: 1.1rem; }
  .hero-buttons { flex-direction: column; width: 100%; gap: 1.25rem; }
  .hero-buttons .btn { width: 100%; margin: 0; }
  .badge { margin-bottom: 1.5rem; }
  
  .product-tabs {
    gap: 0.5rem;
  }
  
  .tab-btn {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 30px 0;
  }
  .hero { padding-top: 110px; padding-bottom: 50px; }
  .hero-title { font-size: 1.8rem; margin-bottom: 1.25rem; }
  .section-title { font-size: 1.6rem; margin-bottom: 1.25rem; }
  .hero-subtitle { font-size: 1rem; margin-bottom: 2.5rem; }
  
  .highlight-info-box {
    padding: 1.5rem;
  }
  
  .contact-info, .contact-form-container {
    padding: 2rem 1.5rem;
  }
}
/* ================= MODAL ================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius);
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.7);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-icon {
  width: 80px;
  height: 80px;
  background: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
}

.modal-icon.success {
  background: rgba(111, 166, 59, 0.1);
  color: var(--primary);
}

.modal h3 {
  margin-bottom: 1rem;
  color: var(--text-titles);
  font-size: 1.75rem;
}

.modal p {
  color: var(--text-main);
  margin-bottom: 2rem;
  line-height: 1.6;
}
