/* responsive debug*/
/*body:before {
    content:"";
    display: block;
    height: 0px;
    width: 100%;
    border-top: 10px solid green;
    position: fixed;
    z-index: 9999;
}
@media(min-width: 767px) {
    body:before {
        border-top: 10px solid blue;
    }
}

@media(min-width: 1024px) {
    body:before {
        border-top: 10px solid red;
    }
}*/

/* variables */
:root {
    /* sizes */
    --main-container-width: 1140px;

    /* colors */
    --main-color-primary: #F37121;
    --main-color-secondary: #3345CC;
    --main-color-text: #505050;
    --main-color-gray: #eee;
    --main-color-gray-dark: #555;

    /* fonts */
    --main-font-common: 'Roboto', sans-serif;
    --main-font-highlight: 'Poppins', sans-serif;
}

/* root */
:root,
html {
    font-size: 16px;
    font-family: var( --main-font-primary );
    color: var( --main-color-text );
    scroll-behavior:smooth
}

html,
body {
    font-family: var( --main-font-common );
    font-size: 16px;
    margin: 0px;
    padding: 0px;
    color: var( --main-color-text );
}

::selection {
    background: rgba(0, 0, 0, 0.3);
    text-shadow: none;
    color: #fff;
}

/* html elements */
:where(h1, h2, h3, h4, h5, h6) {
    font-family: var( --main-font-highlight );
    margin: 0;
    font-weight: 700;
}

h2 {
    color: var( --main-color-secondary );
    text-transform: uppercase;
    font-size: 1.8rem;
    margin: 0 0 1rem;
    line-height: 1em;
}

@media(min-width: 767px) {
    h2 {
        font-size: 2.5rem;
    }
}

h3:not(.subtitle) {
    font-weight: 400;
    font-size: 2rem;
    display: flex;
    align-items: flex-start;
    color: var( --main-color-secondary );
}

h3:not(.subtitle):before {
    content: "> ";
    font-size: 1.5em;
    line-height: 0em;
    margin-right: 5px;
    color: var( --main-color-primary );
    margin-top: 1.6rem;
}

h4 {
    font-size: 1.3rem;
    font-weight: 400;
    color: var( --main-color-secondary );
}

a {
    color: inherit;
}

nav a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* slider glide */
.glide {
    min-width: 100%;
    width: 1px;
}

.glide__bullets {
    bottom: 0;
}

.glide__bullet {
    background: var( --main-color-gray-dark );
    height: 15px;
    width: 15px;
    border: none;
}

.glide__bullet--active,
.glide__bullet:hover,
.glide__bullet:focus {
    background: var( --main-color-secondary );
    border: none;
}

/* styles */
.subtitle {
    background: var( --main-color-primary );
    color: #fff;
    display: inline-block;
    padding: 0.25rem;
    margin: 0 0 10px;
    font-weight: 500;
    font-size: 1rem;
}

@media(min-width: 767px) {
    .subtitle {
        font-size: 1.2rem;
    }
}

.styled-list {
    list-style: none;
    padding: 0;
}

.styled-list li {
    margin: 1.8em 0;
    position: relative;
    display: flex;
    align-items: center;
    font-size: 1.2em;
    align-items: flex-start;
}

.styled-list li:before {
    content: url('../img/icon-checkmark.svg');
    width: 1.5em;
    flex: 0 0 1.5em;
    height: 1.5em;
    display: block;
    margin-right: 10px;
    margin-top: -4px;
}

/* elements */
.columns-container {
    display: flex;
    flex-wrap: wrap;
}

.column {
    flex: 100%;
}

@media(min-width: 767px) {
    .column {
        flex: 1;
    }
}

