/* styles.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Roboto', sans-serif;
  color: #fff;
  background: #111;
  overflow-x: hidden;
}
/* Fusión de topbar y navbar */
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}
/* TOPBAR */
.topbar {
  background-color: #f9f9f9;
  color: #7b6436;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 40px;
  border-bottom: 1px solid #ddd;
  animation: fadeInTop 1s ease-in;
}
.contact-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-info i {
  color: #7b6436;
}
.separator {
  margin: 0 8px;
}

.social-icons {
  display: flex;
  gap: 10px;
}
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #e4d3b4;
  color: #111;
  border-radius: 5px;
  width: 28px;
  height: 28px;
  font-size: 14px;
  transition: all 0.3s ease;
  text-decoration: none;
}
.icon:hover {
  background-color: #c2a877;
  transform: scale(1.15) rotate(5deg);
}

/* Animación de entrada */
@keyframes fadeInTop {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 40px;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: background 0.3s ease;
}

/* LOGO clicable */
.navbar .logo a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Imagen del logo */
.logo-img {
  width: 80px; /* ajusta el tamaño */
  height: auto;
  border-radius: 50%; /* borde redondo */
  background-color: #fff; /* fondo blanco */
  padding: 6px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3); /* sombra elegante */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto hover del logo */
.logo-img:hover {
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(207, 159, 0, 0.6); /* brillo dorado */
}

/* Si quieres mantener el texto al lado del logo */
.navbar .logo span {
  font-weight: bold;
  font-size: 20px;
  color: #fff;
  letter-spacing: 1px;
}

.navbar nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}
.navbar nav ul li a,
.navbar .lang a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}
.navbar nav ul li a:hover {
  color: #cf9f00f3;
}
.lang {
  font-size: 14px;
}

/* ===== BOTÓN HAMBURGUESA ===== */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 25px;
  height: 18px;
  justify-content: space-between;
}

.hamburger span {
  background: #fff;
  height: 3px;
  border-radius: 3px;
  transition: 0.3s;
}

/* animación al abrir */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* HERO */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 120px; /* compensamos header fijo */
  overflow: hidden;
}

.video-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.video-carousel video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

.video-carousel video.active {
  opacity: 1;
  z-index: 1;
}

/* HERO CONTENT GENERAL */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

/* SLIDE DE TEXTO */
.hero-content .slide {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 1s ease-in-out;
  text-align: center;
  width: 100%;
  padding: 20px;
  z-index: 2;
  pointer-events: none;
}

.hero-content .slide.active {
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
}

