:root {
  --color-primary: #00c753;
  --color-secondary: #00b34a;
  --color-bg: #ffffff;
  --color-bg-secondary: #fafafa;
  --color-text: #262626;
  --color-text-secondary: #666666;
  --color-border: #ebebeb;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --spacing-1: 32px;
  --spacing-2: 64px;
  --spacing-3: 96px;
  --spacing-4: 128px;
  
  --spacing-sm-1: 8px;
  --spacing-sm-2: 12px;
  --spacing-sm-3: 16px;
  --spacing-sm-4: 24px;

  /* Border Radius */
  --radius-subtle: 4px;
  --radius-button: 4px;
  --radius-card: 4px;

  /* Shadows */
  --shadow-low: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
  --shadow-high: rgba(0, 0, 0, 0.15) 0px 4px 16px 0px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  font-size: 15px;
  letter-spacing: 0.2px;
  overflow-x: hidden;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
}

h1 {
  font-size: 64px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 42px;
  line-height: 1.2;
}

h3 {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
}

h4 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
}

p {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: var(--spacing-sm-3);
}

a {
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.2s ease;
}

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

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-1);
}

.section {
  padding: var(--spacing-3) 0;
}

.section-bg-alt {
  background-color: var(--color-bg-secondary);
}

.text-center {
  text-align: center;
}

.subtitle {
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm-2);
}

.subtitle-hero {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm-3);
}

.divider {
  height: 2px;
  width: 48px;
  background-color: var(--color-primary);
  margin: 24px auto 0;
}

/* Components */
.btn {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff !important;
  border-radius: var(--radius-button);
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--color-secondary);
  color: #ffffff;
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

/* Header & Navigation */
header {
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 8px 0;
  box-shadow: var(--shadow-low);
}

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

.logo-container {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 4px;
}

.logo {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
  line-height: 1.1;
  white-space: nowrap;
}

.logo-subtitle {
  font-family: var(--font-body);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 500;
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
}

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

nav ul li a {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

nav ul li a:hover {
  color: var(--color-text);
}

nav ul li a.btn {
  color: #ffffff !important;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-text);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-color: #1a1a1a;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: fadeSlide 24s infinite;
  transform: scale(1.1);
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
.hero-slide:nth-child(4) { animation-delay: 18s; }

@keyframes fadeSlide {
  0% { opacity: 0; transform: scale(1.1); }
  10% { opacity: 1; transform: scale(1.05); }
  25% { opacity: 1; transform: scale(1.02); }
  35% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 25, 45, 0.65); /* Dark blueish-black overlay */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  margin-bottom: 24px;
  color: #ffffff;
}

.hero p {
  font-size: 18px;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 40px;
  font-weight: 400;
  max-width: 700px;
}

.scroll-icon {
  margin-top: 48px;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  position: relative;
  display: flex;
  justify-content: center;
}

.scroll-icon::before {
  content: '';
  width: 4px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  margin-top: 6px;
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-1);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-2);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-1);
}

/* specific sections */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Services Card */
.card-service {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 40px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.card-service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-low);
}

.icon-circle {
  width: 64px;
  height: 64px;
  border: 1px solid #e0f2e9; /* very light green border */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--color-primary);
  font-size: 24px;
}

/* Chi Siamo icons */
.feature-item {
  text-align: center;
}

.icon-circle-large {
  width: 80px;
  height: 80px;
  background: #e6f7ef; /* light green background */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--color-primary);
  font-size: 32px;
}

.feature-item h4 {
  margin-bottom: 16px;
}

/* Portfolio Cards */
.card-project {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.card-project img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* Carousel Styles */
.carousel-container {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.carousel-container:hover .carousel-btn {
  opacity: 1;
}

.carousel-track {
  display: flex;
  transition: transform 0.8s ease-in-out;
  height: 100%;
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.carousel-prev {
  left: 12px;
}

.carousel-next {
  right: 12px;
}

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-dot.active {
  background: white;
  transform: scale(1.2);
}

.card-project-content {
  padding: 24px;
}

.card-project-content h4 {
  margin-bottom: 12px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: var(--shadow-high);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #FFF;
}

/* Forms */
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-subtle);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
}

textarea.form-control {
  resize: vertical;
}

/* Testimonials */
.card-testimonial {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stars {
  color: var(--color-primary);
  margin-bottom: 24px;
  font-size: 18px;
  display: flex;
  gap: 4px;
}

.review-text {
  font-style: italic;
  margin-bottom: 32px;
  flex-grow: 1;
}

.reviewer strong {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--color-text);
}

.reviewer span {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.review-link {
  font-family: var(--font-body);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.review-link:hover {
  opacity: 0.8;
}

/* Footer */
footer {
  background: var(--color-bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  gap: var(--spacing-2);
  margin-bottom: var(--spacing-2);
}

.footer-col h4 {
  margin-bottom: var(--spacing-sm-4);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: var(--spacing-sm-2);
}

.footer-col ul li a:hover {
  color: var(--color-primary) !important;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-1);
  border-top: 1px solid var(--color-border);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero p { padding: 0 20px; }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    padding: var(--spacing-1);
    box-shadow: var(--shadow-low);
    text-align: center;
  }
  
  nav ul.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .grid-2, .grid-3, .grid-4, .footer-grid {
    grid-template-columns: 1fr;
  }
  
  h1 { font-size: 36px; }
  h2 { font-size: 30px; }
  
  .hero {
    min-height: 70vh;
    padding: var(--spacing-2) 0;
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 24px;
  }
  
  .logo-title {
    font-size: 16px;
    white-space: normal;
  }
  
  .logo-subtitle {
    font-size: 9px !important;
    white-space: normal;
    letter-spacing: 1px;
  }
  
  .logo {
    height: 48px;
  }
}

/* Metodo Section Interactive Cards */
.card-method {
  background-color: var(--color-bg);
  padding: 48px 32px;
  border-radius: var(--radius-card);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-low);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.card-method:hover, .card-method:active {
  transform: translateY(-8px);
  box-shadow: var(--shadow-high);
  border-color: var(--color-primary);
}

.method-number {
  width: 64px;
  height: 64px;
  background: var(--color-bg);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  font-size: 32px;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

  .card-method:hover .method-number, .card-method:active .method-number {
    background: var(--color-primary);
    color: #ffffff;
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(0, 199, 83, 0.3);
  }

  /* Before/After Hover Slider */
  .before-after-container {
      position: relative;
      width: 100%;
      box-shadow: var(--shadow-high);
      cursor: pointer;
  }
  .before-after-container img {
      width: 100%;
      height: auto;
      display: block;
      transition: opacity 0.7s ease-in-out;
  }
  .before-after-container .img-after { 
      position: absolute;
      top: 0; left: 0;
      opacity: 0; 
  }
  .before-after-container:hover .img-after { opacity: 1; }
  .before-after-container:hover .img-before { opacity: 0; }
  .before-after-container:hover .hover-label { opacity: 0 !important; }
