/* 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: #F79321;
    --main-color-secondary: #49AC57;
    --main-color-text: #505050;
    --main-color-gray: #eee;

    /* 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 {
    font-size: 2rem;
    color: var( --main-color-primary );
    text-transform: uppercase;
    text-align: center;
}

h3 {
    font-size: 1.7rem;
    color: var( --main-color-secondary );
    text-transform: uppercase;
}

a {
    color: inherit;
}

nav a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* styles */
:where(h1, h2, h3, h4, h5, h6) .highlight {
    color: var(--main-color-secondary );
}

.slogan{
    font-size: 1.5em;
    font-weight: 600;
    font-family: var( --main-font-highlight );
}

/* 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;
}

.social-icons {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 0;
}

.social-icons a {
    display: inline-block;
    background: var( --main-color-primary );
    border-radius: 100px;
    width: 25px;
    height: 25px;
    padding: 5px;
    transition: 0.1s ease-in transform;

}

.social-icons a:hover {
    transform: scale(1.1);
}

.button {
    background: var( --main-color-primary );
    padding: 10px 30px;
    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;
}

.button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.box-1 {
    border-top: 8px solid var( --main-color-primary );
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    margin: 0 20px;
    padding: 40px 20px;
    text-align: justify;
}

/* 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;
}

/* tabs */
.tabs-container {
    display: flex;
    flex-direction: column;
    padding: 40px 0 20px;
}

@media(min-width: 767px) {
    .tabs-container {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-end;
    }
}

.tablink {
    flex: 1;
    text-decoration: none;
    color: #fff;
    background: var( --main-color-secondary );
    padding: 0.5rem;
    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: 10px 0;
}

@media(min-width: 767px) {
    .tablink {
        width: 100%;
        padding: 1rem 1rem;
        height: 3em;
        white-space: normal;
        order: 1;
        margin: 0;
    }
}

.tablink:hover,
.tablink.active {
    color: #fff;
    background: var( --main-color-primary );
}

@media(min-width: 767px) {
    .tablink:hover,
    .tablink.active {
        padding: 2rem 1rem 2rem;
    }
}

.tabcontent {
    padding: 20px;
    display: none;
    opacity: 0;
    flex: 100%;
}

@media(min-width: 767px) {
    .tabcontent {
        order: 2;
    }
}

.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: 1px solid #fff;
    background: none;
    color: #fff;
    font-weight: 700;
    font-family: var( --main-font-highlight );
    font-size: 1.1em;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0;
}

.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: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-primary );
    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;
}

.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;
}

/* structure */
.header-main {
    background: #fff;
}

.header-main .section-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    position: relative;
    flex-direction: column;
    gap: 20px;
}

@media(min-width: 767px) {
    .header-main .section-wrapper {
        flex-direction: row;
        gap: 0;
    }
}

.nav-main {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    gap: 40px;
}

@media(min-width: 767px) {
    .nav-main {
        width: unset;
    }
}

.nav-main .main-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin: 0;
    padding: 0 20px;
    list-style: none;
    text-transform: uppercase;
    font-family: var( --main-font-highlight );
    font-weight: 700;
    text-align: center;
    background: var( --main-color-gray );
    width: 100%;
    flex-direction: column;
    box-sizing: border-box;
    z-index: 1000;
}

@media(min-width: 1024px) {
    .nav-main .main-menu {
        display: flex;
        position: static;
        top: unset;
        left: unset;
        text-align: left;
        width: unset;
        flex-direction: row;
        background: #fff;
        gap: 40px;
    }
}

.nav-main .main-menu a {
    display: inline-block;
    transition: 0.1s ease-in transform;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

@media(min-width: 1024px) {
    .nav-main .main-menu a {
        padding: 0;
        width: auto;
    }
}

.nav-main .main-menu a:hover {
    transform: scale(1.1);
}

#hero {
    background: var( --main-color-secondary )  url('../img/background-hero.jpg') no-repeat fixed center center ;
    transform: translate3d(0,0,0); /*iOS "Fixed" position*/
    background-size: cover;
    color: #fff;
    height: 70vh;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#hero .section-wrapper {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-direction: column;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

#hero h1 {
    font-size: 3rem;
}

@media(min-width: 767px) {
    #hero h1 {
        font-size: 4rem;
    }
}

#hero .button {
    margin-top: 20px;
}

#ventajas .section-wrapper {
    z-index: 100;
    position: relative;
}

#ventajas .ventajas-container {
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    padding: 40px;
    box-sizing: border-box;
    margin: 0;
    list-style: none;
    display: flex;
    gap: 40px;
    justify-content: space-between;
    margin: -40px 20px 80px;
    flex-wrap: wrap;
}

