
body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #002d72, #00aaff);
  color: #fff;
  margin: 0;
}
.navbar {
  background-color: rgba(0,0,0,0.1);
  backdrop-filter: blur(5px);
}
.hero {
  text-align: center;
  padding: 100px 20px;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 700;
}
.hero p {
  font-size: 1.2rem;
}
.services .card {
  background-color: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.services .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.services .card i {
  color: #00c6ff;
  transition: color 0.3s ease, transform 0.3s ease;
}
.services .card:hover i {
  color: #fff;
  transform: scale(1.2);
}
.services .card h4 {
  color: #00e6e6;
}
.services .card p {
  color: #cceeff;
}
footer {
  background: linear-gradient(0deg, #002d72, #004080);
  color: white;
  padding: 30px 0 10px;
}
footer h5 {
  font-weight: bold;
}
footer ul {
  list-style: none;
  padding: 0;
}
footer ul li {
  margin-bottom: 5px;
}
footer .social-icons i {
  font-size: 1.5rem;
  margin: 0 8px;
  color: white;
}
footer a {
  color: #00e6e6;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}


/* Footer mejorado */
footer {
  background: linear-gradient(45deg, #001f4d, #003366);
  color: #fff;
  padding: 30px 0 10px;
  position: relative;
}

footer h5 {
  font-weight: bold;
  margin-bottom: 15px;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 5px;
}

footer .social-icons i {
  font-size: 1.5rem;
  margin: 0 8px;
  color: #00b4ff;
  transition: transform 0.3s, color 0.3s;
}

footer .social-icons i:hover {
  color: #66d4ff;
  transform: scale(1.2);
}

footer .col-md-3 {
  border-right: 1px solid rgba(255,255,255,0.1);
}

footer .col-md-3:last-child {
  border-right: none;
}

footer .col-md-3:hover {
  background-color: rgba(255,255,255,0.05);
}

footer a {
  color: #00e6e6;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
  color: #66ffff;
}


/* Footer más claro */
footer {
  background: linear-gradient(45deg, #007acc, #00c6ff);
}


/* Animación en iconos de servicios */
#servicios .rounded-circle {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#servicios .rounded-circle:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}


/* Slider mejorado con imágenes */
.hero-slide {
  height: 500px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide h1, .hero-slide p {
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}


/* Footer más oscuro y con diseño mejorado */
footer {
  background: linear-gradient(45deg, #000f2e, #001f4d);
  color: #fff;
  padding: 30px 0 10px;
  position: relative;
}

footer h5 {
  font-weight: bold;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 5px;
}

footer .social-icons i {
  font-size: 1.5rem;
  margin: 0 8px;
  color: #00e6e6;
  transition: transform 0.3s ease, color 0.3s ease;
}

footer .social-icons i:hover {
  color: #66ffff;
  transform: scale(1.2);
}

footer .col-md-3 {
  border-right: 1px solid rgba(255,255,255,0.1);
}

footer .col-md-3:last-child {
  border-right: none;
}

footer .col-md-3:hover {
  background-color: rgba(255,255,255,0.05);
}

footer a {
  color: #00e6e6;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
  color: #66ffff;
}

footer p.copyright {
  text-align: center;
  margin-top: 15px;
  font-size: 0.9rem;
  color: #aaa;
}


/* Animaciones y elementos visuales adicionales */

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#servicios .col-md-4 {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

#servicios .col-md-4:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

#contacto form {
  border-radius: 8px;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

footer .social-icons i {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}


/* Back to Top button */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  background: #007acc;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}


/* Animación suave al cargar */
body {
  opacity: 0;
  animation: fadeInBody 1s ease forwards;
}

@keyframes fadeInBody {
  to {
    opacity: 1;
  }
}

/* Parallax efecto para la hero */
.hero {
  background: linear-gradient(135deg, rgba(0,45,114,0.8), rgba(0,170,255,0.8)), url('assets/slide1.jpg') center/cover fixed no-repeat;
}


/* Footer más claro pero elegante */
footer {
  background: linear-gradient(45deg, #001a40, #003366);
}

/* Navbar con hover elegante */
.navbar-nav .nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #00e6e6;
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #00e6e6;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* Footer enlaces con animación */
footer a {
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}

footer a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: #00e6e6;
  transition: width 0.3s ease;
}

footer a:hover::after {
  width: 100%;
}


/* Secciones que aparecen al hacer scroll */
.scroll-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.show {
  opacity: 1;
  transform: translateY(0);
}


/* Hero refinado con animación de fondo */
.hero {
  background: linear-gradient(135deg, #0052cc, #007bff);
  background-size: 400% 400%;
  animation: gradientMove 10s ease infinite;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.25rem;
  margin-top: 15px;
}


/* Colores más vivos y combinados */
body {
  background-color: #f4f9ff;
}

.hero {
  background: linear-gradient(135deg, #004080, #00bfff);
}

#servicios {
  background: #e6f7ff;
}

#servicios .col-md-4 {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

#servicios .col-md-4:hover {
  background: #e0f0ff;
  transform: translateY(-5px);
}

#contacto form {
  border-radius: 8px;
}

footer {
  background: linear-gradient(135deg, #002d72, #0052cc);
}

footer a {
  color: #00b4ff;
}

footer a:hover {
  color: #66d4ff;
}

/* Botones más vivos */
.btn-primary {
  background-color: #007acc;
  border-color: #007acc;
}

.btn-primary:hover {
  background-color: #005fa3;
  border-color: #005fa3;
}


/* Logo SKYCLOUD estilizado */
.navbar-brand {
  font-family: 'Segoe UI', 'Arial Black', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: 1px;
  color: #66ccff !important;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, color 0.3s ease;
  padding-left: 0;
}

.navbar-brand:hover {
  color: #99ddff !important;
  transform: scale(1.05);
}


/* Ajuste en la sección Nuestros Servicios */
#servicios {
  background: linear-gradient(180deg, #cce6ff, #e6f2ff);
}

#servicios .col-md-4 {
  background: transparent;
  box-shadow: none;
}

#servicios .col-md-4:hover {
  background: rgba(255, 255, 255, 0.1);
}


/* Animación para las letras del logo */
.navbar-brand span {
  display: inline-block;
  transition: transform 0.3s ease;
}

.navbar-brand span.animate {
  animation: wave 1s infinite alternate;
}

@keyframes wave {
  0% { transform: translateY(0); }
  100% { transform: translateY(-3px); }
}


/* Typewriter effect styling */
.hero h1.typewriter {
  overflow: hidden;
  border-right: .15em solid #fff;
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: .05em;
  animation: blink-caret .75s step-end infinite;
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: #fff; }
}

/* Oculta cualquier cursor agregado por la clase typewriter */
.typewriter::after {
  content: none !important;
  display: none !important;
  animation: none !important;
  border: 0 !important;
}

/* Por si el “cursor” se simuló con borde derecho */
.typewriter {
  border-right: 0 !important;
}

.logo-img {
  height: 50px;
  width: 50px;
  object-fit: cover;
  display: inline-block;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px;
}

/* Portafolio Section */
#portafolio {
  background-color: #f4f9ff;
}

.portfolio-card {
  border: none;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  background: #fff;
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 82, 204, 0.15);
}

.portfolio-card .card-img-top {
  transition: transform 0.3s ease;
}

.portfolio-card:hover .card-img-top {
  transform: scale(1.05);
}

.portfolio-card .badge {
  font-size: 0.75rem;
  padding: 5px 10px;
}

.portfolio-card ul li {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

/* Testimonials */
.testimonial-card {
  border-left: 4px solid #0052cc;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(0, 82, 204, 0.1);
}

.testimonial-avatar {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Statistics */
.stat-card {
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: scale(1.05);
}

.stat-card h2 {
  color: #0052cc;
  transition: color 0.3s ease;
}

.stat-card:hover h2 {
  color: #007bff;
}

/* Proceso Section */
#proceso {
  background: linear-gradient(135deg, #0052cc, #007bff);
}

.proceso-step {
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInFromLeft 0.6s ease forwards;
}

.proceso-step:nth-child(1) { animation-delay: 0.1s; }
.proceso-step:nth-child(2) { animation-delay: 0.2s; }
.proceso-step:nth-child(3) { animation-delay: 0.3s; }
.proceso-step:nth-child(4) { animation-delay: 0.4s; }
.proceso-step:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInFromLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.proceso-step:hover .step-number {
  transform: scale(1.1) rotate(5deg);
}

.step-content {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Timeline Visual */
.timeline-visual {
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.timeline-circle {
  box-shadow: 0 3px 10px rgba(0, 82, 204, 0.3);
  transition: transform 0.3s ease;
}

.timeline-circle:hover {
  transform: scale(1.1);
}

.timeline-item {
  flex: 0 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .timeline-connector {
    display: none;
  }

  .timeline-item {
    margin-bottom: 15px;
  }
}

/* Nosotros Section */
#nosotros {
  background-color: #ffffff;
}

.about-image-wrapper {
  position: relative;
}

.about-image-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 82, 204, 0.1), rgba(0, 170, 255, 0.1));
  border-radius: 10px;
  top: -10px;
  left: -10px;
  z-index: 0;
}

.about-image-content {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 82, 204, 0.2) !important;
}

.stat-badge {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.stat-badge:hover {
  transform: scale(1.05);
  background-color: #e3f2fd !important;
}

/* Values */
.value-item {
  transition: transform 0.3s ease;
}

.value-item:hover {
  transform: translateX(10px);
}

.value-icon {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-item:hover .value-icon {
  transform: rotate(5deg) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Mission and Vision Cards */
.mission-card, .vision-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover, .vision-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

/* Industries */
.industry-badge {
  background-color: #f8f9fa;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.industry-badge:hover {
  background-color: #e3f2fd;
  border-color: #0052cc;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 82, 204, 0.15);
}

.industry-badge i {
  transition: transform 0.3s ease;
}

.industry-badge:hover i {
  transform: scale(1.2);
}

/* CTA Boxes */
.cta-box {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 82, 204, 0.3);
}

/* Enhanced Buttons */
.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: white;
}

.hero .btn {
  transition: all 0.3s ease;
}

.hero .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Tecnologías Section */
#tecnologias {
  background-color: #ffffff;
}

.tech-badge {
  background-color: #f8f9fa;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.tech-badge:hover {
  background-color: #ffffff;
  border-color: #0052cc;
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 82, 204, 0.2);
}

.tech-badge i {
  transition: transform 0.3s ease;
}

.tech-badge:hover i {
  transform: scale(1.15) rotate(5deg);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
  transition: all 0.3s ease;
  z-index: 998;
  animation: pulseWhatsApp 2s infinite;
}

.whatsapp-float:hover {
  background: #20ba5a;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.7);
}

.whatsapp-float i {
  color: #fff;
}

@keyframes pulseWhatsApp {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
  }
  50% {
    box-shadow: 0 4px 25px rgba(37, 211, 102, 0.8);
  }
}

