/* ===================== Reset basico ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  padding-top: 60px;
}

/* ===================== Header ===================== */
#header {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  height: 80px;
}

#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  display: flex;
  align-items: center;
  background: transparent;
}

.logo img {
  width: 240px;
  height: auto;
  display: block;
  background: transparent;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.nav-links a:hover {
  color: #f8b44b;
}

/* ===================== Hero ===================== */
.hero {
  position: relative;
  padding: 120px 20px 60px;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: left;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  opacity: 1;
  transition: opacity 3s ease;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: 600px;
  z-index: 1;
  padding: 0 2rem;
}

.hero-content h2 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-content p {
  font-size: 1.4rem;
  color: #e0e0e0;
  line-height: 1.6;
  margin: 0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-btn {
  display: inline-block;
  background-color: #0054ff;
  color: #fff;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.hero-btn:hover {
  background-color: #f8b44b;
}

.hero-btn i {
  font-size: 1.4em;
  vertical-align: middle;
  margin-right: 8px;
  line-height: 1;
}

/* ===================== CONOCENOS ===================== */
.conocenos-section {
  background-color: #f3f3f3;
  padding: 100px 20px;
}

.conocenos-section h2 {
  font-size: 4.2rem !important;
  margin-bottom: 2rem;
  color: #222;
  text-align: center;
}

.conocenos-content {
  max-width: 1200px;
  margin: auto;
  font-size: 1.25rem;
  line-height: 1.8;
  color: #444;
}

.conocenos-content h2 {
  font-size: 2rem !important;
  margin: 2.5rem 0 1rem;
  color: #002d86;
  border-left: 4px solid #f8b44b;
  padding-left: 1rem;
  font-weight: 300;
  text-align: left !important;
}

.conocenos-content h3 {
  font-size: 1.7rem;
  font-weight: 350;
  margin: 2rem 0 1rem;
  color: #3d3d3d;
  border-left: 4px solid #f8b44b;
  padding-left: 0.8rem;
  line-height: 1.4;
  text-align: left;
}


.conocenos-content p {
  margin-bottom: 1.5rem;
}

.conocenos-content ul {
  margin: 1rem 0 2rem 1.5rem;
  padding-left: 1rem;
  list-style: disc;
}

.conocenos-content ul li {
  margin-bottom: 0.8rem;
}

.conocenos-img {
  float: right;
  margin: 0 0 1.5rem 2rem;
  max-width: 40%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.conocenos-img-left {
  float: left;
  margin: 0 2rem 1.5rem 0;
  max-width: 40%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ===================== Planes ===================== */
.planes-section {
  padding: 4rem 2rem;
  background-color: #fff;
  text-align: center;
}

.planes-section h2 {
  font-size: 4.2rem !important;
  margin-bottom: 2rem;
  color: #222;
  text-align: center;
}

.planes-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.plan-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 480px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 2rem;
  width: 360px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.plan-card ul {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.plan-card:hover {
  transform: translateY(-5px);
}

.plan-card h3 {
  font-size: 1.8rem;
  color: #0054ff;
  margin-bottom: 1rem;
}

.plan-price {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #222;
}

.plan-price span {
  font-size: 1rem;
  color: #666;
}

.plan-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.plan-card ul li {
  margin-bottom: 0.8rem;
  color: #333;
}

.plan-btn {
  display: inline-block;
  background-color: #0054ff;
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  align-self: center;
  margin-top: 0.2rem;
}


.plan-btn:hover {
  background-color: #f8b44b;
}

.plan-card.destacado {
  border: 2px solid #0054ff;
  background-color: #c3d9fa;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem 0;
  flex-grow: 1;
}

.plan-features li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.8rem;
  color: #333;
}

.plan-features li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 0;
  color: #0054ff;
  font-weight: bold;
  font-size: 1rem;
  line-height: 1.4;
}

/* ===================== FAQ ===================== */
.faq-section {
  background-color: #fff;
  padding: 100px 20px;
}

.faq-section h2 {
  font-size: 4.2rem;
  margin-bottom: 3rem;
  color: #222;
  text-align: center;
}

.faq-item {
  max-width: 1000px;
  margin: 0 auto 2rem;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-3px);
}

.faq-item h3 {
  font-size: 1.8rem;
  color: #0054ff;
  margin-bottom: 1rem;
}

.faq-item p {
  font-size: 1.2rem;
  color: #444;
  line-height: 1.7;
}

/* ===================== Contacto ===================== */
#contacto {
  background-color: #f9f9f9;
  padding: 4rem 2rem;
}

#contacto h2 {
  text-align: center;
  font-size: 4.2rem;
  margin-bottom: 2rem;
  color: #222;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0054ff;
  outline: none;
}