.section-wrapper {
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.title-wrapper {
    display: inline-block;
}

.social-icons {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 0;
}

.social-icons a {
    display: inline-block;
    background: var( --main-color-secondary );
    border-radius: 100px;
    width: auto;
    height: 20px;
    padding: 7px;
    transition: 0.1s ease-in transform;
    color: #fff;

}

ul.social-icons a:hover {
    transform: scale(1.1);
    color: #fff;
}

.social-icons a img,
.social-icons a span {
    vertical-align: middle;
}

.button {
    background: var( --main-color-secondary );
    padding: 0.75rem 3rem;
    text-decoration: none;
    color: #fff;
    font-size: 1.1em;
    transition: 0.1s ease-in transform, 0.1s ease-in box-shadow;
    display: inline-block;
    cursor: pointer;
    border-radius: 100px;
}

.button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.icon {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 100px;
    padding: 10px;
    box-sizing: border-box;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

/* tabs */
.tabs-container {
    display: flex;
    flex-direction: column;
    padding: 20px 0 20px;
}

@media(min-width: 767px) {
    .tabs-container {
        display: block;
    }
}

.tablink {
    flex: 1;
    text-decoration: none;
    color: #fff;
    background: var( --main-color-gray-dark );
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: 0.1s ease-in padding;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
    margin-bottom: 5px;
}

@media(min-width: 767px) {
    .tablink {
        width: 200px;
        padding: 1rem 1rem;
        height: 3em;
        white-space: normal;
        float: left;
        clear: left;
    }
}

.tablink:hover,
.tablink.active {
    color: #fff;
    background: var( --main-color-secondary );
}

.tabcontent {
    padding: 20px;
    display: none;
    opacity: 0;
    flex: 100%;
    box-sizing: border-box;
}

@media(min-width: 767px) {
    .tabcontent {
        overflow: hidden;
    }
}

.tabcontent.active {
    display: block;
    opacity: 1;
    animation-name: fade-in;
    animation-duration: 1s;
}

@keyframes fade-in {
  0%   {display: block; opacity: 0;}
  100% {display: block; opacity: 100;}
}

/* forms */
.messages ul {
  list-style: none;
  padding: 1rem;
  margin: 0;
}

.messages ul li {
    padding: 1rem;
    box-sizing: border-box;
    background: #eee;
    margin: 0.5rem 0;
}

.messages.warning li {
  color: #fff;
  background: #e53020;
}

.messages.success li {
  color: #fff;
  background: #00377B;
}

.form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 2rem 0;
}

.input-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 0.5rem;
    margin: 0.25rem 0;
    flex: 100%;
}

@media(min-width: 767px) {
    .input-group-small {
        flex: calc(50% - 10px);
    }
}

.input-group input,
.input-group textarea {
    padding: 0.75rem;
    outline: none;
    border: none;
    background: var( --main-color-gray );
    color: var( --main-color-gray-dark );
    font-weight: 700;
    font-family: var( --main-font-highlight );
    font-size: 1.1em;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0;
}

.input-group textarea {
    resize: vertical;
    max-height: 800px;
}

.input-group select {
    padding: 1rem 2rem 1rem 1rem;
    border-radius: 30px;
    border: none;
    outline: none;
    appearance:none;
    background: #fff;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position-x: 97%;
    background-position-y: 0.75rem;
}

.input-group input[type="checkbox"] {
  /* Add if not using autoprefixer */
  -webkit-appearance: none;
  /* Remove most all native input styles */
  appearance: none;
  /* For iOS < 15 */
  background-color: #fff;
  /* Not removed via appearance */
  margin: 0;

  font: inherit;
  color: var( --main-color-text );
  width: 1.15em;
  height: 1.15em;
  border: 0.15em solid var( --main-color-text );
  transform: translateY(-0.075em);
  outline: none;
  display: grid;
  place-content: center;
  border-radius: 1000px;
}

.input-group input[type="checkbox"]::before {
  content: "";
  width: 1rem;
  height: 1rem;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  transform-origin: bottom left;
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var( --main-color-primary );
}

.input-group input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.input-group input[type="checkbox"]:focus {
  outline: none;

}

.input-group input[type="checkbox"]:disabled {
  background: var( --main-color-gray-light );

  color: var(--form-control-disabled);
  cursor: not-allowed;
}

.input-group label {
    color: var( --main-color-secondary );
    font-size: 1.2em;
}

.input-group label:not(:only-child) {
    margin-left: 0.5rem;
}

.input-group label:only-child {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.input-group button {
    background: var( --main-color-secondary );
    color: #fff;
    padding: 1rem 3rem;
    border: none;
    outline: none;
    align-self: flex-start;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.1s ease-in transform, 0.1s ease-in box-shadow;
    border-radius: 100px;
}

.input-group button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.input-group button:focus {
    transform: scale(1);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.25);
    transition: 0.01s ease-in transform, 0.01s ease-in box-shadow;
}

.form #website {
    display: none;
}

/* nav icon */
.nav-icon {
    width: 2rem;
    height: 2rem;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
    cursor: pointer;
    position: relative;
}

@media(min-width: 1024px) {
    .nav-icon {
        display: none;
    }
}