.hero-content h1 {
  font-size: 3.2rem;
  margin: 20px 0;
  font-weight: 700;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-content p {
  font-size: 1.6rem;
  opacity: 0.8;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.btn {
  padding: 14px 28px;
  border: 2px solid white;
  background: transparent;
  color: white;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  display: inline-block;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}
.btn:hover {
  background: #fff;
  color: #111;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  /* Topbar */
  .topbar {
    flex-direction: column;
    text-align: center;
    font-size: 13px;
    padding: 5px 10px;
  }

  .contact-info {
    flex-direction: column;
    gap: 4px;
    margin-bottom: 5px;
  }

  /* Navbar */
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 25px;
  }

  .hamburger {
    display: flex;
  }

  .navbar nav {
    display: none;
    width: 100%;
  }

  .navbar nav ul {
    flex-direction: column;
    gap: 10px;
    text-align: left;
    width: 100%;
    margin-top: 10px;
  }

  .navbar nav.active {
    display: block;
    animation: slideDown 0.4s ease forwards;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .navbar nav ul li a {
    display: block;
    padding: 8px 0;
    font-size: 16px;
  }

  .logo-img {
    width: 90px;
  }

  .lang {
    margin-top: 10px;
  }

  /* Hero */
  .hero-content h1 {
    font-size: 26px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .btn {
    font-size: 14px;
    padding: 10px 20px;
  }
}

/*Silueta blanca*/
.hero-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 3; /* Encima del video */
  animation: slideUpFadeIn 1.5s ease-out forwards;
  opacity: 0; /* para que inicie invisible */
}

.hero-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

.siguiente-seccion {
  background: #fff;
  padding: 80px 40px;
}

@keyframes slideUpFadeIn {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/*Titulo*/
.section-title {
  font-size: 3rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 60px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
  position: relative;
}

.section-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title .underscore {
  color: #7b6436;
  font-weight: 700;
}

/* ====== SECCIÓN VALORES ====== */
.valores-section {
  background: #f9f9f9;
  padding: 100px 40px;
  text-align: center;
}

.valores-title {
  font-size: 2.8rem;
  font-weight: bold;
  color: #a2834c;
  margin-bottom: 20px;
}

.valores-subtitle {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 50px;
}

.valores-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.valor-card {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  max-width: 300px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
  cursor: pointer;
}

.valor-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.valor-card h3 {
  font-size: 1.4rem;
  color: #a2834c;
  margin-bottom: 10px;
}

.valor-card p {
  font-size: 1rem;
  color: #444;
}

/* Efecto hover elegante */
.valor-card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  border: 2px solid #a2834c;
  animation: pulse 1s infinite;
}

/* Animación pulse */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* ====== SECCIÓN MISIÓN Y VISIÓN ====== */
.mision-vision-section {
  background: linear-gradient(135deg, #f5f5f5, #e8e4da);
  padding: 100px 40px;
  border-top: 2px solid #a2834c;
  border-bottom: 2px solid #a2834c;
  text-align: center;
}

.mv-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #a2834c;
  margin-bottom: 50px;
}

.mv-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.mv-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: all 0.5s ease;
  cursor: pointer;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;

  /* Estado inicial oculto para animación */
  opacity: 0;
  transform: translateY(30px);
}

/* Cuando IntersectionObserver agrega la clase */
.mv-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.mv-card h3 {
  color: #a2834c;
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.mv-card p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

/* Animación hover - slide efecto */
.mv-card:hover {
  transform: translateX(10px);
  border-left: 4px solid #a2834c;
  border-right: 4px solid #a2834c;
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* ====== PORQUE NOSOTROS (Animaciones elegantes) ====== */
/* ====== SECCIÓN POR QUÉ NOSOTROS ====== */
.porque-nosotros {
  background: #f9f9f9; /* Fondo claro */
  padding: 100px 40px;
  color: #333; /* Texto oscuro */
}

.pn-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.pn-text {
  flex: 1 1 500px;
}

.pn-text h2 {
  font-size: 2.5rem;
  color: #a2834c;
  margin-bottom: 20px;
}

.pn-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

.pn-image {
  flex: 1 1 500px;
}

.pn-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* Fade-in desde la izquierda */
.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  animation: fadeInLeft 1.2s ease forwards;
}

@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade-in desde abajo */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Zoom-in para imágenes */
.zoom-in {
  opacity: 0;
  transform: scale(0.9);
  animation: zoomIn 1.3s ease forwards;
}

@keyframes zoomIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Efecto hover en la imagen */
.pn-image img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.pn-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

/* ====== SECCIÓN SERVICIOS JURÍDICOS ====== */
.servicios-section-v2 {
  padding: 100px 30px;
  background-color: #111;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: visible;  /* 👈 deja que sobresalga el hover */
}

.servicios-header-v2 {
  max-width: 800px;
  margin: 0 auto 60px auto;
  opacity: 1;
  transform: translateY(30px);
  transition: all 1s ease;
}
.servicios-header-v2.visible {
  opacity: 1;
  transform: translateY(0);
}

.servicios-header-v2 .icono-titulo {
  font-size: 2.8rem;
  color: #a2834c;
}
.servicios-header-v2 .titulo-servicios {
  font-size: 2.5rem;
  margin: 10px 0;
  color: #a2834c;
  font-weight: 700;
}
.servicios-header-v2 .linea-titulo {
  width: 60px;
  height: 4px;
  background-color: #a2834c;
  margin: 10px auto 20px auto;
  border-radius: 2px;
}

/* 🔹 Nuevo contenedor general del carrusel */
.servicios-carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto 80px auto; /* 👈 añade separación con Ofertas */
}

.servicios-carousel-wrapper {
  overflow: hidden;
  flex: 1;
}

.servicios-carousel-track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s ease;
}

.servicio-card {
  background-color: #f8f8f8;
  color: #111;
  border-radius: 12px;
  padding: 30px 20px;
  width: 300px; /* fijo para mantener uniformidad */
  flex: 0 0 auto;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}

.servicio-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0,0,0,0.25);
  z-index: 10;
}

.icono-servicio {
  font-size: 2.8rem;
  margin-bottom: 15px;
  color: #a2834c;
  transition: transform 0.3s ease, color 0.3s ease;
}

.btn-servicio {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  border: 2px solid #a2834c;
  color: #a2834c;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: all 0.3s ease;
}
.btn-servicio:hover {
  background-color: #a2834c;
  color: #fff;
}

/* 🔹 Ajuste de botones: ahora están fuera */
.carousel-btn-v2 {
  position: static;
  transform: none;
  background: #a2834c;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.carousel-btn-v2:hover {
  background: #c9a86d;
  transform: scale(1.1);
}
.carousel-btn-v2.prev-v2,
.carousel-btn-v2.next-v2 {
  flex-shrink: 0; /* evita que se achiquen */
}


/* ====== RESPONSIVE ====== */
@media (max-width: 992px) {
  .servicio-card {
    width: 260px;
  }
}
@media (max-width: 768px) {
  .servicio-card {
    width: 100%;
  }
  .servicios-carousel-track {
    gap: 15px;
  }
}

