body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background: #f4f4f4;
  color: #333;
}

header {
  background: #003b5c;
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 60px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.hero {
  background: linear-gradient(135deg, #003b5c 0%, #004d7a 50%, #0066a1 100%);
  color: white;
  padding: 100px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero h1, .hero p {
  position: relative;
  z-index: 2;
}

section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
}

section img {
  max-width: 100%;
  margin: 10px 0;
  border-radius: 8px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input, textarea {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  background: #003b5c;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

footer {
  background: #003b5c;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 20px;
  }
  
  nav ul {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .hero {
    padding: 60px 20px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  section {
    padding: 20px 15px;
  }
  
  section img {
    margin: 15px 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  section h2 {
    font-size: 1.5rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Hover effects */
nav a:hover {
  color: #66b3ff;
  transition: color 0.3s ease;
}

button:hover {
  background: #004d7a;
  transition: background 0.3s ease;
}

/* Image optimization */
section img {
  max-width: 100%;
  height: auto;
  margin: 10px 0;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

section img:hover {
  transform: scale(1.02);
}

/* Form improvements */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 20px auto;
}

input, textarea {
  padding: 12px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 6px;
  transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #003b5c;
}

/* Loading animation for images */
img {
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out forwards;
}

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

/* New styles for separated pages */
.intro {
  background: white;
  margin: 40px auto;
  padding: 60px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.cta-buttons {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.btn {
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: #003b5c;
  color: white;
}

.btn-primary:hover {
  background: #004d7a;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #003b5c;
  border: 2px solid #003b5c;
}

.btn-secondary:hover {
  background: #003b5c;
  color: white;
  transform: translateY(-2px);
}

.highlights {
  background: #f8f9fa;
  padding: 60px 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card h3 {
  color: #003b5c;
  margin-bottom: 15px;
}

/* Page-specific styles */
.page-header {
  background: linear-gradient(135deg, #003b5c 0%, #004d7a 50%, #0066a1 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.page-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.image-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.contact-info {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
  margin: 30px 0;
}

.contact-info h3 {
  color: #003b5c;
  margin-bottom: 15px;
}

.contact-info p {
  margin: 10px 0;
}

.contact-info a {
  color: #003b5c;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Botones dentro de contact-info */
.contact-info .btn {
  margin-top: 20px;
  display: inline-block;
}

.contact-info .btn-primary {
  background: #003b5c !important;
  color: white !important;
  border: none;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.contact-info .btn-primary:hover {
  background: #004d7a !important;
  color: white !important;
  transform: translateY(-2px);
  text-decoration: none;
}

/* Contact form styles */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #003b5c;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 6px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #003b5c;
}

.error-message {
  color: #dc3545;
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 20px;
  border-radius: 6px;
  border: 1px solid #c3e6cb;
  text-align: center;
  margin-top: 20px;
}

.success-message h3 {
  margin-top: 0;
  color: #155724;
}

/* Responsive adjustments for contact form */
@media (max-width: 768px) {
  .contact-form {
    margin: 0 15px;
    padding: 20px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
}