/* @import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap'); */

/* Variables */

:root {
  --font-familyB: "Raleway", sans-serif;
  --bg-color: #fcfcfc;
  --bg-color-2: #f7f7f7;
  --primary-color:black;
  --secondary-color:#00B8D4;
  --primary-shadow: #8b8eaf;
  --secondary-shadow: #a17a69;
  --bottom-margin: 0.5rem;
  --bottom-margin-2: 1rem;
  --bottom-margin-3: 20px;
  --bottom-margin-4: 50px;
  --bottom-margin-5: 90px;
  --line-height: 1.7rem;
  --transition: 0.3s;
}

html {
  scroll-behavior: smooth;
}

/* CSS Resets */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style-type: none;
}


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

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

body {

  font-family: "Raleway", sans-serif;
  font-style: normal;
  font-size:1.12rem;
  /* max-width: 68.75rem; */
  margin: auto;
}


h2 {
  margin-bottom:var(--bottom-margin-3);
}

/*Fonts class-----------------------------------*/

  @font-face{
  font-family: 'Pirate';
  src: url('../fonts/PIRATE-VIKING.otf') format('opentype');
  font-display: swap;
}

.main-header {
  font-family: 'Pirate', sans-serif;
  font-size: 2.5rem;
  color: white;
  text-shadow: 2px 2px 2px #000000, -1px -1px 2px #000000, 1px -1px 2px #000000, -1px 1px 2px #000000;
}

.main-header-offer{
  font-family: 'Pirate', sans-serif;
  font-size: 1.5rem;
  color: white;
  text-shadow: 2px 2px 2px #000000, -1px -1px 2px #000000, 1px -1px 2px #000000, -1px 1px 2px #000000;
}

.raleway-section {
  font-weight: 600;
  margin-bottom: var(--bottom-margin-3);
}


.raleway-paragraph {
  font-weight: 400;
  /* line-height: var(--line-height); */
  padding: 0.3rem 0;
  margin: 2rem;
}

.raleway-title{
  font-weight: 500;
}

.raleway-paragraph strong {
  display: inline-block;
  margin-bottom: 0.35rem;
}

footer p {
  font-size: 1rem;
}

/*NAV SECTION*/

.main-header a{
  color: white;
}

header {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 9999;
  box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: var(--bottom-margin-5)
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3.5rem;
  background-color: var(--bg-color);
}

nav a {
  color: var(--primary-color);
  transition: var(--transition);
}

nav ul {
  display: flex;
  gap: 1.9rem;
}

nav ul li {
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.burger-menu {
  color: var(--primary-color);
  font-size: 2rem;
  border: 0;
  background-color: transparent;
  cursor: pointer;
  display: none;
}


/* LANGUAGES SECTION */
.flags {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-color);
  transition: top 0.3s ease;
}

.flags_item {
  margin: 0.8rem;
  width: 2rem;
}

.flags_item img {
  cursor: pointer;
  transition: transform 0.2s ease;
}

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

.projects {
  /* padding: 32px 0;
  margin-top: 2rem; */
  max-width: 1000px;
	width: 90%;
	margin: auto;
  text-align:center;
}

/*--------------------------------SERVICES---------------------------------*/

.projects-container{
  display:grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(1,  auto 1fr auto auto auto);


  gap:20px;
  margin-bottom: var(--bottom-margin-4);
}

.project-container {
  padding: 1rem;
}

/*----------------------------------CARDS------------------------------------*/

.project-card {
  display:grid;
  grid-template-rows: subgrid;
  grid-row: span 5;
  background-color: #fff;
  border-radius: 11px;
  box-shadow: 0 3px 10px var(--primary-shadow);
  padding: 1.5rem;
  margin: 0.75rem;
  overflow-x: auto; /*añadida*/
}

.plan-title .raleway-title{
  color: blue;
  margin-bottom: var(--bottom-margin-4);
}

.features .list li{
  margin-top: 0.5rem;
}


.project-pic img{
  max-height: 11.25rem;
  min-width: 8.5rem;
  object-fit: cover;
  display: block;
  margin: 1rem auto;
  border-radius: 8px;
}


.card-footer .raleway-offer strong {
  text-decoration: line-through;
  font-size: 2rem;
  color: red;
}

.card-footer .raleway-new strong {
  color: green;
  font-size: 2rem;
}

.socicon {
  width: 2rem;
  height: 2rem;
}

/*SCROLL UP BUTTON*/

.scroll-up {
  position: fixed;
  right: 0.5%;
  bottom: 10%;
  cursor: pointer;
}

.up-arrow {
  width: 3rem;
  height: 3rem;
}

footer {
  background-color: var(--bg-color);
  padding: 1.25rem;
  text-align: center;
  margin: 2rem 0 0;
}

footer img{
  margin-bottom: var(--bottom-margin-3);
}


/*SOCIAL MEDIA ICONS*/

.socials {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.socials a{
  margin: 0px 10px;
}


/*-------------------MEDIA-QUERIES-PRO----------------------------------------------*/


@media screen and (max-width: 768px){

  .flags_item {
    width: 1.5rem;
  }

  .main-header {
    font-size: 1.5rem;
  }

 .projects-container{
   grid-template-columns: 1fr;
 }

 .project-card{
   min-width: 18.75rem;
   padding: 0;
   margin: 0;
 }


 nav {
   padding: 1.5rem 1rem;

 }

 nav ul {
   position: fixed;
   background-color: var(--bg-color);
   flex-direction: column;
   top: 86px;
   left: 10%;
   width: 80%;
   text-align: center;
   transform: translateX(120%);
   transition: transform 0.5s ease-in;
 }

  nav ul li {
   margin: 8px;
 }

 .burger-menu {
    display: block;
  }

  nav ul.show {
    transform: translateX(0);
  }

  .projects-container {
    gap: 4rem;
  }

  .plan-title .raleway-title{
    margin-top: 2rem;
  }

  .socicon {
    width: 1.5rem;
    height: 1.5rem;
  }

  .up-arrow {
    width: 2rem;
    height: 2rem;
  }

  .raleway-paragraph {
    font-weight: 500;
  }
}
