/* Fuente global */
body {
  font-family: 'Roboto', sans-serif;
  scroll-behavior: smooth;
}

/* Ajustes de sección */
section {
  padding-top: 60px;
}

/* Cards elevadas */
.card {
  transition: transform .3s, box-shadow .3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Botón WhatsApp grande */
.btn-success {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
}

section {
  scroll-margin-top: 70px; /* Ajusta el valor según la altura real de tu navbar */
}

header#inicio {
  scroll-margin-top: 70px;
}

html, body {
  overflow-x: hidden;
}

/* --- Animaciones de entrada al hacer scroll --- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Efecto para títulos --- */
h2, h3, h4 {
  transition: color 0.3s ease, transform 0.3s ease;
}

h2:hover, h3:hover, h4:hover {
  color: #007bff;
  transform: scale(1.02);
}

/* --- Imágenes suaves --- */
img {
  transition: transform 0.4s ease, filter 0.4s ease;
}

img:hover {
  transform: scale(1.03);
  filter: brightness(1.05);
}

/* --- Botón WhatsApp con efecto hover --- */
.btn-success {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-success:hover {
  background-color: #28a745;
  transform: scale(1.05);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-12px);
  }
  60% {
    transform: translateY(-6px);
  }
}

.bounce {
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.3s ease;
  animation: bounce 1.5s infinite;
  margin-bottom: 1rem;
  width: 320px;
  justify-content: center;
}

.btn-social img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.btn-whatsapp {
  background-color: #25D366;
}

.btn-whatsapp:hover {
  background-color: #1ebe5d;
}

.btn-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.btn-instagram:hover {
  filter: brightness(1.1);
}

/* Bounce keyframes (mantenemos igual) */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Botón base corregido */
.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.1rem;
  padding: 0.75rem 1.2rem;
  border-radius: 50px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  animation: bounce 1.8s infinite;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-bottom: 1rem;
  width: 320px;
  text-align: center;
  line-height: 1.2;
}

/* Imagen alineada correctamente */
.btn-social img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* WhatsApp (verde oficial) */
.btn-whatsapp {
  background-color: #25D366;
}

.btn-whatsapp:hover {
  background-color: #1ebe5d;
}

/* Instagram (color sólido moderno) */
.btn-instagram {
  background-color: #E1306C;
}

.btn-instagram:hover {
  background-color: #c2275d;
}

.blog-paragraph {
  text-align: justify;
  margin-bottom: 1rem;
}

@media (max-width: 576px) {
  .blog-paragraph {
    text-align: left;
  }
}

/*slider automatico */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: #f5f5f5;
}

.slider-box{
  width: 100%;
  max-width: 1280px;
  height: auto;
  margin: 50px auto 0;
  overflow: hidden;
}

.slider-box ul{
    display: flex;
    padding: 0;
    width: auto;
    animation: slide 20s infinite alternate ease-in-out;
}

.slider-box li{
    width: 33.3333%;
    list-style: none;
    position: relative;
}

.slider-box img{
    
    max-height: 500px;
}

@keyframes slide{
    0%{margin-left: 0;}
    20%{margin-left: 0;}

    25%{margin-left: -100%;}
    45%{margin-left: -100%;}

    50%{margin-left: -200%;}
    70%{margin-left: -200%;}
    
    75%{margin-left: -300%;}
    100%{margin-left: -300%;}
}

@media(max-width:991px){
    body{
        padding: 30px;
    }
    
    .slider-box{
        width: 100%;
    }
}

