:root {
  --bg-main: #dbe9ee;
  --bg-soft: #c0d6df;
  --primary: #1c6e8c;
  --accent: #8B94FF;
  --text-dark: #494949;
  --text-soft: #9ba8ae;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
}

header {
  background: rgba(219, 233, 238, 0.6);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(28, 110, 140, 0.1);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.03em;
}

.logo img {
  height: 70px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .logo img {
    height: 50px;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 40px;
  }
}

nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
}

/* ===== HERO AJUSTADO ===== */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
}

/* el primer div dentro de hero es el que tiene la imagen y el texto */
.hero > div:first-child {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex: 1 1 480px;
  min-width: 300px;
}

/* imagen del hero */
.hero > div:first-child > img {
  width: 260px;           /* ajústalo a tu gusto */
  height: 260px;
  object-fit: cover;
  border-radius: 50%;     /* redonda */
  border: 5px solid #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  flex-shrink: 0;
}

/* bloque de texto */
.hero-text h1 {
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  margin-bottom: 1rem;
  color: var(--primary);
}

.hero-text p {
  max-width: 520px;
  color: var(--text-dark);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(28, 110, 140, 0.1);
  color: var(--primary);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.cta-group {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 10px 25px rgba(191, 139, 255, 0.3);
  transition: transform 0.15s ease;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--text-dark);
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
}

.hero-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.045);
  border: 1px solid rgba(192, 214, 223, 0.5);
  flex: 0 1 340px;
}

.hero-card h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: 0.9rem;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(192, 214, 223, 0.9);
  font: inherit;
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 70px;
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 1.2rem 1.2rem 1.1rem;
  border: 1px solid rgba(192, 214, 223, 0.4);
}

.card h3 {
  margin-top: 0.4rem;
  color: var(--primary);
}

.footer {
  background: #c0d6df;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #2f3e46;
}

@media (max-width: 850px) {
  .hero > div:first-child {
    flex-direction: column;
    text-align: center;
  }

  .hero > div:first-child > img {
    width: 210px;
    height: 210px;
  }

  .hero-text p {
    margin: 0 auto;
  }
}

@media (max-width: 650px) {
  nav {
    display: none;
  }
  .cta-group {
    flex-direction: column;
  }
  .hero {
    padding-top: 3.2rem;
  }
}

/* ===== AJUSTE FORZADO DEL HERO ===== */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  display: flex !important;          /* forzar flex, no grid */
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
}

/* este es el div que tiene la imagen y el texto */
.hero > div:first-of-type {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex: 1 1 480px;
  min-width: 300px;
}

/* CONTENEDOR HERO: 2 columnas */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

/* COLUMNA IZQUIERDA: imagen encima del texto */
.hero-content {
  flex: 1 1 500px;
  display: flex;
  flex-direction: column;   /* <-- aquí obligamos imagen arriba, texto abajo */
  gap: 1.5rem;
}

/* centramos solo la imagen */
.hero-image {
  display: flex;
  justify-content: flex-start;
}

.hero-image img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* texto debajo de la imagen */
.hero-text {
  max-width: 540px;
}

/* COLUMNA DERECHA: formulario */
.hero-card {
  flex: 0 0 340px;     /* ancho fijo aprox de la columna derecha */
}

/* RESPONSIVE: en móvil se apilan */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
  }

  .hero-image {
    justify-content: center;
  }

  .hero-text {
    text-align: center;
    margin: 0 auto;
  }

  .hero-card {
    width: 100%;
  }
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-card {
  background: #fff;
  border: 1px solid rgba(192, 214, 223, 0.4);
  border-radius: 14px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 1rem 1.1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  font-weight: 700;
  color: var(--primary);
  margin-left: 1rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  background: #fff;
}

.faq-answer p {
  padding: 0 1.1rem 1rem;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.5;
}

/* estado activo */
.faq-card.active .faq-answer {
  max-height: 300px; /* suficiente para tu texto */
}

.faq-card.active .faq-icon {
  content: "-";
}

.hero-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-image img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.hero-name {
  margin-top: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  font-size: 1.1rem;
  line-height: 1.4;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-links img {
  width: 28px;
  height: 28px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  filter: brightness(0) saturate(100%) invert(22%) sepia(29%) saturate(921%) hue-rotate(156deg) brightness(95%) contrast(87%);
}

.social-links img:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

@media (max-width: 600px) {
  .social-links img {
    width: 24px;
    height: 24px;
  }
}