/* ====== ANIMACIONES DE ICONOS ====== */
.anim-martillo:hover {
  animation: hammerHit 0.6s ease-in-out;
}
@keyframes hammerHit {
  0% { transform: rotate(0); }
  30% { transform: rotate(-25deg); }
  60% { transform: rotate(15deg); }
  100% { transform: rotate(0); }
}

.anim-balanza:hover {
  animation: balanceo 1s ease-in-out infinite;
}
@keyframes balanceo {
  0% { transform: rotate(0); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
  100% { transform: rotate(0); }
}

.anim-maleta:hover {
  transform: translateY(-5px) scale(1.1);
}

.anim-familia:hover {
  transform: scale(1.2);
  color: #7b6436;
}

.anim-tributo:hover {
  animation: bounceCoin 0.6s ease-in-out;
}
@keyframes bounceCoin {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.anim-corporativo:hover {
  transform: rotate(5deg) scale(1.1);
}

.anim-notarial:hover {
  animation: firma 1s ease-in-out;
}
@keyframes firma {
  0% { transform: rotate(0); }
  50% { transform: rotate(-10deg); }
  100% { transform: rotate(0); }
}

.anim-aduana:hover {
  transform: translateX(10px);
}

.anim-migracion:hover {
  animation: pasaporte 0.8s ease-in-out;
}
@keyframes pasaporte {
  0% { transform: scale(1); }
  50% { transform: scale(1.2) rotate(-5deg); }
  100% { transform: scale(1); }
}

/* ====== SECCIÓN OFERTAS Y DESCUENTOS ====== */
.ofertas-section {
  padding: 100px 40px;
  background: linear-gradient(135deg, #fdfdfd, #f3f3f3);
  text-align: center;
  border-top: 3px solid #d4af37;
  border-bottom: 3px solid #d4af37;
  position: relative;
  overflow: hidden;
}

.ofertas-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #b38b2e; /* dorado elegante */
  margin-bottom: 60px;
  position: relative;
  display: inline-block;
  animation: fadeInDown 1.2s ease;
}

.ofertas-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #d4af37;
  margin: 12px auto 0 auto;
  border-radius: 2px;
  animation: growLine 1.5s ease;
}

.ofertas-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Tarjetas */
.oferta-card {
  background: #fff;
  border: 2px solid #d4af37;
  border-radius: 15px;
  padding: 30px 25px;
  width: 320px;
  color: #333;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: all 0.5s ease;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  animation: fadeInUp 1s ease;
}

.oferta-card h3 {
  font-size: 1.4rem;
  color: #b38b2e;
  margin-bottom: 15px;
  font-weight: 700;
  transition: color 0.3s ease;
}

.oferta-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 20px;
}

/* Efecto hover elegante */
.oferta-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  border-color: #c9a86d;
}

.oferta-card:hover h3 {
  color: #d4af37;
}

/* Botones */
.btn-oferta {
  display: inline-block;
  padding: 12px 24px;
  background: #d4af37;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.4s ease;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
}

.btn-oferta:hover {
  background: #b38b2e;
  box-shadow: 0 6px 15px rgba(179, 139, 46, 0.6);
  transform: translateY(-3px);
}

/* Animaciones */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes growLine {
  from {
    width: 0;
  }
  to {
    width: 80px;
  }
}

/* Responsive */
@media (max-width: 992px) {
  .oferta-card {
    width: 100%;
    max-width: 500px;
  }
}

/* ====== SECCIÓN JUICIOS Y REPRESENTACIONES (versión alternativa elegante) ====== */
.juicios-section {
  padding: 120px 40px;
  background: radial-gradient(circle at center, #1c1c1c, #0d0d0d);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.juicios-header {
  margin-bottom: 80px;
}
.juicios-header .icono-titulo {
  font-size: 3rem;
  color: #d4af37;
}
.titulo-juicios {
  font-size: 2.8rem;
  font-weight: 700;
  color: #d4af37;
  margin: 15px 0;
}
.juicios-header .linea-titulo {
  width: 90px;
  height: 4px;
  background: #d4af37;
  margin: 0 auto;
  border-radius: 3px;
  animation: growLine 1.5s ease;
}

/* Grid en lugar de carrusel */
.juicios-carousel-container {
  max-width: 1200px;
  margin: 0 auto;
}
.juicios-carousel-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  justify-items: center;
}

/* Tarjetas circulares */
.juicio-card {
  background: #111;
  border: 3px solid #a2834c;
  border-radius: 50%;
  width: 220px;
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  transition: all 0.5s ease;
  cursor: pointer;
  overflow: hidden;
}

.juicio-card i {
  font-size: 2.8rem;
  color: #d4af37;
  margin-bottom: 12px;
  transition: transform 0.5s ease, color 0.5s ease;
}

