/* FONTS */
@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wdth,wght@0,75..100,400..700;1,75..100,400..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,400;0,600;1,200;1,300;1,400&display=swap");

/* Variables */
:root {
  --primary-color: #dec02e;
  --primary-color-rgba: #dec12e5b;
  --secondary-color: #004833;
  --secondary-color-rgba: #004834a9;
  --dark-color: #121b2a;
  --dark-color-transp: rgba(18, 27, 42, 0.8);
  --dark-color2: #05402f;
  --dark-color3: #b69f2c;
  --body-color: #5c5d5d;
  --white-color: #ffffff;
  --box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}

::selection {
  background-color: var(--secondary-color-rgba);
}
html {
  overflow-x: hidden;
  scroll-padding-top: 80px;
}

h1,
h2 {
  font-family: "Instrument Sans", sans-serif;
  font-weight: 600;
}

h3,
h4,
h5,
h6,
.display-4 {
  font-family: "Instrument Sans", sans-serif;
  font-weight: 400;
  color: var(--primary-color);
}

body {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  color: var(--dark-color);
  line-height: 1.7;
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-secondary {
  background-color: var(--secondary-color) !important;
}

p {
  color: var(--body-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

img {
  width: 100%;
}

.w-90 {
  width: 85% !important;
}

@media (max-width: 975px) {
  .w-90 {
    width: 100% !important;
  }
}

.navbar {
  box-shadow: var(--box-shadow);
}

.logo {
  width: 212px;
}

.navbar .nav-link {
  font-size: 14px;
  font-weight: 500;
}

.navbar .nav-link.active {
  color: var(--primary-color) !important;
}

.navbar .nav-link:hover {
  color: var(--secondary-color) !important;
}

.btn {
  padding: 14px 18px;
  border-width: 2px;
  border-radius: 0;
}
/* PRINCIPAL */
/* .title-subrayado {
  position: relative; 
}

.title-subrayado::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background-color: var(--primary-color);
} */

.w-85 {
  width: 85% !important;
}
/* .hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
} */

/* .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  transition: opacity 0.2s ease-in-out;
  opacity: 1;
  background-image: url(../img/cover0.webp);
} */

/* .hero-background.hidden {
  opacity: 0;
} */

.carousel-item {
  height: 100vh; 
}

.carousel-item img {
  width: 100vw; 
  height: 100vh; 
  object-fit: cover; 
}

.carousel-fixed-caption {
  position: absolute;
  /* left: 5%; */
  top: 85%;
  transform: translateY(-85%);
  text-align: left;
  z-index: 10;
  /* width: 50%;  */
}

.carousel-fixed-caption h1 {
  font-size: 3rem;
  color: white;
  /* font-weight: bold; */
  /* max-width: 50vw;  */
  line-height: 1.2;
  margin: 0px 30% 0px 8%;
  text-shadow: 3px 5px 5px rgba(0, 0, 0, 0.19);
}

@media (max-width: 600px) {
  .carousel-fixed-caption {
    top: 85%;
    /* transform: translateY(-70%); */
  }
  .carousel-fixed-caption h1 {
    font-size: 1.7em;
  }
}
.carousel-indicators [data-bs-target] {
  border-radius: 50%;
  width: 10px;
  height: 10px;
}
.overlay-text {
  position: absolute;
  top: 65%;
  color: white;
  text-shadow: 3px 5px 5px rgba(0, 0, 0, 0.19);
  z-index: 3;
}

.title-principal{
  margin: 0px 35% 0px 10%;
  font-size: 3rem;
  text-transform: uppercase;
}

/* .hero {
    background-image: url(../img/cover0.webp);
    background-position: center;
    background-size: cover;
    position: relative;
} */

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  margin: 0 auto;
  text-align: center;
  text-decoration: none;
  color: #fff;
  font-size: 3rem;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    /* transform: translateY(-15px); */
    transform: translateY(-5px);
  }
  60% {
    /* transform: translateY(-7px); */
    transform: translateY(-2px);
  }
}

/* .hero::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(21, 20, 51, 0.8);
    z-index: -1;
} */

.hero-logo {
  width: 280px;
}

.sticky {
  position: fixed !important;
  top: 0 !important;
  width: 100%;
}

/* #carouselPortada{
  margin: 85px 0px;
} */
section {
  padding: 50px 0px;
}
/* section.bg-light {
  padding-bottom: 80px;
} */

/* SECTION QUIENES SOMOS */

/* .col-img-vision {
  background-image: url(../img/valores.PNG);
  background-position: center;
  background-size: cover;
  min-height: 500px;
} */
.overlay-text-valores {
  position: absolute;
  top: 0;
  left: 0;
  color: white;
  font-size: 1.3rem; 
  text-align: center;
  z-index: 2;

}

.text-valores {
  margin: 5px 0; 
}

#img-valores {
  position: relative;
  z-index: 1;
}

