html {
    scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  color: #1f2d1f;
  background: #f7faf5;
}

.navbar{
    position: sticky;
    top: 0;
    z-index: 1000;

    background: white;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 15px 6%;

    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.logo img{
    height: 70px;
    width: auto;
}

.navbar-right{
    display: flex;
    align-items: center;
    gap: 18px;
}

.right-logo img{
    height: 50px;
    width: auto;
    object-fit: contain;
}

nav{
    display: flex;
    gap: 28px;
}

nav a{
    text-decoration: none;
    color: #1f2d1f;
    font-weight: 600;
    transition: 0.3s;
}

nav a:hover{
    color: #1f7a3a;
}

#langBtn{
    border: none;
    background: #1f7a3a;
    color: white;

    padding: 10px 16px;

    border-radius: 30px;

    cursor: pointer;
}
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 110px 8% 70px;
    color: white;
    overflow: hidden;
}

.video-slider{
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.bg-video{
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0;

    transition: opacity 2s ease-in-out;

    transform: scale(1.02);
    filter: brightness(0.5);
}

.bg-video.active{
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 900px;
}

.hero h1 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;

    color: #ffffff !important;

    width: 100%;
    max-width: 900px;

    font-size: clamp(28px, 7vw, 58px) !important;
    line-height: 1.08;

    margin: 20px 0;
    word-break: normal;
    overflow-wrap: break-word;
}

.hero p {
    color: #ffffff;
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: clamp(26px, 8vw, 36px) !important;
        line-height: 1.15;
    }
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.services-carousel {
    width: 100%;
    max-width: 680px;
    overflow: hidden;
    margin-top: 25px;
}

.services-track {
    display: flex;
    gap: 20px;
    animation: slideServices 22s linear infinite;
}

.service-slide {
    min-width: 280px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 22px;
    padding: 24px;
    color: white;
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}

.service-slide h3 {
    margin-bottom: 12px;
    color: #d6f5d6;
}

.service-slide p {
    font-size: 15px;
    margin-bottom: 18px;
}

.service-slide a {
    display: inline-block;
    background: #47b858;
    color: white;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
}

@keyframes slideServices {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.services-carousel:hover .services-track {
    animation-play-state: paused;
}

.badge {
  display: inline-block;
  background: #d6f5d6;
  color: #1f7a3a;
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: bold;
  margin-bottom: 20px;
  font-size: clamp(12px, 2.2vw, 16px);
}

.hero h1 {
  font-size: clamp(28px, 6vw, 64px);
  line-height: 1.05;
  margin-bottom: 20px;
  word-wrap: break-word;
}

.hero p {
  font-size: clamp(16px, 2.6vw, 20px);
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: clamp(10px, 1.6vw, 16px) clamp(14px, 2.6vw, 24px);
  border-radius: 40px;
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(14px, 2.2vw, 18px);
  line-height: 1;
  white-space: nowrap;
}

.primary {
  background: #47b858;
  color: white;
}

.secondary {
  background: white;
  color: #1f7a3a;
}

.section {
  padding: 80px 8%;
  text-align: center;
}

.section h2 {
  font-size: 38px;
  margin-bottom: 35px;
  color: #1f7a3a;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.card {
  background: white;
  padding: 35px 25px;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.card h3 {
  margin-bottom: 15px;
  color: #1f7a3a;
}

.alt {
  background: #eaf7e8;
}

.alt p {
  max-width: 800px;
  margin: auto;
  font-size: 20px;
}

.contact-box {
  max-width: 650px;
  margin: auto;
  background: white;
  padding: 40px;
  border-radius: 25px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.1);
}

form {
  display: grid;
  gap: 15px;
}

input,
select,
textarea {
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 16px;
}

textarea {
  min-height: 120px;
}

form button {
  background: #1f7a3a;
  color: white;
  border: none;
  padding: 16px;
  border-radius: 40px;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
}

footer {
  text-align: center;
  padding: 25px;
  background: #123d21;
  color: white;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: 38px;
  }

  .navbar nav {
    display: none;
  }
}

