/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f9f9f9;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
header {
  background: #f7f452; /* Yellow */
  color: #333;
  padding: 5px 0px;
}
header .container {
  display: flex; /* Align logo and nav horizontally */
  align-items: center; /* Align logo and links vertically */
  justify-content: space-between; /* Push logo to the left, links to the right */

}
header .logo {
  height: 60px;
  width: auto; /* Maintain aspect ratio */
}
header ul {
  list-style: none;
  display: flex;
  /*justify-content: flex-end; /* To the left */
  gap: 20px; /* Add spacing between links */
  margin: 0; /* Remove default margin */
  padding: 0; /* Remove default padding */
}
header li {
  margin: 0; /* Ensure no extra spacing from margins */
}
header a {
  color: #333;
  text-decoration: none;
  font-weight: 40;
}
header a:hover {
  text-decoration: underline;
}

/* Hero Section */
.hero {
  background: #479b48; /* Green */
  text-align: center;
  color: white;
  padding: 30px 20px;
  position: relative;
}
.hero h1 {
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.hero .anana-logo {
    height: 150px; /* Increase the size */
    width: auto;   /* Maintain aspect ratio */
}
.hero p {
  font-size: 1.2rem;
  margin: 20px 0;
}
.cta-button {
  background: #f7f452; /* Yellow */
  color: #333;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 15px;
}
.cta-button:hover {
  background: #ffd700;
}

/* Triangles for Header */
header {
  position: relative; /* Allows positioning of pseudo-elements */
  background: #f7f452; /* Yellow */
  color: #333;
  padding: 0 5px;
}

header::before,
header::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

header::before {
  top: 0px;
  left: 0;
  border-width: 30px 0 30px 30px; /* Triangles for left */
  border-color: transparent transparent transparent #479b48; /* Green triangle */
}

header::after {
  top: 60px;
  left: 0;
  border-width: 30px 0 30px 30px;
  border-color: transparent transparent transparent #569b57; /* Slightly different green */
}

/* Triangles for Hero Section */
.hero {
  position: relative;
  background: #479b48; /* Green */
  text-align: center;
  color: white;
  padding: 25px 5px;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

.hero::before {
  top: 0px;
  left: 0;
  border-width: 30px 0 30px 30px; /* Triangles for right */
  border-color: transparent transparent transparent #f7f452 ; /* Yellow triangle */
}

.hero::after {
  top: 60px;
  left: 0;
  border-width: 30px 0 30px 30px;
  border-color: transparent transparent transparent #ffd700; /* Slightly different yellow */
}


/* Additional triangles (4 more) */
.hero-extra {
  position: absolute;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
}

.hero-extra.one {
  top: 120px;
  border-width: 30px 0 30px 30px;
  border-color: transparent transparent transparent #f7f452;
}

.hero-extra.two {
  top: 180px;
  border-width: 30px 0 30px 30px;
  border-color: transparent transparent transparent #ffd700;
}

.hero-extra.three {
  top: 240px;
  border-width: 30px 0 30px 30px;
  border-color: transparent transparent transparent #f7f452;
}







/* Randomly Positioned Triangles for Tools Section */
.tools {
  position: relative;
  background: white;
  padding: 80px 0;
  text-align: center;
}

.tools::before,
.tools::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

.tools::before {
  top: 30%;
  left: 10%;
  border-width: 30px 40px 30px 0; /* Larger green triangle */
  border-color: transparent #479b48 transparent transparent;
}

.tools::after {
  bottom: 20%;
  right: 15%;
  border-width: 30px 0 30px 40px; /* Larger yellow triangle */
  border-color: transparent transparent transparent #f7f452;
}


/* Tools Section */
.tools {
  background: white;
  padding: 80px 20px;
  text-align: center;
  position: relative; /* For triangle positioning */
}

/* Center the headline */
.tools-title {
  font-size: 2.5rem;
  margin-bottom: 40px; /* Adds space below the title */
}

/* Layout for calculators */
.tools-grid {
  display: flex; /* Align calculators horizontally */
  gap: 40px; /* Add spacing between the calculators */
  justify-content: center; /* Center the calculators horizontally */
  flex-wrap: wrap; /* Ensures responsiveness on smaller screens */
}

.tool {
  max-width: 300px; /* Optional: Restricts calculator card width */
  text-align: center;
  margin: 0 auto; /* Ensures proper alignment if wrapping occurs */
}

.tool p {
  margin: 15px 0 25px; /* Adds space between text and the button */
}

.tool img {
  height: 90px; /* Adjust logo size */
  width: auto; /* Maintain aspect ratio */
}

.tool-button {
  background: #f7f452; /* Yellow */
  color: #333;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 15px;
  display: inline-block; /* Prevents button from stretching */
}
.tool-button:hover {
  background: #ffd700; /* Hover effect for button */
}



/* About Section */
.about {
  padding: 50px 0;
  text-align: center;
  background: #f9f9f9;
}

/* Contact Section */
.contact {
  background: #f9f9f9;
  padding: 80px 20px;
}

.contact .container {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-wrapper {
  display: flex; /* Divide into two halves */
  gap: 40px; /* Space between the two halves */
  justify-content: space-between;
  flex-wrap: wrap; /* Stack on smaller screens */
}

.contact-form,
.contact-links {
  flex: 1; /* Equal width for both sections */
  max-width: 500px; /* Optional: Restrict the maximum width */
}

.contact-form h2,
.contact-links h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Spacing between fields */
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-form textarea {
  height: 100px;
  resize: none; /* Prevent resizing */
}

.contact-form button {
  background: #479b48; /* Green button */
  color: white;
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact-form button:hover {
  background: #569b57; /* Darker green on hover */
}

.contact-links ul {
  list-style: none;
  padding: 0;
}

.contact-links li {
  margin-bottom: 15px;
}

.contact-links a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-size: 1.1rem;
}

.contact-links a img {
  height: 40px; /* Icon size */
  width: 40px;
  margin-right: 10px; /* Space between icon and text */
}

.contact-links a:hover {
  color: #479b48; /* Change color on hover */
}

/* Footer */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 10px 0;
}

/* Sparkle Base Styles */
.sparkle {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 9999;
  opacity: 1;
  transform-origin: center;
  /*animation: sparkle-animation 0.8s ease-out forwards;*/
  animation: sparkle-animation 0.6s cubic-bezier(0.42, 0, 0.58, 1) forwards;

  
}


/* Calculator Toggle Buttons */
.calculator-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.calc-button {
  background: #f7f452;
  color: #333;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  margin: 0 10px;
  border-radius: 5px;
  cursor: pointer;
}

.calc-button.active {
  background: #479b48;
  color: white;
}

.calc-button:hover {
  background: #ffd700;
}

/* Calculator Form */
.calculator {
  text-align: center;
}

.calculator form {
  max-width: 500px;
  margin: 0 auto;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.calculator form label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
}

.calculator form select,
.calculator form button {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  margin-bottom: 15px;
  border: 2px solid #ccc;
  border-radius: 5px;
}


/* Grafico de Inflacion Mensual */
#chart-container {
  text-align: center;
  padding: 40px;
  border-top: 20px ;
  margin-top: 20px;
}

#inflation-chart {
  max-width: 800px;
  max-height: 400px;
  margin: 0 auto;
}


