/* =====================
   RESETEO GENERAL
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Times New Roman", Times, serif;
  background-color: #071739;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  text-align: left;
}

/* =====================
   HEADER
===================== */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 5px 30px;
  background-color: rgba(7, 23, 57, 0.95);
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);

  display: flex;
  justify-content: space-between; /* empuja logos extremo izquierda y derecha */
  align-items: center;             /* alinea verticalmente */
  z-index: 1000;
  height: auto; /* quita el 10% fijo */
}
.logo-img {
  height: 70px;        /* ajusta tamaño */
  width: auto;
  max-width: 100%;
}
.sublogo-img {
  height: 35px;        /* más pequeño que el logo principal */
  width: auto;
  max-width: 100%;
  transform: translateY(-10px)
}
/* tablets */
@media (max-width: 900px) {
  .logo-img {
    height: 60px;
  }
  .sublogo-img {
    height: 40px;
  }
}

/* móviles */
@media (max-width: 600px) {
  .logo-img {
    height: 50px;
  }
  .sublogo-img {
    height: 35px;
  }
}
/* Ocultar sublogo en móvil */
@media (max-width: 600px) {
  .sublogo-img {
    display: none;
  }
}

/* ====== NAVBAR ====== */
.navbar ul {
  display: flex;
  list-style: circle;
  gap: 35px;
  margin: 30px;
}

.navbar a {
  color: #fff; /* color de texto */
  text-decoration: none; /* sin subrayado */
  font-weight: 500; /* negrita */
  font-size: 1.1em; /* tamaño de fuente */
  transition: color 0.3s ease; /* transición suave */
}
/* ===== SOLO PARA MÓVILES ===== */
@media (max-width: 768px) {
  .navbar a {
    font-size: 1.5em; /* 🔹 Ajusta este valor según necesites */
  }
}
.navbar a:hover {
  color: #D9B660; 
}
/* ====== MENÚ HAMBURGUESA ====== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #D9B660;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

/* =====================
   SECCIONES GENERALES
===================== */
.section {
  padding: 120px 80px; /* Ajusta el padding para que no tape el header */
  position: relative;   /* clave para que overlay funcione */
  background-size: cover;  /* Ajusta el tamaño de la imagen de fondo */
  background-position: center;  /* Centra la imagen de fondo */
  background-repeat: no-repeat;
  color: white;
}

.overlay,
.overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.overlay {
  background: rgba(7, 23, 57, 0.4);
}

.overlay-dark {
  background: rgba(7, 23, 57, 0.65);
}

.section-title {
  text-align: center;
  font-size: 2em;
  margin-bottom: 50px;
  color: #D9B660;
  z-index: 2;
  position: relative;
}

/* =====================
   HERO / INICIO
===================== */
.section-bg-inicio {
  background-image: url('inicio.jpg');
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative; /* clave para que overlay funcione */
  background-size: cover;
  background-position: cover;
}

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

.hero-content h2 {
  font-size: 2.5em;
  color: #D9B660;
  margin-bottom: 20px;
}

.hero-content p {
  color: #f0f0f0;
  margin-bottom: 30px;
}