@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 32px;
  }
}

.logo img{
    height: 90px;
}

.service-card{
    text-decoration: none;
    color: inherit;
}

.service-card .card{
    transition: 0.35s;
    cursor: pointer;
}

.service-card .card:hover{
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

.service-card .card:hover h3{
    color: #2ebf59;
}

.cards{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.hero-top{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero-buttons{
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.badge{
    display: inline-flex;
    align-items: center;

    background: rgba(214,245,214,0.18);

    backdrop-filter: blur(8px);

    color: #d6f5d6;

    padding: 12px 22px;

    border-radius: 40px;

    font-weight: 700;

    border: 1px solid rgba(255,255,255,0.2);
    
}

.menu-toggle {
    display: none;
    border: none;
    background: #1f7a3a;
    color: #fff;
    font-size: 26px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    cursor: pointer;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1.05;
    max-width: 900px;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    max-width: 760px;
}

@media (max-width: 900px) {
    .navbar {
        position: sticky;
        flex-wrap: wrap;
        gap: 12px;
    }

    .menu-toggle {
        display: block;
        order: 2;
    }

    .logo {
        order: 1;
    }

    .navbar-right {
        order: 3;
    }

    #mainMenu {
        display: none;
        order: 4;
        width: 100%;
        flex-direction: column;
        gap: 0;
        background: #ffffff;
        padding: 12px;
        border-radius: 18px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    }

    #mainMenu.active {
        display: flex;
    }

    #mainMenu a {
        padding: 14px 12px;
        border-bottom: 1px solid #e8eee8;
    }

    #mainMenu a:last-child {
        border-bottom: none;
    }

    .hero {
        padding: 120px 6% 60px;
        align-items: flex-start;
    }

    /* Apilar badge + botones en pantallas medianas (<=900px) */
    .hero-top {
      align-items: flex-start;
      justify-content: flex-start;
      flex-direction: column;
      gap: 12px;
    }

    .hero-buttons {
        width: 100%;
    }

    .hero-buttons .btn {
      flex: 1;
      text-align: center;
      width: 100%;
      margin-bottom: 10px;
    }

    .services-carousel {
        max-width: 100%;
    }

    .service-slide {
        min-width: 260px;
    }
}

@media (max-width: 520px) {
    .logo img {
        height: 54px;
    }

    .right-logo img {
        height: 38px;
    }

    #langBtn {
        padding: 8px 12px;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 9vw, 2.8rem);
    }

    .hero-top {
        gap: 14px;
      flex-direction: column;
      align-items: flex-start;
    }

    .hero-buttons .btn {
        width: 100%;
        flex: unset;
    }
}

  /* Small tweak: ensure badge stretches and is readable on narrow screens */
  @media (max-width: 520px) {
    .badge {
      width: 100%;
      text-align: left;
      padding-left: 12px;
    }
  }

  .hero-overlay{
    position: absolute;
    inset: 0;

    z-index: 2;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.35),
            rgba(15,54,24,0.72)
        );
}





.floating-call {
    position: fixed;

    right: 22px;
    bottom: 25px;

    z-index: 99999;

    display: flex;
    align-items: center;
    gap: 10px;

    background: linear-gradient(135deg, #ff7a18, #ffb347);

    color: #ffffff;

    padding: 15px 22px;

    border-radius: 50px;

    text-decoration: none;

    font-weight: 800;

    box-shadow: 0 12px 35px rgba(0,0,0,0.28);

    transition: 0.3s;

    animation: callShake 5s infinite;
}

.floating-call:hover {
    transform: translateY(-3px) scale(1.03);
}

.floating-call .call-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,0.22);

    border-radius: 50%;

    font-size: 20px;
}