@media (max-width: 485px) {
  .overlay-text-valores {
    font-size: 1rem;
  }
  .text-valores {
    margin:0; 
  }
}

/* SECTION NUESTRO TRABAJO */

.text-shadows {
  text-shadow: 3px 5px 5px rgba(0, 0, 0, 0.19);
}

/* Estilo normal para otros navegadores */
.dondeestamos-img {
  background-image: url(../img/map_bg.webp);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
}

.dondeestamos-img::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); 
    z-index: 1;
    pointer-events: none;
}

h2.data-city {
  cursor: default;
  /* display: inline-block; */
  transition: transform 0.2s ease;
  transform-origin: center; 
  position: relative;          
}

/* h2.data-city:hover {
 transform: scale(1.2);
} */

@media (max-width: 600px) {
  h2.data-city {
    font-size: 1.2rem;
  }
}

.gallery-container {
  position: relative;
  padding: 2rem 0;
}

.gallery-background {
  position: absolute;
  left: 0;
  right: 0;
  top: 25%;
  bottom: 25%;
  background-color: var(--primary-color);
  z-index: 0;
}

@media (max-width: 767.98px) {
  .gallery-background {
    top: 12%;
    bottom: 16%;
  }
}

.gallery-item {
  /* margin-bottom: 2rem; */
  text-align: center;
  z-index: 1;
}

.gallery-item img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 0.5rem;
  /* transition: border 0.1s ease, box-shadow 0.1s ease; */
}

/* .gallery-item img:hover {
  border: 5px solid var(--secondary-color);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
} */

@media (max-width: 600px) {
.gallery-item img {
  width: 110px;
  height: 110px;
}
}

.gallery-item p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.gallery-container > .row {
  --bs-gutter-x: 0 !important;
}

ul.d-flex li {
  color: var(--secondary-color);
}

ul.d-flex {
  list-style: none;
}

ul.d-flex li::before {
  content: "•";
  color: var(--primary-color);
  margin-right: 8px;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.top-70 {
  top: 70% !important;
}

.gpreci-img {
  background-image: url(../img/ganaderia_precision_foto.webp);
}

.apreci-img{
  background-image: url(../img/agricultura_precision_foto.jpeg);
}

.gapreci-container{
  height: 480px;
  background-size: cover;
  background-position: center;
    /* background-attachment: fixed; */
}

.gandara-container{
  height: 480px;
  object-fit: cover;
}

@media (max-width: 600px) {
  .gapreci-container, .gandara-container {
    height: 380px;
  }
}

.gapreci > h2 {
  z-index: 2;
  transition: transform 0.2s ease, font-size 0.2s ease;
}

.gapreci > h2:hover {
  transform: scale(1.1);
  font-size: 2.3rem;
}


.text-intensificaciones {
  position: absolute;
  font-size: 1rem;
  color: white;
  font-weight: bold;
}

.text1 {
  top: 50px; /* 50px desde arriba */
  left: 20px; /* 20px desde la izquierda */
}

.text2 {
  top: 1px; /* 1px desde arriba */
  right: 13px; /* 13px desde la derecha */
}


/* SECTION COMPROMISO GANDARA */
.compromisogandara-img {
    background-image: url(../img/compromiso_gandara.jpg);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    height: 65vh;
  }

.compromisogandara {
  position: relative;
  overflow: hidden;
}

.compromisogandara .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dark-color-transp);
  padding: 30px;
  display: flex;
  align-items: flex-end;
  transition: all 0.4s ease;
  opacity: 0;
}

