/* ============================================================
   Comercial Los Arrayanes Ltda. — Stylesheet
   Colores: Verde #2d7a2d | Verde oscuro #1a4f1a | Blanco #fff
   ============================================================ */

/* --- Animaciones de scroll (reveal) --- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Ripple en botones --- */
@keyframes ripple {
  to { transform: scale(2.5); opacity: 0; }
}

/* --- Hover cards mejorado --- */
.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-top-color 0.25s ease;
}
.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(2,102,50,0.15);
  border-top-color: #FFCC00;
}

.card img {
  transition: transform 0.4s ease;
}
.card:hover img {
  transform: scale(1.04);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 100%; scroll-behavior: smooth; }

body {
  background: #f8f9f5;
  color: #333;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
  color: #014d25;
  line-height: 1.3;
}

a { color: #026632; text-decoration: none; transition: color 0.2s; }
a:hover { color: #FFCC00; }

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header / Nav --- */
header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: 1100px;
  margin: 0 auto;
  height: 140px;
}

#brand a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

#brand img {
  height: 130px;
  width: auto;
  display: block;
  background: #fff;
  border-radius: 4px;
  padding: 1px 2px;
}

#brand .brand-text {
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

#brand .brand-text span {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

nav ul { list-style: none; display: flex; gap: 4px; }

nav ul li { position: relative; }

nav ul li a {
  color: #1a4f1a;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 14px;
  display: block;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

nav ul li a:hover,
nav ul li.active > a {
  background: #026632;
  color: #fff;
}

/* Dropdown */
nav ul li ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  border-top: 3px solid #026632;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  flex-direction: column;
  gap: 0;
}

nav ul li:hover ul.sub-menu { display: flex; }

nav ul li ul.sub-menu li a {
  font-size: 0.8rem;
  padding: 10px 16px;
  border-radius: 0;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}

nav ul li ul.sub-menu li:last-child a { border-bottom: none; }

/* Mobile toggle */
#menu-toggle {
  display: none;
  color: #026632;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* --- Hero Banner --- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #014d25 0%, #026632 60%, #038a42 100%);
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><path d="M0 60 L30 0 L60 60Z" fill="rgba(255,255,255,0.03)"/></svg>') repeat;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 40px;
}

.hero-content {
  flex: 1;
  padding: 60px 0;
}

