
/* Estilos generales */

:root {
    --negro--: #000000;
    --verde--: #2EAC68;
    --amarillo--: #F8EB52;
    --crema--: #F5F5F5;
    --blanco--: #FFFFFF;
}

body {
    font-family: 'Montserrat';
    color: var(--negro--);
    background: linear-gradient(to right, #cfd6e0, #c7eddc);
}

h1 {
    font-size: 2.5rem; /* tamaño general */
    line-height: 1.2;
}

h1 .marca {
    display: inline-block;
    padding: 0.3em 0.8em;
    color: #ffffff;
    border-radius: 30px;
    font-size: 2.5rem;


}

h1 .titulo-principal {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff; /* más contraste */
}


h2 {
    font-weight: 600; 
}

p {
    font-weight: 400; 
}

.container {
    width: 80%;
    margin: 0 auto;
}

section {
    padding: 60px 0;
}

.btn-primary {
    background-color: var(--verde--);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.btn-primary:hover {
    background-color: darkgreen;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 600px; 
    margin: 0 auto; 
}

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

label {
    margin-bottom: 5px;
}

input, textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
}

textarea {
    height: 150px;
}

button {
    background-color: #333;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
}

button:hover {
    background-color: #555;
}





/* Carrousel */

.carousel {
    position: relative; 
    width: 100%;
    height: 700px; 
    text-align: center;
    background: rgba(0, 0, 0, 0.5); 
    overflow: hidden; 
}

.carousel-inner {
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: relative; 
    width: 100%;
    height: 100%;
}

.carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
}
.carousel-caption h1 {
    font-size: 4.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    color: #fff;
}

.carousel-caption p {
    font-size: 2rem;
    font-weight: 300;
    color: #f8f9fa;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
    margin-top: 30px;
}

.carousel-caption {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    color: white; 
    text-align: center;
    background-color: rgba(0, 0, 0, 0.1); 
}

.imagen-pequeña {
    position: absolute;
    top: 20px; 
    right: 20px; 
    width: 150px; 
    height: auto;
    z-index: 1; 
}

.imagen-pequeña img {
    width: 100%; 
    height: auto;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.button {
    margin-top: 30px;
    display: inline-block;
    background: #f4e21c;
    color: #000000;
    font-size: 1.2rem;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s ease-in-out;
    box-shadow: 
        inset 2px 2px 5px rgba(54, 51, 51, 0.5), 
        4px 4px 10px rgba(0, 0, 0, 0.3); 
}

.button:hover {
    background: #ab822f;
    transform: scale(1.1);
    box-shadow: 
        inset 3px 3px 8px rgba(255, 255, 255, 0.4), 
        6px 6px 15px rgba(0, 0, 0, 0.5); 
}

@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }

    .imagen-pequeña {
        width: 80px; 
    }
}






/* Animación carousel */

.carousel-caption {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.carousel-item.active .carousel-caption {
    opacity: 1;
    transform: translateY(0);
}

.carousel-caption h1,
.carousel-caption p {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.carousel-caption.show h1,
.carousel-caption.show p {
    opacity: 1;
    transform: translateY(0);
}

.carousel-caption button {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1s ease, transform 1s ease;
}

.carousel-caption.show button {
    opacity: 1;
    transform: translateY(0);
}

@keyframes growShrink {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); } 
    100% { transform: scale(1); }
  }
  
  .imagen-pequeña {
    animation: growShrink 1.5s ease-in-out forwards;
  }
  







/* Estilo para los enlaces del menú */

.navbar-nav .nav-item .nav-link {
    color: #fff; 
    padding: 10px 20px; 
    transition: color 0.3s, transform 0.3s;
}

.navbar-nav .nav-item .nav-link:hover {
    color: #FFD700; 
    transform: scale(1.1); 
}

.navbar-nav .nav-item .nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #FFD700; 
    transition: width 0.3s;
}

.navbar-nav .nav-item .nav-link:hover::after {
    width: 100%; 
}







/*Sección grindex */

.grindex-section {
    display: flex;
    align-items: center;
    padding: 20px;
    margin: 30px; 
  }
  
  .textos {
    width: 300px;
    margin: 150px 150px;
  }
  
  .logo {
    width: 300px;
    margin-right: 20px;
    border: 2px solid black; /* Borde de 2px color negro */
    border-radius: 5px; /* Bordes redondeados opcionales */
}

  .separador {
    width: 10px;
    height: 200px;
    background-color: #8a1a1a;
    margin: 0 20px;
  }
  
  
  .logo img {
    max-width: 100%; 
    height: auto; 
  }
  
  
  .texto1 {
    font-family: 'Montserrat';
    font-size: 25px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px; 
  }
  
  .texto2 {
    font-family: 'Montserrat';
    font-size: 18px;
    color: #666;
  }

#bombagrindex{
    width: 450px;
    height: 400px;
    border: 6px solid transparent; 
    background-image: linear-gradient(to right, #b6bec3, #98a1c5); 
    background-origin: border-box; 
    padding: 6px; 
    border-radius: 12px; 
    transition: border-color 0.3s ease, box-shadow 0.3s ease; 
    padding: 6px;
    width: 30%;
    height: 30%;

}

/* Animación */
.grindex-section .logo,
.grindex-section .separador,
.grindex-section .textos .texto1,
.grindex-section .textos .texto2,
.grindex-section #bombagrindex {
  opacity: 0;
}

.grindex-section .logo.animate {
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.4s; 
  }
  
  .grindex-section .separador.animate {
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.6s;
  }
  
  .grindex-section .textos .texto1.animate,
  .grindex-section .textos .texto2.animate {
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.6s; 
  }
  
  .grindex-section #bombagrindex.animate {
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 1.1s;
  }
  

