@font-face {
  font-family: 'CircularStd';
  src: url('../fonts/CircularStd-Book.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Gotham-bold';
  src: url('../fonts/Gotham-Bold.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
  font-family: 'CircularStd';
}

/* 6. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}


#header {
  background-color: #0276dd;
  height: 30px;
}

.main-container {
  display: flex;
  flex-direction: column;
  padding: 20px 15px;
}

.header-logo {
  display: flex;
  justify-content: center;
  padding: 20px 30px 0;

  img {
    width: 150px;
  }

  .cotiza-header {
    display: none;
  }
}

.d-1 {
  text-align: center;
  color: #081646;
  padding-bottom: 20px;
  
  h1 {
    font-size: 20px;
    font-weight: 300;
  }
}

.d-2 {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;

  .cotiza {
    background-color: #0276dd;
    margin-top: 15px;
    color: #fff;
    text-decoration: none;
    text-align: center;
    padding: 10px 15px;
    width: fit-content;
    border-radius: 5px;
    font-weight: bold;
    border: #0276dd 1px solid;
    transition: 0.3s ease-in-out;
  }

  .cotiza:hover {
    background-color: #fff;
    color: #0276dd;
    transition: 0.3s ease-in-out;
  }
}

.d-3 {
  display: flex;
  flex-direction: column;
  padding: 20px 0px;
  gap: 20px;

  .cuadruple {
    /*border-bottom: #f58b1f 2px solid;*/
	border-bottom: #FC1A25 2px solid;
    padding-bottom: 20px;
    display: flex;
    justify-content: center;

    img {
      width: 300px;
    }
  }
  
  .icons-adicionales {
    display: flex;

    .icon {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
      gap: 8px;

      img {
        width: 45px;
      }

      p {
        text-align: center;
        font-size: 14px;
      }
    }
  }
}

.d-4 {
  padding: 20px 0;
  border-top: #0276dd 2px solid;
  text-align: center;
}


#footer {
  background-color: #0276dd;
  height: 150px;
  padding-top: 20px;
}

.footer-container {
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.tyc {
  color: #fff;
  text-decoration: none;
}

.socials {
  display: flex;
  gap: 30px;
}

.socials a img {
  width: 40px;
}

.footer-title {
  background-color: #081646;
  width: 100%;
  padding: 20px 0;
  text-align: center;
  font-family: 'Gotham-Bold';
}

@media (min-width: 798px) {

  .body {
    min-height: 100dvh;
     display: flex;
    flex-direction: column;
  }

  .main-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Desktop: dos columnas */
    grid-template-areas:
      "d1 d2"
      "d3 d4";
    align-items: start;
  }

  .header-logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;

    .cotiza-header {
      display: block;
      font-size: 30px;
      /*background-color: #f58b1f;*/
	  background-color: #FC1A25;
      margin-top: 15px;
      color: #fff;
      text-decoration: none;
      text-align: center;
      padding: 10px 15px;
      width: fit-content;
      height: fit-content;
      border-radius: 5px;
      font-weight: bold;
      border: #f58b1f 1px solid;
      transition: 0.3s ease-in-out;
    }

    .cotiza-header:hover {
      background-color: #fff;
      /*color: #f58b1f;*/
	  color: #FC1A25;
      transition: 0.3s ease-in-out;
    }
  }

  .orange-line {
    height: 2px;
    /*background-color: #f58b1f;*/
	background-color: #FC1A25;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }

  .main-container {
    flex-direction: row;
  }

  .d-1 {
    grid-area: d1;
    padding-bottom: 0;
    margin: auto;
    width: 650px;

    h1 {
      font-size: 48px;
      font-weight: 500;
    }

    span {
      font-weight: 700;
    }
  }

  .d-2 {
    grid-area: d2;

    .cotiza {
      display: none;
    }
  }

  .d-3 {
    grid-area: d3;
    align-items: center;
    padding: 0;
    height: 100%;
	font-size: 58px;

    .cuadruple {
      /*   */
      img {
        width: 100%;
        min-width: 500px;
        max-width: 500px;
      }
    }

    .icons-adicionales {
      padding-top: 20px;
      gap: 24px;

      .icon {
        gap: 12px;

        img {
          width: 60px;
        }

        p {
          text-align: center;
          font-size: 18px;
        }
      }
    }
  }

  .d-4 {
    grid-area: d4;
    border-top: none;
    font-size: 24px;
    width: 650px;
    margin: 0 auto;

    p {
      padding-top: 20px;
      text-align: justify;
    }
  }

  #footer {
    margin-top: auto;
    height: auto;
    padding: 20px 0;
  }

  .footer-container {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;

    a, .socials {
      z-index: 210;
    }
  }

  .footer-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    order: 0; /* aseguramos que no cambie orden */
    font-weight: bold;
    font-size: 1rem;
    background-color: transparent;
    z-index: 0;
  }
}