* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;

}

body {
  background: transparent;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ================== HEADER ================== */
.header {
  background: #0d1c63;
  position: sticky;
  top: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 100;
}

/* ================== NAVIGATION ================== */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}


.logo img {
  height: 50px;
}

/* ================== MENU ================== */
.menu ul {
  display: flex;
  list-style: none;
  gap: 35px;
}

.menu a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff;
  position: relative;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.3s ease, box-shadow 0.25s ease, background 0.25s ease;
}

/* ================== MENU ACTIVE ================== */
.menu a.active {
  background: rgba(0, 0, 0, 0.06);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* EFECTO HOVER: CUADRO CON SOMBRA */
.menu a:hover {
  background: rgba(0, 0, 0, 0.03);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 3px;
  background: #ffffff;
}

/* ================== MOBILE MENU ================== */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  background: #162376c9;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: all 0.35s ease;
  transform: translateY(-6px);
}

.mobile-menu a {
  padding: 15px;
  border-top: 1px solid #eee;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.mobile-menu.active {
  max-height: 300px;
  transform: translateY(0);
  opacity: 1;
}

/* ================== HERO ================== */
.hero-services-bg {
  background-image: url("/imagenes/banner2.png");
  background-size: cover;
  background-position: center 55%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(70deg, rgba(24, 41, 86, 0.4), rgba(30, 80, 216, 0.426));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* ================== RESPONSIVE HERO ================== */
@media (max-width: 768px) {
  .hero {
    background-image: url("/imagenes/banner2.png");
    height: 60vh;
    min-height: 380px;
  }
}

@media (max-width: 480px) {
  .hero {
    background-image: url("/imagenes/banner2.png");
    min-height: 360px;
    margin-top: 20px;
  }
}

/* ================== HERO SCROLL ARROW ================== */
.hero-scroll-arrow {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: arrowFloat 2.2s ease-in-out infinite;
  transition: background 0.3s ease, transform 0.3s ease;
  z-index: 5;
}

.hero-scroll-arrow i {
  font-size: 16px;
}

.hero-scroll-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateX(-50%) translateY(-3px);
}

@media (max-width: 768px) {
  .hero-scroll-arrow {
    bottom: 40px;
  }
}

