/* ═══════════════════════════════════════════
   OPCIONES FLOTANTES — REDES SOCIALES
   ═══════════════════════════════════════════ */

.card-flotante {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 9999;
  border-radius: 15px;
  backdrop-filter: blur(15px);
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.192),
    inset 0 0 5px rgba(255, 255, 255, 0.274),
    0 5px 5px rgba(0, 0, 0, 0.164);
  transition: background 0.5s;
}

.card-flotante:hover {
  background: rgba(173, 173, 173, 0.05);
}

.card-flotante ul {
  padding: 1rem;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Cada ítem */
.iso-pro-flotante {
  position: relative;
  transition: 0.5s;
}

/* El enlace: display flex para centrar el icono */
.iso-pro-flotante a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  text-decoration: none;
  /* color: #0ea315; */
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.3),
    inset 0 0 5px rgba(255, 255, 255, 0.5),
    0 5px 5px rgba(0, 0, 0, 0.164);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  z-index: 2;
}

/* El icono dentro del enlace */
.iso-pro-flotante a i {
  font-size: 22px;
  line-height: 1;
  display: flex;
}

/* Hover: el enlace se desplaza */
.iso-pro-flotante:hover a {
  transform: translate(10px, -10px);
}

/* Tooltip */
.text-flotante {
  opacity: 0;
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) skew(0deg);
  white-space: nowrap;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 1rem;
  font-weight: 600;
  /* color: #0ea315; */
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.3),
    inset 0 0 5px rgba(255, 255, 255, 0.5),
    0 5px 5px rgba(0, 0, 0, 0.082);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  z-index: 9999;
}

.iso-pro-flotante:hover .text-flotante {
  opacity: 1;
  transform: translateY(-50%) skew(-5deg);
}

/* Sombras isométricas detrás del botón */
.iso-pro-flotante span {
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

/* Colores por red social */
.iso-pro-flotante.facebook span {
  color: #1877f2;
}

.iso-pro-flotante.instagram span {
  color: #00A0DC;
}

.iso-pro-flotante.whatsapp span {
  color: #25d366;
}

.iso-pro-flotante:hover span:nth-child(1) {
  opacity: 0.2;
}

.iso-pro-flotante:hover span:nth-child(2) {
  opacity: 0.4;
  transform: translate(5px, -5px);
}

.iso-pro-flotante:hover span:nth-child(3) {
  opacity: 0.6;
  transform: translate(10px, -10px);
}

/* Responsive ocultar en movil */
@media (max-width: 768px) {
  .card-flotante {
    display: none;
  }
}

/* ═══════════════════════════════════════════
   CONTACTO - ANIMACIONES Y ESTILOS
   ═══════════════════════════════════════════ */

/* ============================================
   ANIMACIONES PRINCIPALES
   ============================================ */

/* Animación desde derecha hacia centro */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(80px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animación desde izquierda hacia centro */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-80px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animación de carga suave para encabezado */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   CLASES DE ANIMACIÓN
   ============================================ */

.init-hidden {
  opacity: 0;
}

.animate-right-to-center {
  animation: slideInRight 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-left-to-center {
  animation: slideInLeft 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.text-center {
  animation: fadeSlideUp 0.6s ease-out forwards;
}

/* ============================================
   ESTRUCTURA DEL GRID DE INFORMACIÓN
   ============================================ */

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 1024px) {
  .info-grid {
    display: flex;
    flex-direction: column;
  }

  .info-grid>div:first-child {
    order: 1;
  }

  .info-grid>div:last-child {
    order: 2;
  }

  .image-container {
    order: -1;
    margin-bottom: 1rem;
  }

}

/* Opcional: mejorar espaciado en móvil */
@media (max-width: 640px) {
  .rounded-2xl {
    padding: 1.5rem;
  }

  .gap-5 {
    gap: 1rem !important;
  }
}

/* ============================================
   ESTILOS DE FORMULARIO (INPUTS Y TEXTAREA)
   ============================================ */

/* Contenedor de inputs flotantes */
.input-wrapper {
  position: relative;
}

/* Estilos base para inputs y textarea */
input,
textarea {
  transition: all 0.2s ease;
}

/* Efecto hover */
input:hover,
textarea:hover {
  border-color: #1e4d78;
}

/* Efecto focus */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(30, 77, 120, 0.2);
}

/* Textarea con altura adecuada */
textarea {
  min-height: 110px;
  resize: vertical;
}

/* Label flotante con Tailwind */
.peer:focus~label,
.peer:not(:placeholder-shown)~label {
  transform: translateY(-0.75rem) scale(0.75);
  top: 0.5rem;
  color: #1e4d78;
  background-color: white;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* ============================================
   CONTENEDOR DE IMAGEN
   ============================================ */

.image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* ============================================
   MENÚ DESKTOP - SUBMENÚ "OTROS"
   ============================================ */

.sgp-nav .dropdown-menu-custom {
  position: relative;
}

.sgp-nav .dropdown-list-custom {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding: 0;
  margin: 0;
  background: white;
  min-width: 180px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 8px 0;
  z-index: 1000;
}

.sgp-nav .dropdown-list-custom.show {
  display: block;
}

/* ============================================
   MENÚ MÓVIL - SUBMENÚ "OTROS"
   ============================================ */

.mobile-dropdown .dropdown-list-custom {
  display: none;
  padding-left: 20px;
}

.mobile-dropdown .dropdown-list-custom.show {
  display: block;
}

/* ============================================
   ESTILOS DE VALIDACIÓN (ERRORES)
   ============================================ */

.error-border {
  border-color: #ef4444 !important;
}

.error-border:focus {
  ring-color: #ef4444 !important;
}

/* ============================================
   UTILIDADES Y AJUSTES RESPONSIVE
   ============================================ */

/* Efecto de transición suave */
.transition-smooth {
  transition: all 0.3s ease;
}

/* Mejora de espaciado en móviles */
@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .rounded-2xl {
    padding: 1.5rem;
  }
}
/* Keep commercial contact available without covering content. */
.card-flotante { border: 1px solid #ffffff30; border-radius: 8px; background: #0d1b2a; box-shadow: 0 4px 16px #0002; }
