/* GOOGLE FONTS ---------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans&family=Poppins:wght@400;600;700&display=swap');

/* ROOT VARIABLES -------------------------------------------------- */
:root {
  --primary: #7AC7A9;
  --primary-light: #4BAF8E;
  --primary-dark: #5DAF94;
  --secondary: #F6EAC2;
  --background: #FFF9F0;
  --text-dark: #37474F;
  --accent: #D4A373;
  --white: #ffffff;

  --adopt-bg: #e8f3e5;
  --volunteer-bg: #f8f8f8;
  --stories-bg: #f7f3c8;
  --story-card-bg: #fff7db;

  --radius-section: 12px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(122,199,169,0.25);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow: hidden;
}

/* HEADER */
header {
  background-color: var(--primary); /* #7AC7A9 */
  padding: 10px 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header_content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* left Logo */
.logo_container {
  position: absolute;
  left: 20px;
  display: flex;
  align-items: center;
}

.logo_image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;

  animation: logoAnimation 2s ease forwards;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

.center_container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  color: var(--white);
  font-size: 2em;
  margin: 0;
}

/* NAVIGATION */
.nav_p {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.nav_p a {
  margin: 0 16px;
  color: var(--white);
  font-weight: 600;
  font-size: 1.1em;
  text-decoration: none;
  transition: var(--transition);
}

.nav_p a:hover {
  color: var(--accent); /* #D4A373 */
}

/* Hamburger */
.menu_icon {
  display: none;
  font-size: 2em;
  color: var(--white);
  cursor: pointer;
  position: absolute;
  right: 20px;
}

/* Mobile */
@media (max-width: 768px) {
  h1 {
    font-size: 1.8em;
  }

  .nav_p a {
    margin: 0 8px;
    font-size: 0.95em;
  }

  .menu_icon {
    display: block;
  }

  .nav_p {
    display: none;
    flex-direction: column;
    background-color: var(--primary-light); /* #4BAF8E */
    width: 100%;
    position: relative;
    top: 20px;
    left: 0;
    padding: 15px 0;
  }

  .nav_p.active {
    display: flex;
  }

  .nav_p a {
    display: block;
    padding: 10px 0;
  }
}

/* Smaller devices */
@media (max-width: 480px) {
  h1 {
    font-size: 1.5em;
  }

  .menu_icon {
    top: 20px;
    right: 15px;
    font-size: 1.8em;
  }

  .nav_p a {
    font-size: 1em;
    padding: 12px 0;
  }
}

/* Elegí una animación sencilla de desvanecimiento y 
ligero escalado para que el logo aparezca de forma suave al cargar la página, 
llame la atención del usuario sin ser molesto y refleje la identidad visual de la web. */

@keyframes logoAnimation {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

