/* Base Styles */
:root {
  --primary: #2c5e2e;
  --primary-light: #3a7a3c;
  --primary-dark: #1e401f;
  --secondary: #f0e6d2;
  --secondary-light: #f7f2e7;
  --secondary-dark: #e5d6b6;
  --text-dark: #333333;
  --text-medium: #555555;
  --text-light: #777777;
  --white: #ffffff;
  --black: #000000;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --success: #28a745;
  --info: #17a2b8;
  --warning: #ffc107;
  --danger: #dc3545;
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
  
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 15px 25px rgba(0, 0, 0, 0.1);
  
  --radius-sm: 4px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* Reset & Base Styles */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Loader */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.loader-bar {
  width: 200px;
  height: 4px;
  background-color: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.loader-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  background-color: var(--primary);
  border-radius: var(--radius-full);
  animation: loading 1.5s infinite ease-in-out;
}

@keyframes loading {
  0% {
    left: -50%;
  }
  100% {
    left: 100%;
  }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  padding: 1.5rem 0;
  z-index: 100;
  transition: var(--transition);
}

.header.scrolled {
  background-color: var(--white);
  padding: 1rem 0;
  box-shadow: var(--shadow);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

/* Estilos para el logo */
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white); /* Blanco por defecto */
    text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.5); /* Sombra para mejor visibilidad */
    transition: var(--transition);
}

.logo-tagline {
    font-size: 0.875rem;
    color: var(--white);
    margin-top: -0.25rem;
    text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

/* Cuando se hace scroll */
.header.scrolled .logo-text {
    color: var(--primary);
    text-shadow: none;
}

.header.scrolled .logo-tagline {
    color: var(--text-medium);
    text-shadow: none;
}

.header.scrolled .logo-text {
  color: var(--primary);
}

.header.scrolled .logo-tagline {
  color: var(--text-medium);
}

/* Aseguramos que el logo KAROM sea visible en ambos estados del header */
.header .logo {
    color: #ffffff; /* Color blanco para cuando el fondo es oscuro/transparente */
    transition: color 0.3s ease;
    font-weight: bold; /* Para mayor visibilidad */
    text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.5); /* Sombra para mejorar legibilidad */
}

/* Cuando el header cambia a blanco (clase .scrolled) */
.header.scrolled .logo {
    color: #006400; /* Verde oscuro o el color corporativo de KAROM */
    text-shadow: none;
}

.main-nav {
  display: none;
}

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 0.5rem 0;
}

.header:not(.scrolled) .nav-link {
  color: var(--white);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.header:not(.scrolled) .menu-toggle span {
  background-color: var(--white);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Para el botón o texto de "Contáctanos" */
.header .contact-btn {
    color: #ffffff; /* Color blanco inicial */
    transition: color 0.3s ease;
}

/* Cuando el header cambia a blanco */
.header.scrolled .contact-btn {
    color: #006400; /* Verde oscuro cuando el fondo es blanco */
}

/* Si "Contáctanos" es un botón, puedes añadir esto */
.header .contact-btn {
    background: rgba(0, 100, 0, 0.7); /* Fondo verde semitransparente */
    padding: 8px 15px;
    border-radius: 4px;
    transition: background 0.3s ease, color 0.3s ease;
}

.header.scrolled .contact-btn {
    background: #ffffff; /* Fondo blanco */
    color: #006400; /* Texto verde */
    border: 1px solid #006400; /* Borde verde */
}

.header.scrolled .logo-text {
  color: var(--primary);
}

.header.scrolled .logo-tagline {
  color: var(--text-medium);
}

/* Aseguramos que el logo KAROM sea visible en ambos estados del header */
.header .logo {
    color: #ffffff; /* Color blanco para cuando el fondo es oscuro/transparente */
    transition: color 0.3s ease;
    font-weight: bold; /* Para mayor visibilidad */
    text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.5); /* Sombra para mejorar legibilidad */
}

/* Cuando el header cambia a blanco (clase .scrolled) */
.header.scrolled .logo {
    color: #006400; /* Verde oscuro o el color corporativo de KAROM */
    text-shadow: none;
}

.main-nav {
  display: none;
}

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 0.5rem 0;
}