/* Trust Indicators Section */
.trust-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e9ecef;
}

.trust-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 82, 204, 0.15) !important;
}

.trust-icon {
  transition: transform 0.3s ease;
}

.trust-card:hover .trust-icon {
  transform: scale(1.1) rotate(5deg);
}

.cert-badge {
  transition: all 0.3s ease;
  border-radius: 8px;
}

.cert-badge:hover {
  background-color: #f8f9fa;
  transform: translateY(-5px);
}

.trust-guarantee-box {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-guarantee-box:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 82, 204, 0.3);
}

/* ==================== HERO MEJORADO ==================== */

.hero {
  padding: 120px 20px 80px;
  position: relative;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

/* Nubes animadas */
.hero-clouds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
}

.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

/* Nube 1 - Grande, arriba izquierda */
.cloud-1 {
  width: 200px;
  height: 50px;
  top: 15%;
  left: -220px;
  animation: cloudFloat 25s linear infinite;
}
.cloud-1::before {
  width: 80px;
  height: 80px;
  top: -40px;
  left: 30px;
}
.cloud-1::after {
  width: 60px;
  height: 60px;
  top: -25px;
  left: 90px;
}

/* Nube 2 - Mediana, centro */
.cloud-2 {
  width: 150px;
  height: 40px;
  top: 55%;
  left: -170px;
  background: rgba(255, 255, 255, 0.06);
  animation: cloudFloat 30s linear infinite;
  animation-delay: 8s;
}
.cloud-2::before {
  width: 60px;
  height: 60px;
  top: -30px;
  left: 20px;
}
.cloud-2::after {
  width: 45px;
  height: 45px;
  top: -18px;
  left: 70px;
}

