/* ==========
  AvoNatur — styles.css
  Minimal, limpio, y responsive
=========== */
:root{
  --bg: #ffffff;
  --bg-alt: #f6fbf7;
  --text: #0b2a1a;
  --muted: #4b6b5a;
  --primary: #1e8a4a;
  --primary-700: #0d6b2e;
  --accent: #b9efac;
  --card: #ffffff;
  --shadow: 0 8px 24px rgba(0,0,0,.08);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth; overflow-x: hidden;}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Utilities */
.container{width:min(1100px, 92%); margin-inline:auto}
.section{padding: 72px 0}
.section.alt{background: var(--bg-alt)}
.section-head{margin-bottom: 28px; text-align:center}
.section-head h2{font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin:0 0 10px}
.section-head p{margin:0; color: var(--muted)}

.btn{
  border: 2px solid var(--primary);
  background: var(--primary);
  color: #fff;
  padding: .75rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition:.25s transform, .25s background, .25s color, .25s border-color;
  text-decoration:none;
  display:inline-block;
}
.btn:hover{transform: translateY(-2px)}
.btn-outline{background: transparent; color: var(--primary)}
.btn-outline:hover{background: var(--primary); color:#fff}
.btn-primary{}
.price{font-weight:800; color:var(--primary-700)}

/* Header */
.site-header{
  position: sticky; top:0; z-index: 1000;
  background: rgba(255,255,255, .8);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: box-shadow .3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.header-inner{display:flex; align-items:center; justify-content:space-between; padding: 12px 0}
.brand{display:flex; align-items:center; gap:.6rem; text-decoration:none; color:inherit}
.logo{width:32px; height:32px}
.brand-name{font-weight:900; letter-spacing:.4px}

.nav-toggle{display:none; background:none; border:0; cursor:pointer;}
.nav-toggle-box{width:28px; display:grid; gap:5px}
.nav-toggle-box span{
  height:3px; 
  background:var(--text); 
  border-radius:2px; 
  display:block;
  transition: transform .3s, opacity .3s;
}

/* Animate hamburger to 'X' when open */
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* General Navigation Styles */
.nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.nav ul li a {
  text-decoration: none;
  font-weight: 700;
  transition: color .2s ease-in-out;
}

/* Mobile Navigation Panel (Side Menu) */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: auto;
  width: 100%;
  background: var(--bg-alt);
  padding: 2rem 1.5rem 2rem; /* Aumentamos el padding para que el logo no tape los enlaces */
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transform: translateY(-100%);
  transition: transform .3s ease-in-out;
  visibility: hidden;
  z-index: 999;
  overflow: hidden;
}

.nav.open {
  transform: translateY(0);
  visibility: visible;
}

.nav ul {
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.nav ul li a {
  color: var(--text);
  font-size: 1.2rem;
}

.nav ul li a:hover {
  color: var(--primary);
}

/* Show hamburger on mobile */
@media (max-width: 860px){
  .nav-toggle{display:block}
  body.no-scroll { overflow: hidden; }

  /* Invierte el orden: pone el logo a la derecha y la hamburguesa a la izquierda solo cuando el menú está abierto */
  body.no-scroll .header-inner {
    flex-direction: row-reverse;
  }
}

/* Desktop Navigation */
@media (min-width: 861px) {
  .nav {
    position: static;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    width: auto;
    padding: 0;
    z-index: auto;
    height: auto;
  }
  .nav ul {
    flex-direction: row;
    gap: 2rem;
    align-items: center;
  }
  .nav ul li a {
    font-size: 1rem;
    color: var(--muted);
    padding: .5rem 0;
    position: relative;
  }
  .nav ul li a:hover {
    color: var(--text);
  }
  .nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s ease-in-out;
  }
  .nav ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

/* Hero */
.hero{
  position: relative;
  overflow:hidden;
  padding: 50px 0 80px;
  color: #fff;
  text-align: center;
}
.hero-bg{
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('img/aguacate.png');
  background-size: cover;
  background-position: center;
  animation: zoomIn 5s infinite alternate ease;
}

@keyframes zoomIn {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}


.hero-inner{
  display:grid;
  place-items: center;
  gap: 2rem;
}
.hero-copy h1{
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  line-height:1.1;
  margin:.2rem 0 .6rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hero-copy h1 span{
  color: var(--accent);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}
.hero-copy p{
  color: #eaf3ec;
  margin:0 0 1.5rem;
  max-width: 600px;
  margin-inline: auto;
  animation: heroEntrance 1s ease-out both;
}
.hero-cta{
  display:flex; gap:.75rem; flex-wrap:wrap; justify-content: center;
  animation: heroEntrance 1.2s ease-out both;
}

.hero-visual{display:none;}

.hero-wave{display: none;}

@media (max-width: 860px){
  .hero-inner{grid-template-columns: 1fr}
}

.hero-logos {
  position: relative;
  margin-top: 60px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  z-index: 10;
}

.hero-logos small {
  display: block;
  margin-bottom: 10px;
  text-align: center;
}

.hero-logos-container {
  display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; align-items: center;
}

.hero-logos img {
  max-width: 100px;
  height: auto;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 5px;
  border-radius: 4px;
}

/* Cards & grids */
.card{
  background: var(--card); border:1px solid #eaf3ec; border-radius: 18px; padding: 18px; 
  box-shadow: 0 0 15px rgba(13, 107, 46, 0.3), 0 0 25px rgba(13, 107, 46, 0.2);
  width: 100%;
  max-width: 300px;
  margin-bottom: 18px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(13, 107, 46, 0.2), 0 0 20px rgba(13, 107, 46, 0.3);
}
.product-image {
  width: 100%;
  height: 150px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.products-grid{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}



/* Benefits */
.benefits-grid{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

/* Visit Us */
.visit-us {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
}

.visit-us p {
  margin-bottom: 1.5rem;
}

/* Ingredients */
.ingredients{display:grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items:start}

@media (max-width: 860px){
  .ingredients{grid-template-columns: 1fr}
}

/* Steps */
.steps{display:grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: steps}

@media (max-width: 680px){
  .steps{grid-template-columns: 1fr}
}

.testimonials-grid{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

/* Accordion */
.accordion details{background:#fff; border:1px solid #eaf3ec; border-radius:12px; padding: .8rem 1rem; box-shadow: var(--shadow); margin-bottom: 10px}
.accordion summary{cursor:pointer; font-weight:700}
.accordion p{margin:.6rem 0 0; color: var(--muted)}

/* Footer */
.site-footer {
  background-color: #f4f9f5; /* Un tono ligeramente más sólido para anclar el pie */
  color: var(--text);
  padding: 60px 0 0; /* Padding inferior 0 porque la barra bottom tiene su propio padding */
  border-top: 1px solid #eaf3ec;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

/* Columna 1: Marca */
.footer-widget.brand-widget {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer-brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--primary-700);
  font-weight: 900;
  font-size: 1.2rem;
}

.footer-desc {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  max-width: 320px;
}

/* Columna 2 y 3: Widgets Generales */
.footer-widget h4 {
  color: var(--primary-700);
  margin: 0 0 1.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-menu a {
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-menu a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

/* Logos del proyecto (integrados en columna) */
.footer-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
  justify-content: flex-start;
}

.footer-logo {
  max-width: 90px;
  height: auto;
  mix-blend-mode: multiply; /* Truco pro: hace que el blanco de los logos se fusione con el fondo */
}

/* Barra Inferior (Copyright + Legal) */
.footer-bottom {
  border-top: 1px solid #dcebdb;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  background: #ecf5ee; /* Un tono un pelín más oscuro para cerrar la web */
}

.footer-legal-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal-nav a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.to-top {
  background: #f0fbf0; 
  border: 1px solid #dff0de; 
  padding: .5rem .8rem; 
  border-radius: 50%;
  text-decoration: none;
  color: var(--primary);
  transition: all 0.3s;
}

.to-top:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

/* Cart */
.cart-toggle {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--primary);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.cart-modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.cart-modal.open {
  display: block;
}

.cart-modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 18px;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.close-cart {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

.cart-items {
  max-height: 300px;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cart-item-details {
  display: flex;
  align-items: center;
}

.cart-item-details img {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
}

.cart-item-actions button {
  background: none;
  border: 1px solid #ddd;
  cursor: pointer;
  padding: 5px 10px;
}

.cart-item-actions span {
  padding: 0 10px;
}

.cart-summary {
  border-top: 1px solid #ddd;
  padding-top: 10px;
  margin-top: 10px;
  text-align: right;
}

/* Animations */
.a-reveal{opacity:0; transform: translateY(12px);}
.a-reveal.is-visible{opacity:1; transform:none; transition: .5s ease}
.sr-only{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;}

.auth-modal {
  display: none;
  position: fixed;
  z-index: 1002;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.auth-modal.open {
  display: block;
}

.auth-modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 400px;
  border-radius: 18px;
  text-align: center;
}

.auth-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.close-auth {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

.auth-modal-content form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.auth-modal-content input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.auth-link {
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ***********************/
/* seccion S K I L L S */
/* *********************/

.contenedor-skills {
    background: linear-gradient( #13452ccc, rgba(33, 16, 16, 0.8)), url("img/aguacate.png");
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    background-position: center center;
    padding: 100px 0;
    text-align: center;
}

.contenedor-skills .skill {
    max-width: 600px;
    margin: 30px auto;
}

.contenedor-skills .skill .info {
    display: flex;
    justify-content: space-between;
}

.contenedor-skills .skill .lista {
    display: inline-block;
    margin-right: 20px;
    height: 10px;
    width: 10px;
    background-color: #fff;
}

.contenedor-skills .skill .barra {
    background-color: #919191;
    width: 100%;
    height: 6px;
    margin: 10px 0px;
}

.contenedor-skills .skill .barra .progreso-suelo {
    background-color: #fff;
    width: 0;
    height: 6px;
}

.contenedor-skills .skill .barra .progreso-clima {
    background-color: #fff;
    width: 0;
    height: 6px;
}

.contenedor-skills .skill .barra .progreso-agricultura {
    background-color: #fff;
    width: 0;
    height: 6px;
}

.contenedor-skills .skill .barra .progreso-cosecha {
    background-color: #fff;
    width: 0;
    height: 6px;
}

.contenedor-skills.is-visible .skill .barra .progreso-suelo {
    animation: progreso-suelo 8s forwards;
}

.contenedor-skills.is-visible .skill .barra .progreso-clima {
    animation: progreso-clima 8s forwards;
}

.contenedor-skills.is-visible .skill .barra .progreso-agricultura {
    animation: progreso-agricultura 8s forwards;
}

.contenedor-skills.is-visible .skill .barra .progreso-cosecha {
    animation: progreso-cosecha 8s forwards;
}

@keyframes progreso-suelo {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes progreso-clima {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes progreso-agricultura {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes progreso-cosecha {
    0% { width: 0; }
    100% { width: 100%; }
}


@media (max-width: 680px) {
  .container {
    width: auto;
    margin-inline: 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr; /* Una sola columna en móvil */
    text-align: center;
    gap: 30px;
  }

  .footer-brand, 
  .footer-widget,
  .footer-logos {
    align-items: center; /* En móvil todo centrado */
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-logos {
    justify-content: center;
  }
  
  .section {
    padding: 48px 0;
  }

  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }

  .contenedor-skills {
        padding: 50px 20px;
        background-attachment: initial;
    }
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #04411a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: transform 0.3s;
}

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

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}