.compromisogandara img {
  transition: all 0.4s ease;
}

.compromisogandara:hover .overlay {
  opacity: 1;
}

.compromisogandara:hover img {
  transform: scale(1.1);
}

/* SECTION RESPONSABILIDAD AMBIENTAL */

.btn-radio {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  color: white;
  transition: filter 0.2s ease;
  padding: 0px;
}

.btn-radio:hover {
  /* color: var(--primary-color);
  background-color: var(--dark-color2) !important; */
  color: white;
  filter: brightness(0.9);
}

@media (max-width: 769px) {
  .btn-radio {
    width: 100px;
    height: 100px;
    font-size: .8rem;
    padding: 0px;
  }
}

body.modal-open {
  padding-right: 0 !important;
}
body.modal-open > nav {
  padding-right: 0 !important;

}
.card-effect {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
  background-color: var(--white-color);
  padding: 25px;
  transition: all 0.35s ease;
}

/* .card-effect:hover {
  box-shadow: none;
  transform: translateY(5px);
} */
.servicios {
  position: relative;
  z-index: 2;
  overflow: hidden;
}

/* .servicios::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: -100%;
  left: 0;
  background-color: var(--primary-color);
  z-index: -1;
  opacity: 0;
  transition: all 0.4s ease;
}

.servicios:hover .iconbox {
  background-color: var(--white-color);
  color: var(--primary-color);
}

.servicios:hover h5,
.servicios:hover p {
  color: var(--white-color);
} */

/* .servicios:hover::after {
  opacity: 1;
  top: 0;
}
.servicios:hover > div > .img-compromiso {
  filter: invert(100%);
} */

@media (max-width: 600px) {
  .compromisoText {
    font-size: 1.05rem;
  }
}


p {
    text-align: justify !important;
}

.p-justify {
    hyphens: auto;
    text-align: justify !important;
}

/* SECTION NOVEDADES */
.novedades i {
  font-size: 20px;
  color: var(--primary-color);
}

.novedades ul li {
  margin-top: 8px;
}

/* CONTACTO */
form input.form-control {
  height: 56px;
}

form .form-control {
  border: transparent;
  border-radius: 0;
  background-color: rgba(0, 0, 0, 0.02);
}

.btn-primary {
  background-color: var(--primary-color);
  --bs-btn-border-color: none;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary.active,
.btn-primary:focus-visible {
  background-color: var(--dark-color3) !important;
}

.btn-secondary {
  background-color: var(--secondary-color);
  --bs-btn-border-color: none;
}

.btn-secondary:hover,
.btn-secondary:active,
.btn-secondary.active,
.btn-secondary:focus-visible {
  background-color: var(--dark-color2) !important;
}
.form-control:focus {
  box-shadow: 0 0 0 0.25rem var(--primary-color-rgba);
}
/* FOOTER */
.footer-top {
  padding-top: 30px;
  padding-bottom: 30px;
}

.footer-top a {
  color: var(--white-color);
}

.footer-top a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  background-color: var(--dark-color2);
}

.social-icons {
  display: flex;
  justify-content: center;
  color: var(--white-color);
}

.social-icons a {
  width: 34px;
  height: 34px;
  background-color: var(--primary-color);
  border-radius: 2px solid var(--primary-color);
  color: var(--white-color) !important;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 100px;
  margin-left: 5px;
  transition: all 0.4s ease;
  border: 2px solid var(--primary-color);
}

.social-icons a:hover {
  color: var(--primary-color);
  background-color: transparent;
  border-color: var(--primary-colors);
}