/* Nube 3 - Pequeña, arriba */
.cloud-3 {
  width: 120px;
  height: 35px;
  top: 25%;
  left: -140px;
  background: rgba(255, 255, 255, 0.05);
  animation: cloudFloat 35s linear infinite;
  animation-delay: 15s;
}
.cloud-3::before {
  width: 50px;
  height: 50px;
  top: -25px;
  left: 15px;
}
.cloud-3::after {
  width: 40px;
  height: 40px;
  top: -15px;
  left: 55px;
}

/* Nube 4 - Grande, abajo */
.cloud-4 {
  width: 180px;
  height: 45px;
  top: 75%;
  left: -200px;
  background: rgba(255, 255, 255, 0.07);
  animation: cloudFloat 28s linear infinite;
  animation-delay: 5s;
}
.cloud-4::before {
  width: 70px;
  height: 70px;
  top: -35px;
  left: 25px;
}
.cloud-4::after {
  width: 55px;
  height: 55px;
  top: -22px;
  left: 85px;
}

/* Nube 5 - Pequeña, arriba derecha */
.cloud-5 {
  width: 100px;
  height: 30px;
  top: 10%;
  left: -120px;
  background: rgba(255, 255, 255, 0.04);
  animation: cloudFloat 40s linear infinite;
  animation-delay: 20s;
}
.cloud-5::before {
  width: 40px;
  height: 40px;
  top: -20px;
  left: 12px;
}
.cloud-5::after {
  width: 35px;
  height: 35px;
  top: -12px;
  left: 45px;
}

