/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f9f9f9;
}

/* 🔴 Barra superior fija */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ba0a0a;
  color: white;
  padding: 5px 0;
  text-align: center;
  z-index: 1000; /* arriba de todo */
}

.top-bar marquee {
  font-size: 14px;
  font-weight: bold;
  color: white;
}

/* 📌 Logo flotando */
.logo {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1100; /* más arriba que el menú y la barra */
}

.logo img {
  height: 50px;
  width: 50px;
  border: 3px solid black;
  border-radius: 10%; /* redondeado */
  background: white;
  padding: 2px;
}

/* Pantalla de carga */
#splash {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(-45deg, #d9420b, #e75a21, #ff7044, #b33508);
  background-size: 400% 400%;
  animation: gradientBG 10s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 1s ease;
}

#splash img {
  width: 150px; /* tamaño del logo */
  animation: zoomIn 1.5s ease infinite alternate;
}

/* Animación del logo */
@keyframes zoomIn {
  from { transform: scale(1); }
  to { transform: scale(1.2); }
}

/* Animación del degradado */
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 📂 Navbar fija */
.navbar {
  position: fixed;
  top: 25px;
  left: 0;
  width: 100%;
  background: #eee;
  padding: 10px 15px;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu {
  list-style: none;
  display: none; /* Oculto por defecto en mobile */
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.menu.show {
  display: flex; /* se activa al hacer clic */
}

.menu li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  display: block;
  padding: 10px;
  border-radius: 5px;
  transition: background 0.3s;
}

.menu li a:hover {
  background: #ddd;
}

/* Botón hamburguesa a la derecha */
.menu-toggle {
  font-size: 24px;
  cursor: pointer;
  color: #333;
  margin-left: auto;
  display: block;
}

/* 🔄 Adaptación en PC */
@media (min-width: 768px) {
  .menu {
    display: flex !important;
    flex-direction: row;
    justify-content: center; /* 👈 centrado */
    gap: 20px;
    margin-top: 0;
    width: 100%; /* ocupa todo el ancho */
  }
  .menu-toggle {
    display: none;
  }
}


/* 🔴 Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  background: #c62828;
  color: white;
  padding: 30px 15px; /* más angosto */
  text-align: center;
 
}

.hero-texto {
  flex: 1;
  margin-bottom: 15px;
}

.hero-texto h1 {
  font-size: 24px;
  margin-bottom: 10px;
}

.hero-texto p {
  font-size: 14px;
  margin-bottom: 15px;
}

.btn-rojo, .btn-verde {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  margin: 5px;
  font-weight: bold;
  cursor: pointer;
}

.btn-rojo {
  background: #fff;
  color: #c62828;
}

.btn-verde {
  background: #388e3c;
  color: white;
}

/* 📷 Carrusel */
.hero-carrusel {
  flex: 1;
}

.carousel {
  position: relative;
  overflow: hidden;
}

.slide {
  display: none;
  width: 100%;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
}

/* 🔄 Adaptación PC */
@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 40px 50px;
  }
  .hero-texto {
    flex: 1;
    padding-right: 20px;
  }
  .hero-carrusel {
    flex: 1;
  }
}

/* 📞 Sección de contacto */
.contacto {
  padding: 60px 20px;
  background: #f4f4f4;
  text-align: center;
  margin-top: 5%;
}

.contacto h2 {
  font-size: 26px;
  margin-bottom: 15px;
  color: #c62828;
}

.contacto p {
  margin-bottom: 30px;
  color: #555;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  color: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card i {
  font-size: 20px;
}

/* Colores diferenciados */
.contact-card.whatsapp {
  background: #25d366;
}

.contact-card.phone {
  background: #dd400f;
}

.contact-card.phone-1 {
  background: #66b52a;
}

.contact-card:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 🔄 Adaptación en PC */
@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* 📦 Sección servicios */
.servicios {
  padding: 80px 20px;
  background: #f9fafc;
  text-align: center;
}

