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

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

a {
  color: #005baa;
  text-decoration: none;
  transition: 0.3s;
}
a:hover {
  color: #0070d1;
}

/* CONTENEDOR GENERAL */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 60px 0;
}

section h2 {
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
}

/* HEADER CON IMAGEN */
.hero-header {
  background: url('../img/header-bg.jpg') no-repeat center center/cover;
  height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  color: white;
}

.hero-header .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  z-index: 1;
}

.hero-header .container {
  position: relative;
  z-index: 2;
}

.header-content {
  text-align: center;
}
.header-content h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.header-content p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* NAVEGACIÓN */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
nav ul li a {
  color: white;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}
nav ul li a.active,
nav ul li a:hover {
  background-color: rgba(255,255,255,0.15);
}

/* INTRO */
.intro {
  padding: 4rem 0;
  background-color: white;
  text-align: center;
}
.intro h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.intro p {
  max-width: 700px;
  margin: auto;
  font-size: 1.1rem;
}

/* ENLACES ÚTILES */
.enlaces-utiles {
  padding: 3rem 0;
  background-color: #eaf1f7;
}
.enlaces-utiles h3 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
}
.enlaces-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.enlaces-grid a {
  background-color: white;
  padding: 1.2rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 500;
  transition: 0.3s;
}
.enlaces-grid a i {
  font-size: 1.5rem;
}
.enlaces-grid a:hover {
  background-color: white;
}

/* WHATSAPP FLOTANTE */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  padding: 15px;
  border-radius: 50%;
  font-size: 24px;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* BIENVENIDA */

.bienvenida {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}
.bienvenida h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.bienvenida p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* VALORES DIFERENCIADORES */
.valores {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
}
.valores-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}
.valor-item {
  background-color: #f0f4f8;
  padding: 30px;
  border-radius: 12px;
  width: 250px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.valor-item i {
  font-size: 2rem;
  color: #1d4ed8;
  margin-bottom: 1rem;
}
.valor-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* LLAMADO A LA ACCIÓN */
.cta {
  background-color: #fff;
  color: black;
  text-align: center;
  padding: 60px 20px;
}
.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.cta p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.btn-cta {
  display: inline-block;
  background-color: #f3f3f3;
  color: #1d4ed8;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}
.btn-cta:hover {
  background-color: #e0e7ff;
}

/* CONFIANZA */
.confianza {
  background-color: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}
.confianza h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.confianza p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ENLACES ÚTILES */
.enlaces-utiles {
  background-color: #fff;
  padding: 60px 20px;
  text-align: center;
}
.enlaces-utiles h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}
.enlaces-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}
.enlaces-grid a {
  text-decoration: none;
  color: #1d4ed8;
  font-weight: 500;
}
.enlaces-grid a i {
  margin-right: 8px;
}

/* FOOTER ROBUSTO */
footer {
  background-color: #111827;
  color: #d1d5db;
  padding: 40px 20px;
  text-align: center;
}
footer a {
  color: #60a5fa;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
footer p {
  margin: 5px 0;
  font-size: 0.95rem;
}

.img-responsive {
  max-width: 500px;
  width: 90%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  object-fit: cover;
    }

@media (max-width: 768px) {
  .img-responsive {
  max-width: 90%;
  }
}

    .valores img,
    .confianza img,
    .bienvenida img {
      max-height: 240px;
      object-fit: cover;
    }

/* SECCIONES PARA FUTURAS IMÁGENES */
.section-imagen {
  padding: 3rem 0;
  text-align: center;
}
.section-imagen img {
  width: 100%;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-header {
    height: 70vh;
    text-align: center;
  }

  .header-content h1 {
    font-size: 2.2rem;
  }

  nav ul {
    gap: 1rem;
    flex-direction: column;
    align-items: center;
  }

  .enlaces-grid {
    flex-direction: column;
    align-items: center;
  }
}

.servicios-destacados {
  background-color: white;
  padding: 4rem 0;
  text-align: center;
}

.servicios-destacados h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #005baa;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card-servicio img {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}


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

.card-servicio .icono {
  font-size: 2rem;
  color: #0070d1;
  margin-bottom: 1rem;
}

.servicios-detallados {
  background-color: #f9fbfd;
  padding: 80px 0 100px; /* espacio arriba y abajo */
}
/* Nosotros */
.nosotros-section {
  padding: 60px 0;
  background-color: #fff;
}

.nosotros-section.equipo-asesor {
  background-color: #f9fbfd;
  padding-top: 20px;
  padding-bottom: 60px;
}

.nosotros-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.foto-perfil img {
  max-width: 300px;
  max-height: 320px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.info-perfil {
  flex: 1;
  min-width: 280px;
}

.info-perfil h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.info-perfil ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

/* CONTACTO */
.contacto {
  background-color: #f9f9f9;
  padding: 60px 20px;
}

.contacto-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: flex-start;
}

.contacto-info {
  flex: 1;
  min-width: 300px;
}

.contacto-info img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
}

.contacto-info h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

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

.contacto-info ul li {
  margin: 0.5rem 0;
  font-size: 1.05rem;
}

.contacto-info ul li i {
  margin-right: 0.6rem;
  color: #1d4ed8;
}

.formulario-contacto {
  flex: 1;
  min-width: 300px;
}

form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

form input,
form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1.2rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

form button {
  background-color: #1d4ed8;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

form button:hover {
  background-color: #2563eb;
}

@media (max-width: 768px) {
  .contacto-flex {
    flex-direction: column;
  }
}

/* GRACIAS */
.gracias-box {
  max-width: 600px;
  margin: 80px auto 40px;
  padding: 3rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  text-align: center;
}

.gracias-box i {
  font-size: 4rem;
  color: #16a34a;
  margin-bottom: 1rem;
  animation: pop 0.5s ease-out forwards;
}

@keyframes pop {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.gracias-box h1 {
  font-size: 2.3rem;
  margin-bottom: 1rem;
  color: #1e3a8a;
}

.gracias-box p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #333;
}

.gracias-box .btn {
  display: inline-block;
  margin: 0.5rem;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-primary {
  background-color: #1d4ed8;
  color: white;
}

.btn-primary:hover {
  background-color: #1e40af;
}

.btn-secondary {
  background-color: #e2e8f0;
  color: #1e3a8a;
}

.btn-secondary:hover {
  background-color: #cbd5e1;
}

/* POLITICA PRIVACIDAD */
.privacidad {
  background-color: #f9f9f9;
  padding: 60px 20px;
}

.privacidad h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #1d4ed8;
}

.accordion {
  max-width: 900px;
  margin: 0 auto;
}

.accordion-item {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.accordion-header {
  padding: 1rem;
  background: #e0e7ff;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header i {
  transition: transform 0.3s;
}

.accordion-header.active i {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  background-color: white;
}

.btn-volver {
  display: inline-block;
  margin-top: 2rem;
  text-align: center;
  background-color: #1d4ed8;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.btn-volver:hover {
  background-color: #0e3fa0;
}

.img-privacidad {
  max-width: 180px;
  margin: 0 auto 2rem;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
  border-radius: 12px;
}
