html { scroll-behavior: smooth; }
body { margin: 0; font-family: sans-serif; color: #333; overflow-x: hidden; }

/* NAVBAR ESTRUCTURA */
.navbar { position: fixed; top: 0; width: 100%; z-index: 1000; transition: all 0.4s ease; padding: 20px 0; }
.nav-content { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; transition: all 0.4s ease; }

/* LOGO */
.logo-composite { position: relative; height: 180px; width: 400px; display: flex; align-items: center; justify-content: center; transition: all 0.4s ease; }
.logo-base { height: 100%; width: auto; z-index: 2; }
.logo-gear { height: 90%; width: auto; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); animation: spin 6s linear infinite; z-index: 1; }
@keyframes spin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ELEMENTOS NAV */
.linea-separadora { width: 100%; height: 1px; background: rgba(255,255,255,0.3); margin: 10px 0; transition: all 0.4s ease; }
.nav-links { list-style: none; display: flex; gap: 30px; padding: 0; margin: 0; justify-content: center; }
.nav-links a { text-decoration: none; color: white; font-weight: bold; font-size: 0.9rem; }

/* SCROLLED STATE */
.navbar.scrolled { background: white; padding: 5px 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.navbar.scrolled .nav-content { flex-direction: row; justify-content: center; align-items: center; gap: 10px; flex-wrap: nowrap; }
.navbar.scrolled .logo-composite { height: 40px; width: 88px; }
.navbar.scrolled .linea-separadora { width: 1px; height: 30px; background: #002855; margin: 0 10px; }
.navbar.scrolled .nav-links { gap: 15px; }
.navbar.scrolled .nav-links a { color: #002855; font-size: 0.95rem; }

/* HERO Y SECCIONES */
.hero-section { height: 100vh; position: relative; overflow: hidden; }
.hero-video { position: absolute; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.content-section { min-height: 100vh; padding-top: 60px; text-align: center; }

/* SERVICIOS SECTION */
.servicios-section { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; color: white; }
.bg-video { position: absolute; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.servicios-container { width: 80%; text-align: center; z-index: 1; }
.servicios-grid { display: flex; justify-content: center; gap: 20px; margin-bottom: 50px; }
.servicio-item { cursor: pointer; padding: 15px; border: 2px solid white; border-radius: 5px; font-weight: bold; transition: 0.3s; }
.servicio-item:hover { background: white; color: #002855; }

/* CONTENIDO DOS COLUMNAS */
.content-box { display: none; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; text-align: left; background: rgba(0,0,0,0.3); padding: 30px; border-radius: 10px; }
.content-box.active { display: grid; }
.col-text p { font-size: 1.2rem; line-height: 1.6; }
.col-video video { width: 100%; border-radius: 10px; border: 2px solid white; }

/* AJUSTES MÓVILES */
@media (max-width: 768px) {
    .logo-composite { height: 80px; width: 180px; }
    .hero-section { height: 50vh !important; }
    .nav-links a { font-size: 0.7rem; }
    .navbar.scrolled .nav-links a { font-size: 0.7rem; }
    .navbar.scrolled .logo-composite { height: 30px; width: 66px; }
    .content-section { padding-top: 30px; }
    .content-box { grid-template-columns: 1fr; text-align: center; }
}