@media(min-width: 767px) {
    #ventajas .ventajas-container {
        gap: 20px;
        padding: 20px 40px;
    }
}

#ventajas .ventajas-item {
    display: flex;
    flex-direction: column;
    text-align: center;
    flex: 1 1 140px;
}

#ventajas .ventajas-number {
    font-size: 3rem;
    font-weight: 700;
    color: var( --main-color-primary );
    font-family: var( --main-font-highlight );
}

#ventajas .ventajas-label {
    color: var( --main-color-gray-dark );
    font-size: 1.1em;
}

#nosotros {
    margin-top: 40px;
}

#nosotros .columns-container {
    margin: 20px 0 40px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap-reverse;
}

@media(min-width: 767px) {
    #nosotros .columns-container {
        flex-direction: row;
    }
}

#nosotros .column:first-child {
    z-index: 1;
    margin: -160px 40px 0;
}

@media(min-width: 767px) {
    #nosotros .column:first-child {
        margin-top: 0;
    }
}

#nosotros .column:last-child {
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

@media(min-width: 767px) {
    #nosotros .column:last-child {
        margin-left: -80px;
    }
}

#nosotros .box-1 {
    padding: 40px 20px;
}

#mision_vision {
    background: var( --main-color-secondary ) url('../img/background-mision-vision.jpg') no-repeat center center fixed;
    transform: translate3d(0,0,0); /*iOS "Fixed" position*/
    background-size: cover;
    padding: 40px 20px;
    margin-bottom: 120px;
}

#mision_vision .column {
    margin-top: 100px;
    margin-bottom: -100px;
}

#mision_vision .box-1:first-child {
    z-index: 1;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.15);
    padding-bottom: 0;
}

@media(min-width: 767px) {
    #mision_vision .box-1:first-child {
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    }
}

#mision_vision .box-1:last-child {
    border-top: none;
}

@media(min-width: 767px) {
    #mision_vision .box-1:last-child {
        border-top: 10px solid var( --main-color-primary );
    }
}

#pilares .columns-container {
    gap: 40px;
    margin: 40px 20px;
}

#pilares .column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: calc(50% - 20px);
    min-width: 140px;
}

@media(min-width: 767px) {
    #pilares .column {
        flex: 1;
    }
}

#pilares .column img {
    width: 110px;
    border-radius: 1000px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
}

@media(min-width: 1024px) {
    #pilares .column img {
        width: 130px;
    }
}

#pilares h3 {
    font-size: 1.1rem;
}

#pilares p {
    flex: 1;
}

#socios_estrategicos {
    background: var( --main-color-gray );
    padding: 90px 30px;
    text-align: center;
}

#socios_estrategicos .columns-container {
    margin: 60px 0 20px;
    gap: 40px;
}

#socios_estrategicos .column img {
    width: 240px;
    filter: grayscale(100);
}

#servicios {
    padding: 90px 20px 30px;
    text-align: center;
}

#servicios .columns-container {
    gap: 40px;
    margin: 20px 0;
}

#servicios img {
    width: 150px;
    margin-bottom: 20px;
}

#nuestros_servicios img {
    width: 250px;
    margin-bottom: 20px;
}

#servicios h4 {
    color: var( --main-color-primary );
}

#certificaciones {
    background: var( --main-color-gray );
    padding: 90px 30px;
    text-align: center;
}

#certificaciones .columns-container {
    margin: 60px 0 0;
    gap: 40px;
}

#certificaciones .column img {
    width: 280px;
}

#contacto {
    background: var( --main-color-secondary ) url('../img/background-contacto.jpg') no-repeat center center fixed;
    transform: translate3d(0,0,0); /*iOS "Fixed" position*/
    background-size: cover;
    color: #fff;
    padding: 80px 20px;
}

#contacto h2 {
    color: #fff;
}

#contacto .contact-form {
    max-width: 800px;
    margin: 0 auto;
}

#contacto .column {
    flex: 100%;
}

@media(min-width: 1024px) {
    #contacto .column {
        flex: 1;
    }
}

.footer-main {
    padding: 40px 20px;
    background: var( --main-color-primary );
    color: #fff;
}

.footer-main .column:first-child {
    flex: 2;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: flex-start;
}

.footer-main nav ul {
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 30px;
    flex-wrap: wrap;
}

@media(min-width: 767px) {
    .footer-main nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

.footer-main ul a {
    text-decoration: none;
    transition: 0.1s ease-in transform;
    display: inline-block;
}

.footer-main ul a:hover {
    transform: scale(1.1);
}

.footer-main img {
    filter: brightness(0) invert(1);
}
