/* ===== CSS Variables ===== */
:root {
  /* Color Palette */
  --color-primary: #16a34a;
  --color-primary-dark: #14532d;
  --color-primary-light: #dcfce7;
  --color-primary-lightest: #f0fdf4;
  
  --color-secondary: #ffd700;
  --color-secondary-dark: #e6c200;
  --color-secondary-light: #fff4b3;
  
  --color-white: #ffffff;
  --color-black: #000000;
  
  --color-gray-50: #fafafa;
  --color-gray-100: #f5f5f5;
  --color-gray-200: #e5e5e5;
  --color-gray-300: #d4d4d4;
  --color-gray-400: #a3a3a3;
  --color-gray-500: #737373;
  --color-gray-600: #525252;
  --color-gray-700: #404040;
  --color-gray-800: #262626;
  --color-gray-900: #171717;
  
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-muted: var(--color-gray-500);
  --color-text-scrolled: #1a1a1a;

  /* Spacing - Based on 4px scale */
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Typography */
  --font-family-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-family-serif: 'Playfair Display', serif;
  
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 1.75rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  --line-height-none: 1;
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;

  /* Effects */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-default: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-scrolled: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.2);
  
  --border-radius-sm: 4px;
  --border-radius: 8px;
  --border-radius-md: 0.375rem;
  --border-radius-lg: 12px;
  --border-radius-xl: 20px;
  --border-radius-2xl: 1rem;
  --border-radius-full: 9999px;
  
  --opacity-0: 0;
  --opacity-25: 0.25;
  --opacity-50: 0.5;
  --opacity-75: 0.75;
  --opacity-100: 1;

  /* Backgrounds */
  --color-background: rgba(255, 255, 255, 0.95);
  --color-background-dark: #f8f9fa;

  /* New variables for the new section */
  --primary-color: #4a8b29;
  --secondary-color: #2c5a1a;
  --text-color: #333;
  --light-bg: #f9f9f9;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ===== Base Styles ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
  font-family: var(--font-family-sans);
  line-height: var(--line-height-normal);
  color: var(--color-black);
  background-color: var(--color-white);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-white));
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-serif);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
  color: var(--color-gray-900);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
  margin-bottom: var(--space-4);
  color: var(--color-text);
  line-height: var(--line-height-relaxed);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
  cursor: pointer;
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

picture {
  display: block;
}

svg {
  display: block;
  fill: currentColor;
}

ul, ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

li {
  margin-bottom: var(--space-2);
}

hr {
  border: 0;
  height: 1px;
  background-color: var(--color-gray-200);
  margin: var(--space-6) 0;
}

/* ===== Utility Classes ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-12) 0;
}

.section--light {
  background-color: var(--color-gray-50);
}

.section--dark {
  background-color: var(--color-gray-900);
  color: var(--color-white);
}

.section-title {
  position: relative;
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-8);
  text-align: center;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 5rem;
  height: 0.1875rem;
  background: var(--color-text-scrolled);
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===== Button Styles ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: 2px solid transparent;
  font-size: var(--font-size-base);
  line-height: var(--line-height-none);
  white-space: nowrap;
  user-select: none;
  touch-action: manipulation;
}

.btn:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-lg);
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn--secondary {
  background-color: var(--color-secondary);
  color: var(--color-text);
}

.btn--secondary:hover {
  background-color: var(--color-secondary-dark);
}

.btn--white {
  background-color: var(--color-white);
  color: var(--color-primary-dark);
}

.btn--white:hover {
  background-color: var(--color-gray-100);
}




/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/nosotros1.jpeg') center/cover no-repeat;
  color: var(--color-black);
  text-align: center;
  padding: var(--space-12) 0;
  position: relative;
}

.hero__content {
  max-width: 48rem;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.hero__title {
  font-size: var(--font-size-5xl);
  margin-bottom: var(--space-6);
  animation: fadeInDown 1s ease;
}

.hero__subtitle {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-8);
  animation: fadeInUp 1s ease 0.3s both;
}

.hero__buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Product Section ===== */
.products {
  background-color: var(--color-black);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.product-card {
  background-color: var(--color-black);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow-lg);
}

.product-card__image {
  height: 15.625rem;
  width: 100%;
  object-fit: cover;
}