.contact-form button {
  padding: 1rem 2rem;
  background-color: #0054ff;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #f8b44b;
}

/* ===================== Partners ===================== */
.partners-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
  padding-bottom: 30px;
}

.partners-row a {
  flex: 1 1 22%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.partners-row img {
  width: 90%;
  max-width: 120px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.partners-row a:hover img {
  transform: scale(1.05);
}

/* Responsive para tablets */
@media (max-width: 768px) {
  .partners-row a {
    flex: 1 1 45%;
  }
}

/* Responsive para móviles */
@media (max-width: 480px) {
  .partners-row a {
    flex: 1 1 100%;
  }
}

/* ===================== Footer ===================== */
footer {
  background: #222;
  color: #ccc;
  text-align: center;
  padding: 1rem 0;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

footer a {
  color: #f8b44b;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #ac7c35;
  text-decoration: underline;
}

.hamburger {
  display: none;
}

.lang-switcher {
  margin-left: 1rem;
}

.lang-switcher img {
  width: 24px;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.lang-switcher img:hover {
  transform: scale(1.1);
}

/* === MODALES PRIVACIDAD & TÉRMINOS (RESPUESTAS INTELIGENTES) === */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-content {
  background-color: #ffffff;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  color: #333333;
  font-family: 'Open Sans', sans-serif;
}

.modal-content h2 {
  font-size: 32px;
  margin-top: 0;
  color: #0066cc;
}

.modal-content ul {
  padding-left: 20px;
  list-style: disc;
  margin-bottom: 20px;
}

.modal-content p, 
.modal-content li {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.modal-content strong {
  color: #0066cc;
}

.modal-content a {
  color: #0066cc;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.modal-content a:hover {
  color: #f8b44b;
}

.close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  font-size: 34px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  color: #f8b44b;
  font-family: 'Arial Black', sans-serif;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}


/* ===================== Responsive ===================== */
@media (max-width: 768px) {
  #header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
  }

  /* ---- Hamburger ----*/
  .hamburger {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    padding: 0.5rem;
    position: relative;
    width: 32px;
    height: 24px;
    z-index: 1001;
  }

  .hamburger .bar {
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #333;
    left: 0;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
  }

  .hamburger .bar:nth-child(1) {
    top: 0;
  }

  .hamburger .bar:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
  }

  .hamburger .bar:nth-child(3) {
    bottom: 0;
  }

  .nav-open .hamburger .bar:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
  }

  .nav-open .hamburger .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-open .hamburger .bar:nth-child(3) {
    transform: rotate(-45deg);
    top: 50%;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 1rem 2rem;
    gap: 1rem;
    display: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    z-index: 998;
  }

  .nav-links li {
    margin: 0;
  }

  .nav-links a {
    width: 100%;
    display: block;
    padding: 0.5rem 0;
  }

  .nav-open .nav-links {
    display: flex;
  }

  section[id] {
    scroll-margin-top: 350px;
  }

  .conocenos-img,
  .conocenos-img-left {
    float: none;
    display: block;
    max-width: 100%;
    margin: 1.5rem auto;
  }
}