/* GLOBAL */
body {
  margin: 0;
  font-family: Montserrat, sans-serif;
  background: #fafafa;
  color: #333;
}

header {
  text-align: center;
  background: linear-gradient(135deg, #d1f7d8, white);
  position: relative;
  text-align: center;
}

h1 {
  font-size: 32px;
  color: #ffffff;
  margin-bottom: 10px;
}

h2 {
  text-align: center;
  font-size: 26px;
  color: #2f7a40;
  margin-bottom: 20px;
}


/* HERO FULLWIDTH CON TEXTO CENTRADO */
.hero {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.sub-slogan {
  font-size: 28px;
  color: white;        /* Para que contraste con la imagen del hero */
  font-weight: 700;
  margin-top: 60px;
  letter-spacing: 2px;
  text-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

.sub-slogan2 {
  font-size: 18px;
  color: #f7f7f7;
  margin-top: 5px;
  margin-bottom: 20px;
  font-weight: 400;
  letter-spacing: 1px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

/* EL TEXTO ENCIMA */
.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  text-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.hero-overlay h1 {
  font-size: 3rem;
  font-weight: 700;
}

.hero-overlay p {
  font-size: 1.2rem;
  margin-top: 10px;
  font-weight: 500;
}


.hero-img {
  width: 100%;
  max-width: 600px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  margin-top: 20px;
}

.hero-separator {
  position: absolute;
  bottom: -1px;   /* para que tape el borde */
  width: 100%;
  height: 30px;
  background: #fafafa;

  clip-path: polygon(
    0 100%, 2% 0, 4% 100%, 6% 0, 8% 100%,
    10% 0, 12% 100%, 14% 0, 16% 100%,
    18% 0, 20% 100%, 22% 0, 24% 100%,
    26% 0, 28% 100%, 30% 0, 32% 100%,
    34% 0, 36% 100%, 38% 0, 40% 100%,
    42% 0, 44% 100%, 46% 0, 48% 100%,
    50% 0, 52% 100%, 54% 0, 56% 100%,
    58% 0, 60% 100%, 62% 0, 64% 100%,
    66% 0, 68% 100%, 70% 0, 72% 100%,
    74% 0, 76% 100%, 78% 0, 80% 100%,
    82% 0, 84% 100%, 86% 0, 88% 100%,
    90% 0, 92% 100%, 94% 0, 96% 100%,
    98% 0, 100% 100%
  );
}

/* SECTIONS */
.section {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* CARDS */
.card {
  background: white;
  border-radius: 20px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer; /*quitar puntero en texto*/
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: 0.3s ease;
}

.card img {
  /*width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 15px;
*/
  width: 100%;
  height: 180px;         /* tu altura del cuadro */
  object-fit: cover;   /* ajusta sin recortar */
  border-radius: 15px;

}

.card p {
  margin-top: 10px;
  font-weight: 600;
}

.card-title {
  font-weight: 700;
  font-size: 18px;
  color: #2f7a40;
  margin-top: 10px;
}

.card-desc {
  font-family: Quicksand, sans-serif;
  font-size: 14px;
  color: #555;
  margin-top: 5px;
  line-height: 1.4;
}

.contact-section {
  text-align: center;
  padding: 60px 20px;
  max-width: 700px;
  margin: 0 auto;
  font-family: "Quicksand", sans-serif;
}

.contact-section h2 {
  margin-top: -18px;
  font-size: 2rem;
  margin-bottom: 15px;
  color: #333;
  font-weight: 700;
}

/*CONTACT SECTION*/

.contact-section p {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: #555;
}

.call-btn {
  background: #2f7a40;
  color: white;
  padding: 14px 28px;
  border-radius: 30px;
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
  font-family: "Quicksand", sans-serif;
  margin-top: 30px
}

.call-btn:hover {
  background: #3ea856;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.contact-subtext {
  margin-top: 15px;
  font-size: 15px;
  color: #666;
}
/* WHATSAPP BUTTON */
.btn-wa {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 65px;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.wa-icon {
    width: 100%;
    height: auto;
}

/* TOOLTIP OCULTO */
.wa-tooltip {
    position: absolute;
    bottom: 75px; /* encima del ícono */
    right: 50%;
    transform: translateX(50%);
    background: #25D366;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
}

/* FLECHITA DEL TOOLTIP */
.wa-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 50%;
    transform: translateX(50%);
    border-width: 6px;
    border-style: solid;
    border-color: #25D366 transparent transparent transparent;
}

/* TOOLTIP VISIBLE AL HOVER */
.btn-wa:hover .wa-tooltip {
    opacity: 1;
    transform: translateX(50%) translateY(-5px);
}

/* Animación botón */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all .8s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/*Footer*/
  footer {
  text-align: center;
  padding: 20px;
  color: #333;
  font-size: 13px;
  /*margin-top: 10px;*/
  margin-top: 0;
  padding-bottom: 0;
}

footer a {
  color: #b15b00;       /* color dorado suave */
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  transition: 0.3s;
}

footer a:hover {
  color: #8a4600;
}

.credit-link {
  text-decoration: none;
  color: inherit;       /* mantiene tu mismo color del footer */
  font-weight: normal;  /* igual que "Crafted by" */
  transition: font-weight 0.2s ease;
}

.credit-link:hover {
  font-weight: 700;     /* se pone en negrita solo al pasar el mouse */
  color:black
}

/* Modal */
.modal-bg {
  display: none; /* se activa con JS */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Modal contenido*/
.modal-content {
  background: #fff;
  padding: 25px 30px;
  width: 90%;
  max-width: 460px;
  border-radius: 14px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.25);
  text-align: center;
  animation: fadeIn 0.25s ease-out;
}

.modal-content h2 {
  margin-bottom: 12px;
  font-size: 20px;
  color: #333;
}

.modal-content p {
  font-size: 14px;
  line-height: 1.5;
  color: #444;
  margin-bottom: 12px;
}

.close-btn {
  margin-top: 10px;
  padding: 10px 20px;
  background: #b15b00;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
}

.close-btn:hover {
  background: #8a4600;
}

/* Animación Modal */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal responsive*/
@media (max-width: 480px) {
  .modal-content {
    padding: 20px 20px;
    width: 92%;
  }

  footer {
    font-size: 13px;
  }
}