/* ===== Mi Cuaderno / PWA ===== */
.app-hero {
  background: #1a365d !important;
  background-image: none !important;
  color: #fff;
  padding: 2.5rem 0 2rem;
  text-align: center;
}
.app-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 .6rem;
}
.app-hero .hero-sub {
  max-width: 640px;
  margin: 0 auto 1.25rem;
  opacity: .95;
  line-height: 1.55;
  font-size: 1.05rem;
}
.app-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}
.app-hero .btn-primary { background: #f6ad55; color: #1a202c; }
.app-hero .btn-primary:hover { background: #ed8936; }
.app-hero .btn-secondary { background: transparent; border: 2px solid rgba(255,255,255,.7); color: #fff; }
.app-hero .btn-secondary:hover { background: rgba(255,255,255,.12); }

.aviso-local {
  background: #fffbeb;
  border: 1px solid #f6e05e;
  border-left: 4px solid #d69e2e;
  color: #744210;
  padding: 1rem 1.15rem;
  border-radius: 8px;
  margin: 1.5rem 0 1.25rem;
  font-size: .92rem;
  line-height: 1.5;
}

.app-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: .5rem;
}
.app-tab {
  background: #edf2f7;
  border: none;
  padding: .55rem 1rem;
  border-radius: 8px 8px 0 0;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  color: #4a5568;
  transition: .15s;
}
.app-tab:hover { background: #e2e8f0; }
.app-tab.active {
  background: #1a365d;
  color: #fff;
}

.app-panel { display: none; padding-bottom: 2rem; }
.app-panel.active { display: block; }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .4rem;
}
.panel-head h2 {
  font-family: 'Playfair Display', serif;
  color: #1a365d;
  margin: 0;
  font-size: 1.45rem;
}
.panel-desc {
  color: #4a5568;
  margin: 0 0 1.25rem;
  font-size: .95rem;
}

.btn-sm {
  padding: .45rem .9rem !important;
  font-size: .88rem !important;
}
.btn-danger-outline {
  background: transparent;
  border: 2px solid #c53030;
  color: #c53030;
  font-weight: 600;
  padding: .6rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
}
.btn-danger-outline:hover { background: #fff5f5; }

.app-form {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.app-form h3 {
  margin: 0 0 1rem;
  color: #1a365d;
  font-size: 1.1rem;
}
.app-form label {
  display: block;
  font-weight: 600;
  font-size: .88rem;
  color: #2d3748;
  margin-bottom: .85rem;
}
.app-form input,
.app-form select,
.app-form textarea {
  display: block;
  width: 100%;
  margin-top: .3rem;
  padding: .55rem .7rem;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font: inherit;
  background: #fff;
}
.app-form input:focus,
.app-form select:focus,
.app-form textarea:focus {
  outline: 2px solid #2c7a4b;
  border-color: #2c7a4b;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .5rem;
}
#btn-geo { margin-bottom: .85rem; }

.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: #718096;
  background: #f7fafc;
  border-radius: 10px;
  border: 1px dashed #cbd5e0;
}
.empty-state.hidden { display: none; }

.cards-list {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.card-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem 1.15rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin-bottom: .35rem;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .85rem;
  font-size: .88rem;
  color: #4a5568;
  margin-bottom: .4rem;
}
.card-notes {
  margin: .4rem 0 0;
  font-size: .92rem;
  color: #2d3748;
  white-space: pre-wrap;
}
.card-actions {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
  padding-top: .65rem;
  border-top: 1px solid #edf2f7;
}
.btn-sm.btn-edit {
  background: #edf2f7;
  border: none;
  color: #2d3748;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}
.btn-sm.btn-danger {
  background: #fff5f5;
  border: none;
  color: #c53030;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}
.tag {
  background: #ebf8ff;
  color: #2b6cb0;
  padding: .15rem .5rem;
  border-radius: 4px;
  font-size: .8rem;
  font-weight: 600;
}
.badge {
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .5rem;
  border-radius: 999px;
}
.badge-ok { background: #c6f6d5; color: #276749; }
.badge-warn { background: #fefcbf; color: #975a16; }
.badge-danger { background: #fed7d7; color: #9b2c2c; }
.maps-link {
  color: #2b6cb0;
  font-weight: 600;
  text-decoration: none;
}
.maps-link:hover { text-decoration: underline; }

/* Setas */
.warning-box.critical {
  background: #fff5f5;
  border: 1px solid #fc8181;
  border-left: 5px solid #c53030;
  color: #742a2a;
  padding: 1.1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-size: .92rem;
  line-height: 1.5;
}
.warning-box.critical ul {
  margin: .5rem 0 0;
  padding-left: 1.2rem;
}
.warning-box.critical li { margin-bottom: .3rem; }
.setas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.info-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
}
.info-card h3 {
  margin: 0 0 .6rem;
  color: #1a365d;
  font-size: 1.05rem;
}
.info-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: #4a5568;
  font-size: .92rem;
  line-height: 1.45;
}
.info-card li { margin-bottom: .3rem; }
.info-card .small {
  margin: .6rem 0 0;
  font-size: .82rem;
  color: #718096;
}

.data-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}
.file-btn { cursor: pointer; display: inline-block; }

.hidden { display: none !important; }

.active-nav {
  background: #2c7a4b !important;
  color: #fff !important;
}

@media (max-width: 600px) {
  .app-tabs { gap: .3rem; }
  .app-tab { padding: .5rem .7rem; font-size: .82rem; }
  .panel-head { flex-direction: column; align-items: flex-start; }
}

/* Foto de licencia */
.photo-field {
  margin-bottom: 1rem;
  padding: .85rem;
  background: #edf2f7;
  border-radius: 8px;
}
.photo-label {
  display: block;
  font-weight: 600;
  font-size: .88rem;
  color: #2d3748;
  margin-bottom: .25rem;
}
.photo-hint {
  margin: 0 0 .65rem;
  font-size: .82rem;
  color: #718096;
  line-height: 1.4;
}
.photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.photo-preview {
  margin-top: .75rem;
}
.photo-preview img {
  max-width: 100%;
  max-height: 220px;
  border-radius: 8px;
  border: 1px solid #cbd5e0;
  display: block;
  object-fit: contain;
  background: #fff;
}
.card-photo {
  margin: .55rem 0 .35rem;
}
.card-photo img {
  max-width: 100%;
  max-height: 180px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  display: block;
  object-fit: contain;
  background: #f7fafc;
  cursor: pointer;
}
