:root {
    --bg-dark: #131c2b;
    --bg-gradient: linear-gradient(135deg, #151a2d 60%, #2188ff 100%);
    --card-glow: 0 0 32px #2188ff55;
    --accent: #2188ff;
    --accent-2: #7f5fff;
    --card-bg: #191f36;
    --text-main: #f5f7fa;
    --text-secondary: #b6c1db;
    --border-radius: 18px;
    --shadow: 0 2px 24px #2188ff22;
    --transition: 0.3s cubic-bezier(.5,1.5,.5,1);
}

body {
    font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

#particle-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh;
    pointer-events: none;
    z-index: 0;
}
.page-gradient {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(120deg, #151a2d 65%, #2188ff 100%);
    opacity: 0.8;
    z-index: 0;
    pointer-events: none;
    animation: gradientMove 10s ease-in-out infinite alternate;
}
@keyframes gradientMove {
    0% { background-position: left top; }
    100% { background-position: right bottom; }
}

.navbar {
    position: fixed;
    left: 0;
    width: 95vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2.5rem;
    background: rgba(19,28,43,0.96);
    top: 0;
    z-index: 999;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}
.logo-img {
  height: 50px;
  width: auto;
  vertical-align: middle;
  margin-right: 20px;
}
.logo-area {
  display: flex;
  align-items: center;

}
.logo svg {
    margin-right: 4px;
}
.logo:hover {
    color: var(--accent-2);
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 2.2rem;
}
.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: color .2s;
    padding: 4px 12px;
    border-radius: 8px;
}
.nav-links a:hover {
    color: var(--accent);
    background: #2188ff22;
}

/* HERO - centrar texto vertical y horizontal */
.hero {
    position: relative;
    min-height: calc(100vh - 72px);
    height: calc(100vh - 72px);
    width: 100vw;
    background: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.hero-content {
    position: relative;
    text-align: center;
    width: 100%;
    z-index: 2;
    margin: 0;
}
.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--accent-2);
    letter-spacing: 3px;
    text-shadow: 0 0 18px #2188ff44;
}
.hero-content p {
    font-size: 1.6rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* Secciones planas (nosotros/contacto) sin fondo ni sombra */
.logo-burbuja {
  position: absolute;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  animation-timing-function: ease-in-out;
}
.logo-burbuja img {
  width: 58px; /* Ajusta el tamaño */
  height: 58px;
  filter: drop-shadow(0 0 12px #2188ff88);
  border-radius: 50%;
}

/* Animaciones personalizadas */
.logo1 { top: 8%; left: 10%; animation: burbuja1 13s infinite alternate; }
.logo2 { top: 60%; left: 60%; animation: burbuja2 16s infinite alternate; }
.logo3 { top: 35%; left: 80%; animation: burbuja3 11s infinite alternate; }
.logo4 { top: 80%; left: 20%; animation: burbuja4 19s infinite alternate; }
/* Agrega más logos cambiando top/left y creando más keyframes si quieres */

@keyframes burbuja1 {
  0%   { transform: translateY(0) scale(1) rotate(0deg); opacity: 0.18;}
  40%  { transform: translateY(-40px) scale(1.2) rotate(8deg); opacity: 0.28;}
  100% { transform: translateY(20px) scale(0.9) rotate(-8deg); opacity: 0.14;}
}
@keyframes burbuja2 {
  0%   { transform: translateY(0) scale(1) rotate(0deg); opacity: 0.18;}
  60%  { transform: translateY(-60px) scale(1.3) rotate(16deg); opacity: 0.28;}
  100% { transform: translateY(40px) scale(0.85) rotate(-12deg); opacity: 0.15;}
}
@keyframes burbuja3 {
  0%   { transform: translateY(0) scale(1) rotate(0deg); opacity: 0.18;}
  50%  { transform: translateY(-30px) scale(1.1) rotate(10deg); opacity: 0.21;}
  100% { transform: translateY(15px) scale(0.95) rotate(-8deg); opacity: 0.15;}
}
@keyframes burbuja4 {
  0%   { transform: translateY(0) scale(1) rotate(0deg); opacity: 0.18;}
  70%  { transform: translateY(-50px) scale(1.2) rotate(12deg); opacity: 0.24;}
  100% { transform: translateY(30px) scale(0.9) rotate(-16deg); opacity: 0.12;}
}
.nosotros-dos-columnas .nosotros-titulo {
  text-align: center;
  font-size: 4.5rem;
  color: var(--accent);
  margin-bottom: 3.2rem;
  letter-spacing: 2px;
  font-weight: 700;
}

.nosotros-dos-columnas .nosotros-contenido {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.nosotros-dos-columnas .nosotros-texto {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.nosotros-dos-columnas .nosotros-texto p {
  text-align: justify;
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin: 0;
}

.nosotros-dos-columnas .nosotros-destacado {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.18rem;
}

.nosotros-dos-columnas .nosotros-img {
  flex: 1;
  display: flex;
  align-items: center;
  /* Centra la imagen verticalmente */
}

.nosotros-dos-columnas .nosotros-img img {
  width: 100%;
  max-width: 320px;  /* O el ancho que prefieras */
  height: 100%;
  max-height: 340px; /* Ajusta según el texto */
  object-fit: cover;
  border-radius: 18px;
  border: 4px solid #ffffff;
  box-shadow: 0 2px 18px #2188ff55;
  background: #131c2b;
}
.nosotros-dos-columnas .nosotros-img {
  height: 100%;
}
.nosotros-dos-columnas .nosotros-img img {
  height: 100%;
  width: auto; /* Mantén la proporción */
  max-height: 340px; /* Ajusta este valor para que combine con la altura del texto */
}

@media (max-width: 800px) {
  .nosotros-dos-columnas .nosotros-contenido {
    flex-direction: column;
    gap: 1.5rem;
  }
  .nosotros-dos-columnas .nosotros-img img {
    width: 130px; height: 130px;
  }
}
.section.plano {
    max-width: 1200px;
    margin: 3rem auto 2rem auto;
    padding: 2.2rem 2rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    overflow: visible;
    z-index: 1;
}
.section.plano h2 {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 3.5rem;
    letter-spacing: 3.4px;
  scroll-margin-top: 120px;
}
.section.plano p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
}
.team-img {
    margin-top: 1.2rem;
    text-align: center;
}
.team-img img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 2px 16px #2188ff55;
    border: 4px solid var(--accent-2);
}

/* Sección Servicios */
.centered-title {
    text-align: center;
    display: block;
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 1.3rem;
    letter-spacing: 2px;
    font-weight: 700;
}
.section.servicios {
    max-width: 1200px;
    margin: 3rem auto 2rem auto;
    padding: 2.2rem 2rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    overflow: visible;
    z-index: 1;
}
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}
.card.servicio-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-glow);
    padding: 2rem 1.2rem;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow var(--transition), transform var(--transition);
    position: relative;
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    cursor: pointer;
}
.card.servicio-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: .15s;
}
.card.servicio-card:hover {
    box-shadow: 0 0 48px #2188ffaa;
    transform: translateY(-6px) scale(1.04);
}
.card-icon {
    background: linear-gradient(135deg, #2188ff 55%, #7f5fff 100%);
    border-radius: 50%;
    box-shadow: 0 0 24px #2188ff77;
    padding: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-icon svg {
    width: 40px;
    height: 40px;
}
.card h3 {
    color: var(--accent);
    font-size: 1.18rem;
    margin-bottom: 0.7rem;
    font-weight: 700;
}
.card p {
    color: var(--text-secondary);
    font-size: 1rem;
    text-align: center;
}

/* CONTACTO layout plano y grande */
.section.contacto.plano {
    max-width: 1200px;
    margin: 3rem auto 2rem auto;
    padding: 2.2rem 2rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    overflow: visible;
    z-index: 1;
}
.contacto-flex {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    align-items: flex-start;
}
.formulario.grande {
    flex: 2 2 500px;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    font-size: 1.2rem;
}
.formulario.grande input,
.formulario.grande textarea {
    padding: 1.3rem;
    border: 1.5px solid var(--accent);
    border-radius: 10px;
    font-size: 1.2rem;
    background: #131b2b;
    color: var(--text-main);
    outline: none;
    transition: border-color .2s;
}
.formulario.grande input:focus,
.formulario.grande textarea:focus {
    border-color: var(--accent-2);
}
.formulario.grande textarea {
    min-height: 120px;
    resize: vertical;
}
.formulario.grande button {
    background: linear-gradient(90deg, var(--accent) 70%, var(--accent-2) 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 1.3rem 0;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, box-shadow .2s;
    box-shadow: 0 2px 10px #2188ff44;
}
.formulario.grande button:hover {
    background: linear-gradient(90deg, var(--accent-2) 70%, var(--accent) 100%);
    color: var(--accent);
    box-shadow: 0 4px 16px #2188ff77;
}
.contacto-mapa-datos {
    flex: 1 1 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.mapa {
    width: 100%;
}
.mapa iframe {
    width: 100%;
    min-width: 260px;
    height: 300px;
    border-radius: 16px;
    box-shadow: 0 2px 20px #2188ff33;
    border: 0;
}
.datos-contacto.debajo-mapa {
    margin-top: 1.2rem;
    color: var(--text-secondary);
    font-size: 1.18rem;
    text-align: left;
    width: 100%;
}
.datos-contacto.debajo-mapa p {
    margin: 0.2rem 0;
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: #e5e8ee;
    padding: 1.2rem 0;
    margin-top: 2rem;
    font-size: 1.08rem;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    position: relative;
    z-index: 2;
}
.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}
.footer-left {
    color: #e5e8ee;
    text-align: left;
}
.footer-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.privacidad-btn {
    background: linear-gradient(90deg, #2188ff 60%, #7f5fff 100%);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    box-shadow: 0 2px 10px #2188ff44;
    opacity: 0.95;
    margin-left: 2rem;
}
.privacidad-btn:hover {
    background: linear-gradient(90deg, #7f5fff 60%, #2188ff 100%);
    color: var(--accent) !important;
    opacity: 1;
}

/* Animaciones aparición SOLO para servicios */
.servicio-card.scroll-animate {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: opacity .7s cubic-bezier(.4,1.4,.6,1), transform .7s cubic-bezier(.4,1.4,.6,1);
}
.servicio-card.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Responsive */
@media (max-width: 1100px) {
    .section, .footer-flex {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
.section h2,
.centered-title, 
.section.servicios h2 {
    font-size: 3.5rem;
    scroll-margin-top: 250px; /* Ajusta según el alto real de tu navbar */
}
.section.nosotros h2 {
    font-size: 6.5rem;
    scroll-margin-top: 250px; /* Ajusta según el alto real de tu navbar */
}
.section.contacto h2 {
    font-size: 3.5rem;
    scroll-margin-top: 250px; /* Ajusta según el alto real de tu navbar */
}
@media (max-width: 900px) {
    .cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1rem;
    }
    .footer-flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .footer-right {
        justify-content: center;
        margin-left: 0;
    }
    .contacto-flex {
        flex-direction: column;
        gap: 2rem;
    }
    .contacto-mapa-datos {
        align-items: stretch;
    }
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2.3rem;
    }
    .section {
        padding: 1.2rem 0.5rem;
    }
    .team-img img {
        width: 110px;
        height: 110px;
    }
}

/* Ocultar mapa en pantallas muy pequeñas si es necesario */
@media (max-width: 400px) {
    .mapa iframe {
        display: none;
    }
}
