*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f4f6fa;
  margin: 0;
  padding: 20px;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: auto;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

@media (max-width: 600px) {
  body {
    padding: 0;
  }

  .container {
    padding: 20px 16px;
    border-radius: 0;
    box-shadow: none;
    min-height: 100vh;
  }
}

h1 {
  color: #2D4C91;
  text-align: center;
  margin-top: 0;
}

.subtitle {
  text-align: center;
  color: #666;
}

label {
  font-weight: bold;
  display: block;
  margin-top: 12px;
}

.tooltip {
  position: relative;
  display: inline-block;
  margin-left: 4px;
  color: #2D4C91;
  cursor: default;
  font-size: 14px;
}

.tooltip .tooltip-text {
  visibility: hidden;
  opacity: 0;
  background: #333;
  color: #fff;
  font-size: 13px;
  font-weight: normal;
  text-align: left;
  padding: 8px 10px;
  border-radius: 6px;
  width: 240px;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.2s;
  z-index: 10;
  line-height: 1.4;
  pointer-events: none;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

input {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

button {
  width: 100%;
  padding: 14px;
  margin-top: 15px;
  background: #2D4C91;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background: #1f3569;
}

.result {
  margin-top: 20px;
  padding: 15px;
  background: #f1f5ff;
  border-radius: 6px;
  display: none;
}

.explanation {
  margin-top: 40px;
}

.explanation h2 {
  color: #2D4C91;
  margin-bottom: 4px;
}

.explanation h3 {
  margin-top: 16px;
  margin-bottom: 2px;
}

.explanation p {
  margin-top: 2px;
  margin-bottom: 0;
}

.disclaimer {
  font-size: 14px;
  color: #777;
}

footer {
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
  color: #888;
}

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #111;
  color: white;
  padding: 15px 20px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
  z-index: 9999;
}

.cookie-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.cookie-container p {
  margin: 0;
  font-size: 14px;
  flex: 1;
}

.cookie-container a {
  color: #4CAF50;
  text-decoration: none;
  font-weight: bold;
}

#aceitarCookies {
  background: #4CAF50;
  border: none;
  padding: 8px 16px;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

#aceitarCookies:hover {
  opacity: 0.9;
}