.product-card__info {
  padding: var(--space-6);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card__title {
  font-size: var(--font-size-lg);
  color: var(--color-primary-dark);
  margin-bottom: var(--space-2);
}

.product-card__description {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.product-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-card__price {
  font-weight: var(--font-weight-bold);
  color: var(--color-gray-900);
}

/* ===== Features Section ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: var(--space-8);
}

.feature {
  text-align: center;
  padding: var(--space-6);
}

.feature__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto var(--space-4);
  color: var(--color-primary);
}

.feature__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-3);
}

.feature__description {
  color: var(--color-text-muted);
}






/* ===== Animaciones Consolidadas ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 1s ease-in-out;
}

/* ===== Responsive Design Optimizado ===== */
@media (max-width: 1200px) {
  .nosotros-content-column {
    padding: 60px;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 992px) {
  .nosotros-container {
    flex-direction: column;
  }
  
  .nosotros-photo-column {
    flex: 0 0 400px;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
  }
  
  .nosotros-content-column {
    max-width: 100%;
    padding: 50px;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .nosotros-section {
    padding: 60px 0;
  }
  
  .nosotros-title {
    font-size: 2.5rem;
  }
  
  .nosotros-subtitle {
    font-size: 1.4rem;
  }
  
  .benefits-list li {
    font-size: 1.1rem;
    padding: 15px 20px;
  }
  
  .nosotros-content-column {
    padding: 40px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
  
  .ubicaciones-container {
    flex-direction: column;
    align-items: center;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .section-header p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .nosotros-photo-column {
    flex: 0 0 300px;
  }
  
  .nosotros-content-column {
    padding: 30px;
  }
  
  .nosotros-title {
    font-size: 2rem;
  }
  
  .nosotros-subtitle {
    font-size: 1.2rem;
  }
  
  .benefits-list li {
    font-size: 1rem;
    padding: 12px 15px;
  }
  
  .hero {
    min-height: 500px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .btn {
    padding: 0.6rem 1.4rem;
  }
}



/* ===== Formulario Mejorado ===== */
.job-application {
  animation: fadeInScale 0.8s ease-out;
  background: var(--color-white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.1);
  transition: transform 0.3s ease;
}

.job-application:hover {
  transform: translateY(-5px);
}

.form__input,
.form__textarea,
.form__file {
  transition: all 0.3s ease;
  border: 2px solid transparent;
  background: var(--color-gray-50);
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
  transform: translateY(-2px);
}

.form__file {
  border: 2px dashed var(--color-primary-light);
  background: var(--color-primary-lightest);
  cursor: pointer;
  transition: all 0.3s ease;
}

.form__file:hover {
  border-color: var(--color-primary);
  background: var(--color-white);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.3);
}

.btn--primary:active {
  transform: translateY(1px);
}

.btn--primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn--primary:hover::after {
  width: 300px;
  height: 300px;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(rgba(74, 139, 41, 0.1), rgba(74, 139, 41, 0.05));
  border-radius: 1rem;
  margin-bottom: 3rem;
}

.hero-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-color);
  max-width: 600px;
  margin: 0 auto;
}

/* Valores Section */
.values-section {
  padding: 3rem 0;
}

.values-section h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-family: 'Playfair Display', serif;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

.value-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
}

.value-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.value-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}


/* Formulario de Aplicación */
.job-application {
  padding: 3rem 0;
}

.job-application__form {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--card-shadow);
}

.job-application__title {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
}

.application-subtitle {
  text-align: center;
  color: var(--text-color);
  margin-bottom: 2rem;
}

.form__group {
  margin-bottom: 1.5rem;
}

.form__label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-weight: 500;
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.btn:hover {
  background-color: var(--secondary-color);
}

.application-notice {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.application-notice i {
  color: var(--primary-color);
  font-size: 1.5rem;
}



/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-color);
    margin-top: 0.5rem;
}

/* Proceso de Selección */
.process-section {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.process-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-family: 'Playfair Display', serif;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 2rem 1rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 auto 1rem;
}

.process-step h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.process-step p {
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Testimonios */
.testimonials-section {
    padding: 4rem 0;
}

.testimonials-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-family: 'Playfair Display', serif;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
}

.testimonial-content {
    position: relative;
    padding: 1rem 0;
}

.testimonial-content i {
    color: var(--primary-color);
    font-size: 2rem;
    opacity: 0.2;
    position: absolute;
    top: 0;
    left: 0;
}

.testimonial-content p {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
    padding-left: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    color: var(--primary-color);
    margin: 0;
}

.author-info p {
    color: var(--text-color);
    margin: 0;
    font-size: 0.9rem;
}

/* Mejoras en el formulario */
.form__textarea {
    resize: vertical;
    min-height: 100px;
}

.form__textarea::placeholder {
    color: #999;
}

.btn i {
    margin-right: 0.5rem;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section,
.process-section,
.values-section,
.benefits-section,
.testimonials-section,
.job-application {
    animation: fadeIn 0.8s ease-out;
}

/* Mejoras responsive */
@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-content p {
        font-size: 1rem;
    }
}

/* Mejoras en hover y transiciones */
.value-card,
.benefit-card,
.process-step,
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover,
.benefit-card:hover,
.process-step:hover,
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Mejoras en el formulario */
.form__input:focus,
.form__textarea:focus,
.form__select:focus {
    box-shadow: 0 0 0 3px rgba(74, 139, 41, 0.1);
}

.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Mejoras en la accesibilidad */
.form__label:focus-within {
    color: var(--primary-color);
}

/* Mejoras en el contraste */
.form__input,
.form__textarea,
.form__select {
    background-color: #fff;
    border: 2px solid #ddd;
}

.form__input:hover,
.form__textarea:hover,
.form__select:hover {
    border-color: var(--primary-color);
}

/* Mejoras en la legibilidad */
p, li {
    line-height: 1.6;
}

h1, h2, h3, h4 {
    line-height: 1.3;
}