.hero-video {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video video {
  width: 100%;
  max-height: 400px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.hero-tag {
  display: inline-block;
  background: #FFCC00;
  color: #014d25;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.15;
}

.hero h1 span { color: #FFCC00; }

.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 500px;
}

.btn-primary {
  display: inline-block;
  background: #FFCC00;
  color: #014d25;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #ffd740;
  color: #014d25;
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  border: 2px solid #fff;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 28px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
  margin-left: 12px;
}

.btn-outline:hover {
  background: #fff;
  color: #014d25;
}

/* --- Secciones generales --- */
section { padding: 70px 0; }

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 14px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #FFCC00;
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-header p {
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* --- Cards de productos/servicios --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 32px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border-top: 4px solid #026632;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #026632, #038a42);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.6rem;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #014d25;
}

.card p { color: #555; font-size: 0.95rem; }

/* --- Banda de stats --- */
.stats-band {
  background: linear-gradient(135deg, #014d25, #026632);
  padding: 50px 0;
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: #FFCC00;
  margin-bottom: 6px;
}

.stat-item p { color: rgba(255,255,255,0.85); font-size: 0.95rem; }

/* --- Sección "Nosotros" / Empresa --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 { font-size: 2rem; margin-bottom: 20px; }

.about-text p { color: #555; margin-bottom: 16px; }

.about-text ul {
  list-style: none;
  margin-top: 20px;
}

.about-text ul li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  color: #444;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-text ul li::before {
  content: '✓';
  color: #026632;
  font-weight: 700;
  font-size: 1rem;
}

.about-image {
  background: linear-gradient(135deg, #026632, #038a42);
  border-radius: 12px;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 5rem;
  overflow: hidden;
}

.about-image img { width: 100%; height: 380px; object-fit: cover; border-radius: 12px; }

/* --- Tabla de productos --- */
.product-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.product-table th {
  background: #026632;
  color: #fff;
  padding: 14px 18px;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.product-table td {
  padding: 12px 18px;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
  font-size: 0.95rem;
}

.product-table tr:last-child td { border-bottom: none; }
.product-table tr:hover td { background: #f8fff8; }

/* --- Sección categorías de productos --- */
.product-category {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-left: 5px solid #026632;
}

.product-category h3 {
  font-size: 1.2rem;
  color: #014d25;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-category ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}

.product-category ul li {
  color: #555;
  font-size: 0.95rem;
  padding: 6px 0 6px 18px;
  position: relative;
}

.product-category ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: #026632;
  font-weight: 700;
  font-size: 1.1rem;
}

/* --- Certificación --- */
.cert-card {
  background: #fff;
  border-radius: 10px;
  padding: 36px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  text-align: center;
  border-top: 5px solid #FFCC00;
}

.cert-badge {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #026632, #038a42);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
}

.cert-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.cert-card p { color: #555; font-size: 0.95rem; }

/* --- Contacto --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: start;
}

.contact-info h2 { font-size: 1.8rem; margin-bottom: 24px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: #026632;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: #fff;
}

.contact-item h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 4px;
}

.contact-item p, .contact-item a {
  color: #333;
  font-size: 0.95rem;
  text-decoration: none;
}

/* Formulario */
.contact-form {
  background: #fff;
  border-radius: 10px;
  padding: 36px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.contact-form h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
  color: #014d25;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
  font-family: 'Montserrat', sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e5e5e5;
  border-radius: 6px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: #333;
  transition: border-color 0.2s;
  background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #026632;
  background: #fff;
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  cursor: pointer;
  font-size: 0.9rem;
  color: #444;
}

/* --- Page banner (páginas internas) --- */
.page-banner {
  background: linear-gradient(135deg, #014d25, #026632);
  padding: 60px 0;
  text-align: center;
  color: #fff;
}

.page-banner h1 {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 10px;
}

.page-banner p { color: rgba(255,255,255,0.8); font-size: 1.05rem; }

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.breadcrumb a { color: #FFCC00; text-decoration: none; }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* --- Sección bg gris --- */
.bg-light { background: #f0f4f0; }
.bg-white { background: #fff; }

/* --- Footer --- */
footer {
  background: #0a2e18;
  color: rgba(255,255,255,0.7);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .brand-text {
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
  display: block;
}

.footer-brand .brand-text span {
  display: block;
  color: #FFCC00;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 280px;
}

.footer-col h4 {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #026632;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: #FFCC00; }

.footer-col p {
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* --- WhatsApp button --- */
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  position: fixed;
  right: 22px;
  bottom: 22px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 999;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.btn-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  color: inherit;
}

/* --- Utilidades --- */
.text-center { text-align: center; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-0 { margin-bottom: 0; }
.tag {
  display: inline-block;
  background: #e8f5e9;
  color: #026632;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; padding: 40px 24px; gap: 24px; }
  .hero-content { padding: 0; }
  .hero-video { width: 100%; }
  .hero h1 { font-size: 2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 680px) {
  nav { display: none; }
  #menu-toggle { display: block; }
  nav.open { display: block; position: absolute; top: 75px; left: 0; right: 0; background: #014d25; padding: 16px; }
  nav.open ul { flex-direction: column; gap: 0; }
  nav.open ul li ul.sub-menu { display: none; position: static; border: none; box-shadow: none; padding-left: 16px; }
  nav.open ul li:hover ul.sub-menu { display: flex; }
  .hero h1 { font-size: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
}

/* --- Carrusel de clientes --- */
.clientes-track-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
}
.clientes-track {
  display: flex;
  gap: 28px;
  align-items: center;
  width: max-content;
  animation: scroll-logos 40s linear infinite;
}
.clientes-track img {
  height: 100px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  background: #fff;
  padding: 14px 24px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s, transform 0.3s;
}
.clientes-track img:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}
@keyframes scroll-logos {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