/* Resultados comparación */
#salary-comparison-container h2 {
  margin-bottom: 10px;
}

#salary-comparison-container h4 {
  margin-bottom: 10px;
}

#salary-comparison-container p {
  margin-bottom: 10px;
}

#salary-comparison-container label {
  margin-top: 20px;
}


#results h2 {
  margin-bottom: 20px;
}

#results p {
  margin-bottom: 10px;
}


#salary-results p {
  margin-bottom: 20px;
}

#results {
  border: none; /* Removes any border around the results section */
}

#results hr {
  display: none; /* Hides any horizontal rule if present */
}


#anana-borde-amarillo {
  display: none; /* Hidden by default */
  margin: 15px auto; /* Centers the image horizontally */
  height: 20px; /* Adjust height */
  width: auto; /* Maintain aspect ratio */
  display: block; /* Ensure it's treated as a block element for centering */
}


#anana-borde-verde {
  display: none; /* Hidden by default */
  margin: 15px auto; /* Centers the image horizontally */
  height: 20px; /* Adjust height */
  width: auto; /* Maintain aspect ratio */
  display: block; /* Ensure it's treated as a block element for centering */
}




/* RATE COMPARISION */



.category-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap; 
}

.category-button {
  background-color: #f7f452;
  color: #333;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
  white-space: nowrap; /* Prevents text from breaking into multiple lines */
  min-width: 120px; /* Ensures buttons have a reasonable width */
  max-width: 200px; /* Prevents buttons from being too wide */
}

