:root {
  /* Color Palette */
  --primary-color: #8b1a24; /* Maroon */
  --primary-dark: #631219;
  --primary-light: #b83b46;
  --secondary-color: #111111; /* Black */
  --text-color: #333333;
  --text-light: #666666;
  --bg-light: #f8f9fa;
  --white: #ffffff;

  /* Typography */
  --font-main: "Inter", sans-serif;

  /* Transitions */
  --transition-slow: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 100px 0;
}

.mt-2 {
  margin-top: 2rem;
}
.mb-2 {
  margin-bottom: 2rem;
}
.text-center {
  text-align: center;
}
.bg-light {
  background-color: var(--bg-light);
}
.bg-dark {
  background-color: var(--secondary-color);
}
.text-white {
  color: var(--white);
}

/* Typography */
h1,
h2,
h3,
h4 {
  color: var(--secondary-color);
  font-weight: 700;
}

.text-white h2,
.text-white h3,
.text-white h4 {
  color: var(--white);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.feature-text .section-title::after {
  left: 0;
  transform: none;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 3rem;
}

.text-white .section-subtitle {
  color: #dddddd;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
  cursor: pointer;
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(139, 26, 36, 0.2);
}

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

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

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

.btn-secondary:hover {
  background-color: var(--bg-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: transparent;
  transition: var(--transition-slow);
  z-index: 1000;
  padding: 20px 0;
}

.navbar.scrolled {
  background-color: var(--white);
  padding: 15px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand img {
  height: 60px;
  transition: var(--transition-fast);
}

.navbar.scrolled .brand img {
  height: 50px;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-list a {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.navbar:not(.scrolled) .nav-list a:not(.btn) {
  color: var(--secondary-color); /* Used to be --white, now dark for contrast */
}

.nav-list a:not(.btn):hover {
  color: var(--primary-color);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary-color);
}

.navbar:not(.scrolled) .menu-toggle {
  color: var(--secondary-color); /* Used to be --white */
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/hero.png");
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.75); /* Lighter overlay */
  z-index: -1;
}

.hero-content h1 {
  color: var(--secondary-color); /* Dark text */
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-content h1 span {
  color: var(--primary-color); /* Red emphasis */
}

.hero-content p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-color); /* Dark text */
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Stats Section */
.stats {
  background-color: var(--white);
  margin-top: -80px;
  padding-top: 0;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.stat-card {
  background-color: var(--white);
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: var(--transition-slow);
  border-bottom: 4px solid var(--primary-color);
}

.stat-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.icon-hexagon {
  width: 80px;
  height: 90px;
  background-color: rgba(139, 26, 36, 0.1);
  margin: 0 auto 20px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 2rem;
  transition: var(--transition-fast);
}

.stat-card:hover .icon-hexagon {
  background-color: var(--primary-color);
  color: var(--white);
}

.stat-card h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.stat-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Products Section */
.product-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.tag {
  background-color: var(--white);
  color: var(--secondary-color);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition-fast);
  border: 1px solid #eee;
}

.tag:hover {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.bento-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 20px;
  margin-top: 40px;
}

.bento-item {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: var(--transition-slow);
  display: flex;
}

.bento-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.bento-video {
  background-color: var(--secondary-color);
}

.bento-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.bento-item:hover video {
  transform: scale(1.05);
}

.bento-text {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(--white);
}

.bento-content {
  width: 100%;
}

.bento-content h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.bento-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
}

.bento-dark {
  background-color: var(--secondary-color);
}
.bento-dark h3, .bento-dark p {
  color: var(--white);
}

.bento-accent {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}
.bento-accent h3, .bento-accent p {
  color: var(--white);
}

/* Bento Span Modifiers */
.bento-large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-wide {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-tall {
  grid-column: span 1;
  grid-row: span 2;
}

/* Features Section */
.feature-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-list {
  list-style: none;
  margin-top: 30px;
}

.feature-list li {
  display: flex;
  margin-bottom: 25px;
  background-color: var(--bg-light);
  padding: 20px;
  border-radius: 12px;
  transition: var(--transition-fast);
}

.feature-list li:hover {
  transform: translateX(10px);
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-right: 20px;
  margin-top: 5px;
}

.feature-list strong {
  display: block;
  color: var(--secondary-color);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.feature-list p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.feature-image {
  position: relative;
  height: 100%;
  min-height: 600px;
  background-image: url("../images/trabajos.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.image-accent {
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 200px;
  height: 200px;
  background-color: var(--primary-color);
  z-index: -1;
  border-radius: 20px;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: left;
}

.contact-item,
.contact-link {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.contact-link {
  text-decoration: none;
  padding: 15px;
  border-radius: 12px;
  transition: var(--transition-fast);
  margin-bottom: 15px; /* slightly less margin since it has padding */
}

.contact-link:hover {
  transform: translateX(10px);
  background-color: rgba(255, 255, 255, 0.05);
}

.contact-link:hover i {
  background-color: var(--primary-color);
  color: var(--white);
  transform: scale(1.1);
  transition: var(--transition-fast);
}

.contact-item i,
.contact-link i {
  font-size: 1.8rem;
  color: var(--primary-light);
  margin-right: 20px;
  background: rgba(255, 255, 255, 0.05);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-item p,
.contact-link p {
  color: #aaaaaa;
  font-size: 0.9rem;
  margin-bottom: 5px;
  transition: var(--transition-fast);
  word-wrap: break-word;
  white-space: normal;
}

.contact-item h4,
.contact-link h4 {
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--white);
  transition: var(--transition-fast);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.social-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap; /* Allows buttons to wrap on very small screens */
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  transition: var(--transition-fast);
}

.social-btn:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.map-container {
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  min-height: 300px;
}

.map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer */
.footer {
  background-color: #0a0a0a;
  color: #666;
  padding: 30px 0;
  font-size: 0.9rem;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.payment-img {
    max-height: 350px;
    width: auto;
    max-width: 100%; /* Prevents image from being wider than its container */
    object-fit: contain; /* Ensures the image aspect ratio is maintained while scaling */
    opacity: 0.8;
    transition: var(--transition-fast);
}

.payment-img:hover {
    opacity: 1;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
  color: white;
}

/* Animations (Scroll Reveal) */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal.left {
  transform: translateX(-50px);
}

.reveal.right {
  transform: translateX(50px);
}

.reveal.left.active,
.reveal.right.active {
  transform: translateX(0);
}

.fade-delay-1 {
  transition-delay: 0.2s;
}
.fade-delay-2 {
  transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 992px) {
  .bento-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }
  .bento-large, .bento-wide {
    grid-column: span 2;
    grid-row: auto;
  }
  .bento-tall {
    grid-column: span 1;
    grid-row: auto;
    min-height: 300px;
    height: 300px;
  }

  .feature-container {
    grid-template-columns: 1fr;
  }

  .feature-image {
    min-height: 400px;
    order: -1;
  }

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

  .hero-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .bento-showcase-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 8px;
  }

  /* Text cards need full width to be readable on mobile */
  .bento-text {
    grid-column: span 3 !important;
    grid-row: auto !important;
    padding: 20px 16px;
    min-height: 120px;
    height: auto;
  }

  /* Large text card shouldn't take up excessive vertical space on mobile */
  .bento-large {
    grid-row: auto !important;
  }

  /* Videos in 3 columns, compact */
  .bento-tall {
    grid-column: span 1 !important;
    grid-row: auto !important;
    min-height: 180px;
    height: 180px;
  }

  .bento-item.bento-video {
     grid-row: auto !important;
  }

  .bento-item {
    border-radius: 12px;
  }


  .section {
    padding: 60px 0; /* Less padding on mobile to save space */
  }

  .stats {
    margin-top: 40px;
  }

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

  .menu-toggle {
    display: block;
  }

  .navbar.scrolled .menu-toggle {
    color: var(--secondary-color);
  }

  .nav-list {
    position: fixed;
    top: 80px;
    left: -100%;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    padding: 40px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition-fast);
  }

  .nav-list.active {
    left: 0;
  }

  .nav-list a {
    color: var(--secondary-color) !important;
    font-size: 1.2rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .section-title {
    font-size: 2rem;
  }

  .contact-link {
    padding: 10px 5px; /* Reduce horizontal padding to fit text better */
    align-items: center; /* Better alignment on mobile */
  }

  .contact-item i,
  .contact-link i {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    margin-right: 10px;
  }

  /* Force word break to prevent horizontal overflow */
  .contact-link div {
    overflow: hidden;
    width: 100%;
  }

  .contact-item h4,
  .contact-link h4 {
    font-size: 1rem;
    word-break: break-all; /* Crucial for long emails on small screens */
  }

  .contact-item p,
  .contact-link p {
    font-size: 0.8rem;
  }

  /* Prevent hover transforms from causing overflow on mobile */
  .feature-list li:hover {
    transform: none;
  }

  .contact-link:hover {
    transform: none;
  }

  .stat-card:hover {
    transform: none;
  }
}

