/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #f9fbfc;
  color: #253746;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header */
header {
  background: #102a42;
  padding: 1rem 0;
  color: white;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

header .logo {
  height: 70px;
  width: auto;
}

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

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #5db7b7;
}

#langToggle {
  background: #5db7b7;
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  font-weight: 700;
  padding: 7px 14px;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

#langToggle:hover {
  background-color: #3a8080;
}

/* Sections */
.section {
  padding: 4rem 0;
  border-bottom: 1px solid #ddd;
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: #54a7a7;
  color: white;
  border-radius: 0 0 60px 60px;
  padding: 3rem 2rem;
  flex-wrap: wrap;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 400px;
}

.hero-text h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-image {
  flex: 1 1 400px;
}

.hero-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-primary {
  display: inline-block;
  background-color: #195b5b;
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #0e3d3d;
}

/* Servicios */
.services h2 {
  color: #102a42;
  margin-bottom: 2rem;
  text-align: center;
  font-size: 2.5rem;
}

.service-group {
  margin-bottom: 1.2rem;
}

.service-group-btn {
  background-color: #195b5b;
  color: #fff;
  width: 100%;
  text-align: left;
  font-size: 1.2rem;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: 700;
}

.service-group-btn:hover,
.service-group-btn[aria-expanded="true"] {
  background-color: #0e3d3d;
}

.service-subcategories {
  background: #e8f1f1;
  padding: 1rem 2rem;
  border-radius: 0 0 10px 10px;
  font-size: 1rem;
  color: #253746;
}

.service-subcategories ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.service-subcategories li {
  margin-bottom: 0.5rem;
}

/* Contacto */
.contact h2 {
  text-align: center;
  color: #102a42;
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
}

.contact-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.contact-info div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  color: #253746;
}

.contact-info a {
  color: #195b5b;
  text-decoration: none;
  font-weight: 600;
}

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

.icon {
  font-size: 1.5rem;
}

/* Formulario */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
  text-align: left;
}

label {
  font-weight: 600;
  color: #253746;
}

input[type="text"],
input[type="email"],
textarea {
  padding: 0.7rem;
  border: 1px solid #a8b4b4;
  font-size: 1rem;
  border-radius: 5px;
  resize: vertical;
  transition: border-color 0.3s ease;
  width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: #5db7b7;
  outline: none;
}

button[type="submit"] {
  cursor: pointer;
  background-color: #195b5b;
  color: white;
  border: none;
  padding: 0.85rem;
  font-size: 1.1rem;
  border-radius: 5px;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #0e3d3d;
}

#formMessage {
  margin-top: 1rem;
  font-weight: 700;
  color: #195b5b;
  text-align: center;
}

/* Footer */
footer {
  background: #102a42;
  color: white;
  text-align: center;
  padding: 1.2rem 0;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
  }

  .hero-text, .hero-image {
    flex: 1 1 100%;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .contact-info {
    flex-direction: column;
  }
}