* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: #f8fafc;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #0f172a;
  color: white;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: background 0.3s;
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #60a5fa;
}

.nav-menu ul {
  display: flex;
  list-style: none;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  padding: 0.8rem 1.2rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #93c5fd;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 4px 0;
  transition: 0.3s;
}

.hero {
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1551434678-e076c223a692?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
  color: white;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bubbles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: -100px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 15s infinite ease-in-out;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.bubble:nth-child(1) { left: 10%; width: 80px; height: 80px; animation-duration: 20s; animation-delay: 0s; }
.bubble:nth-child(2) { left: 20%; width: 60px; height: 60px; animation-duration: 18s; animation-delay: 2s; }
.bubble:nth-child(3) { left: 35%; width: 100px; height: 100px; animation-duration: 22s; animation-delay: 4s; }
.bubble:nth-child(4) { left: 50%; width: 40px; height: 40px; animation-duration: 15s; animation-delay: 6s; }
.bubble:nth-child(5) { left: 65%; width: 70px; height: 70px; animation-duration: 25s; animation-delay: 8s; }
.bubble:nth-child(6) { left: 80%; width: 90px; height: 90px; animation-duration: 19s; animation-delay: 10s; }
.bubble:nth-child(7) { left: 15%; width: 50px; height: 50px; animation-duration: 17s; animation-delay: 12s; }
.bubble:nth-child(8) { left: 40%; width: 110px; height: 110px; animation-duration: 23s; animation-delay: 14s; }
.bubble:nth-child(9) { left: 55%; width: 30px; height: 30px; animation-duration: 16s; animation-delay: 16s; }
.bubble:nth-child(10) { left: 70%; width: 80px; height: 80px; animation-duration: 21s; animation-delay: 18s; }

@keyframes float {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(-120vh) translateX(50px); opacity: 0; }
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.6rem;
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
}

.primary {
  background: #3b82f6;
  color: white;
  border: none;
}

.primary:hover {
  background: #2563eb;
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(59,130,246,0.4);
}

.secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.secondary:hover {
  background: white;
  color: #3b82f6;
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.large { padding: 1.2rem 3rem; font-size: 1.2rem; }
.small { padding: 0.8rem 1.8rem; font-size: 0.95rem; }
.mt-1 { margin-top: 1rem; }
.mt-4 { margin-top: 4rem; }

.section {
  padding: 8rem 0;
}

.bg-light {
  background: #f1f5f9;
}

.bg-dark {
  background: #0f172a;
  color: white;
}

h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 4rem;
  color: #1e40af;
}

.subheader {
  font-size: 2rem;
  margin: 3rem 0 1.5rem;
  color: #2563eb;
}

.content-block {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.content-block p {
  flex: 1;
  min-width: 300px;
}

.section-img {
  width: 40%;
  min-width: 300px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.section-img:hover {
  transform: scale(1.03);
}

.section-img.right {
  order: 2;
}

.grid-2, .grid-3 {
  display: grid;
  gap: 2.5rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.1);
  transition: transform 0.4s, box-shadow 0.4s;
  text-align: center;
}

.card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.icon-large {
  font-size: 4rem;
  color: #3b82f6;
  margin-bottom: 1.5rem;
}

.icon-service {
  font-size: 3rem;
  color: #1d4ed8;
  margin-bottom: 1.5rem;
}

.green { color: #10b981; }

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.blog-img {
  margin-bottom: 1rem;
}

.text-center { text-align: center; }

.contact-grid {
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form input, .contact-form textarea {
  padding: 1rem;
  border: 1px solid #94a3b8;
  border-radius: 8px;
  background: #1e293b;
  color: white;
}

.contact-form textarea {
  height: 150px;
}

.contact-form button {
  align-self: flex-start;
}

footer {
  background: #020617;
  color: #94a3b8;
  padding: 3rem 0;
  font-size: 1rem;
}

/* Animaciones */
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsivo */
@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #0f172a;
    display: none;
  }

  .nav-menu.active {
    display: block;
  }

  .nav-menu ul {
    flex-direction: column;
    padding: 1rem 0;
  }

  .nav-menu a {
    display: block;
    padding: 1.2rem 2rem;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 { font-size: 3rem; }
  .hero p  { font-size: 1.3rem; }

  .section { padding: 5rem 0; }
  h2 { font-size: 2.5rem; }

  .content-block { flex-direction: column; }
  .section-img { width: 100%; margin-bottom: 2rem; }
  .section-img.right { order: 0; }
}












/* =========================
   SECCIÓN CONTACTO PREMIUM
========================= */

#contacto {
  padding: 80px 0;
  background: linear-gradient(135deg, #0f172a, #0b1120);
  color: #ffffff;
}

#contacto .container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* HEADER */
.contact-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 15px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 18px;
  color: #cbd5e1;
  max-width: 750px;
  margin: auto;
  line-height: 1.6;
}

/* GRID 2 COLUMNAS */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

/* COLUMNA INFO */
.contact-info {
  background: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 16px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.3s ease;
}

.contact-info:hover {
  transform: translateY(-5px);
  border-color: #3b82f6;
}

.contact-title {
  font-size: 24px;
  margin-bottom: 25px;
  color: #3b82f6;
}

.contact-text {
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 16px;
  color: #e2e8f0;
}

.contact-text i {
  color: #06b6d4;
  margin-right: 10px;
  font-size: 18px;
}

.contact-text a {
  color: #3b82f6;
  text-decoration: none;
  transition: 0.3s;
}

.contact-text a:hover {
  color: #06b6d4;
}

/* CTA */
.contact-cta {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-cta h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #ffffff;
}

.contact-cta p {
  font-size: 15px;
  color: #cbd5e1;
}

/* MAPA */
.contact-map {
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 16px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.3s ease;
}

.contact-map:hover {
  transform: translateY(-5px);
  border-color: #06b6d4;
}

.contact-map iframe {
  border-radius: 12px;
  width: 100%;
  height: 400px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-title {
    font-size: 30px;
  }

  .section-subtitle {
    font-size: 16px;
  }
}