.header:not(.scrolled) .nav-link {
  color: var(--white);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.header:not(.scrolled) .menu-toggle span {
  background-color: var(--white);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  z-index: 99;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-container {
  padding: 6rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mobile-nav-list {
  margin-bottom: 2rem;
}

.mobile-nav-link {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.mobile-contact {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

.mobile-contact h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.mobile-contact p {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-medium);
}

.mobile-contact .btn {
  margin-top: 1.5rem;
}

.mobile-contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn svg {
  margin-right: 0.5rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-light {
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Estilos para el botón Contáctanos */
.header .btn-outline-light {
    color: var(--white);
    border: 1px solid var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
    /* Añadir sombra para mejorar visibilidad */
    text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.3);
}

/* Cuando el header cambia a fondo blanco */
.header.scrolled .btn-outline-light {
    color: var(--primary);
    border-color: var(--primary);
    background-color: transparent;
    text-shadow: none; /* Quitar sombra en fondo blanco */
}

/* Efecto hover para ambos estados */
.header .btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary);
    text-shadow: none;
}

.header.scrolled .btn-outline-light:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  background-color: var(--primary);
  color: var(--white);
  padding: 8rem 0 4rem;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-shape {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 20%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.hero-text {
  max-width: 600px;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-image {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
}

.hero-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: var(--white);
  color: var(--primary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow);
}

.badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.badge-text span:first-child {
  font-size: 0.75rem;
  color: var(--text-medium);
}

.badge-text span:last-child {
  font-weight: 600;
  font-size: 0.875rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  z-index: 2;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* Section Styles */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--primary);
  background-color: rgba(44, 94, 46, 0.1);
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-description {
  font-size: 1.0625rem;
  color: var(--text-medium);
}

/* Services Section */
.services {
  background-color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.service-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: rgba(44, 94, 46, 0.1);
  color: var(--primary);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background-color: var(--primary);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-medium);
  margin-bottom: 1.5rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9375rem;
  position: relative;
}

.service-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.service-link:hover::after {
  width: 100%;
}

/* About Section */
.about {
  background-color: var(--secondary-light);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(44, 94, 46, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(44, 94, 46, 0.05) 0%, transparent 20%);
  z-index: 1;
}

.about-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-image {
  position: relative;
  width: 100%;
  height: 350px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-experience {
  position: absolute;
  bottom: -20px;
  right: 20px;
  background-color: var(--primary);
  color: var(--white);
  padding: 1rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.experience-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.experience-text {
  font-size: 0.875rem;
}

.about-text {
  max-width: 600px;
}

.about-text p {
  color: var(--text-medium);
  margin-bottom: 1.5rem;
}

.about-features {
  margin: 2rem 0;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(44, 94, 46, 0.1);
  color: var(--primary);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.feature-text h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.feature-text p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* Mission Vision Section */
.mission-vision {
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.mission-vision::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 70% 30%, rgba(44, 94, 46, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 30% 70%, rgba(44, 94, 46, 0.05) 0%, transparent 20%);
  z-index: 1;
}

.mission-vision-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.mission-vision-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  text-align: center;
}

.mission-vision-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.mission-vision-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background-color: rgba(44, 94, 46, 0.1);
  color: var(--primary);
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.mission-vision-card:hover .mission-vision-icon {
  background-color: var(--primary);
  color: var(--white);
}

.mission-vision-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.mission-vision-card p {
  color: var(--text-medium);
  margin-bottom: 0;
}

.values-list {
  text-align: left;
  margin-top: 1rem;
}

.values-list li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-medium);
}

.values-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

.values-list li strong {
  color: var(--text-dark);
}

/* Benefits Section */
.benefits {
  background-color: var(--white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.benefit-card {
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  text-align: center;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: rgba(44, 94, 46, 0.1);
  color: var(--primary);
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
  background-color: var(--primary);
  color: var(--white);
}

.benefit-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.benefit-card p {
  color: var(--text-medium);
  font-size: 0.875rem;
  margin-bottom: 0;
}

.benefits-cta {
  margin-top: 3rem;
  background-color: var(--secondary-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cta-content {
  padding: 2rem;
}

.cta-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.cta-content p {
  color: var(--text-medium);
  margin-bottom: 1.5rem;
}

.cta-image {
  height: 200px;
  width: 100%;
}

.cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Process Section */
.process {
  background-color: var(--secondary-light);
  position: relative;
  overflow: hidden;
}

.process::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(44, 94, 46, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 20% 80%, rgba(44, 94, 46, 0.05) 0%, transparent 20%);
  z-index: 1;
}

.process-steps {
  position: relative;
  z-index: 2;
  margin-bottom: 4rem;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  transition: var(--transition);
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  opacity: 0.2;
}

.step-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.step-content p {
  color: var(--text-medium);
  margin-bottom: 0;
}

/* FAQ Section */
.faq {
  background-color: var(--white);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background-color: var(--white);
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: var(--gray-100);
}

.faq-question h3 {
  font-size: 1.125rem;
  margin-bottom: 0;
  padding-right: 2rem;
}

.faq-toggle {
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.icon-minus {
  display: none;
}

.faq-item.active .icon-plus {
  display: none;
}

.faq-item.active .icon-minus {
  display: block;
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

.faq-answer p {
  color: var(--text-medium);
  margin-bottom: 0;
}

/* Contact Section */
.contact {
  background-color: var(--secondary-light);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 90% 10%, rgba(44, 94, 46, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 10% 90%, rgba(44, 94, 46, 0.05) 0%, transparent 20%);
  z-index: 1;
}

.contact-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-info {
  max-width: 500px;
}

.contact-info p {
  color: var(--text-medium);
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(44, 94, 46, 0.1);
  color: var(--primary);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.method-details h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.method-details p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.contact-action-btn {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--white);
  border-radius: var(--radius);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.contact-action-btn:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  background-color: var(--gray-100);
}

.contact-form {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-header {
  margin-bottom: 1.5rem;
}

.form-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--text-medium);
  font-size: 0.9375rem;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--danger);
  background-color: rgba(220, 53, 69, 0.05);
}

.error-message {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mejora visual para campos válidos (opcional) */
.form-group input:valid:not(.error),
.form-group textarea:valid:not(.error) {
  border-color: var(--success);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background-color: var(--white);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(44, 94, 46, 0.1);
}

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  transition: var(--transition);
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

.whatsapp-btn svg {
  width: 30px;
  height: 30px;
}

/* Footer */
.footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.footer-logo .logo-text {
  color: var(--white);
}

.footer-logo .logo-tagline {
  color: rgba(255, 255, 255, 0.7);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

.footer-nav-column h3 {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-nav-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary);
}

.footer-nav-column ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-column ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: var(--transition);
}

.footer-nav-column ul li a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-contact li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: var(--transition);
}

.footer-contact li a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.copyright p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin-bottom: 0;
  text-align: center;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--white);
  color: var(--primary);
  transform: translateY(-3px);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 6rem; /* Adjusted to make room for WhatsApp button */
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 90;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
}

/* Alerts */
.alert {
  padding: 10px 15px;
  margin-bottom: 15px;
  border-radius: 4px;
}

.alert-success {
  background-color: #dff0d8;
  color: #3c763d;
  border: 1px solid #d6e9c6;
}

.alert-error {
  background-color: #f2dede;
  color: #a94442;
  border: 1px solid #ebccd1;
}

/* Media Queries */
@media (min-width: 576px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .main-nav {
    display: block;
  }
  
  .menu-toggle {
    display: none;
  }
  
  .hero-content {
    flex-direction: row;
    align-items: center;
  }
  
  .hero-text {
    flex: 1;
  }
  
  .hero-image {
    flex: 1;
    height: 400px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-content {
    flex-direction: row;
  }
  
  .about-image {
    flex: 1;
  }
  
  .about-text {
    flex: 1;
  }
  
  .mission-vision-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .benefits-cta {
    flex-direction: row;
  }
  
  .cta-content {
    flex: 1;
    padding: 3rem;
  }
  
  .cta-image {
    flex: 1;
    height: auto;
  }
  
  .process-step {
    flex-direction: row;
  }
  
  .contact-container {
    flex-direction: row;
  }
  
  .contact-info {
    flex: 1;
  }
  
  .contact-form {
    flex: 1;
  }
  
  .footer-nav {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 992px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

/* Estilos para la sección Sobre nosotros rediseñada */
.about-image-full {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
}

.about-image-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary);
    color: var(--white);
    padding: 1rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.badge-number {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.about-content-full {
    max-width: 900px;
    margin: 0 auto;
}

.about-story {
    margin-bottom: 3rem;
}

.story-intro {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.about-story p {
    margin-bottom: 1.25rem;
    color: var(--text-medium);
}

.about-story strong {
    color: var(--primary);
    font-weight: 600;
}

.about-features-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.feature-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--primary);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(44, 94, 46, 0.1);
    color: var(--primary);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-medium);
    margin-bottom: 0;
}

.about-cta {
    text-align: center;
}

/* Media queries para la sección Sobre nosotros */
@media (min-width: 768px) {
    .about-image-full {
        height: 400px;
    }
    
    .about-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .story-intro {
        font-size: 1.375rem;
    }
}

@media (min-width: 992px) {
    .about-image-full {
        height: 500px;
    }
}

/* Estilos para la sección Sobre nosotros actualizada en la página principal */
.about-subtitle {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.about-highlight {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.about-cta-box {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: var(--secondary-light);
    border-radius: var(--radius);
    text-align: center;
}

/* Estilos para la página de historia */
.page-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 20%);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb .separator {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb .current {
    color: var(--white);
    font-weight: 500;
}

.historia-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.historia-image {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
}

.historia-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.historia-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary);
    color: var(--white);
    padding: 1rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.badge-year {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.historia-content {
    max-width: 900px;
    margin: 0 auto;
}

.historia-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.historia-intro h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.intro-text {
    font-size: 1.25rem;
    color: var(--text-dark);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.historia-timeline {
    margin: 3rem 0;
    position: relative;
}

.historia-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-light), var(--secondary-dark));
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-year {
    flex: 0 0 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
}

.timeline-year span {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
}

.timeline-content {
    flex: 0 0 70%;
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background-color: var(--white);
    transform: rotate(45deg);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -10px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -10px;
}

.timeline-content p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

.timeline-content p:last-child {
    margin-bottom: 0;
}

.timeline-content strong {
    color: var(--primary);
    font-weight: 600;
}

.historia-quote {
    background-color: var(--secondary-light);
    padding: 3rem;
    border-radius: var(--radius-lg);
    margin: 3rem 0;
    position: relative;
    text-align: center;
}

.historia-quote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: var(--font-heading);
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.2;
    line-height: 1;
}

.historia-quote blockquote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.historia-quote cite {
    font-style: normal;
    font-weight: 600;
    color: var(--primary);
}

.historia-valores {
    margin: 3rem 0;
}

.historia-valores h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

.valor-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--primary);
    transition: var(--transition);
}

.valor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.valor-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(44, 94, 46, 0.1);
    color: var(--primary);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.valor-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.valor-card p {
    color: var(--text-medium);
    margin-bottom: 0;
}

.historia-cta {
    text-align: center;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* Media queries para la página de historia */
@media (min-width: 768px) {
    .page-header h1 {
        font-size: 3rem;
    }
    
    .historia-image {
        height: 500px;
    }
    
    .historia-intro h2 {
        font-size: 2.5rem;
    }
    
    .intro-text {
        font-size: 1.375rem;
    }
    
    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .historia-cta {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 992px) {
    .valores-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .historia-quote blockquote {
        font-size: 1.5rem;
    }
}

/* Ajustes para dispositivos móviles en la línea de tiempo */
@media (max-width: 767px) {
    .historia-timeline::before {
        display: none;
    }
    
    /* Cambiamos a un diseño de tarjetas apiladas */
    .timeline-item {
        display: block;
        margin-bottom: 2rem;
        border-left: 4px solid var(--primary);
        padding-left: 1rem;
    }
    
    /* El año va arriba como encabezado */
    .timeline-year {
        position: static;
        text-align: left;
        margin-bottom: 0.5rem;
    }
    
    .timeline-year span {
        background-color: var(--primary);
        color: white;
        border-radius: 4px;
        padding: 0.3rem 0.7rem;
        font-weight: bold;
        display: inline-block;
        font-size: 0.9rem;
    }
    
    /* El contenido va debajo sin restricciones */
    .timeline-content {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    /* Quitamos los pseudo-elementos que generaban flechas */
    .timeline-content::before {
        display: none;
    }
}

/* Prevenir desbordamiento horizontal */
body {
    overflow-x: hidden;
    width: 100%;
}

/* Asegurarse de que ningún elemento cause scroll horizontal */
* {
    max-width: 100%;
    box-sizing: border-box;
}

/* Solución para imágenes y elementos multimedia */
img, video, iframe {
    max-width: 100%;
    height: auto;
}        /* Mejoras específicas para los botones en hero-actions */
        .hero .hero-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 2.5rem;
            position: relative;
            z-index: 5; /* Asegurar que estén por encima de otros elementos */
        }

        .hero .btn-primary {
            background-color: var(--primary);
            color: var(--white);
            border: 2px solid var(--white); /* Borde blanco para que sea visible */
            padding: 0.75rem 1.5rem;
            text-shadow: none; /* Eliminar posible sombra heredada */
            font-weight: 600;
        }

        .hero .btn-primary:hover {
            background-color: var(--white);
            color: var(--primary);
            border-color: var(--white);
            transform: translateY(-2px);
        }

        .hero .btn-outline {
            background-color: transparent;
            border: 2px solid var(--white); /* Borde blanco para contraste */
            color: var(--white); /* Texto blanco para visibilidad */
            padding: 0.75rem 1.5rem;
            text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.3); /* Sombra para mejor legibilidad */
        }

        .hero .btn-outline:hover {
            background-color: var(--white);
            color: var(--primary);
            text-shadow: none;
        }