/* OTROS */

.iconbox {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: var(--white-color);
  font-size: 32px;
  border-radius: 100px;
  flex: none;
}

#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  z-index: 1000;
}

.fixed-img {
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  height: auto;
  object-fit: cover;
}

.vh-50 {
    height: 100vh;
}
/* ANIMACIONES */

.container {
  position: relative;
}

.box {
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fadeInUp {
  transform: translateY(50px);
}

.fadeInDown {
  transform: translateY(-50px);
}

.fadeInLeft {
  transform: translateX(50px);
}

.fadeInRight {
  transform: translateX(-50px);
}

.visible {
  opacity: 1;
  transform: translate(0, 0);
}

@media (max-width: 800px) {
  .fadeInLeft,
  .fadeInRight {
    transform: translateY(50px);
  }
}

.scroll-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.scroll-content {
    display: flex;
    width: max-content;
}

.scroll-content:hover {
  animation-play-state: paused !important;
}

.scroll-content img {
  filter: contrast(.85);
    width: auto;
    height: 250px;
    display: block;
}

@keyframes shine-text {
  0% {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0);
  }
  50% {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.9);
  }
  100% {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0);
  }
}

@keyframes shine-textt {
  0% {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0);
  }
  50% {
    text-shadow: 0 0 20px rgba(50, 90, 29, 0.9);
  }
  100% {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0);
  }
}

.shine-text {
  animation: shine-text 2s infinite ease-in-out;
}

.shine-text2 {
  animation: shine-textt 2s infinite ease-in-out;
}

@keyframes float-text {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.float-text {
  animation: float-text 3s ease-in-out infinite;
}

@keyframes rotate-text {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(3deg);
  }
}

.rotate-text {
  animation: rotate-text 4s ease-in-out infinite;
}

@keyframes pulse-text {
  0% {
    transform: scale(.97);
  }
  50% {
    transform: scale(1);
  }
  100% {
    transform: scale(.97);
  }
}

.pulse-text {
  animation: pulse-text 2.5s ease-in-out infinite;
}

@keyframes glow-text {
  0% {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0);
  }
  50% {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
  }
  100% {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0);
  }
}

.glow-text {
  animation: glow-text 3s ease-in-out infinite;
}

@keyframes wobble-text {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-2deg);
  }
  75% {
    transform: rotate(2deg);
  }
}

.wobble-text {
  animation: wobble-text 5s infinite ease-in-out;
}

@keyframes flicker-text {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
  70% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.9;
  }
}

.flicker-text {
  animation: flicker-text 4s infinite ease-in-out;
}

/* MAPA */

#map-container {
    position: relative; 
    width: 80vw; 
    height: 90vh; 
    max-width: 800px; 
    max-height: 500px; 
    overflow: hidden; 
    display: flex;
    justify-content: center;
    align-items: center; 
}

#map-background {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1; 
}

#bsasMap {
    position: absolute;
    width: auto; 
    height: 90%; 
    max-width: 100%; 
    max-height: 100%; 
    z-index: 2; 
}

.city-marker {
    fill: var(--primary-color);
    cursor: default;
    transition: transform 0.3s ease;
    display: inline-block;
    transform-origin: center;
    position: relative;         
}

/* .city-marker:hover {
    fill: var(--secondary-color);
} */

.tooltipCity {
    position: absolute;
    background-color: var(--dark-color-transp);
    color: white;
    padding: 2px;
    border-radius: 5px;
    font-size: 1rem;
    visibility: hidden;
    pointer-events: none;
    white-space: nowrap;
    z-index: 3;
}

/* Cambios nuevos  */

.bg-light {
  --bs-bg-opacity: 1;
  background-color: rgba(238, 239, 239, 0.6) !important;
}

/* Estilo específico para iOS */
@supports (-webkit-touch-callout: none) {
  .dondeestamos-img, .compromisogandara-img {
      background-attachment: scroll; /* Deshabilita fixed en iOS */
  }
}