.btn {
  background-color: #D9B660;
  color: #071739;
  padding: 12px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #b9962c;
  transform: translateY(-3px);
}
/* AJUSTE MOBILE HERO */
@media (max-width: 768px) {
  .section-bg-inicio {
    padding-top: 140px;
    align-items: flex-start;
  }

  .hero-content {
    margin-top: 40px;
  }

  .hero-content h2 {
    line-height: 1.3;
  }
}
.hero-text-box {
  max-width: 900px;
  margin: 0 auto 20px auto;
  padding: 18px 20px;
  background: rgba(7, 23, 57, 0.75);
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.hero-text-box p {
  color: #f0f0f0;
  line-height: 1.5;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 1.2rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-text-box {
    width: 92%;
    padding: 15px;
  }

  .hero-text-box p {
    font-size: 1.2rem;
    line-height: 1.4;
  }
}
/* =====================
   Nuestra Esencia
===================== */
/* ===== SECCIÓN NUESTRA ESENCIA ===== */
.section-bg-esencia {
  background: linear-gradient(120deg, #081126 0%, #0a1837 40%, #0b276e 100%);
  background-blend-mode: lighten;
  backdrop-filter: blur(10px);
  padding: 100px 40px;
  text-align: center;
  color: #CDD5DB;
}

.container-esencia {
  max-width: 1100px;
  margin: 0 auto;
}

.titulo-esencia {
  font-size: 2.5rem;
  color: #D9B660;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.subtitulo-esencia {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 50px;
}

/* ===== Tarjetas escritorio ===== */
.cards-esencia {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  flex-wrap: wrap;
}

/* ===== Base de la card ===== */
.card-esencia {
  position: relative;
  flex: 1 1 300px;
  max-width: 330px;
  padding: 40px 25px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);

  /* Imagen de fondo (se mezclará con el blur) */
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;

  /* Mantiene el efecto glass */
  background-color: rgba(7, 23, 57, 0.35);
  transition: all 0.3s ease;
}

/* ===== Hover (se mantiene como lo tienes) ===== */
.card-esencia:hover {
  transform: translateY(-6px);
  /* Azul tenue translúcido */
  background: linear-gradient(135deg, #5c9eff, #94bfff);/* ← Ajusta la opacidad si quieres */
  border-color: rgba(92,158,255,0.2); /* opcional, para que el borde también brille */
}

/* ===== Contenido interno ===== */
.icono-esencia {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #6FB1FC;
}

.card-esencia h3 {
  font-size: 1.3rem;
  color: #D9B660;
  margin-bottom: 15px;
}

.card-esencia p {
  font-size: 1rem;
  color: white;
  line-height: 1.6;
}

/* ===== IMÁGENES POR CARD ===== */
/* Solo asigna la imagen que quieras a cada card */
.esencia-mision {
  background-image: url('mision.jpg');
}

.esencia-vision {
  background-image: url('vision.jpg');
}

.esencia-objetivo {
  background-image: url('objetivo.jpg');
}



/* ===== Botones CTA móvil ===== */
.cta-esencia {
  display: none;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.cta-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #FFFFFF;
  font-size: 1.1rem;
  padding: 15px 30px;
  width: 80%;
  max-width: 350px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: linear-gradient(135deg, #5c9eff, #94bfff);
  transform: scale(1.03);
}

/* ===== MODALES ===== */
.modal-esencia {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content-esencia {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: #FFFFFF;
  margin: 15% auto;
  padding: 30px 20px;
  max-width: 90%;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.modal-content-esencia h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.modal-content-esencia p {
  font-size: 1rem;
  color: #C0CBD3;
  line-height: 1.6;
}

.cerrar-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.cerrar-modal:hover {
  color: #6FB1FC;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-only { display: flex; }

  .titulo-esencia {
    font-size: 2rem;
  }
  .subtitulo-esencia {
    font-size: 1rem;
  }
}
/* =====================
   SECCIÓN SERVICIOS - FONDO CON IMAGEN + OVERLAY
===================== */
.section-bg-servicios {
  position: relative;
  background-image: url('servicios.jpg'); /* Ajusta la ruta */
  background-size: cover;
  background-position: center;
  padding: 100px 40px;
  text-align: center;
  overflow: hidden; /* <- Asegura que el overlay no se salga */
}

/* Overlay */
.overlay-dark {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* 🔥 más opaco (0.55 = 55% negro) */
  z-index: 1;
  pointer-events: none; /* no bloquea clics */
}

/* Contenido por encima */
.section-bg-servicios > * {
  position: relative;
  z-index: 2;
}

/* CONTENEDOR DE CARDS */
.cards-servicios {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  margin-top: 40px
}
/* CARD INDIVIDUAL */
.card-servicio {
  background: rgba(111, 177, 252, 0.18); /* ← Ajusta la opacidad si quieres */
  border-color: rgba(111, 177, 252, 0.35);
  border-radius: 200px;
  padding: 30px;
  width: 300px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.card-servicio:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}
/* =====================
   TESTIMONIOS - SLIDER CENTRADO CON FONDO
===================== */
.section-bg-testimonios {
  position: relative;
  background-image: url('testimonios.jpg'); /* 👉 tu imagen en la raíz */
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 100px 40px;
  text-align: center;
  overflow: hidden;
}

/* Capa oscura encima del fondo */
.section-bg-testimonios::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* efecto overlay */
  z-index: 1;
}

/* Asegura que todo el contenido quede por encima del overlay */
.section-bg-testimonios > * {
  position: relative;
  z-index: 2;
}


.slider-testimonios {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.track-testimonios {
  display: flex;
  gap: 30px;
  transition: transform 0.8s ease-in-out;
  will-change: transform;
}

.card-testimonio {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 25px;
  min-width: calc(33.333% - 20px);
  text-align: center;
  backdrop-filter: blur(10px);
  color: #f0f0f0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.card-testimonio:hover {
  transform: scale(1.02);
}

.card-testimonio span {
  display: block;
  margin-top: 15px;
  color: #D9B660;
  font-weight: 600;
}

/* Controles inferiores */
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.carousel-controls button {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: background 0.3s;
}

.carousel-controls button:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .card-testimonio {
    min-width: 90%;
  }
}
/* ===== BOTÓN "X" PARA ELIMINAR CARDS ===== */
.card-testimonio {
  position: relative;
  overflow: hidden;
}

.card-testimonio .delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  line-height: 25px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
  z-index: 5;
}

.card-testimonio:hover .delete-btn {
  opacity: 1;
}

.card-testimonio .delete-btn:hover {
  background: rgba(255, 0, 0, 0.6);
}
/* ===== BOTÓN RESTAURAR TESTIMONIOS ===== */
.restore-testimonios {
  position: absolute;
  bottom: 0px;
  right: 25px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.4rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  opacity: 0.6;
  z-index: 5;
}

.restore-testimonios:hover {
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
  transform: rotate(180deg);
}

/* En pantallas pequeñas, más pequeño y menos intrusivo */
@media (max-width: 600px) {
  .restore-testimonios {
    width: auto;
    height: auto;
    font-size: 1.1rem;
  }
}



/* =====================
   AGENDA
===================== */
.section-bg-agenda {
  background-image: url('agenda.jpg');
}

.agenda-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  flex-wrap: wrap;
  z-index: 2;
  position: relative;
}

.agenda-info {
  flex: 1;
  text-align: center;
}

.calendario-btn {
  margin-top: 25px;
  padding: 12px 32px;
  background-color: ##D9B660;
  color: #071739;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calendario-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

.contact-form {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-family: inherit;
}

.contact-form button {
  background-color: #D9B660;
  color: #071739;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background-color: #b9962c;
}
/* ===== CONTENEDOR PRINCIPAL ===== */
.contact-container {
  display: flex;
  align-items: center; /* centra verticalmente las columnas en escritorio */
  justify-content: space-between;
  gap: 60px;
  margin-top: 0;
  flex-wrap: wrap; /* para mobile se adapte */
  position: relative;
  z-index: 2;
}

/* ===== CONTACTO ===== */
.contact-info {
  flex: 1 1 300px;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.6;
  /* margen vertical para ajustar posición en escritorio */
  margin-top: 0;
}

/* ===== LOGO ===== */
.logo-despacho {
  flex: 0 0 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.35; /* desvanecido inicial */
  transition: opacity 0.4s ease, transform 0.3s ease;
}

.logo-despacho img {
  max-width: 100%;
  height: auto;
}

.logo-despacho:hover {
  opacity: 1; /* se "enciende" al hover */
  transform: scale(1.05); /* ligero zoom al pasar mouse */
}

/* ===== MAPA ===== */
.map-container {
  flex: 1 1 300px;
  min-width: 250px;
  border-radius: 12px;
  overflow: hidden;
}

/* ===== SECCIÓN FONDO ===== */
.section-bg-contacto {
  background: linear-gradient(120deg, #081126 0%, #0a1837 40%, #0b276e 100%);
  background-blend-mode: lighten;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .contact-container {
    flex-direction: column;
    gap: 0; /* eliminamos gap entre columnas */
    text-align: left;
  }

  .map-container {
    order: 1; /* primero */
    margin-bottom: 10px; /* espacio debajo del mapa */
  }

  .contact-info {
    order: 2; /* después del mapa */
    margin-top: 0;    /* elimina margen superior */
    margin-bottom: 5px; /* margen mínimo debajo */
  }

  .logo-despacho {
    order: 3; /* después de la info */
    margin-top: 5px;  /* margen mínimo encima */
    margin-bottom: 0; /* elimina margen inferior */
    opacity: 0.35;
  }
}



/* =====================
   WHATSAPP FLOAT
===================== */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  z-index: 200;
  transition: transform 0.3s ease;
}

.whatsapp-float img {
  width: 45px;
  height: 45px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* =====================
   FOOTER
===================== */
footer {
  background-color: rgba(7, 23, 57, 0.95);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding: 25px 10px;
  color: #ccc;
  font-size: 0.9em;
  width: 100%;
}

footer .creditos {
  margin-top: 8px;
  color: #D9B660;
  font-weight: 600;
}
footer a {
  color: #D9B660;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* =====================
   EFECTO GOLD GLOW
===================== */
@keyframes gold-glow {
  0% { box-shadow: 0 0 8px rgba(212,175,55,0.3); }
  50% { box-shadow: 0 0 20px rgba(212,175,55,0.8); }
  100% { box-shadow: 0 0 8px rgba(212,175,55,0.3); }
}

.card:hover, 
.btn:hover {
  animation: gold-glow 1.8s infinite ease-in-out;
}

/* =====================
   RESPONSIVE Ajusta back de lista de contenido de menu de hamburguesa y secciones
===================== */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    padding: 15px 25px;
  }

  .navbar ul {
    position: fixed;
    top: 0;
    right: -70%;
    height: 100vh;
    width: 70%;
    background: linear-gradient(135deg, #5c9eff, #94bfff);
    border-left: linear-gradient(135deg, #5c9eff, #94bfff);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin: 0;
    padding: 0;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .navbar ul.active {
    right: 0;
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    top: 25px;
    right: 25px;
  }

  .section {
    padding: 90px 30px;
  }

  .cards,
  .agenda-container,
  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-form,
  .contact-info {
    width: 100%;
  }
}
/* ===== MODAL DE CONFIRMACIÓN DE ENVIO DE DATOS===== */
.modal-enviado {
  display: none; /* oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.modal-enviado .modal-content {
  background: linear-gradient(135deg, #5c9eff, #94bfff);
  border: linear-gradient(135deg, #5c9eff, #94bfff);
  color: #fff;
  padding: 30px 40px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  max-width: 400px;
}

.modal-enviado h2 {
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.modal-enviado p {
  font-size: 1rem;
}

.modal-enviado .cerrar-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #D9B660;
  font-weight: bold;
}








/* =====================
   RESETEO GENERAL
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Times New Roman", Times, serif;
  background-color: #071739;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  text-align: left;
}

/* =====================
   HEADER
===================== */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 5px 30px;
  background-color: rgba(7, 23, 57, 0.95);
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);

  display: flex;
  justify-content: space-between; /* empuja logos extremo izquierda y derecha */
  align-items: center;             /* alinea verticalmente */
  z-index: 1000;
  height: auto; /* quita el 10% fijo */
}
.logo-img {
  height: 70px;        /* ajusta tamaño */
  width: auto;
  max-width: 100%;
}
.sublogo-img {
  height: 35px;        /* más pequeño que el logo principal */
  width: auto;
  max-width: 100%;
  transform: translateY(-10px)
}
/* tablets */
@media (max-width: 900px) {
  .logo-img {
    height: 60px;
  }
  .sublogo-img {
    height: 40px;
  }
}

/* móviles */
@media (max-width: 600px) {
  .logo-img {
    height: 50px;
  }
  .sublogo-img {
    height: 35px;
  }
}
/* Ocultar sublogo en móvil */
@media (max-width: 600px) {
  .sublogo-img {
    display: none;
  }
}

/* ====== NAVBAR ====== */
.navbar ul {
  display: flex;
  list-style: circle;
  gap: 35px;
  margin: 30px;
}

.navbar a {
  color: #fff; /* color de texto */
  text-decoration: none; /* sin subrayado */
  font-weight: 500; /* negrita */
  font-size: 1.1em; /* tamaño de fuente */
  transition: color 0.3s ease; /* transición suave */
}
/* ===== SOLO PARA MÓVILES ===== */
@media (max-width: 768px) {
  .navbar a {
    font-size: 1.5em; /* 🔹 Ajusta este valor según necesites */
  }
}
.navbar a:hover {
  color: #D9B660; 
}
/* ====== MENÚ HAMBURGUESA ====== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #D9B660;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

/* =====================
   SECCIONES GENERALES
===================== */
.section {
  padding: 120px 80px; /* Ajusta el padding para que no tape el header */
  position: relative;   /* clave para que overlay funcione */
  background-size: cover;  /* Ajusta el tamaño de la imagen de fondo */
  background-position: center;  /* Centra la imagen de fondo */
  background-repeat: no-repeat;
  color: white;
}

.overlay,
.overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.overlay {
  background: rgba(7, 23, 57, 0.4);
}

.overlay-dark {
  background: rgba(7, 23, 57, 0.65);
}

.section-title {
  text-align: center;
  font-size: 2em;
  margin-bottom: 50px;
  color: #D9B660;
  z-index: 2;
  position: relative;
}

/* =====================
   HERO / INICIO
===================== */
.section-bg-inicio {
  background-image: url('inicio.jpg');
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative; /* clave para que overlay funcione */
  background-size: cover;
  background-position: cover;
}

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

.hero-content h2 {
  font-size: 2.5em;
  color: #D9B660;
  margin-bottom: 20px;
}

.hero-content p {
  color: #f0f0f0;
  margin-bottom: 30px;
}

.btn {
  background-color: #D9B660;
  color: #071739;
  padding: 12px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #b9962c;
  transform: translateY(-3px);
}
/* AJUSTE MOBILE HERO */
@media (max-width: 768px) {
  .section-bg-inicio {
    padding-top: 140px;
    align-items: flex-start;
  }

  .hero-content {
    margin-top: 40px;
  }

  .hero-content h2 {
    line-height: 1.3;
  }
}
.hero-text-box {
  max-width: 900px;
  margin: 0 auto 20px auto;
  padding: 18px 20px;
  background: rgba(7, 23, 57, 0.75);
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.hero-text-box p {
  color: #f0f0f0;
  line-height: 1.5;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 1.2rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-text-box {
    width: 92%;
    padding: 15px;
  }

  .hero-text-box p {
    font-size: 1.2rem;
    line-height: 1.4;
  }
}
/* =====================
   Nuestra Esencia
===================== */
/* ===== SECCIÓN NUESTRA ESENCIA ===== */
.section-bg-esencia {
  background: linear-gradient(120deg, #081126 0%, #0a1837 40%, #0b276e 100%);
  background-blend-mode: lighten;
  backdrop-filter: blur(10px);
  padding: 100px 40px;
  text-align: center;
  color: #CDD5DB;
}

.container-esencia {
  max-width: 1100px;
  margin: 0 auto;
}

.titulo-esencia {
  font-size: 2.5rem;
  color: #D9B660;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.subtitulo-esencia {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 50px;
}

/* ===== Tarjetas escritorio ===== */
.cards-esencia {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  flex-wrap: wrap;
}

/* ===== Base de la card ===== */
.card-esencia {
  position: relative;
  flex: 1 1 300px;
  max-width: 330px;
  padding: 40px 25px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);

  /* Imagen de fondo (se mezclará con el blur) */
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;

  /* Mantiene el efecto glass */
  background-color: rgba(7, 23, 57, 0.35);
  transition: all 0.3s ease;
}

/* ===== Hover (se mantiene como lo tienes) ===== */
.card-esencia:hover {
  transform: translateY(-6px);
  /* Azul tenue translúcido */
  background: linear-gradient(135deg, #5c9eff, #94bfff);/* ← Ajusta la opacidad si quieres */
  border-color: rgba(92,158,255,0.2); /* opcional, para que el borde también brille */
}

/* ===== Contenido interno ===== */
.icono-esencia {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #6FB1FC;
}

.card-esencia h3 {
  font-size: 1.3rem;
  color: #D9B660;
  margin-bottom: 15px;
}

.card-esencia p {
  font-size: 1rem;
  color: white;
  line-height: 1.6;
}

/* ===== IMÁGENES POR CARD ===== */
/* Solo asigna la imagen que quieras a cada card */
.esencia-mision {
  background-image: url('mision.jpg');
}

.esencia-vision {
  background-image: url('vision.jpg');
}

.esencia-objetivo {
  background-image: url('objetivo.jpg');
}



/* ===== Botones CTA móvil ===== */
.cta-esencia {
  display: none;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.cta-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #FFFFFF;
  font-size: 1.1rem;
  padding: 15px 30px;
  width: 80%;
  max-width: 350px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: linear-gradient(135deg, #5c9eff, #94bfff);
  transform: scale(1.03);
}

/* ===== MODALES ===== */
.modal-esencia {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content-esencia {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: #FFFFFF;
  margin: 15% auto;
  padding: 30px 20px;
  max-width: 90%;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.modal-content-esencia h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.modal-content-esencia p {
  font-size: 1rem;
  color: #C0CBD3;
  line-height: 1.6;
}

.cerrar-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.cerrar-modal:hover {
  color: #6FB1FC;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-only { display: flex; }

  .titulo-esencia {
    font-size: 2rem;
  }
  .subtitulo-esencia {
    font-size: 1rem;
  }
}
/* =====================
   SECCIÓN SERVICIOS - FONDO CON IMAGEN + OVERLAY
===================== */
.section-bg-servicios {
  position: relative;
  background-image: url('servicios.jpg'); /* Ajusta la ruta */
  background-size: cover;
  background-position: center;
  padding: 100px 40px;
  text-align: center;
  overflow: hidden; /* <- Asegura que el overlay no se salga */
}

/* Overlay */
.overlay-dark {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* 🔥 más opaco (0.55 = 55% negro) */
  z-index: 1;
  pointer-events: none; /* no bloquea clics */
}

/* Contenido por encima */
.section-bg-servicios > * {
  position: relative;
  z-index: 2;
}

/* CONTENEDOR DE CARDS */
.cards-servicios {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  margin-top: 40px
}
/* CARD INDIVIDUAL */
.card-servicio {
  background: rgba(111, 177, 252, 0.18); /* ← Ajusta la opacidad si quieres */
  border-color: rgba(111, 177, 252, 0.35);
  border-radius: 200px;
  padding: 30px;
  width: 300px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.card-servicio:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}
/* =====================
   TESTIMONIOS - SLIDER CENTRADO CON FONDO
===================== */
.section-bg-testimonios {
  position: relative;
  background-image: url('testimonios.jpg'); /* 👉 tu imagen en la raíz */
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 100px 40px;
  text-align: center;
  overflow: hidden;
}

/* Capa oscura encima del fondo */
.section-bg-testimonios::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* efecto overlay */
  z-index: 1;
}

/* Asegura que todo el contenido quede por encima del overlay */
.section-bg-testimonios > * {
  position: relative;
  z-index: 2;
}


.slider-testimonios {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.track-testimonios {
  display: flex;
  gap: 30px;
  transition: transform 0.8s ease-in-out;
  will-change: transform;
}

.card-testimonio {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 25px;
  min-width: calc(33.333% - 20px);
  text-align: center;
  backdrop-filter: blur(10px);
  color: #f0f0f0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.card-testimonio:hover {
  transform: scale(1.02);
}

.card-testimonio span {
  display: block;
  margin-top: 15px;
  color: #D9B660;
  font-weight: 600;
}

/* Controles inferiores */
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.carousel-controls button {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: background 0.3s;
}

.carousel-controls button:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .card-testimonio {
    min-width: 90%;
  }
}
/* ===== BOTÓN "X" PARA ELIMINAR CARDS ===== */
.card-testimonio {
  position: relative;
  overflow: hidden;
}

.card-testimonio .delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  line-height: 25px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
  z-index: 5;
}

.card-testimonio:hover .delete-btn {
  opacity: 1;
}

.card-testimonio .delete-btn:hover {
  background: rgba(255, 0, 0, 0.6);
}
/* ===== BOTÓN RESTAURAR TESTIMONIOS ===== */
.restore-testimonios {
  position: absolute;
  bottom: 0px;
  right: 25px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.4rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  opacity: 0.6;
  z-index: 5;
}

.restore-testimonios:hover {
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
  transform: rotate(180deg);
}

/* En pantallas pequeñas, más pequeño y menos intrusivo */
@media (max-width: 600px) {
  .restore-testimonios {
    width: auto;
    height: auto;
    font-size: 1.1rem;
  }
}



/* =====================
   AGENDA
===================== */
.section-bg-agenda {
  background-image: url('agenda.jpg');
}

.agenda-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  flex-wrap: wrap;
  z-index: 2;
  position: relative;
}

.agenda-info {
  flex: 1;
  text-align: center;
}

.calendario-btn {
  margin-top: 25px;
  padding: 12px 32px;
  background-color: ##D9B660;
  color: #071739;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calendario-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

.contact-form {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-family: inherit;
}

.contact-form button {
  background-color: #D9B660;
  color: #071739;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background-color: #b9962c;
}
/* ===== CONTENEDOR PRINCIPAL ===== */
.contact-container {
  display: flex;
  align-items: center; /* centra verticalmente las columnas en escritorio */
  justify-content: space-between;
  gap: 60px;
  margin-top: 0;
  flex-wrap: wrap; /* para mobile se adapte */
  position: relative;
  z-index: 2;
}

/* ===== CONTACTO ===== */
.contact-info {
  flex: 1 1 300px;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.6;
  /* margen vertical para ajustar posición en escritorio */
  margin-top: 0;
}

/* ===== LOGO ===== */
.logo-despacho {
  flex: 0 0 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.35; /* desvanecido inicial */
  transition: opacity 0.4s ease, transform 0.3s ease;
}

.logo-despacho img {
  max-width: 100%;
  height: auto;
}

.logo-despacho:hover {
  opacity: 1; /* se "enciende" al hover */
  transform: scale(1.05); /* ligero zoom al pasar mouse */
}

/* ===== MAPA ===== */
.map-container {
  flex: 1 1 300px;
  min-width: 250px;
  border-radius: 12px;
  overflow: hidden;
}

/* ===== SECCIÓN FONDO ===== */
.section-bg-contacto {
  background: linear-gradient(120deg, #081126 0%, #0a1837 40%, #0b276e 100%);
  background-blend-mode: lighten;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .contact-container {
    flex-direction: column;
    gap: 0; /* eliminamos gap entre columnas */
    text-align: left;
  }

  .map-container {
    order: 1; /* primero */
    margin-bottom: 10px; /* espacio debajo del mapa */
  }

  .contact-info {
    order: 2; /* después del mapa */
    margin-top: 0;    /* elimina margen superior */
    margin-bottom: 5px; /* margen mínimo debajo */
  }

  .logo-despacho {
    order: 3; /* después de la info */
    margin-top: 5px;  /* margen mínimo encima */
    margin-bottom: 0; /* elimina margen inferior */
    opacity: 0.35;
  }
}



/* =====================
   WHATSAPP FLOAT
===================== */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  z-index: 200;
  transition: transform 0.3s ease;
}

.whatsapp-float img {
  width: 45px;
  height: 45px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* =====================
   FOOTER
===================== */
footer {
  background-color: rgba(7, 23, 57, 0.95);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding: 25px 10px;
  color: #ccc;
  font-size: 0.9em;
  width: 100%;
}

footer .creditos {
  margin-top: 8px;
  color: #D9B660;
  font-weight: 600;
}
footer a {
  color: #D9B660;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* =====================
   EFECTO GOLD GLOW
===================== */
@keyframes gold-glow {
  0% { box-shadow: 0 0 8px rgba(212,175,55,0.3); }
  50% { box-shadow: 0 0 20px rgba(212,175,55,0.8); }
  100% { box-shadow: 0 0 8px rgba(212,175,55,0.3); }
}

.card:hover, 
.btn:hover {
  animation: gold-glow 1.8s infinite ease-in-out;
}

/* =====================
   RESPONSIVE Ajusta back de lista de contenido de menu de hamburguesa y secciones
===================== */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    padding: 15px 25px;
  }

  .navbar ul {
    position: fixed;
    top: 0;
    right: -70%;
    height: 100vh;
    width: 70%;
    background: linear-gradient(135deg, #5c9eff, #94bfff);
    border-left: linear-gradient(135deg, #5c9eff, #94bfff);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin: 0;
    padding: 0;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .navbar ul.active {
    right: 0;
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    top: 25px;
    right: 25px;
  }

  .section {
    padding: 90px 30px;
  }

  .cards,
  .agenda-container,
  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-form,
  .contact-info {
    width: 100%;
  }
}
/* ===== MODAL DE CONFIRMACIÓN DE ENVIO DE DATOS===== */
.modal-enviado {
  display: none; /* oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.modal-enviado .modal-content {
  background: linear-gradient(135deg, #5c9eff, #94bfff);
  border: linear-gradient(135deg, #5c9eff, #94bfff);
  color: #fff;
  padding: 30px 40px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  max-width: 400px;
}

.modal-enviado h2 {
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.modal-enviado p {
  font-size: 1rem;
}

.modal-enviado .cerrar-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #D9B660;
  font-weight: bold;
}








/* =====================
   RESETEO GENERAL
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Times New Roman", Times, serif;
  background-color: #071739;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  text-align: left;
}

/* =====================
   HEADER
===================== */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 5px 30px;
  background-color: rgba(7, 23, 57, 0.95);
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);

  display: flex;
  justify-content: space-between; /* empuja logos extremo izquierda y derecha */
  align-items: center;             /* alinea verticalmente */
  z-index: 1000;
  height: auto; /* quita el 10% fijo */
}
.logo-img {
  height: 70px;        /* ajusta tamaño */
  width: auto;
  max-width: 100%;
}
.sublogo-img {
  height: 35px;        /* más pequeño que el logo principal */
  width: auto;
  max-width: 100%;
  transform: translateY(-10px)
}
/* tablets */
@media (max-width: 900px) {
  .logo-img {
    height: 60px;
  }
  .sublogo-img {
    height: 40px;
  }
}

/* móviles */
@media (max-width: 600px) {
  .logo-img {
    height: 50px;
  }
  .sublogo-img {
    height: 35px;
  }
}
/* Ocultar sublogo en móvil */
@media (max-width: 600px) {
  .sublogo-img {
    display: none;
  }
}

/* ====== NAVBAR ====== */
.navbar ul {
  display: flex;
  list-style: circle;
  gap: 35px;
  margin: 30px;
}

.navbar a {
  color: #fff; /* color de texto */
  text-decoration: none; /* sin subrayado */
  font-weight: 500; /* negrita */
  font-size: 1.1em; /* tamaño de fuente */
  transition: color 0.3s ease; /* transición suave */
}
/* ===== SOLO PARA MÓVILES ===== */
@media (max-width: 768px) {
  .navbar a {
    font-size: 1.5em; /* 🔹 Ajusta este valor según necesites */
  }
}
.navbar a:hover {
  color: #D9B660; 
}
/* ====== MENÚ HAMBURGUESA ====== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #D9B660;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

/* =====================
   SECCIONES GENERALES
===================== */
.section {
  padding: 120px 80px; /* Ajusta el padding para que no tape el header */
  position: relative;   /* clave para que overlay funcione */
  background-size: cover;  /* Ajusta el tamaño de la imagen de fondo */
  background-position: center;  /* Centra la imagen de fondo */
  background-repeat: no-repeat;
  color: white;
}

.overlay,
.overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.overlay {
  background: rgba(7, 23, 57, 0.4);
}

.overlay-dark {
  background: rgba(7, 23, 57, 0.65);
}

.section-title {
  text-align: center;
  font-size: 2em;
  margin-bottom: 50px;
  color: #D9B660;
  z-index: 2;
  position: relative;
}

/* =====================
   HERO / INICIO
===================== */
.section-bg-inicio {
  background-image: url('inicio.jpg');
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative; /* clave para que overlay funcione */
  background-size: cover;
  background-position: cover;
}

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

.hero-content h2 {
  font-size: 2.5em;
  color: #D9B660;
  margin-bottom: 20px;
}

.hero-content p {
  color: #f0f0f0;
  margin-bottom: 30px;
}

.btn {
  background-color: #D9B660;
  color: #071739;
  padding: 12px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #b9962c;
  transform: translateY(-3px);
}
/* AJUSTE MOBILE HERO */
@media (max-width: 768px) {
  .section-bg-inicio {
    padding-top: 140px;
    align-items: flex-start;
  }

  .hero-content {
    margin-top: 40px;
  }

  .hero-content h2 {
    line-height: 1.3;
  }
}
.hero-text-box {
  max-width: 900px;
  margin: 0 auto 20px auto;
  padding: 18px 20px;
  background: rgba(7, 23, 57, 0.75);
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.hero-text-box p {
  color: #f0f0f0;
  line-height: 1.5;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 1.2rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-text-box {
    width: 92%;
    padding: 15px;
  }

  .hero-text-box p {
    font-size: 1.2rem;
    line-height: 1.4;
  }
}
/* =====================
   Nuestra Esencia
===================== */
/* ===== SECCIÓN NUESTRA ESENCIA ===== */
.section-bg-esencia {
  background: linear-gradient(120deg, #081126 0%, #0a1837 40%, #0b276e 100%);
  background-blend-mode: lighten;
  backdrop-filter: blur(10px);
  padding: 100px 40px;
  text-align: center;
  color: #CDD5DB;
}

.container-esencia {
  max-width: 1100px;
  margin: 0 auto;
}

.titulo-esencia {
  font-size: 2.5rem;
  color: #D9B660;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.subtitulo-esencia {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 50px;
}

/* ===== Tarjetas escritorio ===== */
.cards-esencia {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  flex-wrap: wrap;
}

/* ===== Base de la card ===== */
.card-esencia {
  position: relative;
  flex: 1 1 300px;
  max-width: 330px;
  padding: 40px 25px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);

  /* Imagen de fondo (se mezclará con el blur) */
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;

  /* Mantiene el efecto glass */
  background-color: rgba(7, 23, 57, 0.35);
  transition: all 0.3s ease;
}

/* ===== Hover (se mantiene como lo tienes) ===== */
.card-esencia:hover {
  transform: translateY(-6px);
  /* Azul tenue translúcido */
  background: linear-gradient(135deg, #5c9eff, #94bfff);/* ← Ajusta la opacidad si quieres */
  border-color: rgba(92,158,255,0.2); /* opcional, para que el borde también brille */
}

/* ===== Contenido interno ===== */
.icono-esencia {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #6FB1FC;
}

.card-esencia h3 {
  font-size: 1.3rem;
  color: #D9B660;
  margin-bottom: 15px;
}

.card-esencia p {
  font-size: 1rem;
  color: white;
  line-height: 1.6;
}

/* ===== IMÁGENES POR CARD ===== */
/* Solo asigna la imagen que quieras a cada card */
.esencia-mision {
  background-image: url('mision.jpg');
}

.esencia-vision {
  background-image: url('vision.jpg');
}

.esencia-objetivo {
  background-image: url('objetivo.jpg');
}



/* ===== Botones CTA móvil ===== */
.cta-esencia {
  display: none;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.cta-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #FFFFFF;
  font-size: 1.1rem;
  padding: 15px 30px;
  width: 80%;
  max-width: 350px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: linear-gradient(135deg, #5c9eff, #94bfff);
  transform: scale(1.03);
}

/* ===== MODALES ===== */
.modal-esencia {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content-esencia {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: #FFFFFF;
  margin: 15% auto;
  padding: 30px 20px;
  max-width: 90%;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.modal-content-esencia h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.modal-content-esencia p {
  font-size: 1rem;
  color: #C0CBD3;
  line-height: 1.6;
}

.cerrar-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.cerrar-modal:hover {
  color: #6FB1FC;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-only { display: flex; }

  .titulo-esencia {
    font-size: 2rem;
  }
  .subtitulo-esencia {
    font-size: 1rem;
  }
}
/* =====================
   SECCIÓN SERVICIOS - FONDO CON IMAGEN + OVERLAY
===================== */
.section-bg-servicios {
  position: relative;
  background-image: url('servicios.jpg'); /* Ajusta la ruta */
  background-size: cover;
  background-position: center;
  padding: 100px 40px;
  text-align: center;
  overflow: hidden; /* <- Asegura que el overlay no se salga */
}

/* Overlay */
.overlay-dark {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* 🔥 más opaco (0.55 = 55% negro) */
  z-index: 1;
  pointer-events: none; /* no bloquea clics */
}

/* Contenido por encima */
.section-bg-servicios > * {
  position: relative;
  z-index: 2;
}

/* CONTENEDOR DE CARDS */
.cards-servicios {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  margin-top: 40px
}
/* CARD INDIVIDUAL */
.card-servicio {
  background: rgba(111, 177, 252, 0.18); /* ← Ajusta la opacidad si quieres */
  border-color: rgba(111, 177, 252, 0.35);
  border-radius: 200px;
  padding: 30px;
  width: 300px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.card-servicio:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}
/* =====================
   TESTIMONIOS - SLIDER CENTRADO CON FONDO
===================== */
.section-bg-testimonios {
  position: relative;
  background-image: url('testimonios.jpg'); /* 👉 tu imagen en la raíz */
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 100px 40px;
  text-align: center;
  overflow: hidden;
}

/* Capa oscura encima del fondo */
.section-bg-testimonios::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* efecto overlay */
  z-index: 1;
}

/* Asegura que todo el contenido quede por encima del overlay */
.section-bg-testimonios > * {
  position: relative;
  z-index: 2;
}


.slider-testimonios {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.track-testimonios {
  display: flex;
  gap: 30px;
  transition: transform 0.8s ease-in-out;
  will-change: transform;
}

.card-testimonio {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 25px;
  min-width: calc(33.333% - 20px);
  text-align: center;
  backdrop-filter: blur(10px);
  color: #f0f0f0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.card-testimonio:hover {
  transform: scale(1.02);
}

.card-testimonio span {
  display: block;
  margin-top: 15px;
  color: #D9B660;
  font-weight: 600;
}

/* Controles inferiores */
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.carousel-controls button {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: background 0.3s;
}

.carousel-controls button:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .card-testimonio {
    min-width: 90%;
  }
}
/* ===== BOTÓN "X" PARA ELIMINAR CARDS ===== */
.card-testimonio {
  position: relative;
  overflow: hidden;
}

.card-testimonio .delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  line-height: 25px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
  z-index: 5;
}

.card-testimonio:hover .delete-btn {
  opacity: 1;
}

.card-testimonio .delete-btn:hover {
  background: rgba(255, 0, 0, 0.6);
}
/* ===== BOTÓN RESTAURAR TESTIMONIOS ===== */
.restore-testimonios {
  position: absolute;
  bottom: 0px;
  right: 25px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.4rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  opacity: 0.6;
  z-index: 5;
}

.restore-testimonios:hover {
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
  transform: rotate(180deg);
}

/* En pantallas pequeñas, más pequeño y menos intrusivo */
@media (max-width: 600px) {
  .restore-testimonios {
    width: auto;
    height: auto;
    font-size: 1.1rem;
  }
}



/* =====================
   AGENDA
===================== */
.section-bg-agenda {
  background-image: url('agenda.jpg');
}

.agenda-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  flex-wrap: wrap;
  z-index: 2;
  position: relative;
}

.agenda-info {
  flex: 1;
  text-align: center;
}

.calendario-btn {
  margin-top: 25px;
  padding: 12px 32px;
  background-color: ##D9B660;
  color: #071739;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calendario-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

.contact-form {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-family: inherit;
}

.contact-form button {
  background-color: #D9B660;
  color: #071739;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background-color: #b9962c;
}
/* ===== CONTENEDOR PRINCIPAL ===== */
.contact-container {
  display: flex;
  align-items: center; /* centra verticalmente las columnas en escritorio */
  justify-content: space-between;
  gap: 60px;
  margin-top: 0;
  flex-wrap: wrap; /* para mobile se adapte */
  position: relative;
  z-index: 2;
}

/* ===== CONTACTO ===== */
.contact-info {
  flex: 1 1 300px;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.6;
  /* margen vertical para ajustar posición en escritorio */
  margin-top: 0;
}

/* ===== LOGO ===== */
.logo-despacho {
  flex: 0 0 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.35; /* desvanecido inicial */
  transition: opacity 0.4s ease, transform 0.3s ease;
}

.logo-despacho img {
  max-width: 100%;
  height: auto;
}

.logo-despacho:hover {
  opacity: 1; /* se "enciende" al hover */
  transform: scale(1.05); /* ligero zoom al pasar mouse */
}

/* ===== MAPA ===== */
.map-container {
  flex: 1 1 300px;
  min-width: 250px;
  border-radius: 12px;
  overflow: hidden;
}

/* ===== SECCIÓN FONDO ===== */
.section-bg-contacto {
  background: linear-gradient(120deg, #081126 0%, #0a1837 40%, #0b276e 100%);
  background-blend-mode: lighten;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .contact-container {
    flex-direction: column;
    gap: 0; /* eliminamos gap entre columnas */
    text-align: left;
  }

  .map-container {
    order: 1; /* primero */
    margin-bottom: 10px; /* espacio debajo del mapa */
  }

  .contact-info {
    order: 2; /* después del mapa */
    margin-top: 0;    /* elimina margen superior */
    margin-bottom: 5px; /* margen mínimo debajo */
  }

  .logo-despacho {
    order: 3; /* después de la info */
    margin-top: 5px;  /* margen mínimo encima */
    margin-bottom: 0; /* elimina margen inferior */
    opacity: 0.35;
  }
}



/* =====================
   WHATSAPP FLOAT
===================== */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  z-index: 200;
  transition: transform 0.3s ease;
}

.whatsapp-float img {
  width: 45px;
  height: 45px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* =====================
   FOOTER
===================== */
footer {
  background-color: rgba(7, 23, 57, 0.95);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding: 25px 10px;
  color: #ccc;
  font-size: 0.9em;
  width: 100%;
}

footer .creditos {
  margin-top: 8px;
  color: #D9B660;
  font-weight: 600;
}
footer a {
  color: #D9B660;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* =====================
   EFECTO GOLD GLOW
===================== */
@keyframes gold-glow {
  0% { box-shadow: 0 0 8px rgba(212,175,55,0.3); }
  50% { box-shadow: 0 0 20px rgba(212,175,55,0.8); }
  100% { box-shadow: 0 0 8px rgba(212,175,55,0.3); }
}

.card:hover, 
.btn:hover {
  animation: gold-glow 1.8s infinite ease-in-out;
}

/* =====================
   RESPONSIVE Ajusta back de lista de contenido de menu de hamburguesa y secciones
===================== */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    padding: 15px 25px;
  }

  .navbar ul {
    position: fixed;
    top: 0;
    right: -70%;
    height: 100vh;
    width: 70%;
    background: linear-gradient(135deg, #5c9eff, #94bfff);
    border-left: linear-gradient(135deg, #5c9eff, #94bfff);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin: 0;
    padding: 0;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .navbar ul.active {
    right: 0;
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    top: 25px;
    right: 25px;
  }

  .section {
    padding: 90px 30px;
  }

  .cards,
  .agenda-container,
  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-form,
  .contact-info {
    width: 100%;
  }
}
/* ===== MODAL DE CONFIRMACIÓN DE ENVIO DE DATOS===== */
.modal-enviado {
  display: none; /* oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.modal-enviado .modal-content {
  background: linear-gradient(135deg, #5c9eff, #94bfff);
  border: linear-gradient(135deg, #5c9eff, #94bfff);
  color: #fff;
  padding: 30px 40px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  max-width: 400px;
}

.modal-enviado h2 {
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.modal-enviado p {
  font-size: 1rem;
}

.modal-enviado .cerrar-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #D9B660;
  font-weight: bold;
}








/* =====================
   RESETEO GENERAL
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Times New Roman", Times, serif;
  background-color: #071739;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  text-align: left;
}

/* =====================
   HEADER
===================== */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 5px 30px;
  background-color: rgba(7, 23, 57, 0.95);
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);

  display: flex;
  justify-content: space-between; /* empuja logos extremo izquierda y derecha */
  align-items: center;             /* alinea verticalmente */
  z-index: 1000;
  height: auto; /* quita el 10% fijo */
}
.logo-img {
  height: 70px;        /* ajusta tamaño */
  width: auto;
  max-width: 100%;
}
.sublogo-img {
  height: 35px;        /* más pequeño que el logo principal */
  width: auto;
  max-width: 100%;
  transform: translateY(-10px)
}
/* tablets */
@media (max-width: 900px) {
  .logo-img {
    height: 60px;
  }
  .sublogo-img {
    height: 40px;
  }
}

/* móviles */
@media (max-width: 600px) {
  .logo-img {
    height: 50px;
  }
  .sublogo-img {
    height: 35px;
  }
}
/* Ocultar sublogo en móvil */
@media (max-width: 600px) {
  .sublogo-img {
    display: none;
  }
}

/* ====== NAVBAR ====== */
.navbar ul {
  display: flex;
  list-style: circle;
  gap: 35px;
  margin: 30px;
}

.navbar a {
  color: #fff; /* color de texto */
  text-decoration: none; /* sin subrayado */
  font-weight: 500; /* negrita */
  font-size: 1.1em; /* tamaño de fuente */
  transition: color 0.3s ease; /* transición suave */
}
/* ===== SOLO PARA MÓVILES ===== */
@media (max-width: 768px) {
  .navbar a {
    font-size: 1.5em; /* 🔹 Ajusta este valor según necesites */
  }
}
.navbar a:hover {
  color: #D9B660; 
}
/* ====== MENÚ HAMBURGUESA ====== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #D9B660;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

/* =====================
   SECCIONES GENERALES
===================== */
.section {
  padding: 120px 80px; /* Ajusta el padding para que no tape el header */
  position: relative;   /* clave para que overlay funcione */
  background-size: cover;  /* Ajusta el tamaño de la imagen de fondo */
  background-position: center;  /* Centra la imagen de fondo */
  background-repeat: no-repeat;
  color: white;
}

.overlay,
.overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.overlay {
  background: rgba(7, 23, 57, 0.4);
}

.overlay-dark {
  background: rgba(7, 23, 57, 0.65);
}

.section-title {
  text-align: center;
  font-size: 2em;
  margin-bottom: 50px;
  color: #D9B660;
  z-index: 2;
  position: relative;
}

/* =====================
   HERO / INICIO
===================== */
.section-bg-inicio {
  background-image: url('inicio.jpg');
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative; /* clave para que overlay funcione */
  background-size: cover;
  background-position: cover;
}

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

.hero-content h2 {
  font-size: 2.5em;
  color: #D9B660;
  margin-bottom: 20px;
}

.hero-content p {
  color: #f0f0f0;
  margin-bottom: 30px;
}

.btn {
  background-color: #D9B660;
  color: #071739;
  padding: 12px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #b9962c;
  transform: translateY(-3px);
}
/* AJUSTE MOBILE HERO */
@media (max-width: 768px) {
  .section-bg-inicio {
    padding-top: 140px;
    align-items: flex-start;
  }

  .hero-content {
    margin-top: 40px;
  }

  .hero-content h2 {
    line-height: 1.3;
  }
}
.hero-text-box {
  max-width: 900px;
  margin: 0 auto 20px auto;
  padding: 18px 20px;
  background: rgba(7, 23, 57, 0.75);
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.hero-text-box p {
  color: #f0f0f0;
  line-height: 1.5;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 1.2rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-text-box {
    width: 92%;
    padding: 15px;
  }

  .hero-text-box p {
    font-size: 1.2rem;
    line-height: 1.4;
  }
}
/* =====================
   Nuestra Esencia
===================== */
/* ===== SECCIÓN NUESTRA ESENCIA ===== */
.section-bg-esencia {
  background: linear-gradient(120deg, #081126 0%, #0a1837 40%, #0b276e 100%);
  background-blend-mode: lighten;
  backdrop-filter: blur(10px);
  padding: 100px 40px;
  text-align: center;
  color: #CDD5DB;
}

.container-esencia {
  max-width: 1100px;
  margin: 0 auto;
}

.titulo-esencia {
  font-size: 2.5rem;
  color: #D9B660;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.subtitulo-esencia {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 50px;
}

/* ===== Tarjetas escritorio ===== */
.cards-esencia {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  flex-wrap: wrap;
}

/* ===== Base de la card ===== */
.card-esencia {
  position: relative;
  flex: 1 1 300px;
  max-width: 330px;
  padding: 40px 25px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);

  /* Imagen de fondo (se mezclará con el blur) */
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;

  /* Mantiene el efecto glass */
  background-color: rgba(7, 23, 57, 0.35);
  transition: all 0.3s ease;
}

/* ===== Hover (se mantiene como lo tienes) ===== */
.card-esencia:hover {
  transform: translateY(-6px);
  /* Azul tenue translúcido */
  background: linear-gradient(135deg, #5c9eff, #94bfff);/* ← Ajusta la opacidad si quieres */
  border-color: rgba(92,158,255,0.2); /* opcional, para que el borde también brille */
}

/* ===== Contenido interno ===== */
.icono-esencia {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #6FB1FC;
}

.card-esencia h3 {
  font-size: 1.3rem;
  color: #D9B660;
  margin-bottom: 15px;
}

.card-esencia p {
  font-size: 1rem;
  color: white;
  line-height: 1.6;
}

/* ===== IMÁGENES POR CARD ===== */
/* Solo asigna la imagen que quieras a cada card */
.esencia-mision {
  background-image: url('mision.jpg');
}

.esencia-vision {
  background-image: url('vision.jpg');
}

.esencia-objetivo {
  background-image: url('objetivo.jpg');
}



/* ===== Botones CTA móvil ===== */
.cta-esencia {
  display: none;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.cta-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #FFFFFF;
  font-size: 1.1rem;
  padding: 15px 30px;
  width: 80%;
  max-width: 350px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: linear-gradient(135deg, #5c9eff, #94bfff);
  transform: scale(1.03);
}

/* ===== MODALES ===== */
.modal-esencia {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content-esencia {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: #FFFFFF;
  margin: 15% auto;
  padding: 30px 20px;
  max-width: 90%;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.modal-content-esencia h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.modal-content-esencia p {
  font-size: 1rem;
  color: #C0CBD3;
  line-height: 1.6;
}

.cerrar-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.cerrar-modal:hover {
  color: #6FB1FC;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-only { display: flex; }

  .titulo-esencia {
    font-size: 2rem;
  }
  .subtitulo-esencia {
    font-size: 1rem;
  }
}
/* =====================
   SECCIÓN SERVICIOS - FONDO CON IMAGEN + OVERLAY
===================== */
.section-bg-servicios {
  position: relative;
  background-image: url('servicios.jpg'); /* Ajusta la ruta */
  background-size: cover;
  background-position: center;
  padding: 100px 40px;
  text-align: center;
  overflow: hidden; /* <- Asegura que el overlay no se salga */
}

/* Overlay */
.overlay-dark {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* 🔥 más opaco (0.55 = 55% negro) */
  z-index: 1;
  pointer-events: none; /* no bloquea clics */
}

/* Contenido por encima */
.section-bg-servicios > * {
  position: relative;
  z-index: 2;
}

/* CONTENEDOR DE CARDS */
.cards-servicios {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  margin-top: 40px
}
/* CARD INDIVIDUAL */
.card-servicio {
  background: rgba(111, 177, 252, 0.18); /* ← Ajusta la opacidad si quieres */
  border-color: rgba(111, 177, 252, 0.35);
  border-radius: 200px;
  padding: 30px;
  width: 300px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.card-servicio:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}
/* =====================
   TESTIMONIOS - SLIDER CENTRADO CON FONDO
===================== */
.section-bg-testimonios {
  position: relative;
  background-image: url('testimonios.jpg'); /* 👉 tu imagen en la raíz */
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 100px 40px;
  text-align: center;
  overflow: hidden;
}

/* Capa oscura encima del fondo */
.section-bg-testimonios::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* efecto overlay */
  z-index: 1;
}

/* Asegura que todo el contenido quede por encima del overlay */
.section-bg-testimonios > * {
  position: relative;
  z-index: 2;
}


.slider-testimonios {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.track-testimonios {
  display: flex;
  gap: 30px;
  transition: transform 0.8s ease-in-out;
  will-change: transform;
}

.card-testimonio {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 25px;
  min-width: calc(33.333% - 20px);
  text-align: center;
  backdrop-filter: blur(10px);
  color: #f0f0f0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.card-testimonio:hover {
  transform: scale(1.02);
}

.card-testimonio span {
  display: block;
  margin-top: 15px;
  color: #D9B660;
  font-weight: 600;
}

/* Controles inferiores */
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.carousel-controls button {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: background 0.3s;
}

.carousel-controls button:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .card-testimonio {
    min-width: 90%;
  }
}
/* ===== BOTÓN "X" PARA ELIMINAR CARDS ===== */
.card-testimonio {
  position: relative;
  overflow: hidden;
}

.card-testimonio .delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  line-height: 25px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
  z-index: 5;
}

.card-testimonio:hover .delete-btn {
  opacity: 1;
}

.card-testimonio .delete-btn:hover {
  background: rgba(255, 0, 0, 0.6);
}
/* ===== BOTÓN RESTAURAR TESTIMONIOS ===== */
.restore-testimonios {
  position: absolute;
  bottom: 0px;
  right: 25px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.4rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  opacity: 0.6;
  z-index: 5;
}

.restore-testimonios:hover {
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
  transform: rotate(180deg);
}

/* En pantallas pequeñas, más pequeño y menos intrusivo */
@media (max-width: 600px) {
  .restore-testimonios {
    width: auto;
    height: auto;
    font-size: 1.1rem;
  }
}



/* =====================
   AGENDA
===================== */
.section-bg-agenda {
  background-image: url('agenda.jpg');
}

.agenda-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  flex-wrap: wrap;
  z-index: 2;
  position: relative;
}

.agenda-info {
  flex: 1;
  text-align: center;
}

.calendario-btn {
  margin-top: 25px;
  padding: 12px 32px;
  background-color: ##D9B660;
  color: #071739;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calendario-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

.contact-form {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-family: inherit;
}

.contact-form button {
  background-color: #D9B660;
  color: #071739;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background-color: #b9962c;
}
/* ===== CONTENEDOR PRINCIPAL ===== */
.contact-container {
  display: flex;
  align-items: center; /* centra verticalmente las columnas en escritorio */
  justify-content: space-between;
  gap: 60px;
  margin-top: 0;
  flex-wrap: wrap; /* para mobile se adapte */
  position: relative;
  z-index: 2;
}

/* ===== CONTACTO ===== */
.contact-info {
  flex: 1 1 300px;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.6;
  /* margen vertical para ajustar posición en escritorio */
  margin-top: 0;
}

/* ===== LOGO ===== */
.logo-despacho {
  flex: 0 0 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.35; /* desvanecido inicial */
  transition: opacity 0.4s ease, transform 0.3s ease;
}

.logo-despacho img {
  max-width: 100%;
  height: auto;
}

.logo-despacho:hover {
  opacity: 1; /* se "enciende" al hover */
  transform: scale(1.05); /* ligero zoom al pasar mouse */
}

/* ===== MAPA ===== */
.map-container {
  flex: 1 1 300px;
  min-width: 250px;
  border-radius: 12px;
  overflow: hidden;
}

/* ===== SECCIÓN FONDO ===== */
.section-bg-contacto {
  background: linear-gradient(120deg, #081126 0%, #0a1837 40%, #0b276e 100%);
  background-blend-mode: lighten;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .contact-container {
    flex-direction: column;
    gap: 0; /* eliminamos gap entre columnas */
    text-align: left;
  }

  .map-container {
    order: 1; /* primero */
    margin-bottom: 10px; /* espacio debajo del mapa */
  }

  .contact-info {
    order: 2; /* después del mapa */
    margin-top: 0;    /* elimina margen superior */
    margin-bottom: 5px; /* margen mínimo debajo */
  }

  .logo-despacho {
    order: 3; /* después de la info */
    margin-top: 5px;  /* margen mínimo encima */
    margin-bottom: 0; /* elimina margen inferior */
    opacity: 0.35;
  }
}



/* =====================
   WHATSAPP FLOAT
===================== */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  z-index: 200;
  transition: transform 0.3s ease;
}

.whatsapp-float img {
  width: 45px;
  height: 45px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* =====================
   FOOTER
===================== */
footer {
  background-color: rgba(7, 23, 57, 0.95);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding: 25px 10px;
  color: #ccc;
  font-size: 0.9em;
  width: 100%;
}

footer .creditos {
  margin-top: 8px;
  color: #D9B660;
  font-weight: 600;
}
footer a {
  color: #D9B660;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* =====================
   EFECTO GOLD GLOW
===================== */
@keyframes gold-glow {
  0% { box-shadow: 0 0 8px rgba(212,175,55,0.3); }
  50% { box-shadow: 0 0 20px rgba(212,175,55,0.8); }
  100% { box-shadow: 0 0 8px rgba(212,175,55,0.3); }
}

.card:hover, 
.btn:hover {
  animation: gold-glow 1.8s infinite ease-in-out;
}

/* =====================
   RESPONSIVE Ajusta back de lista de contenido de menu de hamburguesa y secciones
===================== */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    padding: 15px 25px;
  }

  .navbar ul {
    position: fixed;
    top: 0;
    right: -70%;
    height: 100vh;
    width: 70%;
    background: linear-gradient(135deg, #5c9eff, #94bfff);
    border-left: linear-gradient(135deg, #5c9eff, #94bfff);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin: 0;
    padding: 0;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .navbar ul.active {
    right: 0;
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    top: 25px;
    right: 25px;
  }

  .section {
    padding: 90px 30px;
  }

  .cards,
  .agenda-container,
  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-form,
  .contact-info {
    width: 100%;
  }
}
/* ===== MODAL DE CONFIRMACIÓN DE ENVIO DE DATOS===== */
.modal-enviado {
  display: none; /* oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.modal-enviado .modal-content {
  background: linear-gradient(135deg, #5c9eff, #94bfff);
  border: linear-gradient(135deg, #5c9eff, #94bfff);
  color: #fff;
  padding: 30px 40px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  max-width: 400px;
}

.modal-enviado h2 {
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.modal-enviado p {
  font-size: 1rem;
}

.modal-enviado .cerrar-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #D9B660;
  font-weight: bold;
}








/* =====================
   RESETEO GENERAL
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Times New Roman", Times, serif;
  background-color: #071739;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  text-align: left;
}

/* =====================
   HEADER
===================== */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 5px 30px;
  background-color: rgba(7, 23, 57, 0.95);
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);

  display: flex;
  justify-content: space-between; /* empuja logos extremo izquierda y derecha */
  align-items: center;             /* alinea verticalmente */
  z-index: 1000;
  height: auto; /* quita el 10% fijo */
}
.logo-img {
  height: 70px;        /* ajusta tamaño */
  width: auto;
  max-width: 100%;
}
.sublogo-img {
  height: 35px;        /* más pequeño que el logo principal */
  width: auto;
  max-width: 100%;
  transform: translateY(-10px)
}
/* tablets */
@media (max-width: 900px) {
  .logo-img {
    height: 60px;
  }
  .sublogo-img {
    height: 40px;
  }
}

/* móviles */
@media (max-width: 600px) {
  .logo-img {
    height: 50px;
  }
  .sublogo-img {
    height: 35px;
  }
}
/* Ocultar sublogo en móvil */
@media (max-width: 600px) {
  .sublogo-img {
    display: none;
  }
}

/* ====== NAVBAR ====== */
.navbar ul {
  display: flex;
  list-style: circle;
  gap: 35px;
  margin: 30px;
}

.navbar a {
  color: #fff; /* color de texto */
  text-decoration: none; /* sin subrayado */
  font-weight: 500; /* negrita */
  font-size: 1.1em; /* tamaño de fuente */
  transition: color 0.3s ease; /* transición suave */
}
/* ===== SOLO PARA MÓVILES ===== */
@media (max-width: 768px) {
  .navbar a {
    font-size: 1.5em; /* 🔹 Ajusta este valor según necesites */
  }
}
.navbar a:hover {
  color: #D9B660; 
}
/* ====== MENÚ HAMBURGUESA ====== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #D9B660;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

/* =====================
   SECCIONES GENERALES
===================== */
.section {
  padding: 120px 80px; /* Ajusta el padding para que no tape el header */
  position: relative;   /* clave para que overlay funcione */
  background-size: cover;  /* Ajusta el tamaño de la imagen de fondo */
  background-position: center;  /* Centra la imagen de fondo */
  background-repeat: no-repeat;
  color: white;
}

.overlay,
.overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.overlay {
  background: rgba(7, 23, 57, 0.4);
}

.overlay-dark {
  background: rgba(7, 23, 57, 0.65);
}

.section-title {
  text-align: center;
  font-size: 2em;
  margin-bottom: 50px;
  color: #D9B660;
  z-index: 2;
  position: relative;
}

/* =====================
   HERO / INICIO
===================== */
.section-bg-inicio {
  background-image: url('inicio.jpg');
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative; /* clave para que overlay funcione */
  background-size: cover;
  background-position: cover;
}

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

.hero-content h2 {
  font-size: 2.5em;
  color: #D9B660;
  margin-bottom: 20px;
}

.hero-content p {
  color: #f0f0f0;
  margin-bottom: 30px;
}

.btn {
  background-color: #D9B660;
  color: #071739;
  padding: 12px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #b9962c;
  transform: translateY(-3px);
}
/* AJUSTE MOBILE HERO */
@media (max-width: 768px) {
  .section-bg-inicio {
    padding-top: 140px;
    align-items: flex-start;
  }

  .hero-content {
    margin-top: 40px;
  }

  .hero-content h2 {
    line-height: 1.3;
  }
}
.hero-text-box {
  max-width: 900px;
  margin: 0 auto 20px auto;
  padding: 18px 20px;
  background: rgba(7, 23, 57, 0.75);
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.hero-text-box p {
  color: #f0f0f0;
  line-height: 1.5;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 1.2rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-text-box {
    width: 92%;
    padding: 15px;
  }

  .hero-text-box p {
    font-size: 1.2rem;
    line-height: 1.4;
  }
}
/* =====================
   Nuestra Esencia
===================== */
/* ===== SECCIÓN NUESTRA ESENCIA ===== */
.section-bg-esencia {
  background: linear-gradient(120deg, #081126 0%, #0a1837 40%, #0b276e 100%);
  background-blend-mode: lighten;
  backdrop-filter: blur(10px);
  padding: 100px 40px;
  text-align: center;
  color: #CDD5DB;
}

.container-esencia {
  max-width: 1100px;
  margin: 0 auto;
}

.titulo-esencia {
  font-size: 2.5rem;
  color: #D9B660;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.subtitulo-esencia {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 50px;
}

/* ===== Tarjetas escritorio ===== */
.cards-esencia {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  flex-wrap: wrap;
}

/* ===== Base de la card ===== */
.card-esencia {
  position: relative;
  flex: 1 1 300px;
  max-width: 330px;
  padding: 40px 25px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);

  /* Imagen de fondo (se mezclará con el blur) */
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;

  /* Mantiene el efecto glass */
  background-color: rgba(7, 23, 57, 0.35);
  transition: all 0.3s ease;
}

/* ===== Hover (se mantiene como lo tienes) ===== */
.card-esencia:hover {
  transform: translateY(-6px);
  /* Azul tenue translúcido */
  background: linear-gradient(135deg, #5c9eff, #94bfff);/* ← Ajusta la opacidad si quieres */
  border-color: rgba(92,158,255,0.2); /* opcional, para que el borde también brille */
}

/* ===== Contenido interno ===== */
.icono-esencia {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #6FB1FC;
}

.card-esencia h3 {
  font-size: 1.3rem;
  color: #D9B660;
  margin-bottom: 15px;
}

.card-esencia p {
  font-size: 1rem;
  color: white;
  line-height: 1.6;
}

/* ===== IMÁGENES POR CARD ===== */
/* Solo asigna la imagen que quieras a cada card */
.esencia-mision {
  background-image: url('mision.jpg');
}

.esencia-vision {
  background-image: url('vision.jpg');
}

.esencia-objetivo {
  background-image: url('objetivo.jpg');
}



/* ===== Botones CTA móvil ===== */
.cta-esencia {
  display: none;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.cta-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #FFFFFF;
  font-size: 1.1rem;
  padding: 15px 30px;
  width: 80%;
  max-width: 350px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: linear-gradient(135deg, #5c9eff, #94bfff);
  transform: scale(1.03);
}

/* ===== MODALES ===== */
.modal-esencia {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content-esencia {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: #FFFFFF;
  margin: 15% auto;
  padding: 30px 20px;
  max-width: 90%;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.modal-content-esencia h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.modal-content-esencia p {
  font-size: 1rem;
  color: #C0CBD3;
  line-height: 1.6;
}

.cerrar-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.cerrar-modal:hover {
  color: #6FB1FC;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-only { display: flex; }

  .titulo-esencia {
    font-size: 2rem;
  }
  .subtitulo-esencia {
    font-size: 1rem;
  }
}
/* =====================
   SECCIÓN SERVICIOS - FONDO CON IMAGEN + OVERLAY
===================== */
.section-bg-servicios {
  position: relative;
  background-image: url('servicios.jpg'); /* Ajusta la ruta */
  background-size: cover;
  background-position: center;
  padding: 100px 40px;
  text-align: center;
  overflow: hidden; /* <- Asegura que el overlay no se salga */
}

/* Overlay */
.overlay-dark {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* 🔥 más opaco (0.55 = 55% negro) */
  z-index: 1;
  pointer-events: none; /* no bloquea clics */
}

/* Contenido por encima */
.section-bg-servicios > * {
  position: relative;
  z-index: 2;
}

/* CONTENEDOR DE CARDS */
.cards-servicios {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  margin-top: 40px
}
/* CARD INDIVIDUAL */
.card-servicio {
  background: rgba(111, 177, 252, 0.18); /* ← Ajusta la opacidad si quieres */
  border-color: rgba(111, 177, 252, 0.35);
  border-radius: 200px;
  padding: 30px;
  width: 300px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.card-servicio:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}
/* =====================
   TESTIMONIOS - SLIDER CENTRADO CON FONDO
===================== */
.section-bg-testimonios {
  position: relative;
  background-image: url('testimonios.jpg'); /* 👉 tu imagen en la raíz */
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 100px 40px;
  text-align: center;
  overflow: hidden;
}

/* Capa oscura encima del fondo */
.section-bg-testimonios::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* efecto overlay */
  z-index: 1;
}

/* Asegura que todo el contenido quede por encima del overlay */
.section-bg-testimonios > * {
  position: relative;
  z-index: 2;
}


.slider-testimonios {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.track-testimonios {
  display: flex;
  gap: 30px;
  transition: transform 0.8s ease-in-out;
  will-change: transform;
}

.card-testimonio {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 25px;
  min-width: calc(33.333% - 20px);
  text-align: center;
  backdrop-filter: blur(10px);
  color: #f0f0f0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.card-testimonio:hover {
  transform: scale(1.02);
}

.card-testimonio span {
  display: block;
  margin-top: 15px;
  color: #D9B660;
  font-weight: 600;
}

/* Controles inferiores */
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.carousel-controls button {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: background 0.3s;
}

.carousel-controls button:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .card-testimonio {
    min-width: 90%;
  }
}
/* ===== BOTÓN "X" PARA ELIMINAR CARDS ===== */
.card-testimonio {
  position: relative;
  overflow: hidden;
}

.card-testimonio .delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  line-height: 25px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
  z-index: 5;
}

.card-testimonio:hover .delete-btn {
  opacity: 1;
}

.card-testimonio .delete-btn:hover {
  background: rgba(255, 0, 0, 0.6);
}
/* ===== BOTÓN RESTAURAR TESTIMONIOS ===== */
.restore-testimonios {
  position: absolute;
  bottom: 0px;
  right: 25px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.4rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  opacity: 0.6;
  z-index: 5;
}

.restore-testimonios:hover {
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
  transform: rotate(180deg);
}

/* En pantallas pequeñas, más pequeño y menos intrusivo */
@media (max-width: 600px) {
  .restore-testimonios {
    width: auto;
    height: auto;
    font-size: 1.1rem;
  }
}



/* =====================
   AGENDA
===================== */
.section-bg-agenda {
  background-image: url('agenda.jpg');
}

.agenda-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  flex-wrap: wrap;
  z-index: 2;
  position: relative;
}

.agenda-info {
  flex: 1;
  text-align: center;
}

.calendario-btn {
  margin-top: 25px;
  padding: 12px 32px;
  background-color: ##D9B660;
  color: #071739;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calendario-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

.contact-form {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-family: inherit;
}

.contact-form button {
  background-color: #D9B660;
  color: #071739;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background-color: #b9962c;
}
/* ===== CONTENEDOR PRINCIPAL ===== */
.contact-container {
  display: flex;
  align-items: center; /* centra verticalmente las columnas en escritorio */
  justify-content: space-between;
  gap: 60px;
  margin-top: 0;
  flex-wrap: wrap; /* para mobile se adapte */
  position: relative;
  z-index: 2;
}

/* ===== CONTACTO ===== */
.contact-info {
  flex: 1 1 300px;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.6;
  /* margen vertical para ajustar posición en escritorio */
  margin-top: 0;
}

/* ===== LOGO ===== */
.logo-despacho {
  flex: 0 0 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.35; /* desvanecido inicial */
  transition: opacity 0.4s ease, transform 0.3s ease;
}

.logo-despacho img {
  max-width: 100%;
  height: auto;
}

.logo-despacho:hover {
  opacity: 1; /* se "enciende" al hover */
  transform: scale(1.05); /* ligero zoom al pasar mouse */
}

/* ===== MAPA ===== */
.map-container {
  flex: 1 1 300px;
  min-width: 250px;
  border-radius: 12px;
  overflow: hidden;
}

/* ===== SECCIÓN FONDO ===== */
.section-bg-contacto {
  background: linear-gradient(120deg, #081126 0%, #0a1837 40%, #0b276e 100%);
  background-blend-mode: lighten;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .contact-container {
    flex-direction: column;
    gap: 0; /* eliminamos gap entre columnas */
    text-align: left;
  }

  .map-container {
    order: 1; /* primero */
    margin-bottom: 10px; /* espacio debajo del mapa */
  }

  .contact-info {
    order: 2; /* después del mapa */
    margin-top: 0;    /* elimina margen superior */
    margin-bottom: 5px; /* margen mínimo debajo */
  }

  .logo-despacho {
    order: 3; /* después de la info */
    margin-top: 5px;  /* margen mínimo encima */
    margin-bottom: 0; /* elimina margen inferior */
    opacity: 0.35;
  }
}



/* =====================
   WHATSAPP FLOAT
===================== */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  z-index: 200;
  transition: transform 0.3s ease;
}

.whatsapp-float img {
  width: 45px;
  height: 45px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* =====================
   FOOTER
===================== */
footer {
  background-color: rgba(7, 23, 57, 0.95);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding: 25px 10px;
  color: #ccc;
  font-size: 0.9em;
  width: 100%;
}

footer .creditos {
  margin-top: 8px;
  color: #D9B660;
  font-weight: 600;
}
footer a {
  color: #D9B660;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* =====================
   EFECTO GOLD GLOW
===================== */
@keyframes gold-glow {
  0% { box-shadow: 0 0 8px rgba(212,175,55,0.3); }
  50% { box-shadow: 0 0 20px rgba(212,175,55,0.8); }
  100% { box-shadow: 0 0 8px rgba(212,175,55,0.3); }
}

.card:hover, 
.btn:hover {
  animation: gold-glow 1.8s infinite ease-in-out;
}

/* =====================
   RESPONSIVE Ajusta back de lista de contenido de menu de hamburguesa y secciones
===================== */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    padding: 15px 25px;
  }

  .navbar ul {
    position: fixed;
    top: 0;
    right: -70%;
    height: 100vh;
    width: 70%;
    background: linear-gradient(135deg, #5c9eff, #94bfff);
    border-left: linear-gradient(135deg, #5c9eff, #94bfff);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin: 0;
    padding: 0;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .navbar ul.active {
    right: 0;
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    top: 25px;
    right: 25px;
  }

  .section {
    padding: 90px 30px;
  }

  .cards,
  .agenda-container,
  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-form,
  .contact-info {
    width: 100%;
  }
}
/* ===== MODAL DE CONFIRMACIÓN DE ENVIO DE DATOS===== */
.modal-enviado {
  display: none; /* oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.modal-enviado .modal-content {
  background: linear-gradient(135deg, #5c9eff, #94bfff);
  border: linear-gradient(135deg, #5c9eff, #94bfff);
  color: #fff;
  padding: 30px 40px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  max-width: 400px;
}

.modal-enviado h2 {
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.modal-enviado p {
  font-size: 1rem;
}

.modal-enviado .cerrar-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #D9B660;
  font-weight: bold;
}








/* =====================
   RESETEO GENERAL
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Times New Roman", Times, serif;
  background-color: #071739;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  text-align: left;
}

/* =====================
   HEADER
===================== */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 5px 30px;
  background-color: rgba(7, 23, 57, 0.95);
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);

  display: flex;
  justify-content: space-between; /* empuja logos extremo izquierda y derecha */
  align-items: center;             /* alinea verticalmente */
  z-index: 1000;
  height: auto; /* quita el 10% fijo */
}
.logo-img {
  height: 70px;        /* ajusta tamaño */
  width: auto;
  max-width: 100%;
}
.sublogo-img {
  height: 35px;        /* más pequeño que el logo principal */
  width: auto;
  max-width: 100%;
  transform: translateY(-10px)
}
/* tablets */
@media (max-width: 900px) {
  .logo-img {
    height: 60px;
  }
  .sublogo-img {
    height: 40px;
  }
}

/* móviles */
@media (max-width: 600px) {
  .logo-img {
    height: 50px;
  }
  .sublogo-img {
    height: 35px;
  }
}
/* Ocultar sublogo en móvil */
@media (max-width: 600px) {
  .sublogo-img {
    display: none;
  }
}

/* ====== NAVBAR ====== */
.navbar ul {
  display: flex;
  list-style: circle;
  gap: 35px;
  margin: 30px;
}

.navbar a {
  color: #fff; /* color de texto */
  text-decoration: none; /* sin subrayado */
  font-weight: 500; /* negrita */
  font-size: 1.1em; /* tamaño de fuente */
  transition: color 0.3s ease; /* transición suave */
}
/* ===== SOLO PARA MÓVILES ===== */
@media (max-width: 768px) {
  .navbar a {
    font-size: 1.5em; /* 🔹 Ajusta este valor según necesites */
  }
}
.navbar a:hover {
  color: #D9B660; 
}
/* ====== MENÚ HAMBURGUESA ====== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #D9B660;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

/* =====================
   SECCIONES GENERALES
===================== */
.section {
  padding: 120px 80px; /* Ajusta el padding para que no tape el header */
  position: relative;   /* clave para que overlay funcione */
  background-size: cover;  /* Ajusta el tamaño de la imagen de fondo */
  background-position: center;  /* Centra la imagen de fondo */
  background-repeat: no-repeat;
  color: white;
}

.overlay,
.overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.overlay {
  background: rgba(7, 23, 57, 0.4);
}

.overlay-dark {
  background: rgba(7, 23, 57, 0.65);
}

.section-title {
  text-align: center;
  font-size: 2em;
  margin-bottom: 50px;
  color: #D9B660;
  z-index: 2;
  position: relative;
}

/* =====================
   HERO / INICIO
===================== */
.section-bg-inicio {
  background-image: url('inicio.jpg');
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative; /* clave para que overlay funcione */
  background-size: cover;
  background-position: cover;
}

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

.hero-content h2 {
  font-size: 2.5em;
  color: #D9B660;
  margin-bottom: 20px;
}

.hero-content p {
  color: #f0f0f0;
  margin-bottom: 30px;
}

.btn {
  background-color: #D9B660;
  color: #071739;
  padding: 12px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #b9962c;
  transform: translateY(-3px);
}
/* AJUSTE MOBILE HERO */
@media (max-width: 768px) {
  .section-bg-inicio {
    padding-top: 140px;
    align-items: flex-start;
  }

  .hero-content {
    margin-top: 40px;
  }

  .hero-content h2 {
    line-height: 1.3;
  }
}
.hero-text-box {
  max-width: 900px;
  margin: 0 auto 20px auto;
  padding: 18px 20px;
  background: rgba(7, 23, 57, 0.75);
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.hero-text-box p {
  color: #f0f0f0;
  line-height: 1.5;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 1.2rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-text-box {
    width: 92%;
    padding: 15px;
  }

  .hero-text-box p {
    font-size: 1.2rem;
    line-height: 1.4;
  }
}
/* =====================
   Nuestra Esencia
===================== */
/* ===== SECCIÓN NUESTRA ESENCIA ===== */
.section-bg-esencia {
  background: linear-gradient(120deg, #081126 0%, #0a1837 40%, #0b276e 100%);
  background-blend-mode: lighten;
  backdrop-filter: blur(10px);
  padding: 100px 40px;
  text-align: center;
  color: #CDD5DB;
}

.container-esencia {
  max-width: 1100px;
  margin: 0 auto;
}

.titulo-esencia {
  font-size: 2.5rem;
  color: #D9B660;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.subtitulo-esencia {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 50px;
}

/* ===== Tarjetas escritorio ===== */
.cards-esencia {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  flex-wrap: wrap;
}

/* ===== Base de la card ===== */
.card-esencia {
  position: relative;
  flex: 1 1 300px;
  max-width: 330px;
  padding: 40px 25px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);

  /* Imagen de fondo (se mezclará con el blur) */
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;

  /* Mantiene el efecto glass */
  background-color: rgba(7, 23, 57, 0.35);
  transition: all 0.3s ease;
}

/* ===== Hover (se mantiene como lo tienes) ===== */
.card-esencia:hover {
  transform: translateY(-6px);
  /* Azul tenue translúcido */
  background: linear-gradient(135deg, #5c9eff, #94bfff);/* ← Ajusta la opacidad si quieres */
  border-color: rgba(92,158,255,0.2); /* opcional, para que el borde también brille */
}

/* ===== Contenido interno ===== */
.icono-esencia {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #6FB1FC;
}

.card-esencia h3 {
  font-size: 1.3rem;
  color: #D9B660;
  margin-bottom: 15px;
}

.card-esencia p {
  font-size: 1rem;
  color: white;
  line-height: 1.6;
}

/* ===== IMÁGENES POR CARD ===== */
/* Solo asigna la imagen que quieras a cada card */
.esencia-mision {
  background-image: url('mision.jpg');
}

.esencia-vision {
  background-image: url('vision.jpg');
}

.esencia-objetivo {
  background-image: url('objetivo.jpg');
}



/* ===== Botones CTA móvil ===== */
.cta-esencia {
  display: none;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.cta-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #FFFFFF;
  font-size: 1.1rem;
  padding: 15px 30px;
  width: 80%;
  max-width: 350px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: linear-gradient(135deg, #5c9eff, #94bfff);
  transform: scale(1.03);
}

/* ===== MODALES ===== */
.modal-esencia {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content-esencia {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: #FFFFFF;
  margin: 15% auto;
  padding: 30px 20px;
  max-width: 90%;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.modal-content-esencia h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.modal-content-esencia p {
  font-size: 1rem;
  color: #C0CBD3;
  line-height: 1.6;
}

.cerrar-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.cerrar-modal:hover {
  color: #6FB1FC;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-only { display: flex; }

  .titulo-esencia {
    font-size: 2rem;
  }
  .subtitulo-esencia {
    font-size: 1rem;
  }
}
/* =====================
   SECCIÓN SERVICIOS - FONDO CON IMAGEN + OVERLAY
===================== */
.section-bg-servicios {
  position: relative;
  background-image: url('servicios.jpg'); /* Ajusta la ruta */
  background-size: cover;
  background-position: center;
  padding: 100px 40px;
  text-align: center;
  overflow: hidden; /* <- Asegura que el overlay no se salga */
}

/* Overlay */
.overlay-dark {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* 🔥 más opaco (0.55 = 55% negro) */
  z-index: 1;
  pointer-events: none; /* no bloquea clics */
}

/* Contenido por encima */
.section-bg-servicios > * {
  position: relative;
  z-index: 2;
}

/* CONTENEDOR DE CARDS */
.cards-servicios {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  margin-top: 40px
}
/* CARD INDIVIDUAL */
.card-servicio {
  background: rgba(111, 177, 252, 0.18); /* ← Ajusta la opacidad si quieres */
  border-color: rgba(111, 177, 252, 0.35);
  border-radius: 200px;
  padding: 30px;
  width: 300px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.card-servicio:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}
/* =====================
   TESTIMONIOS - SLIDER CENTRADO CON FONDO
===================== */
.section-bg-testimonios {
  position: relative;
  background-image: url('testimonios.jpg'); /* 👉 tu imagen en la raíz */
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 100px 40px;
  text-align: center;
  overflow: hidden;
}

/* Capa oscura encima del fondo */
.section-bg-testimonios::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* efecto overlay */
  z-index: 1;
}

/* Asegura que todo el contenido quede por encima del overlay */
.section-bg-testimonios > * {
  position: relative;
  z-index: 2;
}


.slider-testimonios {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.track-testimonios {
  display: flex;
  gap: 30px;
  transition: transform 0.8s ease-in-out;
  will-change: transform;
}

.card-testimonio {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 25px;
  min-width: calc(33.333% - 20px);
  text-align: center;
  backdrop-filter: blur(10px);
  color: #f0f0f0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.card-testimonio:hover {
  transform: scale(1.02);
}

.card-testimonio span {
  display: block;
  margin-top: 15px;
  color: #D9B660;
  font-weight: 600;
}

/* Controles inferiores */
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.carousel-controls button {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: background 0.3s;
}

.carousel-controls button:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .card-testimonio {
    min-width: 90%;
  }
}
/* ===== BOTÓN "X" PARA ELIMINAR CARDS ===== */
.card-testimonio {
  position: relative;
  overflow: hidden;
}

.card-testimonio .delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  line-height: 25px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
  z-index: 5;
}

.card-testimonio:hover .delete-btn {
  opacity: 1;
}

.card-testimonio .delete-btn:hover {
  background: rgba(255, 0, 0, 0.6);
}
/* ===== BOTÓN RESTAURAR TESTIMONIOS ===== */
.restore-testimonios {
  position: absolute;
  bottom: 0px;
  right: 25px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.4rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  opacity: 0.6;
  z-index: 5;
}

.restore-testimonios:hover {
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
  transform: rotate(180deg);
}

/* En pantallas pequeñas, más pequeño y menos intrusivo */
@media (max-width: 600px) {
  .restore-testimonios {
    width: auto;
    height: auto;
    font-size: 1.1rem;
  }
}



/* =====================
   AGENDA
===================== */
.section-bg-agenda {
  background-image: url('agenda.jpg');
}

.agenda-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  flex-wrap: wrap;
  z-index: 2;
  position: relative;
}

.agenda-info {
  flex: 1;
  text-align: center;
}

.calendario-btn {
  margin-top: 25px;
  padding: 12px 32px;
  background-color: ##D9B660;
  color: #071739;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calendario-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

.contact-form {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-family: inherit;
}

.contact-form button {
  background-color: #D9B660;
  color: #071739;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background-color: #b9962c;
}
/* ===== CONTENEDOR PRINCIPAL ===== */
.contact-container {
  display: flex;
  align-items: center; /* centra verticalmente las columnas en escritorio */
  justify-content: space-between;
  gap: 60px;
  margin-top: 0;
  flex-wrap: wrap; /* para mobile se adapte */
  position: relative;
  z-index: 2;
}

/* ===== CONTACTO ===== */
.contact-info {
  flex: 1 1 300px;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.6;
  /* margen vertical para ajustar posición en escritorio */
  margin-top: 0;
}

/* ===== LOGO ===== */
.logo-despacho {
  flex: 0 0 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.35; /* desvanecido inicial */
  transition: opacity 0.4s ease, transform 0.3s ease;
}

.logo-despacho img {
  max-width: 100%;
  height: auto;
}

.logo-despacho:hover {
  opacity: 1; /* se "enciende" al hover */
  transform: scale(1.05); /* ligero zoom al pasar mouse */
}

/* ===== MAPA ===== */
.map-container {
  flex: 1 1 300px;
  min-width: 250px;
  border-radius: 12px;
  overflow: hidden;
}

/* ===== SECCIÓN FONDO ===== */
.section-bg-contacto {
  background: linear-gradient(120deg, #081126 0%, #0a1837 40%, #0b276e 100%);
  background-blend-mode: lighten;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .contact-container {
    flex-direction: column;
    gap: 0; /* eliminamos gap entre columnas */
    text-align: left;
  }

  .map-container {
    order: 1; /* primero */
    margin-bottom: 10px; /* espacio debajo del mapa */
  }

  .contact-info {
    order: 2; /* después del mapa */
    margin-top: 0;    /* elimina margen superior */
    margin-bottom: 5px; /* margen mínimo debajo */
  }

  .logo-despacho {
    order: 3; /* después de la info */
    margin-top: 5px;  /* margen mínimo encima */
    margin-bottom: 0; /* elimina margen inferior */
    opacity: 0.35;
  }
}



/* =====================
   WHATSAPP FLOAT
===================== */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  z-index: 200;
  transition: transform 0.3s ease;
}

.whatsapp-float img {
  width: 45px;
  height: 45px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* =====================
   FOOTER
===================== */
footer {
  background-color: rgba(7, 23, 57, 0.95);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding: 25px 10px;
  color: #ccc;
  font-size: 0.9em;
  width: 100%;
}

footer .creditos {
  margin-top: 8px;
  color: #D9B660;
  font-weight: 600;
}
footer a {
  color: #D9B660;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* =====================
   EFECTO GOLD GLOW
===================== */
@keyframes gold-glow {
  0% { box-shadow: 0 0 8px rgba(212,175,55,0.3); }
  50% { box-shadow: 0 0 20px rgba(212,175,55,0.8); }
  100% { box-shadow: 0 0 8px rgba(212,175,55,0.3); }
}

.card:hover, 
.btn:hover {
  animation: gold-glow 1.8s infinite ease-in-out;
}

/* =====================
   RESPONSIVE Ajusta back de lista de contenido de menu de hamburguesa y secciones
===================== */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    padding: 15px 25px;
  }

  .navbar ul {
    position: fixed;
    top: 0;
    right: -70%;
    height: 100vh;
    width: 70%;
    background: linear-gradient(135deg, #5c9eff, #94bfff);
    border-left: linear-gradient(135deg, #5c9eff, #94bfff);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin: 0;
    padding: 0;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .navbar ul.active {
    right: 0;
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    top: 25px;
    right: 25px;
  }

  .section {
    padding: 90px 30px;
  }

  .cards,
  .agenda-container,
  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-form,
  .contact-info {
    width: 100%;
  }
}
/* ===== MODAL DE CONFIRMACIÓN DE ENVIO DE DATOS===== */
.modal-enviado {
  display: none; /* oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.modal-enviado .modal-content {
  background: linear-gradient(135deg, #5c9eff, #94bfff);
  border: linear-gradient(135deg, #5c9eff, #94bfff);
  color: #fff;
  padding: 30px 40px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  max-width: 400px;
}

.modal-enviado h2 {
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.modal-enviado p {
  font-size: 1rem;
}

.modal-enviado .cerrar-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #D9B660;
  font-weight: bold;
}








/* =====================
   RESETEO GENERAL
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Times New Roman", Times, serif;
  background-color: #071739;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  text-align: left;
}

/* =====================
   HEADER
===================== */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 5px 30px;
  background-color: rgba(7, 23, 57, 0.95);
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);

  display: flex;
  justify-content: space-between; /* empuja logos extremo izquierda y derecha */
  align-items: center;             /* alinea verticalmente */
  z-index: 1000;
  height: auto; /* quita el 10% fijo */
}
.logo-img {
  height: 70px;        /* ajusta tamaño */
  width: auto;
  max-width: 100%;
}
.sublogo-img {
  height: 35px;        /* más pequeño que el logo principal */
  width: auto;
  max-width: 100%;
  transform: translateY(-10px)
}
/* tablets */
@media (max-width: 900px) {
  .logo-img {
    height: 60px;
  }
  .sublogo-img {
    height: 40px;
  }
}

/* móviles */
@media (max-width: 600px) {
  .logo-img {
    height: 50px;
  }
  .sublogo-img {
    height: 35px;
  }
}
/* Ocultar sublogo en móvil */
@media (max-width: 600px) {
  .sublogo-img {
    display: none;
  }
}

/* ====== NAVBAR ====== */
.navbar ul {
  display: flex;
  list-style: circle;
  gap: 35px;
  margin: 30px;
}

.navbar a {
  color: #fff; /* color de texto */
  text-decoration: none; /* sin subrayado */
  font-weight: 500; /* negrita */
  font-size: 1.1em; /* tamaño de fuente */
  transition: color 0.3s ease; /* transición suave */
}
/* ===== SOLO PARA MÓVILES ===== */
@media (max-width: 768px) {
  .navbar a {
    font-size: 1.5em; /* 🔹 Ajusta este valor según necesites */
  }
}
.navbar a:hover {
  color: #D9B660; 
}
/* ====== MENÚ HAMBURGUESA ====== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #D9B660;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

/* =====================
   SECCIONES GENERALES
===================== */
.section {
  padding: 120px 80px; /* Ajusta el padding para que no tape el header */
  position: relative;   /* clave para que overlay funcione */
  background-size: cover;  /* Ajusta el tamaño de la imagen de fondo */
  background-position: center;  /* Centra la imagen de fondo */
  background-repeat: no-repeat;
  color: white;
}

.overlay,
.overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.overlay {
  background: rgba(7, 23, 57, 0.4);
}

.overlay-dark {
  background: rgba(7, 23, 57, 0.65);
}

.section-title {
  text-align: center;
  font-size: 2em;
  margin-bottom: 50px;
  color: #D9B660;
  z-index: 2;
  position: relative;
}

/* =====================
   HERO / INICIO
===================== */
.section-bg-inicio {
  background-image: url('inicio.jpg');
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative; /* clave para que overlay funcione */
  background-size: cover;
  background-position: cover;
}

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

.hero-content h2 {
  font-size: 2.5em;
  color: #D9B660;
  margin-bottom: 20px;
}

.hero-content p {
  color: #f0f0f0;
  margin-bottom: 30px;
}

.btn {
  background-color: #D9B660;
  color: #071739;
  padding: 12px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #b9962c;
  transform: translateY(-3px);
}
/* AJUSTE MOBILE HERO */
@media (max-width: 768px) {
  .section-bg-inicio {
    padding-top: 140px;
    align-items: flex-start;
  }

  .hero-content {
    margin-top: 40px;
  }

  .hero-content h2 {
    line-height: 1.3;
  }
}
.hero-text-box {
  max-width: 900px;
  margin: 0 auto 20px auto;
  padding: 18px 20px;
  background: rgba(7, 23, 57, 0.75);
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.hero-text-box p {
  color: #f0f0f0;
  line-height: 1.5;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 1.2rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-text-box {
    width: 92%;
    padding: 15px;
  }

  .hero-text-box p {
    font-size: 1.2rem;
    line-height: 1.4;
  }
}
/* =====================
   Nuestra Esencia
===================== */
/* ===== SECCIÓN NUESTRA ESENCIA ===== */
.section-bg-esencia {
  background: linear-gradient(120deg, #081126 0%, #0a1837 40%, #0b276e 100%);
  background-blend-mode: lighten;
  backdrop-filter: blur(10px);
  padding: 100px 40px;
  text-align: center;
  color: #CDD5DB;
}

.container-esencia {
  max-width: 1100px;
  margin: 0 auto;
}

.titulo-esencia {
  font-size: 2.5rem;
  color: #D9B660;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.subtitulo-esencia {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 50px;
}

/* ===== Tarjetas escritorio ===== */
.cards-esencia {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  flex-wrap: wrap;
}

/* ===== Base de la card ===== */
.card-esencia {
  position: relative;
  flex: 1 1 300px;
  max-width: 330px;
  padding: 40px 25px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);

  /* Imagen de fondo (se mezclará con el blur) */
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;

  /* Mantiene el efecto glass */
  background-color: rgba(7, 23, 57, 0.35);
  transition: all 0.3s ease;
}

/* ===== Hover (se mantiene como lo tienes) ===== */
.card-esencia:hover {
  transform: translateY(-6px);
  /* Azul tenue translúcido */
  background: linear-gradient(135deg, #5c9eff, #94bfff);/* ← Ajusta la opacidad si quieres */
  border-color: rgba(92,158,255,0.2); /* opcional, para que el borde también brille */
}

/* ===== Contenido interno ===== */
.icono-esencia {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #6FB1FC;
}

.card-esencia h3 {
  font-size: 1.3rem;
  color: #D9B660;
  margin-bottom: 15px;
}

.card-esencia p {
  font-size: 1rem;
  color: white;
  line-height: 1.6;
}

/* ===== IMÁGENES POR CARD ===== */
/* Solo asigna la imagen que quieras a cada card */
.esencia-mision {
  background-image: url('mision.jpg');
}

.esencia-vision {
  background-image: url('vision.jpg');
}

.esencia-objetivo {
  background-image: url('objetivo.jpg');
}



/* ===== Botones CTA móvil ===== */
.cta-esencia {
  display: none;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.cta-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #FFFFFF;
  font-size: 1.1rem;
  padding: 15px 30px;
  width: 80%;
  max-width: 350px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: linear-gradient(135deg, #5c9eff, #94bfff);
  transform: scale(1.03);
}

/* ===== MODALES ===== */
.modal-esencia {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content-esencia {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: #FFFFFF;
  margin: 15% auto;
  padding: 30px 20px;
  max-width: 90%;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.modal-content-esencia h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.modal-content-esencia p {
  font-size: 1rem;
  color: #C0CBD3;
  line-height: 1.6;
}

.cerrar-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.cerrar-modal:hover {
  color: #6FB1FC;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-only { display: flex; }

  .titulo-esencia {
    font-size: 2rem;
  }
  .subtitulo-esencia {
    font-size: 1rem;
  }
}
/* =====================
   SECCIÓN SERVICIOS - FONDO CON IMAGEN + OVERLAY
===================== */
.section-bg-servicios {
  position: relative;
  background-image: url('servicios.jpg'); /* Ajusta la ruta */
  background-size: cover;
  background-position: center;
  padding: 100px 40px;
  text-align: center;
  overflow: hidden; /* <- Asegura que el overlay no se salga */
}

/* Overlay */
.overlay-dark {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* 🔥 más opaco (0.55 = 55% negro) */
  z-index: 1;
  pointer-events: none; /* no bloquea clics */
}

/* Contenido por encima */
.section-bg-servicios > * {
  position: relative;
  z-index: 2;
}

/* CONTENEDOR DE CARDS */
.cards-servicios {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  margin-top: 40px
}
/* CARD INDIVIDUAL */
.card-servicio {
  background: rgba(111, 177, 252, 0.18); /* ← Ajusta la opacidad si quieres */
  border-color: rgba(111, 177, 252, 0.35);
  border-radius: 200px;
  padding: 30px;
  width: 300px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.card-servicio:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}
/* =====================
   TESTIMONIOS - SLIDER CENTRADO CON FONDO
===================== */
.section-bg-testimonios {
  position: relative;
  background-image: url('testimonios.jpg'); /* 👉 tu imagen en la raíz */
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 100px 40px;
  text-align: center;
  overflow: hidden;
}

/* Capa oscura encima del fondo */
.section-bg-testimonios::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* efecto overlay */
  z-index: 1;
}

/* Asegura que todo el contenido quede por encima del overlay */
.section-bg-testimonios > * {
  position: relative;
  z-index: 2;
}


.slider-testimonios {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.track-testimonios {
  display: flex;
  gap: 30px;
  transition: transform 0.8s ease-in-out;
  will-change: transform;
}

.card-testimonio {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 25px;
  min-width: calc(33.333% - 20px);
  text-align: center;
  backdrop-filter: blur(10px);
  color: #f0f0f0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.card-testimonio:hover {
  transform: scale(1.02);
}

.card-testimonio span {
  display: block;
  margin-top: 15px;
  color: #D9B660;
  font-weight: 600;
}

/* Controles inferiores */
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.carousel-controls button {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: background 0.3s;
}

.carousel-controls button:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .card-testimonio {
    min-width: 90%;
  }
}
/* ===== BOTÓN "X" PARA ELIMINAR CARDS ===== */
.card-testimonio {
  position: relative;
  overflow: hidden;
}

.card-testimonio .delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  line-height: 25px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
  z-index: 5;
}

.card-testimonio:hover .delete-btn {
  opacity: 1;
}

.card-testimonio .delete-btn:hover {
  background: rgba(255, 0, 0, 0.6);
}
/* ===== BOTÓN RESTAURAR TESTIMONIOS ===== */
.restore-testimonios {
  position: absolute;
  bottom: 0px;
  right: 25px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.4rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  opacity: 0.6;
  z-index: 5;
}

.restore-testimonios:hover {
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
  transform: rotate(180deg);
}

/* En pantallas pequeñas, más pequeño y menos intrusivo */
@media (max-width: 600px) {
  .restore-testimonios {
    width: auto;
    height: auto;
    font-size: 1.1rem;
  }
}



/* =====================
   AGENDA
===================== */
.section-bg-agenda {
  background-image: url('agenda.jpg');
}

.agenda-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  flex-wrap: wrap;
  z-index: 2;
  position: relative;
}

.agenda-info {
  flex: 1;
  text-align: center;
}

.calendario-btn {
  margin-top: 25px;
  padding: 12px 32px;
  background-color: ##D9B660;
  color: #071739;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calendario-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

.contact-form {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-family: inherit;
}

.contact-form button {
  background-color: #D9B660;
  color: #071739;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background-color: #b9962c;
}
/* ===== CONTENEDOR PRINCIPAL ===== */
.contact-container {
  display: flex;
  align-items: center; /* centra verticalmente las columnas en escritorio */
  justify-content: space-between;
  gap: 60px;
  margin-top: 0;
  flex-wrap: wrap; /* para mobile se adapte */
  position: relative;
  z-index: 2;
}

/* ===== CONTACTO ===== */
.contact-info {
  flex: 1 1 300px;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.6;
  /* margen vertical para ajustar posición en escritorio */
  margin-top: 0;
}

/* ===== LOGO ===== */
.logo-despacho {
  flex: 0 0 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.35; /* desvanecido inicial */
  transition: opacity 0.4s ease, transform 0.3s ease;
}

.logo-despacho img {
  max-width: 100%;
  height: auto;
}

.logo-despacho:hover {
  opacity: 1; /* se "enciende" al hover */
  transform: scale(1.05); /* ligero zoom al pasar mouse */
}

/* ===== MAPA ===== */
.map-container {
  flex: 1 1 300px;
  min-width: 250px;
  border-radius: 12px;
  overflow: hidden;
}

/* ===== SECCIÓN FONDO ===== */
.section-bg-contacto {
  background: linear-gradient(120deg, #081126 0%, #0a1837 40%, #0b276e 100%);
  background-blend-mode: lighten;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .contact-container {
    flex-direction: column;
    gap: 0; /* eliminamos gap entre columnas */
    text-align: left;
  }

  .map-container {
    order: 1; /* primero */
    margin-bottom: 10px; /* espacio debajo del mapa */
  }

  .contact-info {
    order: 2; /* después del mapa */
    margin-top: 0;    /* elimina margen superior */
    margin-bottom: 5px; /* margen mínimo debajo */
  }

  .logo-despacho {
    order: 3; /* después de la info */
    margin-top: 5px;  /* margen mínimo encima */
    margin-bottom: 0; /* elimina margen inferior */
    opacity: 0.35;
  }
}



/* =====================
   WHATSAPP FLOAT
===================== */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  z-index: 200;
  transition: transform 0.3s ease;
}

.whatsapp-float img {
  width: 45px;
  height: 45px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* =====================
   FOOTER
===================== */
footer {
  background-color: rgba(7, 23, 57, 0.95);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding: 25px 10px;
  color: #ccc;
  font-size: 0.9em;
  width: 100%;
}

footer .creditos {
  margin-top: 8px;
  color: #D9B660;
  font-weight: 600;
}
footer a {
  color: #D9B660;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* =====================
   EFECTO GOLD GLOW
===================== */
@keyframes gold-glow {
  0% { box-shadow: 0 0 8px rgba(212,175,55,0.3); }
  50% { box-shadow: 0 0 20px rgba(212,175,55,0.8); }
  100% { box-shadow: 0 0 8px rgba(212,175,55,0.3); }
}

.card:hover, 
.btn:hover {
  animation: gold-glow 1.8s infinite ease-in-out;
}

/* =====================
   RESPONSIVE Ajusta back de lista de contenido de menu de hamburguesa y secciones
===================== */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    padding: 15px 25px;
  }

  .navbar ul {
    position: fixed;
    top: 0;
    right: -70%;
    height: 100vh;
    width: 70%;
    background: linear-gradient(135deg, #5c9eff, #94bfff);
    border-left: linear-gradient(135deg, #5c9eff, #94bfff);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin: 0;
    padding: 0;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .navbar ul.active {
    right: 0;
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    top: 25px;
    right: 25px;
  }

  .section {
    padding: 90px 30px;
  }

  .cards,
  .agenda-container,
  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-form,
  .contact-info {
    width: 100%;
  }
}
/* ===== MODAL DE CONFIRMACIÓN DE ENVIO DE DATOS===== */
.modal-enviado {
  display: none; /* oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.modal-enviado .modal-content {
  background: linear-gradient(135deg, #5c9eff, #94bfff);
  border: linear-gradient(135deg, #5c9eff, #94bfff);
  color: #fff;
  padding: 30px 40px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  max-width: 400px;
}

.modal-enviado h2 {
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.modal-enviado p {
  font-size: 1rem;
}

.modal-enviado .cerrar-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #D9B660;
  font-weight: bold;
}








/* =====================
   RESETEO GENERAL
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Times New Roman", Times, serif;
  background-color: #071739;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  text-align: left;
}

/* =====================
   HEADER
===================== */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 5px 30px;
  background-color: rgba(7, 23, 57, 0.95);
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);

  display: flex;
  justify-content: space-between; /* empuja logos extremo izquierda y derecha */
  align-items: center;             /* alinea verticalmente */
  z-index: 1000;
  height: auto; /* quita el 10% fijo */
}
.logo-img {
  height: 70px;        /* ajusta tamaño */
  width: auto;
  max-width: 100%;
}
.sublogo-img {
  height: 35px;        /* más pequeño que el logo principal */
  width: auto;
  max-width: 100%;
  transform: translateY(-10px)
}
/* tablets */
@media (max-width: 900px) {
  .logo-img {
    height: 60px;
  }
  .sublogo-img {
    height: 40px;
  }
}

/* móviles */
@media (max-width: 600px) {
  .logo-img {
    height: 50px;
  }
  .sublogo-img {
    height: 35px;
  }
}
/* Ocultar sublogo en móvil */
@media (max-width: 600px) {
  .sublogo-img {
    display: none;
  }
}

/* ====== NAVBAR ====== */
.navbar ul {
  display: flex;
  list-style: circle;
  gap: 35px;
  margin: 30px;
}

.navbar a {
  color: #fff; /* color de texto */
  text-decoration: none; /* sin subrayado */
  font-weight: 500; /* negrita */
  font-size: 1.1em; /* tamaño de fuente */
  transition: color 0.3s ease; /* transición suave */
}
/* ===== SOLO PARA MÓVILES ===== */
@media (max-width: 768px) {
  .navbar a {
    font-size: 1.5em; /* 🔹 Ajusta este valor según necesites */
  }
}
.navbar a:hover {
  color: #D9B660; 
}
/* ====== MENÚ HAMBURGUESA ====== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #D9B660;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

/* =====================
   SECCIONES GENERALES
===================== */
.section {
  padding: 120px 80px; /* Ajusta el padding para que no tape el header */
  position: relative;   /* clave para que overlay funcione */
  background-size: cover;  /* Ajusta el tamaño de la imagen de fondo */
  background-position: center;  /* Centra la imagen de fondo */
  background-repeat: no-repeat;
  color: white;
}

.overlay,
.overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.overlay {
  background: rgba(7, 23, 57, 0.4);
}

.overlay-dark {
  background: rgba(7, 23, 57, 0.65);
}

.section-title {
  text-align: center;
  font-size: 2em;
  margin-bottom: 50px;
  color: #D9B660;
  z-index: 2;
  position: relative;
}

/* =====================
   HERO / INICIO
===================== */
.section-bg-inicio {
  background-image: url('inicio.jpg');
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative; /* clave para que overlay funcione */
  background-size: cover;
  background-position: cover;
}

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

.hero-content h2 {
  font-size: 2.5em;
  color: #D9B660;
  margin-bottom: 20px;
}

.hero-content p {
  color: #f0f0f0;
  margin-bottom: 30px;
}

.btn {
  background-color: #D9B660;
  color: #071739;
  padding: 12px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #b9962c;
  transform: translateY(-3px);
}
/* AJUSTE MOBILE HERO */
@media (max-width: 768px) {
  .section-bg-inicio {
    padding-top: 140px;
    align-items: flex-start;
  }

  .hero-content {
    margin-top: 40px;
  }

  .hero-content h2 {
    line-height: 1.3;
  }
}
.hero-text-box {
  max-width: 900px;
  margin: 0 auto 20px auto;
  padding: 18px 20px;
  background: rgba(7, 23, 57, 0.75);
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.hero-text-box p {
  color: #f0f0f0;
  line-height: 1.5;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 1.2rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-text-box {
    width: 92%;
    padding: 15px;
  }

  .hero-text-box p {
    font-size: 1.2rem;
    line-height: 1.4;
  }
}
/* =====================
   Nuestra Esencia
===================== */
/* ===== SECCIÓN NUESTRA ESENCIA ===== */
.section-bg-esencia {
  background: linear-gradient(120deg, #081126 0%, #0a1837 40%, #0b276e 100%);
  background-blend-mode: lighten;
  backdrop-filter: blur(10px);
  padding: 100px 40px;
  text-align: center;
  color: #CDD5DB;
}

.container-esencia {
  max-width: 1100px;
  margin: 0 auto;
}

.titulo-esencia {
  font-size: 2.5rem;
  color: #D9B660;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.subtitulo-esencia {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 50px;
}

/* ===== Tarjetas escritorio ===== */
.cards-esencia {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  flex-wrap: wrap;
}

/* ===== Base de la card ===== */
.card-esencia {
  position: relative;
  flex: 1 1 300px;
  max-width: 330px;
  padding: 40px 25px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);

  /* Imagen de fondo (se mezclará con el blur) */
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;

  /* Mantiene el efecto glass */
  background-color: rgba(7, 23, 57, 0.35);
  transition: all 0.3s ease;
}

/* ===== Hover (se mantiene como lo tienes) ===== */
.card-esencia:hover {
  transform: translateY(-6px);
  /* Azul tenue translúcido */
  background: linear-gradient(135deg, #5c9eff, #94bfff);/* ← Ajusta la opacidad si quieres */
  border-color: rgba(92,158,255,0.2); /* opcional, para que el borde también brille */
}

/* ===== Contenido interno ===== */
.icono-esencia {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #6FB1FC;
}

.card-esencia h3 {
  font-size: 1.3rem;
  color: #D9B660;
  margin-bottom: 15px;
}

.card-esencia p {
  font-size: 1rem;
  color: white;
  line-height: 1.6;
}

/* ===== IMÁGENES POR CARD ===== */
/* Solo asigna la imagen que quieras a cada card */
.esencia-mision {
  background-image: url('mision.jpg');
}

.esencia-vision {
  background-image: url('vision.jpg');
}

.esencia-objetivo {
  background-image: url('objetivo.jpg');
}



/* ===== Botones CTA móvil ===== */
.cta-esencia {
  display: none;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.cta-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #FFFFFF;
  font-size: 1.1rem;
  padding: 15px 30px;
  width: 80%;
  max-width: 350px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: linear-gradient(135deg, #5c9eff, #94bfff);
  transform: scale(1.03);
}

/* ===== MODALES ===== */
.modal-esencia {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content-esencia {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: #FFFFFF;
  margin: 15% auto;
  padding: 30px 20px;
  max-width: 90%;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.modal-content-esencia h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.modal-content-esencia p {
  font-size: 1rem;
  color: #C0CBD3;
  line-height: 1.6;
}

.cerrar-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.cerrar-modal:hover {
  color: #6FB1FC;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-only { display: flex; }

  .titulo-esencia {
    font-size: 2rem;
  }
  .subtitulo-esencia {
    font-size: 1rem;
  }
}
/* =====================
   SECCIÓN SERVICIOS - FONDO CON IMAGEN + OVERLAY
===================== */
.section-bg-servicios {
  position: relative;
  background-image: url('servicios.jpg'); /* Ajusta la ruta */
  background-size: cover;
  background-position: center;
  padding: 100px 40px;
  text-align: center;
  overflow: hidden; /* <- Asegura que el overlay no se salga */
}

/* Overlay */
.overlay-dark {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* 🔥 más opaco (0.55 = 55% negro) */
  z-index: 1;
  pointer-events: none; /* no bloquea clics */
}

/* Contenido por encima */
.section-bg-servicios > * {
  position: relative;
  z-index: 2;
}

/* CONTENEDOR DE CARDS */
.cards-servicios {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  margin-top: 40px
}
/* CARD INDIVIDUAL */
.card-servicio {
  background: rgba(111, 177, 252, 0.18); /* ← Ajusta la opacidad si quieres */
  border-color: rgba(111, 177, 252, 0.35);
  border-radius: 200px;
  padding: 30px;
  width: 300px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.card-servicio:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}
/* =====================
   TESTIMONIOS - SLIDER CENTRADO CON FONDO
===================== */
.section-bg-testimonios {
  position: relative;
  background-image: url('testimonios.jpg'); /* 👉 tu imagen en la raíz */
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 100px 40px;
  text-align: center;
  overflow: hidden;
}

/* Capa oscura encima del fondo */
.section-bg-testimonios::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* efecto overlay */
  z-index: 1;
}

/* Asegura que todo el contenido quede por encima del overlay */
.section-bg-testimonios > * {
  position: relative;
  z-index: 2;
}


.slider-testimonios {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.track-testimonios {
  display: flex;
  gap: 30px;
  transition: transform 0.8s ease-in-out;
  will-change: transform;
}

.card-testimonio {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 25px;
  min-width: calc(33.333% - 20px);
  text-align: center;
  backdrop-filter: blur(10px);
  color: #f0f0f0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.card-testimonio:hover {
  transform: scale(1.02);
}

.card-testimonio span {
  display: block;
  margin-top: 15px;
  color: #D9B660;
  font-weight: 600;
}

/* Controles inferiores */
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.carousel-controls button {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: background 0.3s;
}

.carousel-controls button:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .card-testimonio {
    min-width: 90%;
  }
}
/* ===== BOTÓN "X" PARA ELIMINAR CARDS ===== */
.card-testimonio {
  position: relative;
  overflow: hidden;
}

.card-testimonio .delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  line-height: 25px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
  z-index: 5;
}

.card-testimonio:hover .delete-btn {
  opacity: 1;
}

.card-testimonio .delete-btn:hover {
  background: rgba(255, 0, 0, 0.6);
}
/* ===== BOTÓN RESTAURAR TESTIMONIOS ===== */
.restore-testimonios {
  position: absolute;
  bottom: 0px;
  right: 25px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.4rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  opacity: 0.6;
  z-index: 5;
}

.restore-testimonios:hover {
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
  transform: rotate(180deg);
}

/* En pantallas pequeñas, más pequeño y menos intrusivo */
@media (max-width: 600px) {
  .restore-testimonios {
    width: auto;
    height: auto;
    font-size: 1.1rem;
  }
}



/* =====================
   AGENDA
===================== */
.section-bg-agenda {
  background-image: url('agenda.jpg');
}

.agenda-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  flex-wrap: wrap;
  z-index: 2;
  position: relative;
}

.agenda-info {
  flex: 1;
  text-align: center;
}

.calendario-btn {
  margin-top: 25px;
  padding: 12px 32px;
  background-color: ##D9B660;
  color: #071739;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calendario-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

.contact-form {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-family: inherit;
}

.contact-form button {
  background-color: #D9B660;
  color: #071739;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background-color: #b9962c;
}
/* ===== CONTENEDOR PRINCIPAL ===== */
.contact-container {
  display: flex;
  align-items: center; /* centra verticalmente las columnas en escritorio */
  justify-content: space-between;
  gap: 60px;
  margin-top: 0;
  flex-wrap: wrap; /* para mobile se adapte */
  position: relative;
  z-index: 2;
}

/* ===== CONTACTO ===== */
.contact-info {
  flex: 1 1 300px;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.6;
  /* margen vertical para ajustar posición en escritorio */
  margin-top: 0;
}

/* ===== LOGO ===== */
.logo-despacho {
  flex: 0 0 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.35; /* desvanecido inicial */
  transition: opacity 0.4s ease, transform 0.3s ease;
}

.logo-despacho img {
  max-width: 100%;
  height: auto;
}

.logo-despacho:hover {
  opacity: 1; /* se "enciende" al hover */
  transform: scale(1.05); /* ligero zoom al pasar mouse */
}

/* ===== MAPA ===== */
.map-container {
  flex: 1 1 300px;
  min-width: 250px;
  border-radius: 12px;
  overflow: hidden;
}

/* ===== SECCIÓN FONDO ===== */
.section-bg-contacto {
  background: linear-gradient(120deg, #081126 0%, #0a1837 40%, #0b276e 100%);
  background-blend-mode: lighten;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .contact-container {
    flex-direction: column;
    gap: 0; /* eliminamos gap entre columnas */
    text-align: left;
  }

  .map-container {
    order: 1; /* primero */
    margin-bottom: 10px; /* espacio debajo del mapa */
  }

  .contact-info {
    order: 2; /* después del mapa */
    margin-top: 0;    /* elimina margen superior */
    margin-bottom: 5px; /* margen mínimo debajo */
  }

  .logo-despacho {
    order: 3; /* después de la info */
    margin-top: 5px;  /* margen mínimo encima */
    margin-bottom: 0; /* elimina margen inferior */
    opacity: 0.35;
  }
}



/* =====================
   WHATSAPP FLOAT
===================== */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  z-index: 200;
  transition: transform 0.3s ease;
}

.whatsapp-float img {
  width: 45px;
  height: 45px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* =====================
   FOOTER
===================== */
footer {
  background-color: rgba(7, 23, 57, 0.95);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding: 25px 10px;
  color: #ccc;
  font-size: 0.9em;
  width: 100%;
}

footer .creditos {
  margin-top: 8px;
  color: #D9B660;
  font-weight: 600;
}
footer a {
  color: #D9B660;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* =====================
   EFECTO GOLD GLOW
===================== */
@keyframes gold-glow {
  0% { box-shadow: 0 0 8px rgba(212,175,55,0.3); }
  50% { box-shadow: 0 0 20px rgba(212,175,55,0.8); }
  100% { box-shadow: 0 0 8px rgba(212,175,55,0.3); }
}

.card:hover, 
.btn:hover {
  animation: gold-glow 1.8s infinite ease-in-out;
}

/* =====================
   RESPONSIVE Ajusta back de lista de contenido de menu de hamburguesa y secciones
===================== */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    padding: 15px 25px;
  }

  .navbar ul {
    position: fixed;
    top: 0;
    right: -70%;
    height: 100vh;
    width: 70%;
    background: linear-gradient(135deg, #5c9eff, #94bfff);
    border-left: linear-gradient(135deg, #5c9eff, #94bfff);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin: 0;
    padding: 0;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .navbar ul.active {
    right: 0;
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    top: 25px;
    right: 25px;
  }

  .section {
    padding: 90px 30px;
  }

  .cards,
  .agenda-container,
  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-form,
  .contact-info {
    width: 100%;
  }
}
/* ===== MODAL DE CONFIRMACIÓN DE ENVIO DE DATOS===== */
.modal-enviado {
  display: none; /* oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.modal-enviado .modal-content {
  background: linear-gradient(135deg, #5c9eff, #94bfff);
  border: linear-gradient(135deg, #5c9eff, #94bfff);
  color: #fff;
  padding: 30px 40px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  max-width: 400px;
}

.modal-enviado h2 {
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.modal-enviado p {
  font-size: 1rem;
}

.modal-enviado .cerrar-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #D9B660;
  font-weight: bold;
}








