/*
Theme Name: Viveros
Theme URI: https://wiredandlinked.com
Author: Wiredandlinked Themes
Author URI: https://wiredandlinked.com
Description: Tema base de WordPress utilizando Tailwind CSS.
Version: 1.0
License: GNU General Public License v2 o later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: viveros
*/



body {
  font-family: 'MarkPro', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Monument Extended', sans-serif;
  font-weight: bold;
}

.monument {
  font-family: 'Monument Extended', sans-serif;
  font-weight: bold;
}


/* Fondo verde oscuro */
.verde-oscuro {
    background-color: #003A37;
  }
  .txt-verde-oscuro {color:#003A37;}

  .verde-mid {
    background-color: #00AC69;
  }
  
  /* Fondo verde claro (botón) */
  .verde-claro {
    background-color: #7ACA8B;
  }
  
  .txt-verde-claro {color:#7ACA8B;}

.border-verde-oscuro {
  border: solid 1px #003A37;
}


/* Estilo base para el título (viveros-h1) */
.viveros-h1 {
  font-size: 7vw; /* Valor base para móviles */
  line-height: 1.2;
  font-weight: bold;
}

.viveros-h2 {

  font-size: calc(9px + 2.5vw);
  line-height: 1.2;
  font-weight: bold;
}


/* Media Query para pantallas pequeñas (por ejemplo, tablets en vertical) */
@media screen and (min-width: 480px) {
  .viveros-h1 {
    font-size: 5vw;
  }
}

/* Media Query para pantallas medianas (tablets en horizontal o dispositivos pequeños) */
@media screen and (min-width: 768px) {
  .viveros-h1 {
    font-size: 4vw;
  }
}

/* Media Query para pantallas grandes (escritorios) */
@media screen and (min-width: 1024px) {
  .viveros-h1 {
    font-size: 3vw;
  }
}



/*menu*/

/* Contenedor padre para posicionar la etiqueta */
.menu-wrapper {
  position: relative;
}

/* Sticky header */
.sticky-menu {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
}

/* Contenedor centrado, espaciado y separación */
/* MANTENIDO exactamente como lo tenías */
.menu-contenedor {
 
  margin: 0 auto;
  padding: 1rem 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Enlaces del menú */
.menu-k li a {
  text-transform: uppercase;
  font-size: calc(5px + 0.5vw);
  font-weight: 600;
}
@media (max-width: 768px) {
  .menu-k li a {
    font-size: calc(15px + 0.5vw);
  }
}
.menu-k li a:hover {
  color: #7ACA8B;
}

/* Padding extra a los enlaces del desplegable móvil */
.mobile-menu ul li a {
  display: block;
  padding: 0.75rem 1rem;
  padding-left: 1.5rem;
}

/* Botón de teléfono */
.btn-telefono {
  text-decoration: none;
  transition: filter 0.2s ease;
  background: #00AC69;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px;
}
.btn-telefono:hover {
  filter: brightness(1.1);
}

/* Bloque de garantía: inicialmente oculto tras el menú */
.garantia {
  position: absolute;
  top: -100%;
  right: 1.5rem;
  transition: top 0.5s ease;
  z-index: 0;
}
.garantia.visible {
  top: calc(86% + 0.5rem);
}

/* Estados del desplegable móvil */
.scale-y-0 {
  transform: scaleY(0);
}
.scale-y-100 {
  transform: scaleY(1);
}
.opacity-0 {
  opacity: 0;
}
.opacity-100 {
  opacity: 1;
}
.transition-all {
  transition: all 0.3s ease-in-out;
}

/* Mostrar/ocultar según breakpoint */
.mobile-menu.hidden {
  display: none !important;
}
.desktop-menu {
  display: none;
}
@media (min-width: 768px) {
  .desktop-menu {
    display: flex;
    align-items: center;
  }
  .mobile-menu {
    display: none !important;
  }
}



/*FIN menu*/





  /*Formulario de contacto*/

/* Contenedor principal del formulario */
.custom-contact-form {
  max-width: 806px;
  margin: 0 auto;
  padding: 20px 1px;
  font-family: 'MarkPro', Arial, sans-serif;
  float: left;
}

/* Cada fila del formulario */
.form-row {
  margin-bottom: 15px;
}

/* Filas de dos columnas */
.two-col {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

/* Columnas dentro de filas de dos columnas */
.form-col {
  flex: 1;
  min-width: 200px;
}

/* Los labels actúan solo como contenedores */
.form-label {
  display: block;
  width: 100%;
}

/* Estilos para inputs, selects y textarea */
.custom-contact-form input[type="text"],
.custom-contact-form input[type="tel"],
.custom-contact-form input[type="email"],
.custom-contact-form select,
.custom-contact-form textarea {
  width: 100%;
  padding: 10px 10px 10px 14px;
  font-size: 16px;
  font-family: 'MarkPro', Arial, sans-serif;
  color: #003a37;
  background-color: #dfe7dda6; /* Fondo gris ligero */
  border: 0px solid #ccc;
  border-radius: 12px;
  box-sizing: border-box;
}

.custom-contact-form select option {
  background: #003a37;
  color: white;
}

/* Estilos para los placeholders */
.custom-contact-form ::placeholder {
  font-family: 'MarkPro', Arial, sans-serif;
  color: #003a37;
}

/* Área de texto: permite redimensionar verticalmente */
.custom-contact-form textarea {
  resize: vertical;
  max-height: 114px;
}

/* Botón de envío: ocupa todo el ancho */
.custom-contact-form [type="submit"] {
  background-color: #ffffff;
  color: #003a37;
  border: 1px solid;
  padding: 9px;
  border-radius: 37px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
  width: 100%;
  text-transform: uppercase;
  margin-top: 25px;
}

.custom-contact-form [type="submit"]:hover {
  background-color: #fbfbfb;
}


/* Estilos para el checkbox de aceptación personalizado */
.custom-contact-form input[type="checkbox"].custom-acceptance {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f7f7f7;
  vertical-align: middle;
  cursor: pointer;
  position: relative;
  margin-right: 5px;
  margin-top: -3px;
}

/* Estilos cuando el checkbox está marcado: fondo verde y check */
.custom-contact-form input[type="checkbox"].custom-acceptance:checked {
  background-color: #003A37;  /* Fondo verde */
  border-color: #057546;
}

/* Opcional: dibujar un check (marca) dentro del checkbox */
.custom-contact-form input[type="checkbox"].custom-acceptance:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 1px;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Ajuste para el contenedor de la aceptación, para alinear el checkbox con el texto */
.custom-contact-form .acceptance-row {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #003a37;
}


  /* CSS personalizado si no utilizas Tailwind */
  .contact-info > div {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
  }
  @media (max-width: 768px) {
    .contact-info > div {
      flex-direction: column;
      align-items: center;  /* Centra el contenido */
      text-align: center;   /* Centra el texto */
    }
    .contact-info > div svg {
      margin-bottom: 0.5rem;
    }
  }
  /* Subraya los números */
  .phone-numbers a {
    text-decoration: underline;
  }





  /*Timeline*/

 /* Contenedor principal */
 .timeline {
  position: relative;
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 40px;
}

/* Línea central y progreso */
.line {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: #ccc;
  z-index: 1;
}
.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  background: #003A37;
  transition: height 0.5s ease-out;
  z-index: 1;
}

/* Numeradores (escritorio) */
.number-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 8px;
  margin-top: -96px;
  padding: 10px 20px;
  text-align: center;
  z-index: 3;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  color: #333;
}
.number-marker.active { border-color: #027437; color: #027437; }
.number-marker .big-number { font-size: 53px; font-weight: bold; font-family: monument extended; line-height: 46px; padding-top: 9px; color: #003a37; }
.number-marker .phase-title { font-size: 20px; font-weight: bold; color: #00AC69; font-family: markpro; }
.number-marker .phase-subtitle { font-size: 15px; color: #00AC69; font-family: markpro; }

/* Numeradores móviles */
.number-marker-mobile {
  display: none;
  background: #fff;
  border-radius: 8px;
  padding: 10px 20px;
  text-align: center;
  margin: 0 auto 20px;
  width: fit-content;
  color: #333;
  border: 2px solid transparent;
  transition: border-color 0.3s, color 0.3s;
}
.number-marker-mobile.active {
  border-color: #027437;
  color: #027437;
}
.number-marker-mobile .big-number { font-size: 53px; font-weight: bold; font-family: monument extended; line-height: 46px; padding-top: 9px; color: #003a37; }
.number-marker-mobile .phase-title { font-size: 20px; font-weight: bold;   font-family: markpro; }

/* Puntos verdes */
.card-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #ccc;
  z-index: 2;
  transition: background 0.3s, border-color 0.3s;
}
.card-marker.active { background: #027437; border-color: #027437; }

/* Bloques de contenido */
.content-block {
  position: relative;
  opacity: 0;
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
  margin: 80px 0;
}
.content-block.animate { opacity: 1; transform: translateX(0); }
.content-block.left {
  transform: translateX(-50px);
  width: 49%;
  margin-right: calc(50% + 20px);
}
.content-block.right {
  transform: translateX(50px);
  width: 49%;
  margin-left: calc(50% + 20px);
}

/* Estilos internos */
.content-inner { background: #fff; padding: 20px; border-radius: 6px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0); }
.content-inner img {     max-width: 150px !important; margin-bottom: 1rem; }
.content-inner h2 { margin-bottom: 10px; font-size: 41px; color: #003a37; }
.content-inner h3 { font-family: 'MarkPro'; color: #003A37; font-size: 23px; font-weight: 300; margin-bottom: 10px; }
.content-inner p { margin-bottom: 10px; font-family: 'MarkPro'; color: #003A37; }

/* RESPONSIVE: tablet/móvil */
@media (max-width: 768px) {

  .content-inner { background: #fff; padding: 20px; border-radius: 6px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }

/* Contenedor principal */
.timeline {

  width: 100%;

}

  /* Ocultar numeradores escritorio */
  .number-marker { display: none; }
  /* Mostrar numeradores móviles */
  .number-marker-mobile { display: block; }

  /* Línea pegada a la izquierda */
  .line { left: 2.5% !important; transform: none !important; }
  .progress-fill { left: 0; }

  /* Tarjetas ocupan 90%, alineadas a la derecha de la línea */
  .content-block,
  .content-block.left,
  .content-block.right {
    width: 90% !important;
    margin: 40px 0 40px 7.5% !important;
    transform: translateX(0) !important;
  }

  /* Marcadores más grandes y alineados */
  .card-marker {
    left: 2.8% !important;
    transform: translateX(-50%) !important;
    width: 30px;
    height: 30px;
  }

  /* Imágenes centradas por defecto */
  .content-inner img {
    max-width: 150px !important;
    margin-bottom: 1rem;
    margin: 0 auto;
    
  }

  /* — Ajustes para ÚLTIMA TARJETA (card-3) — */
  .content-block.card-3 .one-column-grid {
    justify-items: start;
  }
  .content-block.card-3 .content-inner img {
    margin: 0 10px 0 0 !important;
  }

  /* — Ajustes para TARJETA 2 (Crecentor) — */
  .content-block.card-2 .one-column-grid {
    justify-items: start;
  }
 
}

/* Ajustes extra móviles pequeños */
@media (max-width: 480px) {
  .content-inner { padding: 15px; }
  .content-inner h2 { font-size: 28px; }
  .content-inner h3 { font-size: 18px; }
}

  /*Fin Timeline*/


  /*whatsap*/

  /* Botón flotante de WhatsApp */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;       /* ajusta tamaño si quieres */
  height: 60px;
  z-index: 1000;
  display: block;
  transition: transform 0.2s ease-in-out;
}

.whatsapp-button img {
  width: 100%;
  height: auto;
  display: block;
}

.whatsapp-button:hover {
  transform: scale(1.1);
}


/*aenor garantia */

#aenor-garantia-container {
  position: fixed;
top: auto;
right: 10%;
transform: translateY(-100%);
z-index: 45;
}
#aenor-garantia-container img {
  width: 69px;
}


/* Clase que activa el deslizamiento */
#aenor-garantia-container.slide-down {
  transition: transform 0.8s ease-out;
  transform: translateY(0);
}

    /* Oculta en mobile */
@media (max-width: 768px) {
#aenor-garantia-container {
  display: none !important;
}
}