@keyframes callShake {

    0% {
        transform: rotate(0deg);
    }

    2% {
        transform: rotate(-10deg);
    }

    4% {
        transform: rotate(10deg);
    }

    6% {
        transform: rotate(-8deg);
    }

    8% {
        transform: rotate(8deg);
    }

    10% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@media (max-width: 600px) {

    .floating-call {
        right: 15px;
        bottom: 20px;

        padding: 13px 18px;

        font-size: 14px;
    }

    .floating-call .call-icon {
        width: 36px;
        height: 36px;

        font-size: 18px;
    }

}

.chatbot-widget {
    position: fixed;
    left: 22px;
    right: auto;
    bottom: 88px;
    z-index: 9999;
}



.chatbot-button {
    width: 62px;
    height: 62px;

    border: none;
    border-radius: 50%;

    background: #123d21;
    color: #fff;

    font-size: 28px;
    cursor: pointer;

    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}



.chatbot-box.active {
    display: block;
}

.chatbot-header {
    background: #1f7a3a;
    color: white;

    padding: 16px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header small {
    display: block;
    opacity: 0.85;
    margin-top: 4px;
}

.chatbot-header button {
    border: none;
    background: transparent;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.chatbot-messages {
    flex: 1;
    min-height: 220px;
    max-height: 320px;
    overflow-y: auto;
    padding: 16px;
    background: #f6faf4;
}

.chatbot-service-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 10px 0 14px;
}

.chatbot-service-options button {
    border: none;
    background: #eaf7e8;
    color: #1f7a3a;
    padding: 10px 12px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
}

.chatbot-service-options button:hover {
    background: #d6f5d6;
}

.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.typing-indicator span {
    width: 7px;
    height: 7px;
    background: #1f7a3a;
    border-radius: 50%;
    animation: typingWave 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: .15s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: .3s;
}

@keyframes typingWave {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: .4;
    }

    40% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

.bot-message,
.user-message {
    padding: 12px 14px;
    border-radius: 16px;
    margin-bottom: 10px;
    font-size: 14px;
}

.bot-message {
    background: #e6f5e6;
    color: #163b20;
}

.user-message {
    background: #1f7a3a;
    color: white;
    margin-left: auto;
    max-width: 85%;
}



.chatbot-form {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.chatbot-form input,
.chatbot-form textarea {
    width: 100%;
    padding: 11px;
    border: 1px solid #d8e5d8;
    border-radius: 12px;
}

.chatbot-form textarea {
    min-height: 70px;
}

.chatbot-form button {
    border: none;
    background: #1f7a3a;
    color: white;

    padding: 13px;
    border-radius: 30px;

    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 600px) {
    .chatbot-widget {
        right: 15px;
        bottom: 78px;
    }

    .chatbot-box {
        width: calc(100vw - 30px);
    }
}

@media (max-width: 600px) {
    .chatbot-widget {
        left: 15px;
        right: auto;
        bottom: 78px;
    }
}

.chatbot-widget {
    position: fixed;
    left: 22px;

    bottom: 25px;
    z-index: 99999;
}

.chatbot-button {
    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;

    border: none;
    border-radius: 50%;

    background: linear-gradient(135deg, #123d21, #1f7a3a);

    color: #fff;

    font-size: 32px;

    cursor: pointer;

    box-shadow: 0 12px 35px rgba(0,0,0,0.3);

    animation: robotShake 5s infinite;
    transition: 0.3s;
}

.chatbot-button:hover {
    transform: scale(1.08);
}

.chatbot-box {
    display: none !important;

    position: fixed;

    left: 15px;
    bottom: 95px;

    width: 380px;
    max-width: calc(100vw - 30px);

    max-height: calc(100vh - 140px);

    background: #fff;

    border-radius: 22px;

    overflow: hidden;

    box-shadow: 0 18px 45px rgba(0,0,0,.28);

    opacity: 0;
    transform: translateY(20px) scale(.95);

    transition:
        opacity .35s ease,
        transform .35s ease;

    z-index: 999999;

    display: flex;
    flex-direction: column;
}

.chatbot-box.active {
    display: block !important;

    opacity: 1;
    transform: translateY(0) scale(1);
}

@keyframes robotShake {

    0% {
        transform: rotate(0deg);
    }

    2% {
        transform: rotate(-10deg);
    }

    4% {
        transform: rotate(10deg);
    }

    6% {
        transform: rotate(-8deg);
    }

    8% {
        transform: rotate(8deg);
    }

    10% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@media (max-width: 768px) {

    .chatbot-box {

        left: 12px;
        right: 12px;

        width: auto;

        bottom: 85px;

        max-width: unset;

        max-height: calc(100vh - 120px);

        border-radius: 20px;
    }

}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;

    max-height: 220px;
}

.chatbot-options {
    overflow-y: auto;
    max-height: 160px;
}

.chatbot-form {
    overflow-y: auto;

    max-height: 260px;

    padding-bottom: 18px;
}

.chatbot-box {
    display: none !important;
    position: fixed;
    left: 15px;
    bottom: 95px;

    width: 380px;
    max-width: calc(100vw - 30px);
    max-height: calc(100dvh - 120px);

    background: #fff;
    border-radius: 22px;
    overflow: hidden;

    z-index: 999999;
    flex-direction: column;
}

.chatbot-box.active {
    display: flex !important;
}

.chatbot-header {
    flex-shrink: 0;
}

.chatbot-messages {
    flex: 1;
    min-height: 100px;
    max-height: 180px;
    overflow-y: auto;
}

.chatbot-options {
    flex-shrink: 0;
    max-height: 115px;
    overflow-y: auto;
}

.chatbot-form {
    flex-shrink: 0;
    max-height: 260px;
    overflow-y: auto;
    padding: 14px;
    padding-bottom: 18px;
}

.chatbot-form button {
    position: sticky;
    bottom: 0;
    z-index: 5;
}

.chatbot-form {
    display: none;
}

.chatbot-form.active {
    display: grid;
}


.form-alert {
    margin-top: 15px;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 700;
    text-align: center;
}

.form-alert.success {
    background: #e6f5e6;
    color: #1f7a3a;
}

.form-alert.error {
    background: #ffe8e8;
    color: #b42318;
}

.form-alert.loading {
    background: #fff3d8;
    color: #8a5a00;
}

.chatbot-form select {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #d8e5d8;
    background: #fff;
    font-weight: 600;
}

.review-card {
    min-width: calc(50% - 12px);

    background: #f7faf5;

    padding: 34px;

    border-radius: 38px;

    box-shadow:
        0 15px 40px rgba(0,0,0,0.08),
        0 3px 10px rgba(0,0,0,0.04);

    flex-shrink: 0;

    border: 1px solid rgba(31,122,58,0.08);

    transition: .35s ease;
    backdrop-filter: blur(6px);
}

.review-card:hover {
    transform: translateY(-6px);
}

.review-card p {
    line-height: 1.8;

    margin-bottom: 22px;

    text-align: justify;

    color: #334;

    font-size: 15px;
}
.reviews-slider {
    width: 100%;
    overflow: hidden;
}

.reviews-track {
    display: flex !important;
    flex-direction: row !important;
    gap: 24px;
    transition: transform .7s ease;
}

.reviews-track .review-card {
    min-width: calc(50% - 12px) !important;
    max-width: calc(50% - 12px) !important;
    flex: 0 0 calc(50% - 12px) !important;
}

@media (max-width: 768px) {
    .reviews-track .review-card {
        min-width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
}

.stars {
    color: #FFC107;

    font-size: 24px;

    margin-bottom: 15px;

    letter-spacing: 2px;

    text-shadow:
        0 0 6px rgba(255,215,0,0.45),
        0 0 12px rgba(255,215,0,0.25);
}