@media (max-width: 900px) {
    .grindex-section {
        flex-direction: column;
        text-align: center;
    }

    .logo, .textos{
        width: 90%;
    }

    .textos {
        margin: 50px 150px; 
      }

    #bombagrindex {
        width: 95%;
        height: 80%;
    }

    .separador {
        height: 5px;
        width: 80%;
        margin: 10px auto;
    }
}







  

/* Sección cálculo */

.contenedor-calculo-section {
    background-color: #02121a;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row; 
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 30px auto;
    margin-top: 50px;
    flex-wrap: wrap;
}

#foto-calculo-section {
    height: auto;
    width: 100%;
    max-width: 500px;
}

.calculo-section {
    max-width: 500px;
    margin-right: 50px;
    text-align: left;
}

.calculo-section h2 {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.4;
    text-align: left;
}

.calculo-section p {
    font-size: 18px;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 650px;
    text-align: left;
}



.calculo-cuadro-explicativo {
    font-size: 20px;
    text-align: center;
    font-weight: 500;
}




button {
    background-color: var(--verde--);
    color: white;
    padding: 15px 25px;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-size: 18px;
    transition: background-color 0.3s ease;
    margin-bottom: 30px;
    width: 100%;
    max-width: 300px;
}


button:hover {
    background-color: #107121;
}

.benefits {
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-size: 18px;
    color: #ffffff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    justify-items: center;
    max-width: 650px;
    text-align: left;
}

.benefits li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-left: 10px;
}

.benefits li::before {
    content: "✔";
    margin-right: 10px;
    color: #28a745;
    font-size: 20px;
}

body h2{
    font-size: 40px !important;
}

/* Animación */
.calculo-section h2, 
.calculo-section p, 
.calculo-section button, 
.calculo-section .benefits li {
  opacity: 0; 
  transform: translateX(-50px); 
  transition: opacity 1s ease, transform 1.5s ease; 
}

.calculo-section h2.animate, 
.calculo-section p.animate, 
.calculo-section button.animate, 
.calculo-section .benefits li.animate{
  opacity: 1;
  transform: translateX(0); 
}

#foto-calculo-section {
    opacity: 0; 
    transform: translateX(-50px); 
    transition: opacity 1s ease, transform 1.5s ease;
    transition-delay: 0.5s; 
  }
  
  #foto-calculo-section.animate {
    opacity: 1;
    transform: translateX(0);
  }
  
@media screen and (max-width: 768px) {
    .contenedor-calculo-section {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        margin-top: 100px;
    }

    .calculo-section {
        margin: 0 auto;
        max-width: 90%;
    }

    .calculo-section h2 {
        font-size: 24px;
    }

    .calculo-section p {
        font-size: 16px;
    }

    .benefits {
        grid-template-columns: 1fr; 
    }

    #foto-calculo-section {
        max-width: 90%;
    }
}

@media screen and (max-width: 480px) {
    .calculo-section h2 {
        font-size: 20px;
    }

    .calculo-section p {
        font-size: 14px;
    }

    button {
        font-size: 16px;
        padding: 12px 20px;
    }
}










/* Sección ayuda */

.contact-section {
    display: flex;
    align-items: center;
    justify-content: center; /* Centra el contenido en la sección */
    text-align: center;
    margin: 200px auto; /* Centra la sección horizontalmente */
    max-width: 800px; /* Aumenta un poco el ancho para acomodar la imagen */
    flex-wrap: wrap;
}

.contact-image {
    width: 340px; /* Reduce el tamaño de la imagen */
    height: auto;
    margin-right: 10px; /* Disminuye el espacio entre la imagen y el contact-box */
    flex-shrink: 0; /* Evita que la imagen se reduzca demasiado */
}

.contact-box {
    flex: 1;
    padding: 60px 4%; /* Reduce el padding para evitar que se expanda demasiado */
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px; /* Ajusta el ancho máximo del cuadro de contacto */
}

  .contact-section h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
  }

  .contact-button {
    background-color: var(--verde--);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .contact-button:hover {
    background-color: #086619;
  }

  .contact-button:focus {
    outline: none;
  }

#texto-contacto-section {
    font-size: 20px !important;
    color: #444;
    line-height: 1.6;
    font-weight: 400;
}



/* Animación */
@keyframes fadeIn {
    0% {
      opacity: 0;
      transform: translateY(30px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .contact-section h2,
  .contact-section .contact-button,
  .contact-section .contact-box,
  .contact-section .contact-image {
    opacity: 0;
  }

  .contact-section .contact-box.animate{
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.4s; 
  }
  
  .contact-section h2.animate {
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.4s; 
  }
  
  .contact-section .contact-button.animate {
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.6s; 
  }
  
  .contact-section .contact-image.animate{
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.6s; 
  }

/* 📱 Responsividad */
@media (max-width: 768px) {
    .contact-section {
        flex-direction: column;
        text-align: center;
        margin: 100px auto;
        padding: 20px;
    }

    .contact-image {
        width: 80%;
        margin: 0 auto 20px;
    }

    .contact-box {
        width: 90%;
        padding: 30px 5%;
    }

    .contact-section h2 {
        font-size: 22px;
    }

    .contact-button {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .contact-section {
        margin: 80px auto;
        padding: 10px;
    }

    .contact-box {
        width: 95%;
        padding: 25px;
    }

    .contact-section h2 {
        font-size: 20px;
    }

    .contact-button {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }
}







