@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800&display=swap');

:root {
  --c-yellow: #F7EC45;
  --c-lime: #DDDC1C;
  --c-light-green: #A2BD31;
  --c-green: #70A73A;
  --c-teal: #5EA099;
  --c-black: #000000;
  --c-white: #FFFFFF;
  --c-bone: #F5F7F2;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Arial', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--c-black);
  background-color: var(--c-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

/* Base Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--c-green);
  color: var(--c-white);
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(112, 167, 58, 0.4);
  font-size: 1.1rem;
}

.btn:hover {
  background-color: var(--c-teal);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(94, 160, 153, 0.5);
  color: var(--c-white);
}

.btn-secondary {
  background-color: var(--c-yellow);
  color: var(--c-black);
  box-shadow: 0 4px 15px rgba(247, 236, 69, 0.4);
}

.btn-secondary:hover {
  background-color: var(--c-lime);
  color: var(--c-black);
}

/* Sections */
section {
  padding: 6rem 1.5rem;
  position: relative;
  z-index: 1;
}

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

/* Section Colors Alternation */
.bg-light {
  background-color: var(--c-bone);
  color: var(--c-black);
}

.bg-dark {
  background-color: var(--c-green);
  color: var(--c-white);
}

.bg-dark p {
  color: rgba(255, 255, 255, 0.9);
}

/* Section Dividers */
.custom-shape-divider-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 2;
}
.custom-shape-divider-bottom {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
  z-index: 2;
}

.custom-shape-divider-top svg,
.custom-shape-divider-bottom svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.shape-fill-light { fill: var(--c-bone); }
.shape-fill-dark { fill: var(--c-green); }
.shape-fill-white { fill: var(--c-white); }
.shape-fill-footer { fill: var(--c-black); }

/* Typography */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mt-2 { margin-top: 2rem; }

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  
  .order-md-2 { order: 2; }
  .order-md-1 { order: 1; }
}

/* Components */
.card {
  background: var(--c-white);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  color: var(--c-black);
  height: 100%;
  text-align: center;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.card-icon {
  width: 70px;
  height: 70px;
  background-color: var(--c-bone);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--c-green);
}
.card-icon svg {
  width: 35px;
  height: 35px;
}

.product-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.img-container {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.img-container:hover img {
  transform: scale(1.05);
}
.expand-btn {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: var(--c-green);
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.img-container:hover .expand-btn {
  opacity: 1;
}
.product-card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal Styles */
.image-modal {
  display: none; 
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
}
.image-modal.show {
  display: flex;
}
.modal-img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 5px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.5);
  object-fit: contain;
}
.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}
.close-modal:hover {
  color: var(--c-yellow);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 700px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3)), url('../assets/images/hero.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--c-white);
  padding: 0 1.5rem;
  position: relative;
}

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

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
  animation: fadeUp 1s ease;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 2.5rem;
  animation: fadeUp 1.2s ease;
  opacity: 0.95;
}

.hero .btn-group {
  animation: fadeUp 1.4s ease;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Specific Sections */
.img-fluid {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  display: block;
}

.val-prop-list {
  list-style: none;
}
.val-prop-list li {
  margin-bottom: 1.2rem;
  display: flex;
  align-items: flex-start;
  font-size: 1.1rem;
}
.val-prop-list li::before {
  content: '✓';
  color: var(--c-green);
  font-weight: bold;
  margin-right: 15px;
  font-size: 1.5rem;
  line-height: 1;
}

.bg-dark .val-prop-list li::before {
  color: var(--c-yellow);
}

/* Final CTA */
.cta-final {
  background-image: linear-gradient(rgba(112, 167, 58, 0.9), rgba(112, 167, 58, 0.9)), url('../assets/images/facade.png');
  background-size: cover;
  background-position: center;
  color: var(--c-white);
  text-align: center;
  padding: 8rem 1.5rem;
}

.cta-final h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  background-color: var(--c-black);
  color: var(--c-white);
  padding: 4rem 1.5rem;
  position: relative;
}
footer a {
  color: var(--c-green);
  text-decoration: none;
  transition: color 0.3s;
}
footer a:hover {
  color: var(--c-yellow);
}
.footer-content {
  display: grid;
  gap: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .footer-content { grid-template-columns: 1fr 1fr; }
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Enhancements for visual blocks */
#servicios .card {
  max-width: 350px;
  margin: 0 auto;
}

#servicios .card-icon {
  width: 90px;
  height: 90px;
}

#servicios .card-icon svg {
  width: 45px;
  height: 45px;
}

.info-box {
  border-left: 4px solid var(--c-green);
  padding-left: 1.5rem;
  font-size: 1.1rem;
  color: var(--c-teal);
  background: rgba(112, 167, 58, 0.05);
  padding: 1.5rem;
  border-radius: 0 10px 10px 0;
}

.stat-item {
  background: var(--c-bone);
  padding: 1.5rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--c-green);
  font-family: var(--font-heading);
  line-height: 1;
}

.stat-text {
  font-size: 1rem;
  font-weight: bold;
  color: var(--c-teal);
  text-transform: uppercase;
  margin-top: 0.5rem;
  display: block;
}

.gap-small {
  gap: 1rem;
}

.problem-chip {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  font-size: 1rem;
  transition: background 0.3s;
}

.problem-chip:hover {
  background: rgba(255,255,255,0.1);
}

.cross-icon {
  color: #ff4d4d;
  font-weight: bold;
  font-size: 1.2rem;
  margin-right: 15px;
  background: rgba(255, 77, 77, 0.1);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.benefit-card {
  display: flex;
  text-align: left;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
}

.benefit-icon {
  width: 60px;
  height: 60px;
  background: var(--c-bone);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-green);
  flex-shrink: 0;
}

.benefit-icon svg {
  width: 30px;
  height: 30px;
}

.benefit-text h3 {
  margin-bottom: 0.5rem;
}

.value-step {
  display: flex;
  margin-bottom: 2rem;
  background: var(--c-white);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  align-items: flex-start;
  transition: transform 0.3s;
}

.value-step:hover {
  transform: translateX(10px);
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--c-yellow);
  color: var(--c-black);
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  flex-shrink: 0;
  font-family: var(--font-heading);
}

.step-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

/* Header with Logo */
.main-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 1.5rem;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-img {
  max-height: 80px;
  width: auto;
}