.category-button:hover {
  background-color: #ffd700;
}
.category-button.active {
  background-color: #4caf50;
  color: white;
}

.filter-options {
  font-size: 14px;
  padding: 10px;
}


.rate-comparison {
  position: relative;
  background: white;
  padding: 80px 0;
}


.rates-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.rate-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #eaf8ea; /* Light green */
  border: 2px solid #4caf50; /* Green border */
  border-radius: 10px;
  padding: 15px;
  transition: transform 0.3s ease;
  margin: 2px 0;
  box-shadow: 5px 5px 8px rgba(0, 0, 0, 0.1);
}

.rate-card:hover {
  transform: scale(1.02);
}

.logo {
  width: 50px;
  height: 50px;
  margin-right: 15px;
  object-fit: contain;
}

.name {
  flex-grow: 1;
  font-size: 18px;
  font-weight: bold;
}

.rate {
  font-size: 16px;
  text-align: center;
  /*display: flex;*/
  flex-direction: column;
  align-items: center;
  font-weight: bold;
  margin-left: 40px;
}

.rate span {
  font-size: 12px;
  color: #666;
}

.limit-tag {
  display: block;
  font-size: 12px;
  color: #d32f2f; /* Red color for limit warning */
  margin-top: 5px;
}



/* Tag Container */
.tag-container {
  display: flex;
  gap: 6px;
  margin-top: 5px;
  flex-wrap: wrap;
}

/* General Tag Style */
.rate-tag {
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 12px;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
}

/* Green Tag (For Currency) */
.green-tag {
  background-color: #4CAF50; /* Green */
  color: white;
}

/* Red Transparent Tag (For Limits) */
.red-tag {
  background-color: rgba(255, 0, 0, 0.3); /* Light Transparent Red */
  color: #880000;
}


/* Disclaimer Section */
.disclaimer {
  margin-top: 30px;
  padding: 15px;
  background: #f9f9f9;
  border-left: 5px solid #479b48; /* Green border */
  font-size: 14px;
  color: #333;
  text-align: justify;
}


/* Disclaimer Section */
.disclaimer {
  margin: 30px auto; /* Centered */
  padding: 15px;
  background: #f9f9f9;
  border-left: 5px solid #479b48; /* Green border */
  font-size: 14px;
  color: #333;
  text-align: justify;
  width: 60%; /* Adjust width for centering */
  /*max-width: 800px; /* Prevent it from stretching too wide */
  border-radius: 8px; /* Slight rounded corners for a cleaner look */
}





/* Contact Section */
.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 60%;
  max-width: 800px;
  margin: 30px auto;
  padding: 20px;
  border-top: 2px solid #ddd; /* Subtle separator */
}

.contact-logo img {
  height: 160px; /* Adjust logo size */
  width: auto;
}

.contact-links2 {
  flex: 1;
  text-align: right;
}

.contact-links2 h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.contact-links2 ul {
  list-style: none;
  padding: 0;
}

.contact-links2 li {
  margin: 20px 0;
}

.contact-links2 a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-size: 16px;
  justify-content: flex-end;
}

.contact-links2 a img {
  height: 30px;
  width: 30px;
  margin-right: 10px;
}









/* Curvy Path Animation */
@keyframes sparkle-animation {
  0% {
    transform: translate(0, 0) scale(1); /* Start at origin */
    opacity: 1;
  }
  25% {
    transform: translate(calc(var(--x) * 0.5), calc(-50px)) scale(1.1); /* Peak height */
    opacity: 0.9;
  }
  50% {
    transform: translate(calc(var(--x) * 0.8), calc(-30px)) scale(0.9); /* Begin descent */
    opacity: 0.8;
  }
  75% {
    transform: translate(calc(var(--x) * 1.1), calc(-15px)) scale(0.7); /* Curve downwards */
    opacity: 0.6;
  }
  100% {
    transform: translate(calc(var(--x) * 1.5), calc(40px)) scale(0.5); /* Land and disappear */
    opacity: 0;
  }
}