.nav-icon span {
    display: block;
    position: absolute;
    height: 0.4rem;
    width: 100%;
    background: var( --main-color-secondary );
    border-radius: 1em;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.nav-icon span:nth-child(1) {
    top: 0;
}

.nav-icon span:nth-child(2),
.nav-icon span:nth-child(3) {
    top: 0.75rem;
}

.nav-icon span:nth-child(4) {
    top: 1.5rem;
}

.nav-icon.open span:nth-child(1) {
    top: 1rem;
    width: 0%;
    left: 50%;
}

.nav-icon.open span:nth-child(2) {
    transform: rotate(45deg);
}

.nav-icon.open span:nth-child(3) {
    transform: rotate(-45deg);
}

.nav-icon.open span:nth-child(4) {
    top: 1.5em;
    width: 0%;
    left: 50%;
}

.nav-icon.open + ul {
    display: flex;
}

/* structure */
.header-main {
    background: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    position: relative;
}

.header-main .section-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    position: relative;
    flex-direction: column;
    gap: 10px;
}

@media(min-width: 767px) {
    .header-main .section-wrapper {
        flex-direction: row;
        padding: 30px 20px;
        gap: 0;
    }
}

.nav-main {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    gap: 15px;
}

@media(min-width: 767px) {
    .nav-main {
        width: unset;
    }
}

.nav-main .main-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin: 0;
    padding: 10px;
    gap: 15px;
    list-style: none;
    font-family: var( --main-font-highlight );
    font-size: 0.9em;
    text-align: center;
    background: #fff;
    width: 100%;
    flex-direction: column;
    box-sizing: border-box;
    z-index: 1000;
    color: var( --main-color-secondary );
}

@media(min-width: 1024px) {
    .nav-main .main-menu {
        display: flex;
        position: static;
        top: unset;
        left: unset;
        text-align: left;
        width: unset;
        flex-direction: row;
    }
}

.nav-main .main-menu a {
    display: inline-block;
    transition: 0.1s ease-in transform;
    border-bottom: 2px solid transparent;
    padding: 8px 0 2px;
}

.nav-main .main-menu a:hover {
    border-bottom: 2px solid var( --main-color-secondary );
}

#hero {
    background: var( --main-color-gray-dark ) url('../img/hero-background.jpg') no-repeat center center fixed;
    transform: translate3d(0,0,0); /*iOS "Fixed" position*/
    background-size: cover;
    color: #fff;
    min-height: 70vh;
    display: flex;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#hero .section-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#hero h1 {
    font-size: 3rem;
    text-transform: uppercase;
}

#hero h2 {
    display: inline-block;
    background: var( --main-color-primary );
    padding: 0.5rem 2rem;
    text-shadow: none;
    color: #fff;
    font-size: 1.5rem;
    text-transform: none;
}

#hero p {
    font-size: 1.2em;
    margin: 2rem 0;
}

#empresa {
    padding: 80px 0 60px;
}

#empresa .section-wrapper {
    display: flex;
    flex-direction: column;
}

#empresa p {
    font-size: 1.1em;
    text-align: justify;
}

#empresa .pilares {
    margin-top: 40px;
}

#empresa .pilares h3 {
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 60px;
}

#empresa .pilares p {
    text-align: center;
}

#empresa .columns-container {
    gap: 20px;
}

#empresa .glide__slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
    box-sizing: border-box;
}

#empresa .icon-wrapper {
    background: var( --main-color-primary );
    border-radius: 1000px;
    padding: 20px;
    box-sizing: border-box;
}

#empresa .highlight {
    color: var( --main-color-secondary );
    font-weight: 700;
}

.icon-pilares {
    filter: brightness(0) invert(1);
}

#fundo_las_mercedes {
    padding: 80px 0 60px;
    background: var( --main-color-gray-dark ) url('../img/background-fundo-las-mercedes.jpg') no-repeat center center fixed;
    transform: translate3d(0,0,0); /*iOS "Fixed" position*/
    background-size: cover;
    color: #fff;
    margin-bottom: 300px;
}

#fundo_las_mercedes .section-wrapper {
    display: flex;
    flex-direction: column;
}

#fundo_las_mercedes .title-wrapper {
    margin: 0;
}

#fundo_las_mercedes h2 {
    color: #fff;
}

#fundo_las_mercedes h3 {
    color: #fff;
}

#fundo_las_mercedes h3:before {
    color: #fff;
}

#fundo_las_mercedes .ubicacion {
    margin-top: 50px;
    margin-bottom: -260px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#infraestructura {
    padding: 80px 0 60px;
    display: flex;
    flex-direction: column;
    position: relative;
    color: #fff;
}

#infraestructura:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: -1;
    left: 0;
    top: 0;
}

.infraestructura-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #000;
    background-size: cover;
    background-position: center;
    z-index: -1;
    left: 0;
    top: 0;
    animation: crossfade 9s infinite;
}

.infraestructura-background:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-color: #000;
    opacity: 0.35;
    left: 0;
    top: 0;
}

