:root {
  --brand-green: #58cc02;
  --accent: #4a9bff;
  --footera: #a5ed6e;
  --footertext: #d7ffb8;
  --bg: #ffffff;
  --campocolor: #f7f7f7;
  --campoborde: #e5e5e5;
  --text: #1a1a1a;
  --btnsazul: #1fc2ff;
  --muted: #6b7280;
  --max-width: 100vw;
  --btnshadow: #1aa8eb;
  --btngrisshadow: #cecece;

  --headline: "mFeather";
  --body: "mNunito";
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.45;
}

.container {
  max-width: 100%;
  margin: 0;
}

.imagenes {
  margin-top: 50px;
}

main{
  text-align: center;
  padding: 100px 20px 20px;
  min-height: calc(100vh - 128px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  padding-left: 20px;
  padding-right: 20px;
  position: fixed;
  width: 100vw;
  top: 0;
  height: 95px;
  background: var(--bg);
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-family: var(--headline);
  font-size: 1.25rem;
  color: var(--brand-green);
}

a {
  color: var(--footera);
  text-decoration: none;
  font-weight: 600;
}

nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.cta {
  background: var(--brand-green);
  font-family: var(--body);
  color: white;
  padding: 0.55rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  box-shadow: 0px 5px 0px 0px var(--btnshadow);
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
  text-align: center;
}

h1 {
  font-family: var(--headline);
  color: var(--brand-green);
  font-size: 2.25rem;
  line-height: 1.05;
  margin-bottom: 0.6rem;
}

.hero .buttons {
  display: flex;
  gap: 0.75rem;
}

input,select {
  background-color: var(--campocolor);
  border: 2px solid var(--campoborde);
  padding: 15px;
  border-radius: 12px;
}

.btn {
  padding: 0.65rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  font-family: var(--body);
  display: inline-block;
  border: none;
  cursor: pointer;
}

.required{
  border:2px solid rgb(255, 187, 0);
}

.btn.primary {
  background: var(--btnsazul);
  color: white;
  box-shadow: 0px 5px 0px 0px var(--btnshadow);
}

.btn.secondary {
  width: max-content;
  background: transparent;
  border: 2px solid rgba(0, 0, 0, 0.06);
  color: var(--btnsazul);
  box-shadow: 0px 3px 0px 0px var(--btngrisshadow);
}

img.btn.secondary {
  padding: 0px;
  width: 400px;
  height: 400px;
  background-color: #ffffff;
}

.apimain{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  grid-template-rows: repeat(1,1fr);
  gap: 20px;
}

.nasa.apicontainer{
  grid-column: 1/2;
}

form{
  display: flex;
  justify-content:center;
  align-items:center;
  flex-direction:column;
  flex-wrap:wrap;
  gap:20px;
}

form *{
  cursor: pointer;
  justify-content:center;
}

form div{
  display: flex;
  justify-content:space-between;
}

.nasaform, .perroform, .formbuscar{
  display: flex;
  flex-direction: row;
  margin-bottom: 20px;
  margin-top: 10px;
  gap:10px;
}

table{
  margin: 20px;
  padding: 20px;
}

td{
  padding-right: 30px;
}

.edicion fieldset{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  border: 2px solid var(--brand-green);
  border-radius: 10px;
  width: 80%;
}

.edicion fieldset .btn{
  width: max-content;
}

.botoneseditar{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.titulotabla{
  color:#58cc02
}

.opcionDpto{
  color: var(--text);
  background-color: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.btn.borrar{
  background-color: rgb(231, 47, 47);
  box-shadow: 0px 5px 0px 0px brown;
}

.perfilshow{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.perfilshow img{
  margin-bottom: 20px;
}

.edicion fieldset label{
  width: 200px;
  text-align: start;
  margin-right: 20px;
}

.parametrostitulo{
  color: var(--accent);
}

.truncate-text {
  display: -webkit-box;       /* Necesario para truncar con varias líneas */
  -webkit-line-clamp: 2;      /* Número de líneas visibles antes de cortar */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;            /* Muestra que es clicable */
}

/* Modal de ampliación */
.modal-expandido {
  max-height: none !important;
  overflow: visible !important;
}

.edicion fieldset input{
  margin-right: 20px;
}

.edicion fieldset{
  display: flex;
  flex-flow: row wrap;
}

.edicion fieldset div{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px;
}

.perfilmain{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: start;
}

.perfilmain img{
  border-radius: 50%;
  width: 150px;
}

.modal{
  text-align: start;
}

.modal b{
  font-weight: bold;
  color: var(--accent);
}

.apicontainer a{
  color: #58cc02;
  padding: 20px;
}

.apicontainer{
  border-radius: 10px;
  border: 2px solid var(--brand-green);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
}

.publicmain img:hover {
  transform: scale(1.5);
  transition: all ease 0.5s;
}

footer {
  background: var(--brand-green);
  margin-top: 3rem;
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  position: static;
  bottom: 0;
  width: 100%;
  height: 80px;
}

.footer-grid {
  color: var(--footertext);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-left: 30px;
  margin-right: 30px;
}
