
/* ----------- RESET Y BASE ----------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #fdfdfd;
  color: #333;
  line-height: 1.6;
}

/* ----------- HEADER ----------- */
.main-header {
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 5px 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.main-header.scrolled {
  background-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  padding: 5px 0;
}

.logo img {
  height: 100px;
  width: auto;
  display: block;
}

/* ----------- NAV ----------- */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.main-nav ul li {
  position: relative;
}

.main-nav ul li a {
  text-decoration: none;
  color: #1a237e;
  font-weight: 500;
  padding: 8px 12px;
  display: block;
  transition: color 0.3s ease;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 200px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border-radius: 4px;
  display: none;
}

.has-submenu:hover .submenu {
  display: block;
}

.submenu li a {
  padding: 8px 12px;
  color: #1a237e;
}

.submenu li a:hover {
  background-color: #f5f5f5;
}

.has-submenu:hover > a {
  background-color: rgba(26, 35, 126, 0.1);
}

/* ----------- IDIOMA ----------- */
.language-selector select {
  border: 1px solid #ccc;
  padding: 5px 8px;
  border-radius: 5px;
  font-weight: 500;
  background: #f9f9f9;
}

/* ----------- HERO ----------- */
.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  object-fit: cover;
  z-index: 0;
  border-radius: 30px;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  color: white;
  text-align: center;
  padding: 20px;
}

.hero-content h1 {
  font-size: 5rem;
  font-weight: 700;
  text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.7);
  opacity: 0;
  animation: fadeIn 2s ease-in-out forwards;
}

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

/* ----------- CONTENIDO ----------- */
.container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.service {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

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

.service-img {
  width: 100%;
  max-width: 400px;
  border-radius: 15px;
  flex-shrink: 0;
}

.service-text {
  flex: 1;
  min-width: 280px;
}

.service h2 {
  color: #1a237e;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.service ul {
  list-style: none;
  padding: 0;
}

.service ul li {
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
  font-size: 1rem;
}

.service ul li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #43a047;
  font-weight: bold;
}

/* ----------- FORMULARIO ----------- */
.footer-contact {
  background: linear-gradient(135deg, #eaf4ff, #f4faff);
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #1a237e;
}

.contact-content {
  max-width: 1100px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.contact-text,
.contact-form {
  flex: 1;
  min-width: 280px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form select {
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 1rem;
  width: 100%;
  background-color: #fdfdfd;
}

.contact-form .checkbox {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #555;
}

.contact-form button {
  padding: 14px;
  background-color: #1a237e;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

/* ----------- FOOTER ----------- */
footer {
  background-color: #f0f0f0;
  padding: 30px 20px;
  text-align: center;
  color: #333;
  font-size: 0.95rem;
}

.footer-info {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-info span {
  padding: 8px 12px;
}

.footer-info a {
  color: #1a237e;
  text-decoration: none;
}

.footer-info a:hover {
  color: #43a047;
}

.copyright {
  border-top: 1px solid #ddd;
  padding-top: 20px;
  margin-top: 20px;
}

/* ----------- RESPONSIVE ----------- */
@media (max-width: 992px) {
  .container {
    grid-template-columns: 1fr;
  }

  .nav-container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
  }

  .language-selector {
    margin-top: 10px;
  }

  .service-text {
    padding-top: 20px;
  }
}

@media (max-width: 768px) {
  .logo img {
    height: 60px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .footer-info {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .logo img {
    height: 60px;
  }

  .footer-info span {
    font-size: 0.9rem;
  }

  .copyright {
    font-size: 0.8rem;
  }
}

.tooltip-container {
  position: relative;
  display: inline-block;
}

.tooltip-text {
  visibility: hidden;
  width: 320px;
  background-color: white;
  color: #1a237e;
  text-align: justify;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  position: absolute;
  top: 120%; /* separa del enlace */
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  white-space: normal; /* permite saltos de línea */
}

.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}