/* RESET & ESTILOS GENERALES */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* FORZAR EL FONDO EN EL BODY DE MANERA ABSOLUTA */
html, body {
  background: url('https://digitalweb.blog/iamgenes/portada.jpg') no-repeat center center fixed !important;
  background-size: cover !important;
  background-color: #030805 !important;
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* ASEGURAR QUE LOS CONTENEDORES PRINCIPALES NO TAPEN EL FONDO CON COLOR SÓLIDO */
.content-container, 
.main-layout-wrapper {
  background: transparent !important;
}

/* NAVBAR ULTRANEGRO Y ELEGANTE CON TRANSPARENCIA SUTIL */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 5%;
  background-color: rgba(3, 8, 5, 0.90) !important;
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(37, 211, 102, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.logo-badge {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  font-size: 1rem;
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(37, 211, 102, 0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: #cbd5e0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a.active {
  background-color: #25d366;
  padding: 6px 16px;
  border-radius: 20px;
  color: #ffffff !important;
}

/* BOTÓN DE WHATSAPP EN NAVBAR CON ENCOGIDO VERDE */
.nav-whatsapp-badge {
  background: rgba(37, 211, 102, 0.15) !important;
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #25d366 !important;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.nav-whatsapp-badge:hover {
  background: #25d366 !important;
  color: #ffffff !important;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
  transform: translateY(-1px);
}

/* LAYOUT PRINCIPAL CON GATO Y PANEL LATERAL */
.main-layout-wrapper {
  display: flex;
  max-width: 1700px;
  margin: 0 auto;
  position: relative;
}

.content-container {
  flex: 1;
  min-width: 0;
}

/* PANEL LATERAL DERECHO */
.sidebar-cat-container {
  width: 300px;
  padding: 30px 20px;
  position: sticky;
  top: 90px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.cat-card {
  background: rgba(5, 12, 8, 0.85);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  text-align: center;
  width: 100%;
  transition: transform 0.3s ease;
}

.cat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 211, 102, 0.6);
}

.cat-card img {
  width: 100%;
  height: auto;
  display: block;
}

.cat-caption {
  padding: 12px;
  font-size: 0.82rem;
  color: #a0aec0;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(3, 8, 5, 0.9);
}

/* ESTILO PARA LA IMAGEN DEBAJO DEL GATO */
.extra-sidebar-card {
  width: 100%;
  background: rgba(5, 12, 8, 0.85);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease;
}

.extra-sidebar-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 211, 102, 0.6);
}

.extra-sidebar-card img {
  width: 100%;
  height: auto;
  display: block;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 0 8px #25d366;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px #25d366; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* HERO SUPERIOR */
.hero {
  text-align: center;
  padding: 45px 20px 20px;
}

.hero h1 {
  font-size: 2.1rem;
  letter-spacing: 1px;
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* PORTAFOLIO GRID */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 30px;
  padding: 10px 4% 30px;
  max-width: 1300px;
  margin: 0 auto;
}

.portfolio-card h3 {
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: #cbd5e0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* MARCO TIPO LAPTOP */
.laptop-mockup {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.laptop-mockup .screen {
  background-color: #0d0f12;
  border: 8px solid #1a202c;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  aspect-ratio: 16 / 10;
}

.laptop-mockup .screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.laptop-mockup .keyboard {
  background: linear-gradient(to bottom, #2d3748, #1a202c);
  height: 14px;
  border-radius: 0 0 10px 10px;
  position: relative;
  width: 106%;
  left: -3%;
  box-shadow: 0 6px 12px rgba(0,0,0,0.8);
}

.full-width-card {
  grid-column: 1 / -1;
}

.extra-grid-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 30px;
}

/* SECCIÓN INFERIOR */
.footer-hero {
  text-align: center;
  padding: 50px 20px 70px;
  background: rgba(3, 8, 5, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 20px;
  backdrop-filter: blur(10px);
}

.footer-subtitle {
  color: #a0aec0;
  font-size: 1.15rem;
  margin-bottom: 25px;
  font-weight: 500;
}

/* BOTÓN DE CONSULTA */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #25d366;
  color: #ffffff !important;
  padding: 15px 38px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  background-color: #20ba5a;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* BOTÓN FLOTANTE DE WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #20ba5a;
}

/* RESPONSIVE PARA CELULARES Y TABLETS */
@media (max-width: 1100px) {
  .sidebar-cat-container {
    display: none;
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    padding: 10px 15px 20px;
  }
  .extra-grid-preview {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .navbar {
    padding: 12px 4%;
  }
  .nav-links a:not(.nav-whatsapp-badge) {
    display: none;
  }
}