@media (max-width: 768px) {
  header {
    flex-direction: column; /* Stack logo and navigation vertically */
    align-items: flex-start; /* Align items to the left */
    gap: 10px; /* Reduce spacing for smaller screens */
  }

  header ul {
    margin-top: 10px; /* Add spacing between logo and navigation */
    font-size: 12px;
  }


  header .logo {
    margin-bottom: 10px; /* Add space below the logo */
    height: 40px;
    width: auto; /* Maintain aspect ratio */
  }

  .contact-form,
  .contact-links {
    max-width: 100%; /* Allow full width on small screens */
  }

  /* Triangles */
  header::before,
  header::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
   border-style: solid;
  }

  header::before {
   top: 0px;
   left: 0;
   border-width: 25px 0 25px 25px; /* Triangles for left */
   border-color: transparent transparent transparent #479b48; /* Green triangle */
  }

  header::after {
    top: 50px;
    left: 0;
    border-width: 25px 0 25px 25px;
    border-color: transparent transparent transparent #569b57; /* Slightly different green */
  }

  /* Triangles for Hero Section */

  .hero::before,
  .hero::after {
   content: '';
   position: absolute;
   width: 0;
   height: 0;
   border-style: solid;
  }

  .hero::before {
    top: 0px;
    left: 0;
    border-width: 25px 0 25px 25px; /* Triangles for right */
    border-color: transparent transparent transparent #f7f452 ; /* Yellow triangle */
  }

  .hero::after {
    top: 50px;
    left: 0;
    border-width: 25px 0 25px 25px;
    border-color: transparent transparent transparent #ffd700; /* Slightly different yellow */
  }
  /* Additional triangles (4 more) */
  .hero-extra {
    position: absolute;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
  }

  .hero-extra.one {
    top: 100px;
    border-width: 25px 0 25px 25px;
    border-color: transparent transparent transparent #f7f452;
  }

  .hero-extra.two {
    top: 150px;
    border-width: 25px 0 25px 25px;
    border-color: transparent transparent transparent #ffd700;
  }

  .hero-extra.three {
    top: 200px;
    border-width: 25px 0 25px 25px;
    border-color: transparent transparent transparent #f7f452;
  }

  .hero-extra.four {
    top: 250px;
    border-width: 25px 0 25px 25px;
    border-color: transparent transparent transparent #ffd700;
  }

  .hero-extra.five {
    top: 300px;
   border-width: 25px 0 25px 25px;
   border-color: transparent transparent transparent #f7f452;
  }

  /* Triangles for tool section */

  .tools::before {
    top: 28%;
    left: 10%;
    border-width: 25px 33px 25px 0; /* Larger green triangle */
    border-color: transparent transparent transparent transparent;
  }
  
  .tools::after {
    bottom: 30%;
    right: 10%;
    border-width: 25px 0 25px 33px; /* Larger yellow triangle */
    border-color: transparent transparent transparent transparent;
  }
  
  /*Calculadora personal */ 


  #inflation-chart {
    max-height: 360px;
    max-width: 360px;
    margin-left: -65px;
  }
  
  
  #anana-borde-amarillo {
    display: none; /* Hidden by default */
    margin: 15px auto; /* Centers the image horizontally */
    height: 9px; /* Adjust height */
    width: auto; /* Maintain aspect ratio */
    display: block; /* Ensure it's treated as a block element for centering */
  }
  
  
  #anana-borde-verde {
    display: none; /* Hidden by default */
    margin: 15px auto; /* Centers the image horizontally */
    height: 8px; /* Adjust height */
    width: auto; /* Maintain aspect ratio */
    display: block; /* Ensure it's treated as a block element for centering */
  }

  .disclaimer {
    width: 90%;
  }

  .contact-container {
    flex-direction: column;
    text-align: center;
  }

  .contact-logo {
    margin-bottom: 20px;
  }

  .contact-links {
    text-align: center;
  }

  .contact-links a {
    justify-content: center;
  }


    /* RATE COMPARISON */

  .category-buttons {
      gap: 5px; /* Reduce space between buttons */
      justify-content: center;
  }

  .category-button {
      font-size: 12px;
      padding: 8px 10px;
      min-width: 100px;
      max-width: 150px; /* Reduce max width for small screens */
  }
  
  .filter-options {
    font-size: 10px;
    padding: 8px;
  }

  .rate-card {
    border-radius: 10px;
    padding: 10px;
    transition: transform 0.3s ease;
  }

  .logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
  }

  .name {
    flex-grow: 1;
    font-size: 12px;
  }

  .rate {
    font-size: 12px;
  }

  .limit-tag {
    font-size: 8px;
    margin-top: 2px;
  }

  .tag-container {
    gap: 3px;
    margin-top: 2px;
  } 

  .rate-tag {
    font-size: 8px;
    padding: 2px 4px;
    border-radius: 12px;
  }

  .disclaimer {
    margin-top: 25px;
    padding: 14px;
    font-size: 10px;
  }


}