/* Custom Properties (Design Tokens) */
:root {
  /* Colors */
  --color-primary: #0B1D3A; /* Deep Navy Blue */
  --color-accent: #D45B3E; /* Muted Terracotta/Orange */
  --color-accent-hover: #b84f36;
  --color-bg-light: #FFFFFF;
  --color-bg-alt: #F8F9FA; /* Soft Pearl Grey */
  --color-text-dark: #333333;
  --color-text-light: #FFFFFF;
  --color-text-muted: #555555;
  --color-border: #E0E0E0;

  /* Typography */
  --font-family-main: 'Inter', sans-serif;
  
  /* Spacing & Sizes */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --max-width: 1100px;
  --header-height: 90px; /* Updated for larger logo */
  --transition-speed: 0.3s;
}

/* Reset & Base Styles (Mobile-First) */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family-main);
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed) ease;
}

/* Typography Scale */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--spacing-sm);
}

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

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

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

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

.bg-primary {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}
.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary h4 {
  color: var(--color-text-light);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--color-accent);
  color: var(--color-text-light);
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  text-align: center;
  transition: background-color var(--transition-speed) ease, transform 0.2s ease;
  font-size: 1.1rem;
}

.btn:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* Header & Navigation (Sticky) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px; /* Increased from 70px to accommodate larger logo */
  background-color: var(--color-bg-light);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 1000;
  display: flex;
  align-items: center;
}

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

.logo img {
  height: 60px; /* Increased from 40px */
  width: auto;
}

.nav-links {
  display: none; /* Hidden on mobile by default, could add hamburger */
}

/* Added wrapper to offset sticky header for anchor tags */
main {
  margin-top: var(--header-height);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding: var(--spacing-lg) 0;
  background-color: var(--color-primary);
  /* Overlay directly in CSS fallback if image not loaded */
  background-image: linear-gradient(rgba(11, 29, 58, 0.85), rgba(11, 29, 58, 0.85)), url('Fondo.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-text-light);
}

.hero h1 {
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
}

.hero .lead {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-md);
  color: #E2E8F0;
  max-width: 600px;
}

.trust-badges {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
  font-size: 0.9rem;
  color: #CBD5E1;
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Agitation Section */
.agitation {
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}
.agitation p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.service-card {
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-md);
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.05);
}

.icon {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: var(--spacing-sm);
}

/* Methodology */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-md);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.step-icon {
  width: 80px;
  height: 80px;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
  z-index: 2;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.testimonial-card {
  background-color: var(--color-bg-light);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  border-left: 4px solid var(--color-accent);
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.quote {
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-sm);
}

.author {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.9rem;
}

/* Form Section */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--color-bg-light);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  color: var(--color-text-dark); /* Ensure text is dark on light form bg */
}

.form-container h2 {
  color: var(--color-primary);
}

.form-container p {
  color: var(--color-text-muted);
}

.form-group {
  margin-bottom: var(--spacing-sm);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background-color: #F8FAFC;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(11, 29, 58, 0.1);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

/* Footer Section */
.footer {
  background-color: var(--color-primary);
  color: #94A3B8;
  padding: var(--spacing-md) 0;
  text-align: center;
  font-size: 0.875rem;
}

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

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

/* Responsive (Tablet & Desktop) */
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  
  .nav-links {
    display: flex;
    gap: var(--spacing-md);
  }
  
  .nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
  }
  
  .nav-links a:hover {
    color: var(--color-accent);
  }

  .trust-badges {
    flex-direction: row;
    gap: var(--spacing-md);
  }
  
  .agitation {
    text-align: center;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-container {
    flex-direction: row;
    position: relative;
  }
  
  /* Connector line for steps */
  .steps-container::before {
    content: '';
    position: absolute;
    top: 40px; /* half of step-icon height */
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: var(--color-border);
    z-index: 1;
  }

  .step {
    flex: 1;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-container {
    padding: var(--spacing-lg);
  }
}