@keyframes cloudFloat {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(calc(100vw + 300px));
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .cloud-1, .cloud-4 {
    transform: scale(0.6);
  }
  .cloud-2, .cloud-3, .cloud-5 {
    display: none;
  }
}

.hero-highlight {
  background: linear-gradient(90deg, #66ccff, #99ddff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-badge {
  animation: fadeInDown 0.8s ease-out;
}

.hero-stats {
  animation: fadeInUp 1.2s ease-out;
}

.hero-stat {
  padding: 0 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat:last-child {
  border-right: none;
}

@media (max-width: 768px) {
  .hero {
    padding: 80px 20px 60px;
  }
  .hero h1 {
    font-size: 2rem !important;
  }
  .hero-stat {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 0;
  }
  .hero-stat:last-child {
    border-bottom: none;
  }
}

/* ==================== PREVIEW CARDS MEJORADAS ==================== */

.preview-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e9ecef;
  position: relative;
  overflow: hidden;
}

.preview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0052cc, #00aaff);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.preview-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 82, 204, 0.12) !important;
}

.preview-card:hover::before {
  transform: scaleX(1);
}

.preview-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f0f7ff, #e6f2ff);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.preview-card:hover .preview-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, #e0edff, #cce0ff);
}

.preview-card .btn {
  transition: all 0.3s ease;
}

.preview-card:hover .btn {
  transform: translateX(3px);
}

/* ==================== FORMULARIO CONTACTO MEJORADO ==================== */

#contacto .contact-form {
  background: linear-gradient(135deg, #002d72, #0052cc) !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

#contacto .contact-form .form-control {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

#contacto .contact-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

#contacto .contact-form .form-control:focus {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 0.2rem rgba(102, 204, 255, 0.25);
  border-color: rgba(102, 204, 255, 0.5);
  color: #fff;
}

