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

html, body {
  min-height: 100%;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #fff;
  overflow-x: hidden; /* solo oculta scroll horizontal, deja visible el vertical */
}

.hero {
  background: url('fondo.png') no-repeat center center/cover;
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.overlay {
  background: rgba(0, 0, 0, 0.55);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  animation: fadeIn 2s ease-out;
}

.logo {
  width: 400px;
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeIn 2s forwards;
}

h2 {
  font-size: 1.3rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
  animation: slideDown 1.5s ease-out forwards;
}

p {
  font-size: 1.5rem;
  margin-bottom: 40px;
  animation: fadeIn 3s ease-in forwards;
  color: #f5f5f5;
}

.loader {
  border: 4px solid rgba(255,255,255,0.2);
  border-top: 4px solid #f7931e;
  border-radius: 100%;
  width: 80px;
  height: 80px;
  animation: spin 1.5s linear infinite;
  margin-bottom: 30px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Cinta tipo noticiero */
.ticker {
  position: absolute;
  bottom: 60px; /* 20px footer + 10px padding + altura texto → ajustado perfecto */
  width: 100%;
  background: #0c4ea2;
  padding: 10px 0;
  white-space: nowrap;
  overflow: hidden;
  z-index: 9999;
}



.ticker__inner {
  display: inline-block;
  font-size: 16px;
  font-weight: bold;
  color: white;
  white-space: nowrap;
}

.ticker__inner span {
  margin: 0 25px;
}

@keyframes scrollAuto {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

footer {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  color: #ddd;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 0;
}