/* ================== HERO ANIMATIONS ================== */
@keyframes arrowFloat {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

.hero-title {
  font-size: 48px;
  margin-bottom: 16px;
  animation: slideDown 1s ease-out forwards;
}

.hero-subtitle {
  font-size: 20px;
  opacity: 0;
  animation: slideUp 1s ease-out forwards;
  animation-delay: 0.4s;
}

/* ================== KEYFRAMES ================== */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================== SERVICES ================== */
.services {
  background: transparent;
  position: relative;
}

.services-container {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 80px 25px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.service-card {
  background: linear-gradient(13deg, rgba(65, 105, 225, 0.401), rgba(30, 59, 138, 0.334));
  backdrop-filter: blur(14px);
  border: 1.8px solid rgba(243, 242, 242, 0.44);
  box-shadow: 0 18px 20px rgba(138, 18, 46, 0.45);
  padding: 42px;
  border-radius: 10px;
  color: #ffffff;
  text-align: justify;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 400px;
  transition: all 0.35s ease;
}

.services,
.news {
  margin: 0;
  padding: 0;
}

.services-container,
.news {
  padding: 60px 25px;
}

.service-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ================== SERVICE CARD HOVER ================== */
@media (hover: hover) {
  .service-card:hover {
    box-shadow: 0 16px 45px rgba(37, 75, 180, 0.25);
    transform: translateY(-4px);
  }
}

/* ================== ICON ================== */
.icon {
  font-size: 40px;
  margin-bottom: 15px;
}

/* ================== NEWS SECTION RESPONSIVE ================== */
@media (max-width: 768px) {
  .news-section {
    grid-template-columns: 1fr;
    grid-template-areas:
      "testimonials"
      "news";
  }
}

/* ================== TESTIMONIAL SLIDE ================== */
@media (max-width: 768px) {
  .testimonial-slide.active {
    grid-template-columns: 1fr;
  }
}

.testimonial-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 25px;
}

.testimonial-slide.active {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

/* ===== TESTIMONIOS ===== */
.testimonials-container {
  height: 600px;
  background: rgba(65, 105, 225, 0.35);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  padding: 40px 30px;
  grid-area: testimonials;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border: 1.8px solid rgba(255, 255, 255, 0.44);
  box-shadow: 0 18px 40px rgba(37, 75, 180, 0.35);
}

.testimonials-container {
  grid-area: testimonials;
}

.news-container {
  grid-area: news;
}

.testimonials-title {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 25px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.testimonial-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.t-dot {
  width: 12px;
  height: 12px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.t-dot.active {
  background: #164a82ac;
}

.testimonial-name {
  font-weight: 600;
  text-align: center;
  color: #fff;
}

.testimonial-text {
  text-align: center;
  color: #eaeaea;
  margin: 15px 0;
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  color: #ffff;
}

.testimonial-stars i {
  color: #2f6cff;
}

@media (max-width: 768px) {
  .news-section {
    grid-template-columns: 1fr;
    grid-template-areas:
      "testimonials"
      "news";
  }

  .testimonials-container,
  .news-container {
    height: auto;
  }
}

@media (max-width: 768px) {

  .testimonials-container,
  .news-container {
    margin-bottom: 20px;
  }
}

/* NEWS */
.news-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 80px 25px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.news-container,
.testimonials-container {
  height: 600px;
  width: 100%;
  background: rgba(65, 105, 225, 0.35);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  padding: 50px 30px;
  border: 1.8px solid rgba(255, 255, 255, 0.44);
  box-shadow: 0 18px 40px rgba(37, 75, 180, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 🔑 Ajuste para móviles */
@media (max-width: 768px) {
  .news-container {
    width: 90%;
    margin: 0 auto;
    padding: 30px 20px;
  }
}

.news-slide {
  display: none;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 0 2px #c4a2a2;
  background: transparent;
  box-shadow: none;
  height: 100%;
}

.news-slide.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 340px;
  background: transparent;
  box-shadow: none;

}

.news-container {
  grid-area: news;
}

.news-content {
  color: #fefefe;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translateY(50px);
}

.news-content h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  justify-content: center;

}

.news-content p {
  opacity: 0.9;
  line-height: 1.6;
  text-align: justify;
}

.dots {
  margin-top: 20px;
  text-align: center;
}

.dot {
  height: 12px;
  width: 12px;
  background: #ccc;
  border-radius: 50%;
  display: inline-block;
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active {
  background: #164a82ac;
}

.dot:hover {
  background: #821616;
}

/* FOOTER */
.footer {
  background: #222;
  color: #999;
  font-size: 14px;
  padding: 40px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left .contact {
  font-weight: 600;
  margin-bottom: 10px;
}

.socials span {
  font-size: 20px;
  margin-right: 10px;
  color: #e9ebec;
}

.footer-right img {
  height: 45px;
}

.logfoo {
  max-width: 370px;
  width: 100%;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .logfoo {
    margin-top: 20px;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .footer-container {
    flex-direction: column;
    gap: 20px;
  }
}

.icon img {
  width: 48px;
  height: auto;
  margin-bottom: 15px;
}

/* ===== FIX ICONOS FOOTER (PNG GRANDES) ===== */
.footer .socials {
  display: flex;
  gap: 12px;
}

.footer .social-box {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.footer .social-box img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: invert(28%) sepia(95%) saturate(1700%) hue-rotate(210deg);
}

/* BOTÓN FLOTANTE WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 999;
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-float svg {
  width: 32px;
  fill: white;
}

/* ICONOS SVG */
.service-icon {
  width: 60px;
  margin-bottom: 20px;
}

@keyframes fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .news-slide.active {
    flex-direction: column;
  }
}

.news-image {
  width: 100%;
  height: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* ===== CONTACTO ===== */
.contact-body {
  background-image: url("/imagenes/banner2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  font-family: Arial, sans-serif;
}

.contact-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 120px 20px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  border: 1.8px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  padding: 40px;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
}

.contact-card h3 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 26px;
  color: #ffffff;
  text-shadow: 0 3px 7px rgba(0, 0, 0, 0.4);
}

.contact-card form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card input,
.contact-card textarea {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.85);
  color: #333;
}

.contact-card textarea {
  min-height: 120px;
  resize: none;
}

.contact-card button {
  padding: 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: rgba(55, 126, 206, 0.22);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.contact-card button:hover {
  background: rgba(7, 55, 103, 0.32);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .contact-section {
    padding: 80px 20px;
  }
}

/* ===== NOSOTROS ===== */
.nosotros-body {
  background-image: url("/imagenes/banner2.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
}

.nosotros-section {
  padding: 80px 0 40px;
  color: #ffffff;
}

.nosotros-section h2 {
  text-align: center;
  margin-bottom: 30px;
}

.nosotros-section p {
  max-width: 900px;
  margin: 0 auto 15px;
  text-align: center;
}

/* ===== SERVICIOS ===== */
.servicios-section {
  padding: 40px 0 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.servicio-banner {
  display: flex;
  gap: 30px;
  padding: 45px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  text-align: justify;
  transition: all 0.35s ease;
  font-size: 1.05rem;
  color: #ffffff;
}

.servicio-banner:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.015);
  box-shadow: 0 16px 40px rgba(37, 75, 180, 0.25);
}

.servicio-texto {
  flex: 1;
}

.servicio-texto h3 {
  margin-bottom: 15px;
  text-align: center;
}

.servicio-texto ul {
  margin-top: 15px;
  padding-left: 20px;
}

.servicio-texto ul li {
  margin-bottom: 8px;
}

.servicio-imagen,
.servicio-imagen1 {
  flex: 1;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  min-height: 220px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.servicio-imagen img,
.servicio-imagen1 img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {

  .servicio-imagen,
  .servicio-imagen1 {
    min-height: 180px;
    padding: 16px;
  }

  .servicio-imagen img,
  .servicio-imagen1 img {
    max-width: 85%;
    max-height: 85%;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .servicio-banner {
    flex-direction: column;
  }
}

/* ===== SECTION CTA ASESORÍA ===== */
/* CONTENEDOR */
.cta-asesoria {
  width: 100%;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
}

/* BOTÓN TIPO FLECHA (MISMO HERO) */
.scroll-btn {
  width: auto;
  height: auto;
  padding: 12px 45px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  animation: pulse 2.5s infinite;
  transition: all 0.3s ease;
}

/* TEXTO INTERNO */
.scroll-btn span {
  font-size: 20px;
  line-height: 1.2;
  padding: 8px;
}

/* HOVER */
.scroll-btn:hover {
  transform: translateY(4px);
  background: rgba(255, 255, 255, 0.28);
}

/* ANIMACIÓN PULSE */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  }

  70% {
    box-shadow: 0 0 0 18px rgba(255, 255, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* ===== BOTÓN ASESORÍA ===== */
.btn-asesoria {
  display: inline-block;
  background: #e5e7ea;
  color: #222;
  padding: 16px 36px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-asesoria:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.btn-asesoria:active {
  transform: translateY(2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .btn-asesoria {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
}

/* ===== FIX REAL DESKTOP + MOBILE NEWS / TESTIMONIOS ===== */
/* DESKTOP: forzar columnas */
@media (min-width: 769px) {
  .news-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .testimonials-container {
    grid-column: 1;
  }

  .news-container {
    grid-column: 2;
  }
}

/* MOBILE: uno debajo del otro */
@media (max-width: 768px) {
  .news-section {
    grid-template-columns: 1fr;
  }

  .testimonials-container {
    grid-column: 1;
  }

  .news-container {
    grid-column: 1;
  }
}

/* ================== HEADER SCROLL EFFECT ================== */
.header {
  transition:
    background 0.4s ease,
    opacity 0.4s ease,
    transform 0.4s ease;
}

/* Estado semitransparente */
.header.scrolled {
  background: rgba(13, 28, 99, 0.65);
  backdrop-filter: blur(8px);
}

/* Estado oculto */
.header.hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

/* BOTÓN SUBIR ARRIBA */
.scroll-top {
  position: fixed;
  bottom: 110px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: none;
  background: rgba(30, 144, 255, 0.75);
  /* transparente */
  color: #fff;
  font-size: 22px;

  cursor: pointer;
  z-index: 1000;
  display: none;

  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);

  animation: floatArrow 2s infinite ease-in-out;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hover */
.scroll-top:hover {
  opacity: 1;
  transform: translateY(-6px);
}

/* Flecha */
.scroll-top i {
  line-height: 1;
}

@keyframes floatArrow {
  0% {
    transform: translateY(0);
    opacity: 0.6;
  }

  50% {
    transform: translateY(-8px);
    opacity: 1;
  }

  100% {
    transform: translateY(0);
    opacity: 0.6;
  }
}

.footer-info {
  text-align: center;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 12px;
}

.footer .socials {
  justify-content: center;
  margin-bottom: 14px;
}

.footer-copy {
  margin: 10px 0 6px;
  font-size: 13px;
  color: #aaa;
}

.footer-dev {
  font-size: 12px;
  color: #777;
}

.footer-dev a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.footer-dev a:hover {
  text-decoration: underline;
}