.contact-form .btn-light {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form .btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

/* ==================== POLÍTICAS LEGALES ==================== */

/* Páginas de políticas legales */
.legal-content {
  background-color: white;
  color: #333;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  line-height: 1.8;
}

.legal-content h3 {
  color: #0052cc;
  border-bottom: 2px solid #0052cc;
  padding-bottom: 10px;
  margin-top: 30px;
}

.legal-content h4 {
  color: #003d99;
  margin-top: 20px;
}

.legal-content ul {
  margin-left: 20px;
}

.legal-content ul li {
  margin-bottom: 10px;
}

.legal-content a {
  color: #0052cc;
  text-decoration: none;
  font-weight: 500;
}

.legal-content a:hover {
  color: #003d99;
  text-decoration: underline;
}

.legal-content .table {
  margin-top: 15px;
  margin-bottom: 15px;
}

.legal-content .table thead {
  background-color: #0052cc;
  color: white;
}

.legal-content .alert {
  border-radius: 8px;
}

/* ==================== BANNER DE COOKIES ==================== */

/* Banner de cookies */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #001a40, #003366);
  color: white;
  padding: 20px 0;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
  z-index: 9999;
  display: none;
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner h5 {
  font-weight: bold;
  margin-bottom: 10px;
}

.cookie-banner p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.cookie-banner a {
  color: #66ccff;
  font-weight: 500;
}

.cookie-banner a:hover {
  color: #99ddff;
}

.cookie-banner .btn-light {
  background-color: white;
  color: #003366;
  border: none;
  font-weight: 500;
}

.cookie-banner .btn-light:hover {
  background-color: #f0f0f0;
  color: #001a40;
}

.cookie-banner .btn-primary {
  background-color: #0052cc;
  border: none;
  font-weight: 500;
}

.cookie-banner .btn-primary:hover {
  background-color: #003d99;
}

.cookie-banner .btn-outline-light {
  border-color: white;
  color: white;
  font-weight: 500;
}

.cookie-banner .btn-outline-light:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: white;
  color: white;
}

/* Modal de configuración de cookies */
.cookie-category {
  padding: 15px;
  border-left: 3px solid #0052cc;
  background-color: #f8f9fa;
  border-radius: 5px;
}

.cookie-category .form-check-input:checked {
  background-color: #0052cc;
  border-color: #0052cc;
}

.cookie-category .form-check-input:disabled {
  opacity: 0.7;
}

/* Responsive para banner de cookies */
@media (max-width: 991px) {
  .cookie-banner {
    padding: 15px 0;
  }

  .cookie-banner h5 {
    font-size: 1.1rem;
  }

  .cookie-banner p {
    font-size: 0.85rem;
  }

  .cookie-banner .btn {
    font-size: 0.9rem;
    padding: 8px 15px;
  }
}

@media (max-width: 576px) {
  .cookie-banner .btn {
    width: 100%;
    margin-bottom: 5px !important;
  }
}

/* ==================== MEJORAS AL FOOTER ==================== */

/* Enlaces del footer mejorados */
footer ul li {
  list-style: none;
  margin-bottom: 8px;
  transition: transform 0.2s ease;
}

footer ul li:hover {
  transform: translateX(5px);
}

footer ul li a {
  color: #00b4ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer ul li a:hover {
  color: #66d4ff;
  text-decoration: underline;
}

/* ==================== ANIMACIONES EXTRA ==================== */

/* 1. Hero slide-up entrance */
.hero-slide-up {
  opacity: 0;
  transform: translateY(30px);
  animation: heroSlideUp 0.8s ease forwards;
}

@keyframes heroSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 2. Hero text reveal (para "Ágil") */
.hero-text-reveal {
  display: inline-block;
  opacity: 0;
  transform: scale(0.5) rotateY(90deg);
  animation: textReveal 1s ease forwards;
  animation-delay: 1.5s;
}

@keyframes textReveal {
  0% {
    opacity: 0;
    transform: scale(0.5) rotateY(90deg);
  }
  60% {
    transform: scale(1.2) rotateY(0deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
  }
}

/* 3. Botón CTA con efecto glow pulsante */
.btn-glow {
  position: relative;
  animation: btnGlow 2.5s ease-in-out infinite;
}

@keyframes btnGlow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3), 0 0 10px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6), 0 0 30px rgba(255, 255, 255, 0.2), 0 0 45px rgba(102, 204, 255, 0.15);
  }
}

/* 4. Tarjetas con fade-in escalonado al hacer scroll */
.card-stagger {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.card-stagger.visible {
  opacity: 1;
  transform: translateY(0);
}

.card-stagger:nth-child(1) { transition-delay: 0s; }
.card-stagger:nth-child(2) { transition-delay: 0.1s; }
.card-stagger:nth-child(3) { transition-delay: 0.2s; }
.card-stagger:nth-child(4) { transition-delay: 0.3s; }
.card-stagger:nth-child(5) { transition-delay: 0.4s; }
.card-stagger:nth-child(6) { transition-delay: 0.5s; }

/* 5. Parallax suave para nubes */
.hero-clouds.parallax-active .cloud {
  transition: transform 0.1s linear;
}