.infraestructura-background:nth-child(1) {
    background-image: url('../img/fondo-infraestructura.jpg');
    animation-delay: 0s;
  }

  .infraestructura-background:nth-child(2) {
    background-image: url('../img/fondo-infraestructura-electricidad.jpg');
    animation-delay: 3s;
  }

  .infraestructura-background:nth-child(3) {
    background-image: url('../img/fondo-infraestructura-riego.jpg');
    animation-delay: 6s;
  }

  @keyframes crossfade {
    0% {
      opacity: 1;
    }
    20% {
      opacity: 1;
    }
    34% {
      opacity: 0;
    }
    88% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }

#infraestructura .title-wrapped {
    padding: 0 20px;
}

#infraestructura h2 {
    color: #fff;
}

#infraestructura .infraestructura-container {
    color: #fff;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

#infraestructura .infraestructura-item {
    flex: 1 0 280px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
}

.infraestructura-item-wrapper {
    flex: 0 1 280px;
    padding: 20px;
}

#infraestructura .icon-infraestructura {
    background: #fff;
    border-radius: 1000px;
    padding: 20px;
    box-sizing: border-box;
}

#productos {
    padding: 80px 0 0;
    display: flex;
    flex-direction: column;
    background: var( --main-color-gray );
}

#productos p {
    text-align: justify;
}

#productos .section-wrapper {
    display: flex;
    flex-direction: column;
}

#productos .tabcontent {
    background: #fff;
}

#productos .columns-container {
    gap: 10px;
}

#productos .column:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

#productos .calendario-container {
    margin-top: 20px;
}

#productos .calendario {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

#productos .calendario li {
    background: var( --main-color-gray-dark );
    color: #fff;
    flex: 0 1 105px;
    padding: 10px;
    font-size: 1.1em;
    text-align: center;
    text-transform: uppercase;
}

#productos .calendario li abbr {
    text-decoration: none;
}

#productos .calendario li.active {
    background: var( --main-color-primary );
}

#productos .leyenda {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

#productos .leyenda li {
    display: flex;
    align-items: center;
}

#productos .leyenda li:before {
    content: "";
    width: 20px;
    height: 20px;
    background: var( --main-color-gray-dark );
    display: inline-block;
    margin-right: 10px;
}

#productos .leyenda li.active:before {
    background: var( --main-color-primary );
}

#certificaciones {
    padding: 80px 0;
    display: flex;
    flex-direction: column;
}

#certificaciones .section-wrapper {
    display: flex;
    flex-direction: column;
    text-align: center;
}

#certificaciones .title-wrapper {
    text-align: center;
}

#certificaciones .certificaciones-container {
    display: flex;
    justify-content: space-evenly;
    margin: 20px 0;
    gap: 80px;
}

#socios_estrategicos {
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    background: var( --main-color-gray );
}

#socios_estrategicos .section-wrapper {
    display: flex;
    flex-direction: column;
    text-align: center;
}

#socios_estrategicos .column:first-child {
    text-align: left;
}

#contacto {
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    background: var( --main-color-gray-dark ) url('../img/background-contacto.jpg') no-repeat center center fixed;
    transform: translate3d(0,0,0); /*iOS "Fixed" position*/
    background-size: cover;
}

#contacto .section-wrapper {
    display: flex;
    flex-direction: column;
}

#contacto .title-wrapper {
    text-align: center;
}

#contacto h2 {
    color: #fff;
}

#contacto .contact-info-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: center;
    color: #fff;
    margin: 20px 0;
    font-size: 1.4em;
    flex-wrap: wrap;
}

#contacto .contact-info-item {
    flex: 100%;
}

@media(min-width: 767px) {
    #contacto .contact-info-item {
        flex: 1;
    }
}

#contacto .contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 0 30px;
    box-sizing: border-box;
    margin-bottom: -300px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
}

.footer-main {
    background: var( --main-color-gray );
}

.footer-main .columns-container {
    padding: 300px 20px 20px;
}

.footer-main .column:first-child {
    text-align: center;
    flex: 1.5;
}

.footer-main .social-icons {
    justify-content: center;
}

.footer-main .social-icons a {
    line-height: 1em;
}

.footer-main h4 {
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    color: var( --main-color-secondary );
}

.footer-main h4:before {
    content: "> ";
    font-size: 1.5em;
    line-height: 0em;
    margin-right: 5px;
    color: var( --main-color-primary );
    margin-top: 1rem;
}

.footer-main ul {
    list-style: none;
    padding: 0;
}

.footer-main li {
    margin: 5px 0;
}

.footer-main a {
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
}

.footer-main a:hover {
    color: var( --main-color-secondary );
}

.footer-bottom {
    background: var( --main-color-primary );
    padding: 0.5rem 2rem;
    color: #fff;
    text-align: center;
    font-weight: 500;
    font-size: 1.1em;
}
