/* SNS - style.css */

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Source Sans 3', Arial, sans-serif;
  background: url('fondo.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  opacity: 0;
  transition: opacity 0.5s ease;
}
body.fade-in { opacity: 1; }
h1, h2, h3 {
  font-family: 'Rajdhani', Arial, sans-serif;
  margin: 0 0 15px;
}

/* --- Logo container (index) --- */
.logo-container {
  position: absolute;
  top: 14px;
  left: 20px;
  z-index: 50;
}
.logo { width: 110px; }

/* --- Hero (index) --- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.78) 60%,
    rgba(0,0,0,0.90) 100%
  );
  padding: 80px 16px 40px;
}
.overlay { padding: 24px 20px; }
.overlay h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.9);
}
.overlay p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  opacity: 0.95;
  margin-bottom: 28px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.85);
}

/* --- Botones --- */
.boton {
  background: linear-gradient(135deg, #007bff, #0056cc);
  color: #fff;
  padding: 11px 26px;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
  font-family: 'Rajdhani', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 4px 16px rgba(0,123,255,0.3);
}
.boton:hover {
  background: linear-gradient(135deg, #0056cc, #003d99);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,123,255,0.45);
}
.boton.pequeno {
  font-size: 0.85rem;
  padding: 9px 20px;
}

/* --- Boton WhatsApp --- */
.boton-whatsapp {
  background: linear-gradient(135deg, #25d366, #1aab52);
  color: #fff;
  padding: 11px 22px;
  text-decoration: none;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Rajdhani', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}
.boton-whatsapp:hover {
  background: linear-gradient(135deg, #1aab52, #128a3e);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
}

/* --- Boton Email --- */
.boton-email {
  background: linear-gradient(135deg, #ea4335, #c1351f);
  color: #fff;
  padding: 11px 22px;
  text-decoration: none;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Rajdhani', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 4px 16px rgba(234,67,53,0.3);
}
.boton-email:hover {
  background: linear-gradient(135deg, #c1351f, #962b18);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(234,67,53,0.45);
}

/* --- Seccion info (index) --- */
#info {
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 50px 30px;
  line-height: 1.85;
  font-size: 1rem;
}
.container ul {
  padding-left: 22px;
  opacity: 0.9;
  line-height: 2;
}
.container li { margin-bottom: 2px; }

/* --- Servicio --- */
.servicio { margin-bottom: 30px; }

/* --- SECCION CONTACTO --- */
#contacto {
  background: rgba(0,0,0,0.80);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.contacto-wrapper {
  max-width: 820px;
  margin: 0 auto;
  padding: 70px 30px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.contacto-info h2 {
  font-family: 'Rajdhani', Arial, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #e0eeff;
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(0,123,255,0.4);
}
.contacto-info > p {
  font-size: 0.97rem;
  opacity: 0.82;
  margin: 0 0 28px;
  line-height: 1.7;
}

/* Grid de datos 2x2 */
.contacto-datos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contacto-dato {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s;
}
.contacto-dato:hover {
  border-color: rgba(0,123,255,0.4);
  background: rgba(0,123,255,0.07);
}
.contacto-dato .cd-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.contacto-dato .cd-texto h4 {
  font-family: 'Rajdhani', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4da6ff;
  margin: 0 0 3px;
}
.contacto-dato .cd-texto p,
.contacto-dato .cd-texto a {
  margin: 0;
  font-size: 0.97rem;
  color: #e8f0ff;
  text-decoration: none;
  line-height: 1.6;
  opacity: 0.92;
  transition: color 0.2s;
}
.contacto-dato .cd-texto a:hover { color: #4da6ff; }

.contacto-botones {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.contacto-botones a {
  flex: 1;
  min-width: 180px;
  text-align: center;
  justify-content: center;
  font-size: 1rem;
  padding: 13px 24px;
}

/* Mapa clicable */
.contacto-mapa { display: flex; flex-direction: column; }
.mapa-link {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  cursor: pointer;
}
.mapa-link iframe {
  width: 100%;
  height: 260px;
  border: none;
  display: block;
  filter: grayscale(0.3) brightness(0.85);
  pointer-events: none;
}
.mapa-overlay-label {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.78);
  color: #4da6ff;
  font-family: 'Rajdhani', Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(0,123,255,0.4);
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
  transition: background 0.2s, color 0.2s;
}
.mapa-link:hover .mapa-overlay-label {
  background: rgba(0,123,255,0.3);
  color: #fff;
}

/* --- BOTONES FLOTANTES WA y EMAIL --- */
.flotantes-contacto {
  position: fixed;
  left: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
}
.flotante-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.flotante-btn:hover { transform: scale(1.1); box-shadow: 0 6px 22px rgba(0,0,0,0.5); }
.flotante-wa { background: #25d366; }
.flotante-email { background: #ea4335; }

/* --- Footer --- */
footer {
  text-align: center;
  padding: 0;
  background: rgba(0,0,0,0.88);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.footer-contacto {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 28px 20px 20px;
  flex-wrap: wrap;
}
.footer-copy {
  padding: 14px 20px 20px;
  font-size: 0.88rem;
  opacity: 0.6;
}

/* --- QR flotantes --- */
/* gap aumentado de 10px a 20px para que los QR no se pisen al escanear */
.qr-small-container {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 200;
}
.qr-box {
  text-align: center;
  background: rgba(0,0,0,0.75);
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  transition: transform 0.2s;
}
.qr-box:hover { transform: scale(1.06); }
/* QR más grandes: de 80px a 96px para facilitar escaneo */
.qr-box img { width: 96px; height: 96px; display: block; margin: 0 auto; }
.qr-box p {
  margin: 5px 0 0;
  font-size: 0.75rem;
  opacity: 0.85;
  font-family: 'Rajdhani', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- Logos partners --- */
.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}
.logos img {
  width: 90px;
  height: auto;
  object-fit: contain;
  background: transparent;
  border-radius: 5px;
  filter: brightness(0.9) grayscale(0.2);
  transition: filter 0.2s;
}
.logos img:hover { filter: brightness(1) grayscale(0); }
.vmware-logo { transform: scale(0.8); }

/* --- Partners logos --- */
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 70px;
}
.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 6px;
  filter: brightness(0.88) grayscale(0.15);
  transition: filter 0.2s, transform 0.2s;
  min-width: 60px;
  min-height: 32px;
}
.partner-logo img:hover {
  filter: brightness(1) grayscale(0);
  transform: scale(1.05);
}
.partner-logo img[src=""],
.partner-logo img:not([src]) {
  visibility: hidden;
}

/* --- Animaciones --- */
.animado {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.animado.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Animaciones navbar: logo y links --- */
@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.navbar .logo {
  animation: navSlideDown 0.5s ease both;
}
.nav-links li {
  animation: navSlideDown 0.5s ease both;
}
.nav-links li:nth-child(1) { animation-delay: 0.05s; }
.nav-links li:nth-child(2) { animation-delay: 0.12s; }
.nav-links li:nth-child(3) { animation-delay: 0.19s; }

/* Hover animado para links de navbar */
.nav-links a {
  position: relative;
  transition: color 0.22s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: #007bff;
  transition: right 0.25s cubic-bezier(0.4,0,0.2,1);
  border-radius: 2px;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  right: 0;
}

/* Logo SNS hover suave */
.navbar a img.logo {
  transition: opacity 0.2s, transform 0.25s;
}
.navbar a:hover img.logo {
  opacity: 0.82;
  transform: scale(1.04);
}

/* --- Scrolling body state --- */
body.scrolling .navbar { background: rgba(0,0,0,0.96); }

/* =============================================
   RESPONSIVE - TABLET (max 1024px)
   ============================================= */
@media (max-width: 1024px) {
  .partner-logo { width: 110px; height: 60px; }
}

/* =============================================
   RESPONSIVE - MOBILE (max 768px)
   ============================================= */
@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    padding: 90px 16px 48px;
    align-items: center;
  }
  .hero .overlay.animado {
    opacity: 1 !important;
    transform: none !important;
  }
  .contacto-wrapper { padding: 48px 16px; gap: 28px; }
  .contacto-datos-grid { grid-template-columns: 1fr; }
  .contacto-botones { flex-direction: column; }
  .contacto-botones a { min-width: unset; width: 100%; }
  .mapa-link iframe { height: 200px; }
  .footer-contacto { flex-direction: column; gap: 10px; }
  .footer-contacto a { width: 100%; max-width: 300px; text-align: center; justify-content: center; }
  .flotantes-contacto { left: 10px; bottom: 10px; }
  .flotante-btn { width: 44px; height: 44px; }
  .partner-logo { width: 88px; height: 52px; }
  /* QR ocultar en mobile para no saturar pantalla pequeña */
  .qr-small-container { display: none; }
  .container { padding: 36px 16px; }
}

/* =============================================
   RESPONSIVE - MOBILE PEQUEÑO (max 480px)
   ============================================= */
@media (max-width: 480px) {
  .hero { padding: 80px 12px 40px; }
  .overlay { padding: 20px 14px; width: 100%; }
  .logo-container { top: 10px; left: 12px; }
  .logo { width: 88px; }
  .container { padding: 28px 14px; }
  .partner-logo { width: 72px; height: 42px; }
  .qr-box img { width: 64px; height: 64px; }
  .nav-links a { font-size: 1rem; padding: 12px 20px; }
}

/* ============================================================
   FIX MOBILE: secciones contenedor grandes
   ============================================================ */
@media (max-width: 768px) {
  section.animado,
  .partners-section.animado {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007bff, #0056cc);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  opacity: 0;
  transform: translateY(24px) scale(0.7);
  transition: opacity 0.35s, transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 4px 20px rgba(0,123,255,0.5);
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top:hover {
  transform: translateY(-5px) scale(1.12);
  box-shadow: 0 8px 28px rgba(0,123,255,0.65);
}
@media (max-width: 768px) {
  .back-to-top {
    bottom: 70px;
    right: 14px;
    width: 42px;
    height: 42px;
  }
}

/* ============================================================
   LOGO: animacion de entrada mejorada
   ============================================================ */
@keyframes logoSpin {
  0%   { transform: scale(0.4) rotate(-20deg); opacity: 0; filter: blur(4px); }
  60%  { transform: scale(1.15) rotate(5deg);  opacity: 1; filter: blur(0); }
  80%  { transform: scale(0.95) rotate(-2deg); }
  100% { transform: scale(1) rotate(0deg);     opacity: 1; filter: blur(0); }
}
.navbar .logo {
  animation: logoSpin 0.9s cubic-bezier(0.34,1.56,0.64,1) both !important;
}
.navbar a:hover img.logo {
  opacity: 1 !important;
  transform: scale(1.1) rotate(-5deg) !important;
  filter: drop-shadow(0 0 10px rgba(77,166,255,0.75)) !important;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), filter 0.35s !important;
}

/* ============================================================
   CONTACTO MOBILE: refuerzo de visibilidad de cards
   ============================================================ */
@media (max-width: 768px) {
  .contacto-dato {
    background: rgba(0, 0, 0, 0.72) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
  }
  .contacto-dato .cd-texto h4 { color: #4da6ff !important; }
  .contacto-dato .cd-texto p,
  .contacto-dato .cd-texto a {
    color: #e8f0ff !important;
    opacity: 1 !important;
  }
  .contacto-info h2     { color: #e0eeff !important; }
  .contacto-info > p    { opacity: 1 !important; color: rgba(255,255,255,0.88) !important; }
}