/* Estilos generales */
:root {
  --primary: #003366;
  --secondary: #072653;
  --white: #ffffff;
  --light-gray: #f8f9fc;
}

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--light-gray);
  color: #1a1a1a;
  line-height: 1.6;
}

/* Header */
header {
  background-color: var(--white);
  padding: 5px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
  margin: 0;
}

header h1 {
  font-size: 20px;
  color: var(--primary);
  margin: 0;
}

header nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  transition: all 0.3s ease;
}

header nav a:hover {
  color: #004080;
}
/* Selector de idiomas */
.language-switcher {
  position: relative;
  display: inline-block;
  margin-right: 20px;
}

#current-language {
  cursor: pointer;
  padding: 5px 10px;
  background-color: var(--primary);
  color: white;
  border-radius: 4px;
  display: inline-block;
}

.language-options {
  display: none;
  position: absolute;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  border-radius: 4px;
  z-index: 1000;
  width: 120px;
}

.language-switcher:hover .language-options {
  display: block;
}

.language-options button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

.language-options button:hover {
  background-color: var(--light-gray);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 30px 20px;
  background-color: var(--secondary);
  color: var(--white);
  padding-top: 0;
  margin-top: -1px;
}

.hero h2 {
  margin-top: 0;
  padding-top: 0;
  font-size: 80px;
  margin-bottom: 0;
}

.hero p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
}

/* Estilos del Carrusel */
.carousel-container {
  position: relative;
  max-width: 100%;
  margin: 20px auto;
  overflow: hidden;
}

.carousel-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 24px;
  z-index: 10;
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

.carousel-slide {
  display: none;
}

.carousel-slide.active {
  display: block;
}

/* Sección de servicios */
.services-section {
  padding: 40px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.services-title {
  text-align: center;
  color: var(--primary);
  font-size: 32px;
  margin-bottom: 30px;
  position: relative;
}

.services-title:after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: var(--primary);
  margin: 15px auto 0;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card i {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 10px;
}

.service-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--primary);
}

.service-card p {
  font-size: 14px;
  color: #555;
}

/* Features */
.features {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px auto;
  max-width: 800px;
  flex-wrap: wrap;
}

.features div {
  text-align: center;
  color: var(--primary);
  font-size: 14px;
}

/* CTA */
.cta {
  text-align: center;
  margin: 40px 20px;
}

.cta p {
  font-size: 16px;
  margin-bottom: 20px;
}

.cta a {
  text-decoration: none;
  background-color: var(--primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  margin: 0 10px;
  font-weight: bold;
  display: inline-block;
}

.cta a.secondary {
  background-color: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.cta a.secondary:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Formulario de contacto */
.contact-container {
  background-color: var(--white);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  max-width: 800px;
  margin: 40px auto;
}

.contact-title {
  color: var(--primary);
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
  position: relative;
}

.contact-title:after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: var(--primary);
  margin: 15px auto 0;
}

.contact-form .form-group {
  margin-bottom: 25px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--primary);
}

.required-field::after {
  content: " *";
  color: red;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 16px;
  box-sizing: border-box;
  transition: border 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: block;
  margin: 40px auto 0;
  width: 200px;
  text-align: center;
}

.submit-btn:hover {
  background-color: #004080;
  transform: translateY(-2px);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* Footer */
footer {
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 15px;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 15px 20px;
  }

  header nav {
    margin-top: 15px;
  }

  .hero h2 {
    font-size: 60px;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .features {
    flex-direction: column;
    gap: 20px;
  }

  .cta a {
    display: block;
    margin: 10px auto;
    width: 80%;
  }

  .contact-container {
    padding: 25px;
  }

  .submit-btn {
    width: 100%;
  }
}

