/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #F5F5DC 0%, #F0EDE5 100%); /* Subtle gradient for depth */
}

/* Header and Navigation */
header {
  background: #722F37; /* Burgundy */
  color: #F5DEB3; /* Cream text for contrast */
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 50px;
  width: auto;
  border-radius: 50%;
  border: 2px solid #FF6B35;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo a {
  font-size: 32px;
  line-height: 32px;
  font-family: 'Segoe UI', sans-serif;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: #F5DEB3; /* Cream */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a:focus {
  color: #DAA520; /* Gold for accent */
  outline: 2px solid #DAA520;
  outline-offset: 2px;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  background: white;
  border-radius: 4px;
  padding: 5px;
  color: #1F7A78;
  font-size: 20px;
  text-align: center;
  line-height: 20px;
}

/* Hero Section */
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes flash {
  0% {
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  background: #F2E5C6;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #722F37; /* Burgundy text for contrast */
  padding-top: 80px;
  position: relative;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('Imagenes/MBACKG.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-overlay.flash {
  animation: flash 0.2s ease-in-out;
}



.hero-content {
  max-width: 800px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.hero-content.fade-in {
  animation: fadeIn 0.36s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.9;
  font-weight: 400;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 30px;
  background: #FF6B35;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.1rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  transition: all 0.3s;
  margin: 0 10px;
}

.btn:hover {
  background: #E55A2B;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Services Section */
.services {
  padding: 80px 20px;
  background: #f8f9fa;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.services h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #722F37; /* Burgundy */
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card h3 {
  color: #722F37; /* Burgundy */
  margin-bottom: 15px;
}

/* About Section */
.about {
  padding: 80px 20px;
  background: white;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #1F7A78;
}

.about p {
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 50px;
  margin-top: 50px;
}

.stat {
  text-align: center;
}

.stat h3 {
  font-size: 2.5rem;
  color: #722F37; /* Burgundy */
  margin-bottom: 10px;
}

/* Contact Section */
.contact {
  padding: 80px 20px;
  background: #722F37; /* Burgundy */
  color: #F5DEB3; /* Cream text for contrast */
  text-align: center;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.contact form {
  max-width: 600px;
  margin: 0 auto 40px;
  text-align: left;
}

.contact form label {
  display: block;
  margin-bottom: 5px;
  color: #F5DEB3; /* Cream */
  font-weight: bold;
}

.contact form input,
.contact form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.contact form button {
  padding: 15px 30px;
  background: #FF6B35;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.1rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  cursor: pointer;
  transition: all 0.3s;
  display: block;
  margin: 0 auto;
}

.contact form button:hover {
  background: #E55A2B;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.contact-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 50px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.contact-item i {
  margin-right: 10px;
  font-size: 1.2rem;
}

.contact .contact-info a,
.contact .contact-info a:link,
.contact .contact-info a:visited,
.contact .contact-info a:active {
  color: white !important;
  text-decoration: none !important;
}

.contact .contact-info a:hover {
  color: #FF6B35 !important;
  text-decoration: underline !important;
}

.contact-info-section {
  text-align: center;
}

.contact-info-section h3 {
  margin-bottom: 20px;
}

.contact-actions h4 {
  margin-bottom: 15px;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Footer */
footer {
  background: #222;
  color: #ccc;
  text-align: center;
  padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding-top: 120px; /* Aumentar el padding para asegurar que el contenido esté debajo del header en móvil */
    height: auto;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .nav-links {
    position: absolute;
    right: 20px;
    top: 100%;
    background: #722F37; /* Burgundy */
    width: 220px;
    flex-direction: column;
    align-items: center;
    padding: 25px 0;
    display: none;
    border: 2px solid #DAA520; /* Gold border */
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 1001;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    flex-direction: column;
  }

  .contact-info {
    flex-direction: column;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
    margin: 20px 0;
  }

  .contact-item div {
    margin-top: 10px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-container {
    padding: 25px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .action-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .action-buttons .btn {
    flex: 1;
    min-width: 150px;
    padding: 10px 20px;
    font-size: 1rem;
    justify-content: center;
  }

  .contact-subtitle {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
  }

  .contact-info a {
    color: white !important;
  }

  .contact-info a:hover {
    color: #FF6B35 !important;
  }

  .hero-content .btn {
    display: block;
    margin: 15px auto; /* Aumentar el margen para mejor separación en móvil */
    width: auto;
    max-width: 280px; /* Aumentar ligeramente el ancho máximo para mejor visibilidad */
    padding: 12px 20px; /* Ajustar padding para botones más prominentes */
  }
}