.juicio-card h3 {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 6px;
}
.juicio-card p {
  font-size: 0.95rem;
  color: #ccc;
}

/* Animaciones hover */
.juicio-card:hover {
  transform: scale(1.1) rotate(3deg);
  border-color: #ffd700;
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}
.juicio-card:hover i {
  transform: scale(1.3) rotate(-5deg);
  color: #ffd700;
}

/* Animación de brillo sutil */
.juicio-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,215,0,0.15) 0%, transparent 70%);
  transform: scale(0);
  opacity: 0;
  transition: all 0.6s ease;
}
.juicio-card:hover::after {
  transform: scale(1);
  opacity: 1;
}


/* ====== SECCIÓN MANDAMIENTOS DEL ABOGADO ====== */
.mandamientos-section {
  padding: 100px 40px;
  background: linear-gradient(135deg, #fdfdfd, #f5f5f5);
  color: #333;
  text-align: center;
  border-top: 3px solid #d4af37;
  border-bottom: 3px solid #d4af37;
  position: relative;
}

.mandamientos-header .icono-titulo {
  font-size: 2.6rem;
  color: #b38b2e;
}
.titulo-mandamientos {
  font-size: 2.5rem;
  margin: 10px 0;
  color: #b38b2e;
  font-weight: 700;
}
.mandamientos-header .linea-titulo {
  width: 70px;
  height: 4px;
  background-color: #d4af37;
  margin: 12px auto 15px auto;
  border-radius: 2px;
  animation: growLine 1.5s ease;
}
.mandamientos-header .autor {
  font-size: 1rem;
  color: #555;
  font-style: italic;
  margin-bottom: 40px;
}

/* Contenedor */
.mandamientos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.mandamiento-card {
  background: #fff;
  border: 2px solid #d4af37;
  border-radius: 12px;
  padding: 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.mandamiento-card strong {
  color: #b38b2e;
  margin-right: 6px;
  font-size: 1.1rem;
}

/* Hover elegante */
.mandamiento-card:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: #b38b2e;
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

/* Animación sutil de “resaltado” */
.mandamiento-card::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: rgba(212, 175, 55, 0.08);
  transition: all 0.5s ease;
}
.mandamiento-card:hover::before {
  left: 0;
}

/* ====== FOOTER ====== */
.footer-section {
  background: #0d0d0d;
  color: #f1f1f1;
  padding: 80px 40px 30px 40px;
  border-top: 3px solid #a2834c;
  position: relative;
  overflow: hidden;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 50px auto;
}

.footer-card {
  flex: 1 1 300px;
  background: rgba(255,255,255,0.03);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.4s ease;
}

.footer-card h3 {
  color: #d4af37;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.footer-card p {
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #ddd;
  line-height: 1.6;
}

.footer-card i {
  margin-right: 10px;
  color: #d4af37;
}

/* Hover elegante */
.footer-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: #d4af37;
  box-shadow: 0 12px 25px rgba(212,175,55,0.2);
}

/* Redes sociales */
.footer-socials {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 2px solid #d4af37;
  border-radius: 50%;
  color: #d4af37;
  font-size: 1.1rem;
  transition: all 0.4s ease;
}
.footer-socials a:hover {
  background: #d4af37;
  color: #111;
  transform: scale(1.15) rotate(8deg);
}

/* Botón */
.footer-btn {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid #d4af37;
  border-radius: 25px;
  color: #d4af37;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.4s ease;
}
.footer-btn:hover {
  background: #d4af37;
  color: #111;
  box-shadow: 0 6px 15px rgba(212,175,55,0.4);
}

/* Bottom */
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 0.85rem;
  color: #aaa;
}

/* Animación entrada */
.footer-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s forwards;
}
.footer-card:nth-child(1) { animation-delay: 0.2s; }
.footer-card:nth-child(2) { animation-delay: 0.4s; }
.footer-card:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === TRADUCTOR ESTILIZADO === */
.lang {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Contenedor general */
#google_translate_element {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 6px 16px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

#google_translate_element:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* Quitar fondo y bordes del widget */
.goog-te-gadget {
  font-family: 'Roboto', sans-serif !important;
  font-size: 14px !important;
  color: #fff !important;
}

.goog-te-gadget-simple {
  background: none !important;
  border: none !important;
  cursor: pointer;
  color: #fff !important;
  display: flex;
  align-items: center;
}

.goog-te-menu-value {
  color: #fff !important;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Quita iconos y flechas */
.goog-te-gadget-icon,
.goog-te-menu-value span:first-child,
.goog-te-menu-value:after {
  display: none !important;
}

/* Pequeño efecto visual */
#google_translate_element::after {
  content: "🌐";
  font-size: 14px;
  color: #cf9f00f3;
  margin-left: 6px;
}
