/* ========================
   RESET Y BASE
======================== */
:root {
  --bs-primary: #0d6efd; /* Color primary de Bootstrap */
  --bs-secondary: #6c757d;
  --light-bg: #f8f9fa; /* Fondo más limpio */
  --dark-bg: #121212;
  --card-light-bg: #ffffff;
  --card-dark-bg: #1f1f1f;
  --text-light: #333;
  --text-dark: #f8f9fa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  background-color: var(--light-bg);
  color: var(--text-light);
  scroll-behavior: smooth;
  transition: background-color 0.5s, color 0.5s;
}

a { 
    text-decoration: none; 
    transition: color 0.3s ease; 
    color: var(--bs-primary); 
}

/* ========================
   DARK MODE
======================== */
body.dark-mode {
  background-color: var(--dark-bg);
  color: var(--text-dark);
}

body.dark-mode a {
    color: #4da6ff; 
}
body.dark-mode header,
body.dark-mode header.scrolled {
  background-color: rgba(26, 26, 26, 0.9) !important;
}

body.dark-mode .card {
  background-color: var(--card-dark-bg);
  color: var(--text-dark);
  border-color: #333 !important;
}

body.dark-mode .bg-light { 
    background-color: #212529 !important;
}

body.dark-mode .text-muted {
    color: #b0b3b8 !important;
}

/* ========================
   HEADER Y NAVEGACIÓN
======================== */
header {
  transition: all 0.3s ease;
  backdrop-filter: blur(8px); 
  z-index: 1050; 
}
header.scrolled {
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ========================
   BOTONES FLOTANTES (Corregido y consolidado)
======================== */
#floating-buttons {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#floating-buttons button,
#floating-buttons a {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    transition: all 0.3s ease, transform 0.3s ease;
    border: none !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#theme-toggle { 
    background-color: var(--bs-secondary); 
    color: white; 
}

#toTop { 
    background-color: var(--bs-secondary); 
    color: white; 
    display: none; 
    opacity: 0; /* Para la transición de JS */
}

#whatsapp-float { 
    /* Colocado en la parte inferior de la columna flex */
    background-color: #25D366; 
    color: white; 
    font-size: 1.8rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

#floating-buttons button:hover,
#floating-buttons a:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}


/* ========================
   CARDS DE SERVICIOS Y PORTAFOLIO
======================== */
.card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border-radius: 12px;
  background-color: var(--card-light-bg); 
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  cursor: default;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* ========================
   SECCIÓN PLANES (Pricing Cards)
======================== */
.pricing-card {
    border: 3px solid !important;
    border-radius: 15px;
}

.pricing-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

/* ========================
   ANIMACIONES SCROLL (Se mantiene)
======================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 992px) {
    .navbar-brand {
        padding-top: 0.3125rem;
        padding-bottom: 0.3125rem;
    }
    .hero {
        padding-top: 80px;
    }
}
#hero-image-placeholder img {
  animation: float 6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.02);
  }
}
