/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #4ade80; /* Verde claro */
  background-color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Clases de accesibilidad */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.sr-only:focus:not(:focus-visible) {
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  overflow: visible;
  white-space: normal;
  background: white;
  color: black;
  padding: 1rem;
  z-index: 9999;
}

/* Hero Section con fondo de campo */
.hero-section {
  position: relative;
  padding: 4rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4rem;
  color: rgb(255, 255, 255);
  background-image: url('https://imgs.search.brave.com/5NljMl2i05xcRjr_JdA8bKPCttdHtZMGG2qqb0vjDrg/rs:fit:500:0:1:0/g:ce/aHR0cHM6Ly9pbWcu/ZnJlZXBpay5jb20v/Zm90b3MtcHJlbWl1/bS9jYXJyZXRlcmEt/bmFjaW9uYWwtY2Ft/cG8tdmVyZGUtcGFp/c2FqZS1mb25kby1o/ZF8xOTk3MjYtMjc4/MC5qcGc_c2VtdD1h/aXNfaHlicmlk');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(17, 24, 39, 0.65);
  z-index: -1;
}

.hero-text {
  flex: 1 1 400px;
  max-width: 600px;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: #e5e7eb;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* Botón atractivo */
.btn-attractive {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #10b945, #40ab07);
    border: none;
    border-radius: 1rem;
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-attractive::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.3), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 1rem;
    pointer-events: none;
    animation: pulseGlow 3s infinite;
    z-index: 0;
}

.btn-attractive:hover::before {
    opacity: 1;
}

.btn-attractive:hover {
    transform: translateY(-5px) scale(1.05) rotateX(8deg);
    box-shadow: 0 12px 30px rgba(64, 171, 7, 0.8);
    background: linear-gradient(135deg, #40ab07, #10b945);
    z-index: 1;
}

.btn-attractive > * {
    position: relative;
    z-index: 2;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Hero Image */
.hero-image {
  flex: 1 1 400px;
  max-width: 600px;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.5);
}

/* Products Section */
.products-section {
    background-color: #f0fdf4;
    padding-top: 4rem;
    padding-bottom: 4rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    font-family: 'Inter', sans-serif;
}

.products-section h2 {
    font-weight: 800;
    font-size: 2.25rem;
    color: #047857;
    margin-bottom: 3rem;
    text-align: center;
}

.products-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.product-card {
    background: #fff;
    padding: 1.75rem 1.5rem 2rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.4s ease, transform 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 16px 35px rgba(4, 120, 87, 0.3);
    transform: translateY(-6px);
}

.product-card img {
    width: 100%;
    height: 13.5rem;      /* altura uniforme */
    object-fit: cover;  /* recorta sin deformar */
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
    transition: transform 0.4s ease;
    display: block;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.product-card p {
    font-size: 1rem;
    color: #374151;
    line-height: 1.5;
    flex-grow: 1;
}

.product-card p strong {
    color: #047857;
}

.btn-link {
    margin-top: 1.5rem;
    font-weight: 700;
    color: #10b981;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
    align-self: flex-start;
}

.btn-link:hover,
.btn-link:focus {
    color: #065f46;
    border-color: #065f46;
    outline: none;
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Services Section */
.services-section {
    background-color: #f0fdf4;
    padding-top: 4rem;
    padding-bottom: 4rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    font-family: 'Inter', sans-serif;
}

.services-section h2 {
    font-weight: 800;
    font-size: 2.25rem;
    color: #047857;
    margin-bottom: 3rem;
    text-align: center;
}

.services-section p {
  color: #000000;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 300;
}

.services-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.service-card {
  background-color: #1f2937;
  padding: 2rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card img {
  width: 100%;
  height: 12rem;       /* altura uniforme igual que productos */
  object-fit: cover;    /* recorta sin deformar */
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  display: block;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fdfdfd;
  margin-bottom: 1rem;
}

.service-card p {
  color: #9ca3af;
  font-size: 1rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.service-card ul {
  list-style-type: disc;
  padding-left: 1rem;
  color: #9ca3af;
  text-align: left;
}

/* Footer */
.footer {
  background-color: #1f2937;
  color: #d1fae5;
  text-align: center;
  padding: 1rem 1rem;
  margin-top: 3rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-content span {
  font-weight: bold;
  color: #bbf7d0;
}


.nosotros {
    background-color: #f0fdf4; /* color de fondo similar al de la captura */
    padding: 4rem 1rem;
    text-align: center; /* centra todo dentro de la sección */
}

.nosotros .titulo-servicios {
    font-size: 2.5rem;
    font-weight: 800;
    color: #086028;
    position: relative;
    display: inline-block; /* para que la barra quede centrada bajo el texto */
    margin-bottom: 1.5rem;
}

.nosotros .titulo-servicios::after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 7rem;
    height: 0.25rem;
    background-color: #000000;
    border-radius: 9999px;
}

.nosotros .descripcion-servicios {
    max-width: 600px;
    margin: 0 auto;
    color: #1f2937; /* gris oscuro */
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 300;
}

.nosotros .descripcion-servicios strong {
    color: #16a34a;
    font-weight: 700;
}

.nosotros .descripcion-servicios span {
    font-weight: 500;
    color: #111827;
}