.servicios h2 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #222;
}

.subtitulo {
  color: #666;
  margin-bottom: 40px;
  font-size: 16px;
}

.servicios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto 40px auto;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  text-align: left;
}

.card:hover {
  transform: translateY(-5px);
}

.icono {
  font-size: 32px;
  margin-bottom: 15px;
  color: #c62828; /* rojo corporativo */
}

.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #111;
}

.card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}

.card ul {
  list-style: none;
  padding: 0;
}

.card ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  color: #444;
  font-size: 14px;
}

.card ul li i {
  color: #25d366; /* verde tipo check */
  font-size: 16px;
}

/* Botón ver más */
.btn-ver-mas {
  display: inline-block;
  color: #c62828;
  font-weight: bold;
  text-decoration: none;
  margin-top: 20px;
  transition: color 0.3s;
}

.btn-ver-mas:hover {
  color: #a21818;
}

/* 🔄 Responsive */
@media (min-width: 768px) {
  .servicios-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .servicios-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}


/* 📲 Botón flotante WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  font-size: 28px;
  padding: 14px 18px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1200;
  transition: transform 0.2s ease;
  display: none; /* oculto en desktop */
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.15);
}

/* Animación de latido */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Mostrar solo en móviles */
@media (max-width: 768px) {
  .whatsapp-float {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}


/* ⚫ Footer */
.footer {
  background: #111;
  color: #ccc;
  padding: 40px 20px 20px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-logo img {
  height: 50px;
  width: auto;
  border-radius: 8px;
  background: white;
  padding: 5px;
}

.footer-logo h3 {
  color: white;
  font-size: 18px;
  margin: 0;
}

.footer-redes {
  display: flex;
  gap: 15px;
}

.footer-redes a {
  color: white;
  font-size: 20px;
  background: #c62828;
  padding: 10px;
  border-radius: 50%;
  transition: transform 0.3s ease, background 0.3s ease;
}

.footer-redes a:hover {
  background: #388e3c;
  transform: scale(1.1);
}

.footer-copy {
  margin-top: 20px;
  font-size: 14px;
  color: #777;
}

/* 🔄 Responsive en PC */
@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
  }
  .footer-logo {
    flex-direction: row;
  }
}

/* 📢 Redes Sociales */
.redes {
  padding: 80px 20px;
  text-align: center;
  background: #fff;
}

.redes h2 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #222;
}

.redes p {
  color: #555;
  margin-bottom: 40px;
}

.redes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.red-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 25px;
  border-radius: 12px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.red-card i {
  font-size: 32px;
}

.red-card small {
  font-size: 13px;
  opacity: 0.9;
}

/* Colores por red */
.red-card.facebook { background: #1877f2; }
.red-card.instagram { background: #e1306c; }
.red-card.youtube { background: #ff0000; }
.red-card.whatsapp { background: #25d366; }
.red-card.threads { background: #000; }

.red-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

/* Responsive */
@media (min-width: 768px) {
  .redes-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .redes-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}



<!-- Estilos -->
 .social-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 25px;
    width: 150px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .icon-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
  }

  .icon-circle img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: brightness(0) invert(1); /* pone los logos en blanco */
    transition: transform 0.3s ease;
  }

  /* Hover en la tarjeta */
  .social-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }

  .social-card:hover img {
    transform: rotate(10deg) scale(1.2);
  }

  .social-card p {
    margin: 0;
    font-size: 1rem;
    text-align: center;
  }

  /* Colores oficiales */
  .facebook { background: #1877f2; }
  .whatsapp { background: #25d366; }
  .youtube  { background: #ff0000; }
  .tiktok   { background: #000000; }
  .threads  { background: #000000; }
  .instagram { 
    background: radial-gradient(circle at 30% 107%, 
      #fdf497 0%, #fdf497 5%, 
      #fd5949 45%, #d6249f 60%, 
      #285AEB 90%);
  }