
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* VARIABLES */
:root {
  /* FONT COLORS */
  --primary_font: #000;
  --secondary_font: #fff;

  /* BASE COLORS */
  --primary: #650304;
  --primary-hover: #d71515;
  --primary-hover-alpha: #650304dd;

  --secondary: #1a0a0e;
  --thirdary: #33080b;
  --fourthary: #4c0507;

  /* STATUS */
  --success: #2E7D32;
  --warning: #E6A700;
  --error: #C62828;

  /* NEUTRALS */
  --white: #fff;
  --gray: #6c757d;
  --gray-dark: #343a40;
  --neutral: #5F6B73;

  /* BACKGROUNDS */
  --background-main: #F7F9FA;
  --background-section: #EEF2F4;
  --background-card: #FFFFFF;
  --background-dark: #888;

  /* UI */
  --border-light: #E0E6EA;
  --high-contrast: #000;

  /* EXTRA */
  --deal: #6cd9e7;
  --wsp: #29A71A;
  --mail: #2196F3;
}

/* RESET / BASE */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  border: 0;
}

body {
  font-family: "Open Sans", 
               "Segoe UI", Roboto, "Helvetica Neue", Arial, 
               "Noto Sans", sans-serif;
               
  display: flex;
  flex-direction: column;

  min-height: 100vh;
  background-color: var(--background-main);
}

/* LAYOUT */
main {
  position: relative;
  min-height: 100vh;
  z-index: 1;
}

/*  HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;

  display: flex;
  justify-content: center;

  background-color: rgba(200,200,200,0.4);
  backdrop-filter: blur(4px);

  transition: all 0.4s ease;
  z-index: 1000;
}

/* scroll status */
header.scrolled {
  background-color: rgba(200, 200 ,200,0.8);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  backdrop-filter: blur(8px);
}

/* contenedor interno */
.header_container {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 65vw;
  padding-right: 10px;
}

/* logo */
header img {
  width: 120px;
  height: 50px;
  transition: all 0.3s ease;
}

/* TODO futuramente cambiar filtros del logo */
header.scrolled img {
  filter: none;
}

header a {
  padding: 10px;
}

/* navegación */
.navegation {
  display: flex;
  gap: 30px;
}

.header_container a {
  font-size: 1.1rem;
  font-weight: 450;
  color: var(--secondary_font);
  text-decoration: none;

  transition: all 0.3s ease;
}

.header_container a:hover {
  color: var(--primary);
}

.exam {
  border-radius: 15px;
  background-color: var(--primary);
  padding: 8px 20px 9px;
}

.header_container .exam:hover{
  color: var(--background-main);
}

.menu_toggle { display: none; }

/* CONTENT */
/* BANNER */
.title_banner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  user-select: none;
  text-align: center;
}

.title_banner h1 {
  position: absolute;
  font-size: 4.5rem;
  text-align: center;
  font-weight: bolder;
  color: var(--background-card);
  background-color: rgba(124,124,124,0.8);
  backdrop-filter: blur(8px);
  padding: 10px 30px;
  border-radius: 30px;
}

/* SOCIAL */
.social_buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;

  padding-top: 25px;
}

.social img {
  width: 35px;
  height: 35px;
}

/* FOOTER */
footer {
  display: flex;
  flex-direction: column;
  padding: 40px 17%;
  background-color: var(--fourthary);
  color: var(--white);
}

footer .content {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  align-items: center;
}

footer .extra {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer .extra a {
  border-radius: 10px;
  margin: 10px;
  padding: 10px 15px;
  text-decoration: none;
  color: var(--secondary_font);
  background-color: var(--primary);
  font-weight: bolder;
}

footer .end {
  font-style: italic;
  text-align: end;
}

/* MOBILE VERSION */
@media (max-width: 768px) {
  .header_container {
    width: 100%;
    padding: 0 15px;
  }
  
  .title_banner h1 {
    font-size: 1.5rem;
    text-align: end;
    padding: auto;
    margin: 10px 10px;
    align-self: flex-end;
    
    color: var(--background-card);
    background-color: rgba(124,124,124,0.4);
    backdrop-filter: blur(8px);
    border-radius: 10px;
  }

  /*  NAV MENU */
  .menu_toggle {
    display: block;
    font-size: 2rem;
    background: none;
    color: white;
    cursor: pointer;
  }

  .navegation {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 0;

    max-height: 0;
    overflow: hidden;
    background-color: rgba(124,124,124,0.4);
    backdrop-filter: blur(10px);

    transition: max-height 0.5s ease;
  }

  .navegation a {
    padding: 15px 10px;
  }

  .navegation.active {
    max-height: 600px;
  }

  header:has(.navegation.navegation.active){
    backdrop-filter: none;
    background: var(--primary-hover-alpha);
    transition: background 0.4s ease;
  }

  footer {
    padding: 40px;
  }

  footer .content{
    display: flex;
    flex-direction: column;
  }

  footer .content h1 {
    font-size: 1.5rem;
  }

  footer .extra{
    font-size: 0.9rem;
    flex-direction: column;
    margin-bottom: 20px;
  }
}