* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #f0f0f0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header styles */
header {
  background-color: #1a237e;
  color: white;
  padding: 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 40px;
  margin-right: 10px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
}

nav ul li a i {
  margin-right: 5px;
}

/* Main content styles */
main {
  margin-top: 80px; /* Add space for fixed header */
  min-height: calc(100vh - 80px - 400px); /* Adjust for header and footer */
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}

.content-container {
  max-width: 1400px;
  width: 100%;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 48px;
}

/* Form styles */
.form-row {
  display: flex;
  margin-bottom: 20px;
  gap: 20px;
}

.form-group {
  flex: 1;
}

.full-width {
  width: 100%;
}

.label {
  background-color: #ffebee;
  color: #f44336;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  font-weight: bold;
}

.form-group:nth-child(2) .label {
  background-color: #e3f2fd;
  color: #2196f3;
}

select,
input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
}

.select-with-button {
  display: flex;
  gap: 10px;
}

.select-with-button select {
  flex: 1;
}

.crear-btn {
  background-color: #2196f3;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 0 15px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.crear-btn i {
  margin-right: 5px;
}

/* Photos section styles */
.photos-section {
  margin-top: 30px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.photo-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.photo-group {
  flex: 1;
}
.photo-preview {
  width: 100%;
  height: 200px;
  background-color: #f5f5f5;
  border: 2px dashed #ddd;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.photo-text {
  color: #666;
  font-size: 18px;
}

.photo-input {
  margin-bottom: 10px;
}

.photo-caption {
  font-size: 14px;
  color: #666;
  text-align: center;
}

.buttons-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
}

.btn-primary {
  background-color: #4caf50;
  color: white;
}

.btn-secondary {
  background-color: #2196f3;
  color: white;
}

/* Footer styles */
footer {
  background-color: #1a237e;
  color: white;
  padding: 0;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 60px 20px;
}

.footer-column h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
}

.footer-column h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 2px;
  background-color: #4caf50;
}

.footer-logo {
  text-align: center;
}

.footer-logo img {
  width: 80px;
  margin-bottom: 15px;
}

.footer-logo h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: #4caf50;
}

.contact-info p {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.contact-info i {
  margin-right: 10px;
  color: #4caf50;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-icon:hover {
  background-color: #4caf50;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Additional styles */
.otros-section {
    margin-bottom: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.otros-section h2 {
    color: #1a237e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.otros-upload-group {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 20px;
}

.otros-upload-group input[type="file"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.otros-upload-button {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.otros-upload-button .btn {
    padding: 15px 30px;
    font-size: 1.1em;
}

.records-section {
  padding: 20px 0;
}

/* Hover effects */
.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  transition: all 0.2s;
}

nav ul li a:hover {
  color: #90caf9;
  transition: color 0.2s;
}

.crear-btn:hover {
  background-color: #1976d2;
  transition: background-color 0.3s;
}

/* Responsive design */
@media (max-width: 992px) {
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    margin-top: 15px;
  }

  main {
    margin-top: 120px;
  }

  .form-row,
  .photo-row {
    flex-direction: column;
  }

  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-column h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .contact-info p {
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-logo,
  .footer-contact,
  .footer-social {
    margin-bottom: 20px;
    align-items: center;
    text-align: center;
  }
}
/* Ver imágenes page styles */
.filters-section {
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.filter-buttons {
  display: flex;
  gap: 10px;
}

.filter-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background-color: #f0f0f0;
  transition: all 0.3s;
}

.filter-btn.active {
  background-color: #1a237e;
  color: white;
}

.lugar-filter {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ddd;
  min-width: 200px;
}

.export-buttons {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.btn-export-word,
.btn-export-excel {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  color: white;
}

.btn-export-word {
  background-color: #2b579a;
}

.btn-export-excel {
  background-color: #217346;
}

.observation-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 15px;
}

.observation-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
}

.observation-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.image-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.yt-btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(45deg, #2196f3, #00bcd4);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
  transition: all 0.3s ease;
}

.yt-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
  background: linear-gradient(45deg, #1e88e5, #00acc1);
  color: white;
}

.yt-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(33, 150, 243, 0.3);
}
